joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400665f0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1400ac138], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140066649
mov rcx, qword [rbx + 0x360]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x1400ac128], xmm0
movsd qword [0x1400ac130], xmm1
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x140066666
cmp eax, 0x34004
je 0x140066666
mov rcx, qword [0x1400ac158]
jmp 0x140066685
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140066675
mov rcx, qword [rcx + 8]
jmp 0x140066685
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.14005f9d0
mov rcx, rbx
call fcn.140065c10
cmp dword [rbx + 0x208], 0
je 0x1400666e2
mov rax, qword [rbx + 0x360]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400666e2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140069ab0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400666f0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140066732
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140069ab0
add rsp, 0x38
ret
Function at 0x140066740
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x208], 0
mov rbx, rcx
je 0x140066790
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140066790
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140069ab0
xor ecx, ecx
mov qword [0x1400ac138], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1400ac128]
mov qword [0x1400ac140], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1400ac130]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a0], ecx
mov rcx, qword [rbx + 0x360]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3a4], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x140066819
cmp eax, 0x34004
je 0x140066819
mov rcx, qword [0x1400ac158]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140066832
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x140066850
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x360]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140066892
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140069ab0
add rsp, 0x38
ret

Function at 0x140066940
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x12
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x140068d40
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140068d70
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140062e90
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140069e60
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1400a8fc0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1400aba52]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1400ab7d8]
xor r12d, r12d
lea r15, [0x1400abaf2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x14006a018
cmp ebx, 0x140
jb 0x140069f7f
cmp ebx, 0x14e
ja 0x140069f7f
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x140069f8e
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140069fe1
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x14006a018
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x140069ee1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140070f30
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14006e230
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
cmp qword [0x1400ab2d0], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x14006e269
mov eax, 1
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1400ab2d0], rax
mov rcx, rax
test rax, rax
jne 0x14006e294
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14006e270
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14006e2b6
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140062e90
xor eax, eax
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400ab2d0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1400ab2d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400ab2d0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1400ab2e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400ab2d0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1400ab2e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400ab2d0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1400ab2f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400ab2d0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1400ab2f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400ab2d0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1400ab300], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400ab2d8], 0
mov qword [0x1400ab308], rax
je 0x14006e3a0
cmp qword [0x1400ab2e8], 0
je 0x14006e3a0
cmp qword [0x1400ab2f0], 0
je 0x14006e3a0
cmp qword [0x1400ab2f8], 0
je 0x14006e3a0
cmp qword [0x1400ab300], 0
je 0x14006e3a0
test rax, rax
jne 0x14006e25f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140062e90
mov rcx, qword [0x1400ab2d0]
test rcx, rcx
je 0x14006e3cd
call fcn.14006ec60
mov qword [0x1400ab2d0], 0
xor eax, eax
add rsp, 0x48
ret

Function at 0x140071b84
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x1800360c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp + 0x1f], rcx
xor edi, edi
lea r9, [rbp + 0x1f]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180026480]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x180003158
lea rax, [0x180030370]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rdi
call fcn.180009194
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
lea r8, [rbp - 0x19]
mov edx, eax
mov rcx, rbx
call fcn.1800020e0
jmp 0x18000324e
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
mov rdx, qword [rbp + 0x1f]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x180003172
lea rcx, [rbp - 1]
call fcn.1800053f0
nop
mov r8d, 0xa
lea rdx, str.ExitTrial
lea rcx, [rbp - 1]
call fcn.1800046c0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x1800031aa
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rdi
mov qword [rbp + 0x3f], rdi
mov rdx, rax
lea rcx, [rbp + 0x27]
call fcn.1800053f0
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x180003206
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003201
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003280
call fcn.180009b30
movdqa xmm0, xmmword [0x1800306e0]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], di
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
cmova rcx, qword [rbp + 0x27]
call fcn.1800092d0
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180003272
movups xmm0, xmmword [rbp + 0x27]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x37]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180009b10
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
shr rdx, 0x20
lea r8, [rbp + 0x27]
call fcn.180002a80
int3
call fcn.18000fb48
int3

Function at 0x180003680
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800036b6
xor eax, eax
lea r8, [0x180003290]
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]
test rax, rax
je 0x1800036b6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180003ba0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180003bc4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x180003c52
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180003c20
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180003c20
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.180023d70
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180003c3d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003c45
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180003be1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x180003d30
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180003c69
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003c6b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003c9d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.180023d70
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180003d2d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180003cd8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x180003d0e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18001117c
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180003d2d
cmp rsi, rax
ja 0x180003ce1
test rsi, rsi
je 0x180003d2d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18001117c
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x180006b20
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 0x180006bfb
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x180006b6e
cmp rbx, qword [0x180036008]
ja 0x180006b6e
sub rbx, 0x8000000
jmp 0x180006bf2
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 0x180006bfb
cmp dword [rsp + 0x40], 0x10000
jne 0x180006bd6
cmp qword [rsp + 0x38], 0x10000
jb 0x180006bd6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180006bfd
sub rbx, 0x10000
jmp 0x180006bf2
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 0x180006b50
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180006c10
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 0x180006c32
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180006ced
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x180006c5e
cmp rbx, qword [0x180036008]
ja 0x180006c5e
add rbx, 0x8000000
jmp 0x180006ce4
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 0x180006ced
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180006cc9
cmp rcx, 0x10000
jb 0x180006cc9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180006cef
add rbx, 0x10000
jmp 0x180006ce4
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180006ce4
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180006c40
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180006d00
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 0x180006d22
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x180006d3e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180006d55
cmp byte [rcx + 1], 0x25
jne 0x180006d99
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180006d61
cmp al, 0xe9
jne 0x180006d99
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180006d84
cmp rcx, 0xffffffff80000000
jae 0x180006d7b
lea rsi, [rcx + 0x7ff80000]
jmp 0x180006d99
mov rsi, 0xfffffffffff80000
jmp 0x180006d99
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180006d99
mov edi, 0x80000
mov rdx, qword [0x180037378]
mov rax, qword [0x180037370]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180006dc0
test rax, rax
je 0x180006dd7
mov rdx, rax
mov qword [0x180037378], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180006dd7
cmp rcx, rdi
jb 0x180006dd7
cmp rcx, rsi
jbe 0x180006f2a
mov qword [0x180037378], rax
mov rdx, rax
test rax, rax
je 0x180006e22
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x180006e0c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x180006e0c
cmp rax, rdi
jb 0x180006e0c
cmp rax, rsi
jbe 0x180006f2a
mov rdx, qword [rdx + 8]
mov qword [0x180037378], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180006df0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x180006e4c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180006b20
mov rdx, rax
test rax, rax
jne 0x180006ed8
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180006e72
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180006c10
mov rdx, rax
test rax, rax
jne 0x180006ed8
cmp rbx, 0x40000000
jbe 0x180006e92
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180006c10
mov rdx, rax
test rax, rax
jne 0x180006ed8
cmp rbx, rbp
jae 0x180006eae
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180006b20
mov rdx, rax
test rax, rax
jne 0x180006ed8
mov rdx, rbx
mov rcx, rdi
call fcn.180006b20
mov rdx, rax
test rax, rax
jne 0x180006ed8
mov rdx, rsi
mov rcx, rbx
call fcn.180006c10
mov rdx, rax
test rax, rax
je 0x180006f61
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180037378], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180037370]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180037370], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180006f12
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180006f61
cmp rax, rsi
ja 0x180006f61
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180026490]
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 0x180006f63
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 0x1800071b0
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 0x1800071de
xor al, al
jmp 0x180007220
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1800071ef
xor al, al
jmp 0x180007220
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180007216
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180007216
mov al, 1
jmp 0x180007220
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180007700
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180037388], 0
jne 0x1800077a7
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180037388], ecx
jne 0x1800077a7
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180037370]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x1800373a0], rdi
mov qword [0x180037398], rdi
mov qword [0x180037390], rdi
test rbx, rbx
je 0x180007790
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 0x180007788
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180007760
jmp 0x180007790
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18003738c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180007dc0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18003738c]
mov rdi, rcx
test eax, eax
jne 0x180007e65
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x180007dea
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180009b64
mov rbx, rax
test rax, rax
jne 0x180007e08
mov edi, 8
jmp 0x180007e2b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180007e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180009b30
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18003738c], edi
mov qword [0x180037390], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180037398]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180037398], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180008810
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 0x18000884a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18000884f
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 0x180008898
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180026540]
cmp byte [rcx + rax], 0
je 0x180008898
dec r8
sub rdx, 1
jne 0x18000887e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180016a30
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180016a46
mov al, 1
jmp 0x180016aa6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180016a57
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180016aa4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180020940
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180016aa4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180016aa4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180016aa4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180016aa6
xor al, al
add rsp, 0x20
pop rbx
ret