joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011352
Capabilities:
Terminate process

Disassembly:
jmp 0x140016a90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011438
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017ec0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017ee0
xor al, al
jmp 0x140017f61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017ef3
xor al, al
jmp 0x140017f61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017f1d
xor al, al
jmp 0x140017f61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017f31
xor al, al
jmp 0x140017f61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017f43
xor al, al
jmp 0x140017f61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017f5f
xor al, al
jmp 0x140017f61
mov al, 1
add rsp, 0x38
ret
Function at 0x140015cc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011613
movzx eax, al
test eax, eax
jne 0x140015ce0
mov ecx, 7
call fcn.140011505
nop
mov byte [rsp + 0x20], 0
call fcn.140011541
mov byte [rsp + 0x21], al
cmp dword [0x140023b78], 1
jne 0x140015d04
mov ecx, 7
call fcn.140011505
nop
jmp 0x140015d5c
cmp dword [0x140023b78], 0
jne 0x140015d57
mov dword [0x140023b78], 1
lea rdx, [0x14001e660]
lea rcx, [0x14001e330]
call fcn.1400112d0
test eax, eax
je 0x140015d38
mov eax, 0xff
jmp 0x140015e61
lea rdx, [0x14001e220]
lea rcx, [section..rdata]
call fcn.140011528
mov dword [0x140023b78], 2
jmp 0x140015d5c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114f1
call fcn.140011460
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140015db9
mov rcx, qword [rsp + 0x30]
call fcn.14001124e
movzx eax, al
test eax, eax
je 0x140015db9
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 [0x14002a020]
nop
call fcn.1400114a1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140015ded
mov rcx, qword [rsp + 0x38]
call fcn.14001124e
movzx eax, al
test eax, eax
je 0x140015ded
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115be
nop
call fcn.140015f10
mov dword [rsp + 0x28], eax
call fcn.140011438
movzx eax, al
test eax, eax
jne 0x140015e0c
mov ecx, dword [rsp + 0x28]
call fcn.14001107d
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140015e1b
call fcn.1400115cd
nop
xor edx, edx
mov cl, 1
call fcn.140011226
mov eax, dword [rsp + 0x28]
jmp 0x140015e61
add rsp, 0x68
ret
Function at 0x140001110
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rdx, [0x140001220]
xor r8d, r8d
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
xor r9d, r9d
lea rdx, [0x140001330]
xor r8d, r8d
mov qword [0x140005678], rax
mov ecx, 0xe
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp qword [0x140005678], 0
mov qword [0x140005688], rax
je 0x1400011d8
test rax, rax
je 0x1400011d8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Initialized
call fcn.140001d50
mov rcx, rax
lea rdx, [0x140001f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001193
mov rcx, qword [0x140005678]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x140005688]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x68
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_install_hooks_
call fcn.140001d50
mov rcx, rax
lea rdx, [0x140001f30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ff0
add rsp, 0x68
ret

Function at 0x1400028b8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180074080]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 5
mov qword [rsp + 0x50], 0xf
mov eax, dword [str..text]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x180066d0c]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], dil
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x30]
call fcn.1800019f0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 6
mov qword [rsp + 0x70], 0xf
mov eax, dword [0x1800669f8]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1800669fc]
mov word [rsp + 0x5c], ax
mov byte [rsp + 0x5e], dil
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.1800019f0
mov rcx, qword [0x1800774c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [rbp - 4]
add rsi, rax
mov eax, dword [rbp - 8]
test eax, eax
je 0x18000319b
mov r15d, eax
mov r12d, dword [rbp - 0x54]
mov r13d, dword [rbp - 0x58]
nop dword [rax]
movzx eax, byte [rsi]
sub al, 0x48
test al, 0xfb
jne 0x180003189
cmp byte [rsi + 1], 0x8d
jne 0x180003189
movsxd rbx, dword [rsi + 3]
add rbx, 7
add rbx, rsi
mov rcx, qword [0x1800774c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add rax, r12
cmp rbx, rax
jb 0x180003189
mov rcx, qword [0x1800774c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add rax, r13
add rax, r12
cmp rbx, rax
jae 0x180003189
movzx eax, byte [rbx]
lea rcx, [0x180066d30]
cmp byte [rax + rcx], 0
je 0x180003189
mov rax, qword [rsp + 0x20]
sub rbx, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + rbx]
sub edx, ecx
jne 0x180003183
add rax, 2
test ecx, ecx
jne 0x180003170
test edx, edx
cmove rdi, rsi
inc rsi
sub r15, 1
jne 0x180003110
test rdi, rdi
jne 0x1800031c6
mov r9d, 0x10
lea r8, str.Memcury::Scanner::FindStringRef
lea rdx, [0x1800669a8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rsp + 0x28]
mov qword [rbx], rdi
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x180003206
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003200
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003273
call fcn.18002cc24
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x18000323d
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003238
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000326d
call fcn.18002cc24
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.18002c850
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800381c0
nop
call fcn.1800381c0
nop
int3
Function at 0x1800090b0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x180074080]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18000922a
mov r8d, 0x100
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180009154
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180001da0
mov rax, qword [r14 + 0x10]
mov r9, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18000917e
mov r9, qword [r14]
lea rcx, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x60]
cmp rbp, 0xf
cmova rcx, rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call fcn.1800198e0
mov r15, rax
cmp rbp, 0xf
jbe 0x1800091e1
lea rdx, [rbp + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800091d9
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180009259
mov rcx, rdi
call fcn.18002cc24
cmp r15, 0xffffffffffffffff
je 0x180009208
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1800091fb
mov qword [rdx], rsi
add qword [rbx + 8], 8
jmp 0x180009208
lea r8, [rsp + 0x38]
mov rcx, rbx
call fcn.180020590
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExA]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180009122
mov rax, rbx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18002c850
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.1800381c0
int3
Function at 0x180011420
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180011448
xor eax, eax
lea r8, [0x180011240]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
add rsp, 0x38
ret

Function at 0x180011ac0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180011af1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x180011b6b
mov rdi, r14
mov rcx, rbx
call fcn.180016900
test rax, rax
jle 0x180011b43
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.180056760
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180011b5b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180011b63
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180011b05
sub r14, rdi
jmp 0x180011c4f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180011b82
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180011b84
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180011bb6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180056760
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180011c4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180011bf1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x180011c2d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180040b28
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180011c4c
cmp rbp, rax
ja 0x180011c00
test rbp, rbp
je 0x180011c4c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180040b28
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002b47c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18002b4b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18002b4bb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18002b504
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18005b720]
cmp byte [rcx + rax], 0
je 0x18002b504
dec r8
sub rdx, 1
jne 0x18002b4ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18002da60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18002dc80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18002db67
mov rax, qword [0x1800740f0]
cmp qword [rsp + 0x20], rax
jb 0x18002dac4
mov rax, qword [0x1800740f8]
cmp qword [rsp + 0x20], rax
ja 0x18002dac4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18002da86
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180056e00
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18002daf3
jmp 0x18002db67
cmp dword [rsp + 0x50], 0x10000
jne 0x18002db4a
cmp qword [rsp + 0x48], 0x10000
jb 0x18002db4a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002db38
mov rax, qword [rsp + 0x28]
jmp 0x18002db69
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18002db62
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18002dc80
mov qword [rsp + 0x20], rax
jmp 0x18002da86
xor eax, eax
add rsp, 0x68
ret
Function at 0x18002db70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18002dcc0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18002dc73
mov rax, qword [0x1800740f0]
cmp qword [rsp + 0x20], rax
jb 0x18002dbcb
mov rax, qword [0x1800740f8]
cmp qword [rsp + 0x20], rax
ja 0x18002dbcb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18002db8d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180056e00
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18002dbfa
jmp 0x18002dc73
cmp dword [rsp + 0x50], 0x10000
jne 0x18002dc51
cmp qword [rsp + 0x48], 0x10000
jb 0x18002dc51
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002dc3f
mov rax, qword [rsp + 0x28]
jmp 0x18002dc75
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18002dc6e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18002dcc0
mov qword [rsp + 0x20], rax
jmp 0x18002db8d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003f660
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18003f697
call fcn.18003b538
mov dword [rax], 0x16
call fcn.1800381a0
xor eax, eax
jmp 0x18003f725
mov rdx, r9
mov rcx, r8
call fcn.18003f5fc
mov rbx, rax
test rax, rax
je 0x18003f722
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18003f528]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18003f70f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18003b4ac
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18003f6f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18003f705
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800438c4
jmp 0x18003f722
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18003f71f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180047ca8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180047cbe
mov al, 1
jmp 0x180047d1e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180047ccf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180047d1c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18004ec30
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180047d1c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180047d1c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180047d1c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180047d1e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180049a1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18002d340
sub rsp, rax
mov rax, qword [0x180074080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180047a1c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180049a6b
mov rax, rbp
jmp 0x180049b73
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x76ef0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18004b43c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x76ef0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180049b6f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180049b6f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18004b43c
test rax, rax
js 0x180049b6f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180049b6f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180049b61
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180049b61
cmp byte [rcx], 0xd
jne 0x180049b47
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180049b56
cmp byte [rcx + 1], 0xa
jne 0x180049b56
inc rcx
jmp 0x180049b56
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x744c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180049b29
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180049b73
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18002c850
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004a7dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180076ef0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18004a833
cmp word [rdx], r13w
jne 0x18004a833
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004a838
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004a95d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004a97e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004a871
mov rdx, r9
mov word [rbx], cx
jmp 0x18004a898
cmp r9, r8
jae 0x18004a8a8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18004a852
jmp 0x18004a95d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004a952
cmp dword [rsp + 0x80], esi
je 0x18004a952
lea r8, [0x180076ef0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004a92a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004a8fa
mov word [rbx], r13w
jmp 0x18004a95a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18004a907
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004a95a
cmp word [rsp + 0x70], r13w
jne 0x18004a937
cmp rbx, r14
je 0x18004a8f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18004b444
cmp word [rsp + 0x70], r13w
je 0x18004a95d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180076ef0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004a957
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004a95d