joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037150
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x1402f5da8]
call fcn.140021de0
nop
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x21]
lea rcx, [rsp + 0x20]
call fcn.140233f10
nop
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xa
ja case.default.0x1400371bd
movsxd rax, dword [rsp + 0x24]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x37364]
add rax, rcx
jmp rax
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x20]
call fcn.140037400
mov rax, qword [rsp + 0x38]
jmp 0x14003735d
mov rax, qword [rsp + 0x60]
add rax, 8
mov edx, 1
mov rcx, rax
call fcn.14001af70
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x10]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.14001af70
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 8]
shl rax, 2
mov rdx, rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call fcn.14001af70
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x10]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x1000193
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov rax, qword [rsp + 0x60]
add rax, 8
mov edx, 8
mov rcx, rax
call fcn.14001af70
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140028180
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov edx, 0x10
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.14001af70
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov edx, 0x20
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.14001af70
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140028240
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140028240
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140028240
mov eax, eax
mov qword [rsp + 0x30], rax
jmp 0x14003733e
mov edx, 0x20
mov rcx, qword [rsp + 0x60]
call fcn.14001af70
mov eax, eax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
and rax, 0x7fffffff
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x20]
call fcn.140037400
mov rax, qword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
Function at 0x140046450
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400464e4
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, qword [rsp + 0xd0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xd0]
jmp 0x140046612
mov eax, dword [rsp + 0x34]
add eax, 2
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
lea rcx, [rsp + 0x60]
lea rdx, [0x1402f0040]
mov rdi, rcx
mov rsi, rdx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140239440
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14004658a
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0xd0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xd0]
jmp 0x140046612
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x1400465ac
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.140023bd0
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x90]
mov rdi, qword [rsp + 0xd0]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xd0]
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x1400954e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0x1c], 0
jne 0x140095528
mov qword [rsp + 0x20], 0
mov r9d, 0xb8
lea r8, str.C:UsersdimitOdin_srcqueue.cpp
lea rdx, str.q__mask___0
lea rcx, str.Assertion_Failure
call fcn.140017a30
int3
xor eax, eax
test eax, eax
jne 0x1400954f0
mov rax, qword [rsp + 0x80]
add rax, 0x30
xor edx, edx
mov rcx, rax
call fcn.140238b30
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x1c]
mov ecx, dword [rsp + 0x30]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx]
mov qword [rsp + 0x50], rax
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 8]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x48], rax
mov edx, 2
mov rcx, qword [rsp + 0x48]
call fcn.140238b30
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x140095636
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x80]
add rax, 0x30
mov r8d, dword [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140238720
movzx eax, al
test eax, eax
je 0x140095634
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x88]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8d, 3
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call fcn.140238e40
mov rax, qword [rsp + 0x80]
add rax, 0x18
mov r8d, 3
mov edx, 1
mov rcx, rax
call fcn.140238880
jmp 0x140095679
jmp 0x140095674
cmp dword [rsp + 0x3c], 0
jge 0x14009565a
mov rcx, qword [rsp + 0x80]
call fcn.140213e40
movzx eax, al
test eax, eax
jne 0x140095658
mov eax, 0xffffffff
jmp 0x140095679
jmp 0x140095674
mov rax, qword [rsp + 0x80]
add rax, 0x30
xor edx, edx
mov rcx, rax
call fcn.140238b30
mov dword [rsp + 0x30], eax
jmp 0x140095548
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1401339a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov dword [rsp], 0x811c9dc5
mov rax, qword [rsp + 8]
mov qword [rsp + 0x10], rax
jmp 0x140133a0d
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x18]
cmp qword [rsp + 0x10], rax
je 0x140133a33
mov rax, qword [rsp + 0x10]
movzx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x1000193
mov dword [rsp], eax
jmp 0x140133a00
mov eax, dword [rsp]
add rsp, 0x28
ret
Function at 0x14013a630
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1402efec0]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x188], 0
jne 0x14013a688
mov qword [rsp + 0x20], 0
mov r9d, 0xa4
lea r8, str.C:UsersdimitOdin_srcmain.cpp
lea rdx, str.output
lea rcx, str.Assertion_Failure
call fcn.140017a30
int3
xor eax, eax
test eax, eax
jne 0x14013a653
lea rdx, str.rxgybzw
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.ucrtbased.dll__popen]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14013a6b7
xor al, al
jmp 0x14013a78e
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140201980
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402310d0
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ucrtbased.dll_feof]
test eax, eax
jne 0x14013a74f
mov r9, qword [rsp + 0x38]
mov r8d, 0xff
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_fread]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov rax, qword [rsp + 0x188]
mov rcx, qword [rax]
call fcn.14001a540
mov rcx, qword [rsp + 0x188]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ucrtbased.dll_ferror]
test eax, eax
je 0x14013a74d
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.1402019f0
movzx eax, byte [rsp + 0x30]
jmp 0x14013a78e
jmp 0x14013a6d4
movzx eax, byte [0x1402f94bb]
test eax, eax
je 0x14013a77a
mov rax, qword [rsp + 0x188]
mov r8, qword [rax]
mov rdx, qword [rsp + 0x180]
lea rcx, str._SYSTEM_CALL_OUTPUT___s_____s_n
call fcn.14001c300
nop
mov byte [rsp + 0x31], 1
lea rcx, [rsp + 0x40]
call fcn.1402019f0
movzx eax, byte [rsp + 0x31]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140248280
add rsp, 0x178
ret
Function at 0x1402012a0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1402efec0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, str._tRAM:
call fcn.14001c2b0
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100000
div rcx
mov rdx, rax
lea rcx, str._lld_MiB_n
call fcn.14001c2b0
nop
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140248280
add rsp, 0x78
ret
Function at 0x140201a20
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x188
lea rcx, [rsp + 0xf8]
call fcn.14001d590
lea rcx, [rsp + 0x68]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x68]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14002a600
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x20]
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x150]
call fcn.1400fb6f0
lea rcx, [rsp + 0x128]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
lea rcx, [rsp + 0x128]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x28], 0
jmp 0x140201af4
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jge 0x140201c0c
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140023b70
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x108]
call fcn.140023b20
lea rcx, [rsp + 0x78]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x88]
lea rcx, [rsp + 0x78]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x88]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x118]
call fcn.140025dd0
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x58]
lea rcx, [rsp + 0xc0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x60], 0
jle 0x140201c07
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xd0]
call fcn.140024cd0
nop
jmp 0x140201ae7
lea rax, [rsp + 0xd0]
mov rdi, qword [rsp + 0x1a0]
mov rsi, rax
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x1a0]
add rsp, 0x188
pop rdi
pop rsi
ret

Function at 0x140239950
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140239970
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0xa0]
call fcn.140239f50
lea rcx, [rsp + 0x48]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x38]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x60]
call fcn.14001dcd0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140239a18
xor eax, eax
jmp 0x140239ac9
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x70]
call fcn.14001dcd0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140239a6d
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x80]
call fcn.140239ef0
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.140239ef0
mov eax, dword [rsp + 0x20]
add rsp, 0xb8
pop rdi
pop rsi
ret

Function at 0x140239d10
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140243be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp dword [rsp + 0x88], 0x200
jge 0x140243c5b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx]
cmp dword [rax], ecx
jge 0x140243c22
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
jmp 0x140243c2d
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x100
jge 0x140243c5b
mov r9d, dword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140244190
jmp 0x140243dfe
mov edx, dword [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.14023b950
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140243c80
mov eax, dword [rsp + 0x30]
jmp 0x140243dfe
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], 0
jmp 0x140243caa
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x20], eax
jge 0x140243dd6
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
cmp dword [rcx], eax
jge 0x140243ce5
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
jmp 0x140243cf8
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x24], 0
jmp 0x140243d14
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x24], eax
jge 0x140243da2
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x70]
mov rdx, qword [rdx + 0x10]
mov ecx, dword [rdx + rcx*4]
movsxd rdx, dword [rsp + 0x24]
mov r8, qword [rsp + 0x78]
mov r8, qword [r8 + 0x10]
mov edx, dword [r8 + rdx*4]
imul rcx, rdx
add rax, rcx
mov ecx, dword [rsp + 0x28]
add rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
and rax, 0xfffffff
mov ecx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x20]
add edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x58]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x40]
shr rax, 0x1c
mov dword [rsp + 0x28], eax
jmp 0x140243d0a
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x88]
jge 0x140243dd1
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x58]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
jmp 0x140243ca0
lea rcx, [rsp + 0x48]
call fcn.14023c610
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.14023b770
lea rcx, [rsp + 0x48]
call fcn.14023b4c0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1402483b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140248830
movzx eax, al
test eax, eax
jne 0x1402483d0
mov ecx, 7
call fcn.140248dd0
nop
mov byte [rsp + 0x20], 0
call fcn.1402487c0
mov byte [rsp + 0x21], al
cmp dword [0x140302328], 1
jne 0x1402483f4
mov ecx, 7
call fcn.140248dd0
nop
jmp 0x14024844c
cmp dword [0x140302328], 0
jne 0x140248447
mov dword [0x140302328], 1
lea rdx, [0x14024e248]
lea rcx, [0x14024e230]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x140248428
mov eax, 0xff
jmp 0x140248551
lea rdx, [0x14024e228]
lea rcx, [0x14024e0a0]
call sub.ucrtbased.dll__initterm
mov dword [0x140302328], 2
jmp 0x14024844c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140248a20
call fcn.140248da0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1402484a9
mov rcx, qword [rsp + 0x30]
call fcn.140248990
movzx eax, al
test eax, eax
je 0x1402484a9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14024e078]
nop
call fcn.140248db0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1402484dd
mov rcx, qword [rsp + 0x38]
call fcn.140248990
movzx eax, al
test eax, eax
je 0x1402484dd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.140248590
mov dword [rsp + 0x28], eax
call fcn.140248f80
movzx eax, al
test eax, eax
jne 0x1402484fc
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14024850b
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.140248a50
mov eax, dword [rsp + 0x28]
jmp 0x140248551
add rsp, 0x68
ret
Function at 0x140001370
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rdi, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop word [rax + rax]
lea rdx, [rsp + 0x4c]
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movzx ecx, word [rdx]
movzx eax, word [rdx + r8]
sub ecx, eax
jne 0x1400013d4
add rdx, 2
test eax, eax
jne 0x1400013c0
test ecx, ecx
je 0x1400013fb
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400013b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140001410
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001451
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rbx, eax
xor ecx, ecx
mov rdx, rbx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x1400014c6
cmp dword [rsi], 0x905a4d
jne 0x1400014c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140001660
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
movsxd rdx, ecx
lea rcx, [0x140001610]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x14000d1c0]
add rsp, 0x28
ret
Function at 0x140008c70
Capabilities:
Parse pe header

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