joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005f8c
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1800f8020]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rcx]
lea r8, [0x1800f8ff0]
lea rdx, [0x1800428f8]
mov rbx, rcx
call qword [rax + 0x38]
test eax, eax
js 0x18000612e
mov rcx, qword [0x1800f8ff0]
lea rdx, [0x1800f9018]
mov rax, qword [rcx]
call qword [rax + 0x140]
mov rax, qword [rbx]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [rax + 0x60]
mov rax, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
mov qword [0x1800f9008], rax
lea r8, [0x180042910]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x48]
mov rcx, qword [0x1800f8ff0]
lea r9, [0x1800f9000]
mov rdx, qword [rsp + 0x20]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x1800f9080]
test rax, rax
jne 0x1800060e3
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbx, qword [rax]
mov r10, rbx
mov r8, qword [r10 + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x1800060c8
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x1800060c8
mov esi, dword [r9 + 0x20]
dec edx
mov r11d, 0x811c9dc5
lea rax, [rsi + rdx*4]
mov ecx, dword [rax + r8]
add rcx, r8
mov al, byte [rcx]
inc rcx
test al, al
je 0x1800060c4
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rcx]
inc rcx
test al, al
jne 0x1800060a5
cmp r11d, 0xb652e838
je 0x180006114
test edx, edx
jne 0x180006089
mov rax, qword [r10]
mov r10, rax
cmp rax, rbx
je 0x1800060da
cmp qword [rax + 0x30], 0
jne 0x180006065
xor eax, eax
mov qword [0x1800f9080], rax
mov rcx, qword [0x1800f9008]
lea r8, [0x180005e54]
mov edx, 0xfffffffc
call rax
mov qword [0x1800f8ff8], rax
call fcn.180005ac0
mov byte [0x1800f83e2], 0
call fcn.180038dbc
mov al, 1
jmp 0x180006130
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
jmp 0x1800060dc
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003fdd0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000bdb8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
mov r9d, 4
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x1800b4eb0]
xor r8d, dword [rax + rdx*4]
sub r9, 1
jne 0x18000bdc1
not r8d
mov eax, r8d
ret

Function at 0x18000bdec
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x18000be46
mov r11b, 0x23
lea rdi, [0x1800b4eb0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x18000be30
cmp rdx, 2
jb 0x18000be30
cmp byte [r10], r11b
jne 0x18000be30
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000be0e
jmp 0x18000be87
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x18000be87
mov r11b, 0x23
lea rdi, [0x1800b4eb0]
cmp dl, r11b
jne 0x18000be6b
cmp byte [r10], r11b
jne 0x18000be6b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x18000be59
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x18000c020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x18000c059
mov r8d, 0x647
lea rdx, str.C:Users_rxckDesktop_fivemmmmimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x18000c062
and qword [rdi], 0
lea rdx, [0x1800eed18]
mov rcx, rbx
call fcn.18000be98
mov rbx, rax
test rax, rax
je 0x18000c146
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18000c13d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c13d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x18000c13d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18000c13d
cmp rsi, 0xffffffffffffffff
je 0x18000c13d
mov rax, qword [0x1800f8fa0]
test rax, rax
je 0x18000c0e7
inc dword [rax + 0x3b0]
mov rdx, qword [0x1800f8fa8]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbp, rax
test rax, rax
je 0x18000c13d
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x18000c12a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
call fcn.18000e5d0
jmp 0x18000c146
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x18000c138
mov qword [rdi], rsi
mov rax, rbp
jmp 0x18000c148
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000d948
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xc8]
mov rdi, rdx
mov rbx, rcx
test eax, eax
jg 0x18000d982
mov r8d, 0x6c1
lea rdx, str.C:Users_rxckDesktop_fivemmmmimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rbx + 0xc8]
movsxd rcx, eax
xor edx, edx
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18000bdec
Function at 0x18001d018
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30f8], 0
lea rbx, [rcx + 0x3100]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001d0b1
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x18001d069
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001f010
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18000c790
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30f8]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1800f8f9a]
movsxd r8, eax
mov rax, qword [rdi + 0x3108]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18001d0b9
mov rcx, rbx
call fcn.18000c790
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001d954
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800f8fa0]
mov rbx, rcx
and dword [rax + 0x3094], 0
test rcx, rcx
je 0x18001d9bd
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18001d9c8
lea rdx, [0x1800eed1c]
mov rcx, rbx
mov rdi, rax
call fcn.18000be98
mov rbx, rax
test rax, rax
je 0x18001d9bd
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18003ab50
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x18003abb6
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18003aba7
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003ab9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18003ab71
mov r8, qword [rbx]
mov rcx, qword [0x1800f8fc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18003abc8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800f8020]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [r11 - 0x18]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x1800f91f0]
mov rdx, qword [rbx]
mov al, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rbp, [rdx - 5]
cmove rbp, rdx
lea rdi, [rdx - 5]
test al, al
lea rsi, [rcx*2 + 5]
cmove rdi, rdx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003ac3e
mov eax, 0xa
jmp 0x18003ac8b
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18003ac5a
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003fdd0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18003b094
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18003b0ab
cmp r8b, 0x90
je 0x18003b0ab
cmp r8b, 0xcc
jne 0x18003b0cd
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18003b0c9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18003b0cd
add edx, r10d
cmp edx, r9d
jb 0x18003b0b9
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18003b660
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.18003b8b0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18003b77a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18003b6c4
mov rax, qword [0x1800f8008]
cmp qword [rsp + 0x20], rax
ja 0x18003b6c4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18003b686
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18003b6f5
jmp 0x18003b77a
cmp dword [rsp + 0x50], 0x10000
jne 0x18003b75d
cmp qword [rsp + 0x48], 0x10000
jb 0x18003b75d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003b73b
mov rax, qword [rsp + 0x28]
jmp 0x18003b77c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18003b74b
xor eax, eax
jmp 0x18003b77c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18003b775
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18003b8b0
mov qword [rsp + 0x20], rax
jmp 0x18003b686
xor eax, eax
add rsp, 0x68
ret

Function at 0x18003b790
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.18003b8f0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18003b8a6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18003b7eb
mov rax, qword [0x1800f8008]
cmp qword [rsp + 0x20], rax
ja 0x18003b7eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18003b7ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18003b81c
jmp 0x18003b8a6
cmp dword [rsp + 0x50], 0x10000
jne 0x18003b884
cmp qword [rsp + 0x48], 0x10000
jb 0x18003b884
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003b862
mov rax, qword [rsp + 0x28]
jmp 0x18003b8a8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18003b872
xor eax, eax
jmp 0x18003b8a8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18003b8a1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18003b8f0
mov qword [rsp + 0x20], rax
jmp 0x18003b7ad
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003b940
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18003bed0
mov qword [rsp + 0x28], 0
cmp qword [0x1800f8928], 0
jne 0x18003b988
cmp qword [0x1800f8920], 0
je 0x18003b988
mov rax, qword [0x1800f8920]
mov qword [0x1800f8928], rax
cmp qword [0x1800f8928], 0
je 0x18003ba2e
mov rax, qword [0x1800f8928]
cmp qword [rax + 0x10], 0
je 0x18003ba2e
mov rax, qword [0x1800f8928]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003ba2e
mov rax, qword [0x1800f8928]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003ba2e
mov rax, qword [0x1800f8928]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18003b9f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18003b9fb
xor eax, eax
jmp 0x18003bba9
mov rax, qword [0x1800f8928]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18003bba9
mov rax, qword [0x1800f8920]
mov qword [0x1800f8928], rax
jmp 0x18003ba50
mov rax, qword [0x1800f8928]
mov rax, qword [rax + 8]
mov qword [0x1800f8928], rax
cmp qword [0x1800f8928], 0
je 0x18003ba9d
cmp qword [0x1800f8928], 0
je 0x18003ba9b
mov rax, qword [0x1800f8928]
cmp qword [rax + 0x10], 0
je 0x18003ba9b
mov rax, qword [0x1800f8928]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003ba9b
mov rax, qword [0x1800f8928]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003ba9b
jmp 0x18003b9cc
jmp 0x18003ba3e
mov rcx, qword [rsp + 0x60]
call fcn.18003e030
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18003bbb0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18003bba7
mov rax, qword [rsp + 0x48]
mov qword [0x1800f8928], rax
mov rax, qword [0x1800f8928]
mov dword [rax], 0x52727464
mov rax, qword [0x1800f8928]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800f8928]
mov rcx, qword [0x1800f8920]
mov qword [rax + 8], rcx
mov rax, qword [0x1800f8928]
mov qword [0x1800f8920], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800f8928]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18003bb58
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18003bb92
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18003bb4e
mov rax, qword [0x1800f8928]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18003b9cc
xor eax, eax
add rsp, 0x58
ret
Function at 0x18003c8c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18003c907
xor al, al
jmp 0x18003c9a9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18003c931
xor al, al
jmp 0x18003c9a9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18003c9a1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18003c9a1
mov al, 1
jmp 0x18003c9a9
jmp 0x18003c9a7
xor al, al
add rsp, 0x78
ret

Function at 0x18003ccb0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800f8920]
mov qword [rsp + 0x28], rax
jmp 0x18003ccd0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003ccff
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18003ccfd
call sub.KERNEL32.dll_GetLastError
jmp 0x18003cd01
jmp 0x18003ccc2
xor eax, eax
add rsp, 0x38
ret
Function at 0x18003d5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800f8938], eax
je 0x18003d5cd
mov eax, 0x10dd
jmp 0x18003d7e6
cmp dword [0x1800f893c], 0
je 0x18003d5e1
mov eax, dword [0x1800f893c]
jmp 0x18003d7e6
cmp qword [rsp + 0x78], 0
jne 0x18003d5f3
mov eax, 0x57
jmp 0x18003d7e6
cmp qword [rsp + 0x70], 0
jne 0x18003d605
mov eax, 6
jmp 0x18003d7e6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x18003d637
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1800f893c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1800f8940], rax
mov eax, dword [rsp + 0x20]
jmp 0x18003d7e6
mov ecx, 0x30
call fcn.180040088
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18003d6a9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1800f893c], eax
cmp qword [rsp + 0x30], 0
je 0x18003d694
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.18004044c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1800f8940], rax
mov eax, dword [rsp + 0x20]
jmp 0x18003d7e6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.18003d570
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.18003d570
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x18003d706
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x18003d723
mov dword [rsp + 0x20], 9
cmp dword [0x1800f8930], 0
je 0x18003d71e
jmp 0x18003d66a
jmp 0x18003d660
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x18003d750
mov dword [rsp + 0x20], 9
cmp dword [0x1800f8930], 0
je 0x18003d74b
jmp 0x18003d66a
jmp 0x18003d660
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18003d787
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18003d660
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x1800f8950]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1800f8950], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003d7f0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800f8938], eax
je 0x18003d80b
mov eax, 0x10dd
jmp 0x18003d930
mov rax, qword [0x1800f8950]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003d8b5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18003d880
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18003d880
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18003c010
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18004044c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18003d817
mov qword [0x1800f8950], 0
call fcn.18003ca70
mov rax, qword [0x1800f8948]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18003d919
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18004044c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18003d8d1
mov qword [0x1800f8948], 0
mov dword [0x1800f8938], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003de60
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800f893c], 0
je 0x18003de7d
mov eax, dword [0x1800f893c]
jmp 0x18003df43
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18003de90
xor eax, eax
jmp 0x18003df43
mov ecx, 0x10
call fcn.180040088
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18003defe
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18003dee3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18004044c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800f893c], eax
mov qword [0x1800f8940], 0
mov eax, dword [rsp + 0x20]
jmp 0x18003df43
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18003df18
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18003deb9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800f8948]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800f8948], rax
xor eax, eax
add rsp, 0x48
ret