joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400078d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e610
sub rsp, rax
lea r8, str._s
mov edx, 0x1000
lea r14, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r14
call fcn.140007890
cmp eax, 0xfff
jg 0x140007a38
lea rsi, [rsp + 0x30]
lea ebx, [rax - 1]
mov r12d, 0x1000
mov rcx, r14
mov rdx, rsi
sub r12d, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140007a38
movsxd rax, ebx
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x5c]
lea rbp, [0x140012c5a]
lea rax, [r14 + rax*2]
lea r15, [0x140012c5e]
mov qword [rsp + 0x20], rax
movsxd rax, r12d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x1400079d0
mov rdx, r15
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x1400079d0
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
lea r8, [0x140012c64]
call fcn.140007890
cmp eax, r12d
jge 0x1400079d0
mov eax, dword [rsp + 0x30]
mov rcx, r14
test al, 0x10
je 0x140007a18
test ah, 4
je 0x1400079c9
cmp dword [rsp + 0x54], 0xa000000c
je 0x140007a30
call fcn.1400078d0
nop
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007973
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007973
jmp 0x1400079dc
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400079d0
mov eax, 0xffffffff
jmp 0x1400079fe

Function at 0x140007bd0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000e610
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.1400086a0
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x140007c48
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x140007c48
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1400085a0
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x140008100
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000e610
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
add rcx, 0x10
lea rbp, [rsp + 0xa0]
mov rdx, rsi
call fcn.1400086a0
mov edx, 1
lea rcx, [0x140007a40]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rbp
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call r12
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call r12
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call r12
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400082a0
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Failed_to_create_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002f40
mov eax, 0xffffffff
jmp 0x14000828e
Function at 0x1400083f0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000e610
sub rsp, rax
mov rbp, rcx
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140008440
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x140008458
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, r12d
mov edx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, rax
test rax, rax
je 0x140008440
mov r9, rbx
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x1400084a0
mov rcx, rdi
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea r14, [rsp + 0x2040]
lea rcx, [rbp + 0x2022]
mov r8d, 0x1000
mov rdx, r14
call fcn.1400086a0
test rax, rax
je 0x140008482
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
je 0x140008482
mov rbx, rdi
mov r15, rdi
lea rbp, [rsp + 0x40]
xor r13d, r13d
lea r12d, [rax*8]
add r12, rdi
nop dword [rax]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008533
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140008533
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rdi + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x1400084f8
test r13d, r13d
jle 0x140008482
movsxd r13, r13d
lea r14, [rdi + r13*8]
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140008565
add rbx, 8
cmp r14, rbx
je 0x140008482
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008558
xor r12d, r12d
jmp 0x14000858e
cmp r12d, 0x20
je 0x140008558
add r12d, 1
mov rcx, qword [rbx]
call r13
test eax, eax
jne 0x140008588
jmp 0x140008558
Function at 0x14000d2f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14000f1e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000dfc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140021448]
test eax, eax
je 0x14000e05a
lea rax, [0x140021420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140021450]
mov qword [rbp - 8], rax
jmp 0x14000e03e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000e032
cmp qword [rbp - 0x10], 0
je 0x14000e032
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000dff8
lea rax, [0x140021420]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000e05b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e160
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000e188
mov eax, 0
jmp 0x14000e1d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000e1b1
mov eax, 0
jmp 0x14000e1d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000e1d1
mov eax, 0
jmp 0x14000e1d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x180002920
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002964
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002964
nop word cs:[rax + rax]
mov rax, qword gs:[0x60]
mov rax, qword gs:[0x60]
jmp 0x180002950
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002a4c
mov rsi, r10
test r8b, r8b
je 0x180002a60
nop word cs:[rax + rax]
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800029e0
test r9b, r9b
je 0x180002a70
sub rsi, rcx
je 0x180002a48
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002a40
test ebp, ebp
jne 0x180002a40
add rbx, 1
cmp rsi, rbx
jne 0x180002a00
jmp 0x180002a48
test ebp, ebp
jne 0x1800029be
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002a60
jmp 0x180002a70
Function at 0x180001b90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180096020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 1
mov rbp, rax
call fcn.1800152e0
mov r9d, 0x40
mov rsi, rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edi, edi
test eax, eax
je 0x180001c29
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8d, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, rsi
nop dword [rax]
movzx edx, byte [rbx]
lea rcx, str._02X
call fcn.180002920
inc edi
lea rbx, [rbx + 1]
cmp edi, 1
jb 0x180001c30
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180015250
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180002920
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2948
call fcn.18006ed00
sub rsp, rax
mov rax, qword [0x180096020]
xor rax, rsp
mov qword [rsp + 0x2930], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x1430]
mov r8d, 0x1500
call fcn.18001cdd0
lea rdi, [rsp + 0x2968]
call fcn.180002150
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1400
mov rcx, qword [rax]
call fcn.180034e90
lea r8, [0x18008dad0]
mov edx, 0x1500
lea rcx, [rsp + 0x1430]
call fcn.180036550
lea r8, [rsp + 0x30]
mov edx, 0x1500
lea rcx, [rsp + 0x1430]
call fcn.180036550
lea rcx, [rsp + 0x1430]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x2930]
xor rcx, rsp
call fcn.180015250
add rsp, 0x2948
pop rdi
pop rbx
ret

Function at 0x180003410
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003438
xor eax, eax
lea r8, [0x1800032a0]
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 eax, 1
add rsp, 0x38
ret
Function at 0x180003450
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x18009975d], 0
je 0x180003462
call fcn.180005dd0
cmp byte [0x1800997c8], 0
je 0x180003584
cmp byte [0x1800997c4], 0
mov rax, qword [0x180099528]
mov rcx, qword [rax + 0x81a86c0]
mov qword [0x180099520], rcx
je 0x180003497
movss xmm1, dword [0x180099760]
jmp 0x18000349f
movss xmm1, dword [0x18008ebf0]
call fcn.180002890
cmp byte [0x1800997c5], 0
je 0x180003584
mov rax, qword [0x180099528]
mov rcx, qword [rax + 0x81a86c0]
mov qword [0x180099520], rcx
mov rax, qword [rcx + 0x1a8]
test rax, rax
je 0x180003584
mov rax, qword [rax + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180003584
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x180003584
mov qword [rsp + 0x30], rbx
mov ecx, 0x26
mov rbx, qword [rax + 0x330]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x18000353d
movss xmm0, dword [0x180099764]
mov rax, qword [rbx + 0x1a0]
mulss xmm0, dword [0x18008ec7c]
addss xmm0, dword [rax + 0x144]
movss dword [rax + 0x1f8], xmm0
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
mov rdi, qword [rsp + 0x20]
jae 0x18000357f
mov rax, qword [rbx + 0x1a0]
movss xmm1, dword [0x180099764]
mulss xmm1, dword [0x18008ec64]
movss xmm0, dword [rax + 0x144]
subss xmm0, xmm1
movss dword [rax + 0x1f8], xmm0
mov rbx, qword [rsp + 0x30]
cmp byte [0x1800997c6], 0
je 0x1800035a9
cmp byte [0x1800997c0], 0
je 0x18000359b
call fcn.180006b90
cmp byte [0x1800997c1], 0
je 0x1800035a9
call fcn.1800073e0
cmp byte [0x1800997c9], 0
je 0x1800036ab
mov rax, qword [0x180099528]
mov rcx, qword [rax + 0x81a86c0]
mov qword [0x180099520], rcx
mov rax, qword [rcx + 0x1a8]
test rax, rax
je 0x1800036ab
mov rax, qword [rax + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800036ab
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1800036ab
cmp byte [0x1800997a4], 0
mov rcx, qword [rcx + 0x330]
mov rdx, qword [rcx + 0x310]
je 0x180003621
movss xmm0, dword [0x1800997a8]
movss dword [rcx + 0xd8], xmm0
jmp 0x18000362b
mov dword [rcx + 0xd8], 0x3f800000
cmp byte [0x1800997ac], 0
je 0x180003644
movss xmm0, dword [0x1800997b0]
movss dword [rcx + 0x390], xmm0
cmp byte [0x1800997b4], 0
je 0x180003692
mov rax, qword [rcx + 0x1a0]
movss xmm0, dword [0x1800997b8]
movss dword [rax + 0x154], xmm0
mov rax, qword [rcx + 0x1a0]
movss xmm1, dword [0x1800997b8]
movss dword [rax + 0x158], xmm1
mov rax, qword [rcx + 0x1a0]
movss xmm0, dword [0x1800997b8]
movss dword [rax + 0x15c], xmm0
cmp byte [0x18009979c], 0
je 0x1800036ab
movss xmm0, dword [0x1800997a0]
movss dword [rdx + 0x1ac], xmm0
add rsp, 0x28
ret
Function at 0x180016f40
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.180017190
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18001705a
mov rax, qword [0x180096050]
cmp qword [rsp + 0x20], rax
jb 0x180016fa4
mov rax, qword [0x180096058]
cmp qword [rsp + 0x20], rax
ja 0x180016fa4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180016f66
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001cdd0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180016fd5
jmp 0x18001705a
cmp dword [rsp + 0x50], 0x10000
jne 0x18001703d
cmp qword [rsp + 0x48], 0x10000
jb 0x18001703d
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 0x18001701b
mov rax, qword [rsp + 0x28]
jmp 0x18001705c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18001702b
xor eax, eax
jmp 0x18001705c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180017055
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180017190
mov qword [rsp + 0x20], rax
jmp 0x180016f66
xor eax, eax
add rsp, 0x68
ret

Function at 0x180017070
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.1800171d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180017186
mov rax, qword [0x180096050]
cmp qword [rsp + 0x20], rax
jb 0x1800170cb
mov rax, qword [0x180096058]
cmp qword [rsp + 0x20], rax
ja 0x1800170cb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18001708d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001cdd0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800170fc
jmp 0x180017186
cmp dword [rsp + 0x50], 0x10000
jne 0x180017164
cmp qword [rsp + 0x48], 0x10000
jb 0x180017164
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 0x180017142
mov rax, qword [rsp + 0x28]
jmp 0x180017188
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180017152
xor eax, eax
jmp 0x180017188
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180017181
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800171d0
mov qword [rsp + 0x20], rax
jmp 0x18001708d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180017220
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.1800177b0
mov qword [rsp + 0x28], 0
cmp qword [0x180098170], 0
jne 0x180017268
cmp qword [0x180098168], 0
je 0x180017268
mov rax, qword [0x180098168]
mov qword [0x180098170], rax
cmp qword [0x180098170], 0
je 0x18001730e
mov rax, qword [0x180098170]
cmp qword [rax + 0x10], 0
je 0x18001730e
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18001730e
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18001730e
mov rax, qword [0x180098170]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800172d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800172db
xor eax, eax
jmp 0x180017489
mov rax, qword [0x180098170]
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 fcn.18001cdd0
mov rax, qword [rsp + 0x28]
jmp 0x180017489
mov rax, qword [0x180098168]
mov qword [0x180098170], rax
jmp 0x180017330
mov rax, qword [0x180098170]
mov rax, qword [rax + 8]
mov qword [0x180098170], rax
cmp qword [0x180098170], 0
je 0x18001737d
cmp qword [0x180098170], 0
je 0x18001737b
mov rax, qword [0x180098170]
cmp qword [rax + 0x10], 0
je 0x18001737b
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18001737b
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18001737b
jmp 0x1800172ac
jmp 0x18001731e
mov rcx, qword [rsp + 0x60]
call fcn.180019400
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.180017490
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180017487
mov rax, qword [rsp + 0x48]
mov qword [0x180098170], rax
mov rax, qword [0x180098170]
mov dword [rax], 0x52727464
mov rax, qword [0x180098170]
mov qword [rax + 0x10], 0
mov rax, qword [0x180098170]
mov rcx, qword [0x180098168]
mov qword [rax + 8], rcx
mov rax, qword [0x180098170]
mov qword [0x180098168], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180098170]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180017438
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180017472
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 0x18001742e
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800172ac
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800181a0
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 0x1800181e7
xor al, al
jmp 0x180018289
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 0x180018211
xor al, al
jmp 0x180018289
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 0x180018281
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 0x180018281
mov al, 1
jmp 0x180018289
jmp 0x180018287
xor al, al
add rsp, 0x78
ret

Function at 0x180018590
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180098168]
mov qword [rsp + 0x28], rax
jmp 0x1800185b0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800185df
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800185dd
call sub.KERNEL32.dll_GetLastError
jmp 0x1800185e1
jmp 0x1800185a2
xor eax, eax
add rsp, 0x38
ret