joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Contain obfuscated stackstrings
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x690
mov rax, qword [0x140007380]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov ebx, ecx
lea rdx, [rsp + 0x60]
xor r14d, r14d
mov ecx, 0x104
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x40], r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140001236
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 0x650064
lea r8, [rsp + 0x60]
mov dword [rsp + 0x4c], 0x61006c
lea rdx, str._s_s
mov dword [rsp + 0x50], 0x730079
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x54], 0x74002e
mov dword [rsp + 0x58], 0x70006d
mov word [rsp + 0x5c], r14w
call qword [sym.imp.USER32.dll_wsprintfW]
mov esi, r14d
mov ebp, ebx
test ebx, ebx
je 0x14000122f
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001236
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0xfffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rbx, rax
call sub.api_ms_win_crt_time_l1_1_0.dll__time32
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, eax
mov r8d, 0xfffff
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
mov edx, ecx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, 0xfffff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140001236
cmp dword [rsp + 0x40], 0xfffff
jne 0x140001236
xor edx, edx
mov r8d, 0xfffff
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x28], 0x4000100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001236
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r14
mov r8d, 0xfffff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001236
cmp dword [rsp + 0x44], 0xfffff
jne 0x140001236
xor edx, edx
mov r8d, 0xfffff
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
cmp rsi, rbp
jb 0x1400010b0
mov eax, 1
jmp 0x140001238
xor eax, eax
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140002f60
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140001270
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov ebp, edx
mov rdi, rcx
test rcx, rcx
je 0x1400013a5
test edx, edx
je 0x1400013a5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400013a5
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400013a5
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
xor ebx, ebx
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov r14d, dword [rsp + 0x90]
add r14, rdi
mov r15d, dword [r14 + 0x20]
mov r12d, dword [r14 + 0x1c]
add r15, rdi
mov r13d, dword [r14 + 0x24]
add r12, rdi
add r13, rdi
cmp dword [r14 + 0x14], ebx
jbe 0x1400013a5
nop dword [rax + rax]
movzx eax, word [r13 + rbx*2]
mov ecx, dword [r15 + rbx*4]
add rcx, rdi
mov esi, dword [r12 + rax*4]
add rsi, rdi
call fcn.140002bc0
cmp ebp, eax
je 0x1400013c8
inc ebx
cmp ebx, dword [r14 + 0x14]
jb 0x140001380
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x1400013a7
Function at 0x1400013e0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x140
mov rax, qword [0x140007380]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ebp, ecx
test ecx, ecx
je 0x140001493
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x20]
test rbx, rbx
je 0x140001493
mov r14d, 0x104
movzx eax, word [rbx + 0x48]
test ax, ax
je 0x140001493
cmp ax, r14w
jae 0x140001493
mov rax, qword [rbx + 0x50]
xor edi, edi
cmp word [rax], di
je 0x140001471
xor esi, esi
xor ecx, ecx
nop
movzx ecx, word [rcx + rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
inc edi
mov byte [rsp + rsi + 0x20], al
mov rax, qword [rbx + 0x50]
mov esi, edi
lea rcx, [rdi + rdi]
cmp word [rcx + rax], 0
jne 0x140001450
mov eax, edi
cmp rax, r14
jae 0x1400014c9
lea rcx, [rsp + 0x20]
mov byte [rsp + rdi + 0x20], 0
call fcn.140002bc0
cmp eax, ebp
je 0x1400014c3
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001431
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002f60
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rax, qword [rbx + 0x20]
jmp 0x140001495
call fcn.140003088
int3
Function at 0x1400028a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, 0xffffffffffffffff
mov rsi, rdx
mov r8, rax
mov rdi, rcx
inc r8
cmp byte [rcx + r8], 0
jne 0x1400028c4
nop
cmp byte [rdx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400028d0
lea rbp, [rax + 1]
add rbp, r8
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400028ff
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test eax, eax
jne 0x14000293d
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
test eax, eax
jne 0x14000293d
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140002960
Capabilities:
Hide graphical window
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x7d0
call section..text
call fcn.140002030
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], 0
mov rax, rbx
lea rbp, [0x14000733c]
nop dword [rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x1400029b0
lea r14, [0x1400072ec]
mov rcx, rbx
cmp byte [r14 + rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400029c3
lea rsi, [rcx + 1]
add rsi, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140002b49
mov r8, r14
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test eax, eax
jne 0x140002b34
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
test eax, eax
jne 0x140002b34
lea rbp, [0x140007340]
mov rax, rbx
inc rax
cmp byte [rax + rbp], 0
jne 0x140002a23
lea r14, [0x1400072e8]
cmp byte [r14 + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140002a33
lea rsi, [rbx + 1]
add rsi, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140002b49
mov r8, r14
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test eax, eax
jne 0x140002b1f
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
test eax, eax
jne 0x140002b1f
lea rdx, str.54:9990_payload_x64.bin.sgn
lea rcx, [0x1400072f0]
call fcn.1400028a0
mov rdx, rax
mov rcx, rdi
call fcn.1400028a0
mov rdx, rax
mov rcx, rbx
call fcn.1400028a0
lea rdx, str._x64
mov rbx, rax
lea rcx, str._payload
call fcn.1400028a0
mov rcx, rax
lea rdx, str..bin
call fcn.1400028a0
lea rdx, str..sgn
mov rcx, rax
call fcn.1400028a0
mov r9d, 1
lea rcx, [rsp + 0x40]
mov r8, rax
mov rdx, rbx
call fcn.1400014d0
mov rcx, qword [rsp + 0x40]
mov edx, eax
call fcn.140002700
mov rbx, qword [rsp + 0x48]
neg eax
mov rbp, qword [rsp + 0x50]
sbb eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140002bc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
mov edx, ebx
test eax, eax
je 0x140002bfb
nop
movsx eax, byte [rdi + rdx]
inc rdx
add eax, ebx
imul ebx, eax, 0x101
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rdx, rcx
jne 0x140002be0
lea eax, [rbx + rbx*8]
mov rbx, qword [rsp + 0x30]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
add rsp, 0x20
pop rdi
ret
Function at 0x140003d98
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18005c080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_HSR.cfg
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180004894
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x1090
lea rdx, [0x18005c110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x1800048a9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004a4c0
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004a4c0
add rsp, 0x50
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18005c080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
lea rcx, str.Pipsi_HSR.cfg
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180004963
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x1090
jne 0x180004978
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x18005c110]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180004978
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004a4c0
add rsp, 0x50
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004a4c0
add rsp, 0x50
pop rbx
ret

Function at 0x180004c70
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp edx, 1
je 0x180004c86
xor eax, eax
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800541f4]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800541f4]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov rdx, rdi
lea rcx, str.hinstDll:__p_n
call fcn.180004d50
xor ecx, ecx
lea r8, [0x180004b10]
mov qword [rsp + 0x28], rcx
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x180008650
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18000872b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x18000869e
cmp rbx, qword [0x18005c008]
ja 0x18000869e
sub rbx, 0x8000000
jmp 0x180008722
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000872b
cmp dword [rsp + 0x40], 0x10000
jne 0x180008706
cmp qword [rsp + 0x38], 0x10000
jb 0x180008706
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000872d
sub rbx, 0x10000
jmp 0x180008722
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180008680
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180008740
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180008762
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18000881d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18000878e
cmp rbx, qword [0x18005c008]
ja 0x18000878e
add rbx, 0x8000000
jmp 0x180008814
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000881d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1800087f9
cmp rcx, 0x10000
jb 0x1800087f9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000881f
add rbx, 0x10000
jmp 0x180008814
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180008814
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180008770
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180008830
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180008852
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18000886e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180008885
cmp byte [rcx + 1], 0x25
jne 0x1800088c9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180008891
cmp al, 0xe9
jne 0x1800088c9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x1800088b4
cmp rcx, 0xffffffff80000000
jae 0x1800088ab
lea rsi, [rcx + 0x7ff80000]
jmp 0x1800088c9
mov rsi, 0xfffffffffff80000
jmp 0x1800088c9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1800088c9
mov edi, 0x80000
mov rdx, qword [0x18005d258]
mov rax, qword [0x18005d250]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x1800088f0
test rax, rax
je 0x180008907
mov rdx, rax
mov qword [0x18005d258], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180008907
cmp rcx, rdi
jb 0x180008907
cmp rcx, rsi
jbe 0x180008a5a
mov qword [0x18005d258], rax
mov rdx, rax
test rax, rax
je 0x180008952
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18000893c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18000893c
cmp rax, rdi
jb 0x18000893c
cmp rax, rsi
jbe 0x180008a5a
mov rdx, qword [rdx + 8]
mov qword [0x18005d258], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180008920
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18000897c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180008650
mov rdx, rax
test rax, rax
jne 0x180008a08
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x1800089a2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180008740
mov rdx, rax
test rax, rax
jne 0x180008a08
cmp rbx, 0x40000000
jbe 0x1800089c2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180008740
mov rdx, rax
test rax, rax
jne 0x180008a08
cmp rbx, rbp
jae 0x1800089de
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180008650
mov rdx, rax
test rax, rax
jne 0x180008a08
mov rdx, rbx
mov rcx, rdi
call fcn.180008650
mov rdx, rax
test rax, rax
jne 0x180008a08
mov rdx, rsi
mov rcx, rbx
call fcn.180008740
mov rdx, rax
test rax, rax
je 0x180008a91
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x18005d258], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x18005d250]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x18005d250], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180008a42
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180008a91
cmp rax, rsi
ja 0x180008a91
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x18004d5d0]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180008a93
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180008ce0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180008d0e
xor al, al
jmp 0x180008d50
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180008d1f
xor al, al
jmp 0x180008d50
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180008d46
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180008d46
mov al, 1
jmp 0x180008d50
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180009230
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18005d268], 0
jne 0x1800092d7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18005d268], ecx
jne 0x1800092d7
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18005d250]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18005d280], rdi
mov qword [0x18005d278], rdi
mov qword [0x18005d270], rdi
test rbx, rbx
je 0x1800092c0
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800092b8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180009290
jmp 0x1800092c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18005d26c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x1800098f0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18005d26c]
mov rdi, rcx
test eax, eax
jne 0x180009995
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18000991a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.18004a4e0
mov rbx, rax
test rax, rax
jne 0x180009938
mov edi, 8
jmp 0x18000995b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180009979
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.18004a548
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18005d26c], edi
mov qword [0x18005d270], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18005d278]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18005d278], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret