joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b3e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx + 4]
mov rbx, rcx
mov dword [rcx], 0x63726374
mov dword [rcx + 0x404], 0x80004005
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call sub.msvcrt.dll_memset
xor edx, edx
mov eax, edx
mov ecx, 8
test al, 1
je 0x10001b427
shr eax, 1
xor eax, 0xedb88320
jmp 0x10001b429
shr eax, 1
sub rcx, 1
jne 0x10001b41a
inc edx
mov dword [rdi], eax
add rdi, 4
cmp edx, 0x100
jl 0x10001b413
and dword [rbx + 0x404], ecx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x10001b46c
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x10001b499
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
mov ecx, edx
xor r9, rax
shr ecx, 8
inc r8
movzx eax, r9b
mov edx, dword [r11 + rax*4 + 4]
xor edx, ecx
sub r10, 1
jne 0x10001b477
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x10001bd7c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x38
xor ebx, ebx
lea rax, [rsp + 0x68]
lea rdx, str.SystemSetup
lea edi, [rbx + 1]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, edi
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10001be10
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, str.Upgrade
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10001be05
cmp dword [rsp + 0x50], 4
jne 0x10001be05
cmp dword [rsp + 0x58], edi
cmove ebx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x1000206e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp rcx, rdi
je 0x100020740
cmp word [rcx], di
je 0x100020740
call sym.spoolsv.exe_PrvAllocSplStr
mov rbx, rax
cmp rax, rdi
je 0x100020740
lea rax, [rsp + 0x40]
lea r8, [0x1000206b8]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rdi
je 0x100020738
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100020740
mov rcx, rbx
call sym.spoolsv.exe_PrvDllFreeSplStr
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x10002077c
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
mov esi, r9d
mov rbx, r8
mov rbp, rdx
mov r12, rcx
cmp r8, rdi
je 0x1000207bd
cmp qword [r8 + 8], rdi
je 0x1000207bd
cmp dword [r8], 3
je 0x1000207dd
lea ecx, [rdi + 0x7c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x57
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov ecx, r9d
call fcn.100001930
cmp eax, edi
jne 0x1000207f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000207c2
mov ecx, dword [0x10007f1fc]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov r9, qword [rbx + 8]
mov r8d, dword [rbx]
mov rdx, rbp
mov rcx, r12
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x10007f1fc]
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call fcn.1000018e8
cmp ebx, edi
jne 0x100020875
mov rax, qword [0x10007f250]
lea rcx, [0x10007f250]
cmp rax, rcx
je 0x10002086d
test byte [rax + 0x1c], 1
je 0x10002086d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x1000794e0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x4a
call fcn.10001c0b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
jmp 0x1000207c2

Function at 0x100033450
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov ebx, edx
mov edi, ecx
test edx, edx
jne 0x10003346f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100033471
mov eax, edx
and dword [rsp + 0x3c], 0
and dword [rsp + 0x4c], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [0x1000777a8]
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], 4
call fcn.100013010
mov rcx, qword [0x10007f250]
lea rbp, [0x10007f250]
cmp rcx, rbp
je 0x1000334e1
test byte [rcx + 0x1c], 4
je 0x1000334e1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079938]
mov edx, 0x1f
mov r9d, edi
mov dword [rsp + 0x20], ebx
call fcn.1000349f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10003355d
mov rcx, qword [0x10007f250]
cmp rcx, rbp
je 0x100033554
test byte [rcx + 0x1c], 4
je 0x100033534
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079938]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x20
call fcn.10001c0b4
mov rcx, qword [0x10007f250]
cmp rcx, rbp
je 0x100033554
test byte [rcx + 0x1c], 4
je 0x100033554
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079938]
mov edx, 0x21
call fcn.10001c090
xor eax, eax
mov byte [0], al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x10004b70c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov esi, edx
mov rbp, rcx
lea eax, [rbx + 4]
lea rdx, str.PrintersDefaults
lea r9d, [rbx + 1]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x70], eax
lea rax, [r11 - 0x20]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x20], rbx
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x78], ebx
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, ebx
mov edi, ebx
sete dil
cmp edi, ebx
je 0x10004b7dc
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
lea rdx, [0x10007aa58]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10004b7a0
cmp dword [rsp + 0x78], 1
mov edi, ebx
setne dil
cmp edi, ebx
je 0x10004b7dc
mov rcx, qword [rsp + 0x38]
lea eax, [rsi + rsi]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
lea rdx, str.NetID
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov edi, ebx
cmp eax, ebx
sete dil
mov rcx, qword [rsp + 0x38]
cmp rcx, rbx
je 0x10004b7ec
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp edi, ebx
mov edx, 0x1016
setne bl
xor ecx, ecx
mov r8d, ebx
call sub.ntdll.dll_WinSqmSetDWORD
mov rbx, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c3e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
lea r8d, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14000c48a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000c48a
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, 2
shr ebx, 1
lea ecx, [rbx + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14000c928
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.14000d860
mov rsi, qword [rsp + 0x30]
mov rax, rdi
mov word [rbx + rdi], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000cca8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x1cf63e71
jmp 0x140003702
dec rcx
jmp 0x14000376a
jne 0x140003702
jmp 0x1400038ea
jmp 0x140003aab
jmp 0x140003b52
jmp 0x140003bb4
jmp 0x140003c05
jmp 0x140003c26
jmp 0x140003ca4
jmp 0x140003ce7
jmp 0x140003d44
jmp 0x140003d88
jmp 0x140003da8
jmp 0x140003e2c
jmp 0x140003e62
jmp 0x140003eb5
jmp 0x140003f2a
jmp 0x140003f50
jmp 0x140003fc5
jmp 0x14000401d
jmp 0x14000403f
jmp 0x140004083
jmp 0x1400040df
xor rcx, rcx
mov rdx, 0x708f
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x1400040ff
pop rsi
add rsi, 0xe72
mov rdi, rax
mov rcx, 0x708f
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.14000d0cc
add rsp, 0x28
xor rcx, rcx
jmp 0x140003553

Function at 0x14000d374
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d3be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d3be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d3be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d3be
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d3be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d3c0
xor al, al
add rsp, 0x28
ret

Function at 0x140010f74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010da0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400044c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044d0]
mov dword [rax], 1
mov rax, qword [0x1400044e0]
mov dword [rax], 1
mov rax, qword [0x140004470]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400044b0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004580]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004560]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004420]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400017b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002180
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400021cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400021c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021cf
add rax, 0x28
cmp rax, r9
jne 0x1400021b0
xor eax, eax
ret

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002260
mov rdx, qword [0x140004470]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000224e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000224e
cmp word [rax + 0x18], 0x20b
jne 0x14000224e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002260
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002239
add rbx, 0x28
cmp rbx, rdi
je 0x140002260
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002230
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002270
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004470]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002290
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002298
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002290
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002290
add rax, 0x28
cmp rax, r9
jne 0x1400022d0
xor eax, eax
ret

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004470]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000230f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002318
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000230f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004470]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002350
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002358
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002350
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400023a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002397
test rcx, rcx
je 0x140002350
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002388
xor eax, eax
ret
Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004470]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400023f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004470]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002410
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002410
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002464
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002470
add rdx, 0x28
cmp r9, rdx
jne 0x140002450
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004470]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400024a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002505
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002518
add rdx, 0x28
cmp rdx, r10
jne 0x1400024f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002527
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002537
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000250e
test ecx, ecx
jg 0x140002520
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400019c0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x17], rax
movdqa xmm1, xmmword [0x140006850]
mov rsi, rcx
movd ecx, xmm1
mov r14, rdx
movdqu xmmword [rbp - 0x19], xmm1
mov r15, r8
mov byte [rbp - 8], 0
xor byte [rbp - 0x17], cl
mov r8b, 0x29
xor byte [rbp - 0x16], cl
movzx r9d, r8b
xor byte [rbp - 0x15], cl
movzx ebx, r8b
xor byte [rbp - 0x14], cl
movzx edi, r8b
xor byte [rbp - 0x13], cl
movdqa xmm0, xmm1
xor byte [rbp - 0x12], cl
mov dl, 0x7d
xor byte [rbp - 0x11], cl
xor dl, cl
xor byte [rbp - 0x10], cl
mov r10b, 0x6b
xor byte [rbp - 0xf], cl
xor r8b, 0x45
xor byte [rbp - 0xe], cl
xor r9b, 0x45
xor byte [rbp - 0xd], cl
xor r10b, 0x45
xor byte [rbp - 0xc], cl
xor r12d, r12d
xor byte [rbp - 0xb], cl
xor bl, 0x45
xor byte [rbp - 0xa], cl
xor dil, 0x45
mov byte [rbp - 9], dl
mov dl, 0x21
movzx r11d, dl
psrldq xmm0, 1
movd eax, xmm0
xor dl, 0x45
xor r11b, 0x45
mov byte [rbp - 1], 0x45
mov byte [rbp + 2], dl
xor al, cl
mov byte [rbp + 3], r8b
mov byte [rbp - 0x18], al
mov cl, 0x31
xor cl, 0x45
mov byte [rbp + 4], r9b
mov al, 0x2b
mov byte [rbp + 1], cl
xor al, 0x45
mov byte [rbp + 5], r10b
lea rcx, [rbp]
mov byte [rbp], al
mov byte [rbp + 6], r11b
mov byte [rbp + 7], bl
mov byte [rbp + 8], dil
mov byte [rbp + 9], r12b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov r10, rax
test rax, rax
jne 0x140001af1
mov qword [rsp + 0x38], rax
mov r9, r14
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x28], eax
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
jmp 0x140001b2c
xor eax, eax
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x50], rax
mov r9, rsi
mov qword [rsp + 0x48], rax
mov edx, 0x1fffff
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov qword [rbp + 0xf], rax
call r10
mov rax, qword [rbp + 0xf]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140004b00
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001f50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001f78
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001f9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001fa0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001ff9
test ecx, ecx
jle 0x140001fd9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001ff9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001ff9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002020
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002042
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002058
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002074
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002076
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400020b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000214e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400020ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000212e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000214e
cmp rbx, rax
ja 0x140002100
test rbx, rbx
je 0x14000214e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret