joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5f90], 0
lea rbx, [rcx + 0x5f98]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140078f87
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140078f3a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14007b680
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140063420
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5f90]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fa0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400d3dab]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140078f8f
mov rcx, rbx
call fcn.140063420
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400792b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x1400d3dc8]
xor ebp, ebp
cmp byte [rbx + 0x5ee8], bpl
jne 0x14007938f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140079388
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140062ea0
mov rsi, rax
test rax, rax
je 0x140079388
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140079314
mov rcx, rax
call fcn.1400794e0
mov r8, qword [0x1400d3dc8]
test r8, r8
je 0x14007937f
movsx rdx, word [r8 + 0x6048]
lea rcx, [r8 + 0x604c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140079374
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6048], cx
movsx rax, cx
lea rcx, [r8 + 0x604c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6044]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5ee8], 1
movss xmm0, dword [rbx + 0x5eec]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14007941e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5eec], xmm0
jb 0x14007941e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140079411
mov rax, qword [0x1400d3dc8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5eec], ebp
call fcn.140079740
lea rdx, [0x1400bc5a8]
mov rcx, rdi
mov rsi, rax
call fcn.140062db0
mov rdi, rax
test rax, rax
je 0x140079418
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140079418
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5eec], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140079440
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400d3dc8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400794a3
mov qword [rsp], rbx
lea rbx, [0x1400ade00]
nop dword [rax]
cmp r9b, 0x23
jne 0x140079483
cmp byte [r8], r9b
jne 0x140079483
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140079470
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f00]
not eax
mov r8, qword [r10 + 0x5f08]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x1400794cf
cmp dword [r8 + 8], eax
je 0x1400794d6
add r8, 0x48
cmp r8, rcx
jne 0x1400794c0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14008d740
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1400d2040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400d3dc8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14008d8fe
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14008d8fe
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call fcn.140066c90
xor ebx, ebx
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
je 0x14008d7ca
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x14008d7cd
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov rax, qword [0x1400d3dc8]
mov dword [rdi + 0x28], 9
test rax, rax
je 0x14008d817
mov rsi, qword [rax + 0x90]
jmp 0x14008d81a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14008d845
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1400d3dc8]
mov rcx, qword [rax + 0x4ad0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, [0x1400bcd68]
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14008d8be
inc rbx
cmp rbx, 5
jl 0x14008d8a0
jmp 0x14008d8ea
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14008d900
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a6000
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14008f7f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400d3dc8]
mov rcx, qword [rax + 0x4da8]
mov r9, qword [rax + 0x4008]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.1400874a0

Function at 0x14008f8d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400d3dc8]
mov rcx, qword [rax + 0x4da8]
mov r10, qword [rax + 0x4008]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1400874a0
Function at 0x1400a53a4
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 0x1400a53de
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400a53e3
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 0x1400a542c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400aae20]
cmp byte [rcx + rax], 0
je 0x1400a542c
dec r8
sub rdx, 1
jne 0x1400a5412
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400a5b78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400a54bc
mov ebx, eax
test eax, eax
jne 0x1400a5ba8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400a5c0b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a5c02
test al, 0x10
je 0x1400a5c02
bt eax, 0xa
jae 0x1400a5bfb
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400a5c1c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400a5bf7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400a5bf7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400a5c02
and dword [rsp + 0x3c], 0
jmp 0x1400a5c07
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a6c94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a6cde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a6cde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a6cde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a6cde
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a6cde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a6ce0
xor al, al
add rsp, 0x28
ret
Function at 0x180002580
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 0x180002665
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x1800025ce
cmp rbx, qword [0x180067008]
ja 0x1800025ce
sub rbx, 0x8000000
jmp 0x18000265c
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180002665
cmp dword [rsp + 0x40], 0x10000
jne 0x180002640
cmp qword [rsp + 0x38], 0x10000
jb 0x180002640
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180002667
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180002665
sub rbx, 0x10000
jmp 0x18000265c
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 0x1800025b0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180002680
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 0x1800026a2
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180002767
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x1800026ce
cmp rbx, qword [0x180067008]
ja 0x1800026ce
add rbx, 0x8000000
jmp 0x18000275e
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180002767
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180002743
cmp rcx, 0x10000
jb 0x180002743
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180002769
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180002767
add rbx, 0x10000
jmp 0x18000275e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x18000275e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x1800026b0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180002780
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x18000279e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x1800027ba
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x1800027d1
cmp byte [rcx + 1], 0x25
jne 0x180002815
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x1800027dd
cmp al, 0xe9
jne 0x180002815
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x180002800
cmp rcx, 0xffffffff80000000
jae 0x1800027f7
lea rdi, [rcx + 0x7ff80000]
jmp 0x180002815
mov rdi, 0xfffffffffff80000
jmp 0x180002815
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180002815
mov ebx, 0x80000
mov rax, qword [0x18006a118]
mov rcx, qword [0x18006a110]
test rax, rax
jne 0x180002837
test rcx, rcx
je 0x18000284e
mov rax, rcx
mov qword [0x18006a118], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x18000284e
cmp rdx, rbx
jb 0x18000284e
cmp rdx, rdi
jbe 0x180002908
mov qword [0x18006a118], rcx
mov rax, rcx
test rcx, rcx
je 0x180002892
mov rdx, rcx
test rcx, rcx
je 0x18000287c
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x18000287c
cmp rcx, rbx
jb 0x18000287c
cmp rcx, rdi
jbe 0x180002908
mov rax, qword [rax + 8]
mov qword [0x18006a118], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x180002860
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.180002960
test rax, rax
je 0x18000294b
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18006a118], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18006a110]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18006a110], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x1800028f0
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x18000294b
cmp rdx, rdi
ja 0x18000294b
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x18004ec20]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180002c80
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18006a128], eax
je 0x180003216
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x18006a12c]
test eax, eax
jne 0x180003350
test rbp, rbp
jne 0x180003233
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x18000324f
cmp qword [rsi], 0
jne 0x18000325b
mov dword [0x18006a12c], 6
mov qword [0x18006a130], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.18004a4dc
mov rdi, rax
test rax, rax
jne 0x18000327f
lea ebx, [rax + 8]
jmp 0x180003325
mov rcx, qword [rsi]
xor edx, edx
call fcn.180003140
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180003140
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x180003317
cmp rdx, 0x1e
ja 0x180003317
cmp qword [rbx + 0x50], rax
jne 0x180003317
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800032d9
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x180003325
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x18006a140]
mov qword [rdi], rax
xor eax, eax
mov qword [0x18006a140], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x18006a120], 0
mov ebx, 9
jne 0x180003330
mov dword [0x18006a12c], ebx
test rdi, rdi
je 0x18000333d
mov edx, 0x30
mov rcx, rdi
call fcn.18004a518
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x18006a130], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x180003360
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18006a128], 0
jne 0x180003405
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006a128], ecx
jne 0x180003405
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18006a110]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18006a140], rdi
mov qword [0x18006a138], rdi
mov qword [0x18006a130], rdi
test rbx, rbx
je 0x1800033ee
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1800033e7
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800033c0
jmp 0x1800033ee
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18006a12c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180003a10
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18006a12c]
mov rdi, rcx
test eax, eax
jne 0x180003ab0
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x180003a39
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.18004a4dc
mov rbx, rax
test rax, rax
jne 0x180003a55
lea edi, [rax + 8]
jmp 0x180003a76
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180003a94
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.18004a518
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18006a12c], edi
mov qword [0x18006a130], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18006a138]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18006a138], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180005010
Capabilities:
Decompress data using quicklz

Disassembly:
lea eax, [r8 + 0x100000]
cmp eax, 0x1fffff
ja 0x180005071
mov eax, r8d
mov ecx, r8d
shl ecx, 4
shr eax, 1
xor eax, edx
and eax, 0x7ff
xor eax, edx
mov edx, r8d
xor ecx, eax
shl edx, 6
and ecx, 0x3f0000
xor ecx, eax
xor edx, ecx
and edx, 0x4000000
xor edx, ecx
mov ecx, r8d
shr ecx, 5
xor ecx, edx
shr r8d, 8
and ecx, 0x2000
xor ecx, edx
xor r8d, ecx
and r8d, 0x800
xor r8d, ecx
mov eax, r8d
ret
xor eax, eax
ret
Function at 0x180005ec0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r9
mov r13, rdx
mov r14, rcx
test rcx, rcx
jne 0x180005ef2
call sub.KERNEL32.dll_GetModuleHandleW
mov r14, rax
mov eax, 0x5a4d
cmp word [r14], ax
je 0x180005f0e
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006089
movsxd rax, dword [r14 + 0x3c]
cmp dword [rax + r14], 0x4550
je 0x180005f2d
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006089
cmp word [rax + r14 + 0x14], 0
jne 0x180005f47
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006089
mov ecx, dword [rax + r14 + 0x90]
test ecx, ecx
je 0x180005f59
lea rdi, [r14 + rcx]
jmp 0x180005f5b
xor edi, edi
mov qword [rsp + 0x28], rdi
test rdi, rdi
jne 0x180005f76
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006089
mov ecx, dword [rdi]
test ecx, ecx
je 0x18000605b
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x18000604d
mov ebx, eax
add rbx, r14
je 0x18000604d
lea r15, [r14 + rcx]
mov eax, dword [rdi + 0x10]
test eax, eax
je 0x180005fa7
lea r12, [r14 + rax]
jmp 0x180005faa
xor r12d, r12d
mov rcx, qword [r12]
call fcn.1800060b0
mov r9, qword [rsp + 0x70]
test r9, r9
je 0x180005fd1
mov r8, rbx
mov rdx, rax
mov rcx, r13
call r9
test eax, eax
je 0x18000605b
xor ebx, ebx
mov dword [rsp + 0x24], ebx
test r15, r15
je 0x18000603f
nop dword [rax]
lea rcx, [rbx*8]
mov rax, qword [rcx + r15]
test rax, rax
je 0x18000602d
xor edx, edx
mov dword [rsp + 0x20], edx
xor r8d, r8d
test rax, rax
jns 0x180006008
movzx edx, ax
mov dword [rsp + 0x20], edx
jmp 0x180006013
add eax, 2
je 0x180006013
mov r8d, eax
add r8, r14
test rsi, rsi
je 0x180006025
lea r9, [rcx + r12]
mov rcx, r13
call rsi
test eax, eax
je 0x18000602d
inc ebx
mov dword [rsp + 0x24], ebx
jmp 0x180005fe0
test rsi, rsi
je 0x18000603f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rsi
add rdi, 0x14
mov qword [rsp + 0x28], rdi
jmp 0x180005f76
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006089
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x18000606f
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov eax, 1
jmp 0x180006089
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rdx
lea r9, [0x180007fc0]
mov rdx, rcx
lea r8, [0x180008160]
mov rcx, rax
jmp 0x180005ec0