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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x14006de68
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14006dedc
test rax, rax
jle 0x14006debc
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14006dedc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14006dedc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret

Function at 0x14006f5e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006f5fe
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
xor ecx, ecx
cmp dword [rax], 0x4550
cmovne rax, rcx
ret
xor eax, eax
ret
Function at 0x14006f610
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14009d680]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14006f70e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14006f70e
test rax, rax
je 0x14006f70e
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ebx, dword [rax + 0xb0]
add rbx, rdx
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x50]
test eax, eax
je 0x14006f6fc
nop dword [rax + rax]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 4]
sub rax, 8
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rdx, r8
je 0x14006f6d7
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rdx + 0x10], xmm1
mov rdx, qword [rsp + 0x50]
add rdx, 0x18
mov qword [rsp + 0x50], rdx
jmp 0x14006f6eb
lea r8, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.14006e460
mov rdx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
mov r8, qword [rsp + 0x58]
test eax, eax
jne 0x14006f690
mov rcx, qword [rsp + 0x48]
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], r8
jmp 0x14006f719
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400728e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140071bd4
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 0x140071c0e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140071c13
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 0x140071c5c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008b7d0]
cmp byte [rcx + rax], 0
je 0x140071c5c
dec r8
sub rdx, 1
jne 0x140071c42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14007234c
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.140071d44
mov ebx, eax
test eax, eax
jne 0x14007237c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400723df
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400723d6
test al, 0x10
je 0x1400723d6
bt eax, 0xa
jae 0x1400723cf
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400723f0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400723cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400723cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400723d6
and dword [rsp + 0x3c], 0
jmp 0x1400723db
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 0x1400735f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007363a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007363a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007363a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007363a
cmp dword [rcx + 0x84], 0xe
jbe 0x14007363a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14007363c
xor al, al
add rsp, 0x28
ret
Function at 0x14000b7a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030dd8]
test rcx, rcx
je 0x14000b7db
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b7ce
mov rcx, qword [0x140030dd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030dd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140030de8], 0
je 0x14000b8ce
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x14002a928]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140043610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b8af
test al, 0x10
je 0x14000b8af
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b855
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x140130000
Capabilities:
Access peb ldr_data
Get number of processors
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
xchg r9, r8
mov qword [rsp + 0x20], r8
xchg r8, r9
mov qword [rsp + 0x18], r8
test rdi, rbp
cmp r10, rdi
rol r10d, 0xc8
ret
xchg ebp, eax
pop rdx
add byte [rax], al
push r11
lea r10d, [rdx + 0xaf5f]
push r8
ror r13d, 0x65
movabs r11, 0x2d60d10000012ce9
lea r12d, [rdx - 0x22f8]
jbe 0x140130a5c
ret 0x18
ret 0xd069
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
jmp 0x140130b11
lea rax, [r11 + r10*4]
mov ecx, dword [rax + r9]
add rcx, r9
je 0x140130a67
jne 0x140130a67
cpuid
add edx, 0x37c51ef0
rol r13d, 0x37
jge 0x140130ed1
dec r10
lea r13d, [rdx - 0x45cf]
rcl r10d, 0xa
call rax
int3
leave
cdq
cmp r13d, 0xcc2a3a52
movabs rdi, 0x7f0bd7000000dee9
inc r11
neg r13
call rax
lea edi, [rdi + 0xe133]
jmp rcx
jmp 0x140130b4a
xchg rdx, r9
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
mov r11d, dword [rbx + r9 + 0x20]
nop dword [rax + rax]
mov r10d, r8d
mov edx, 0x3867ddcb
jmp 0x140130a25
test al, al
jne 0x140130a0d
cmp edx, 0xdd3be21f
je 0x140130b60
inc r8d
invalid
Function at 0x180001f40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x18008d040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp edx, 1
jne 0x180001f8f
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebx, ebx
lea r8, [0x180001da0]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x180002095
test edx, edx
jne 0x180002095
xor ebx, ebx
mov dword [rbp + 0x47], 0xb000
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 1], rbx
mov qword [rbp + 0xb], rbx
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x13], 1
mov qword [rbp + 0x1f], 1
mov dword [rbp - 9], 0x64
mov dword [rbp - 5], 0x64
mov dword [rbp + 7], 0x1c
mov dword [rbp + 0x1b], 0x20
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
lea rcx, [rbp + 0x47]
mov qword [rbp + 0x2f], 1
mov qword [rbp + 0x27], rax
lea edx, [rbx + 1]
lea rax, [rbp - 0x21]
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rax, [rbp + 0x4b]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jns 0x18000205f
lea rdx, str.Failed_to_create_D3D11_device_and_swap_chain_n
call fcn.1800021b0
jmp 0x180002095
mov rax, qword [rbp - 0x29]
mov rcx, qword [rax]
mov rax, qword [0x18008f910]
mov qword [rcx + 0x40], rax
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1800448f0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret

Function at 0x180003df0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180003e4d
lea rbx, [0x18007cf80]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180003e34
cmp r10, 2
jb 0x180003e34
cmp byte [r9], r8b
jne 0x180003e34
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180003e10
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180003e8f
lea rbx, [0x18007cf80]
cmp r8b, 0x23
jne 0x180003e73
cmp byte [r9], r8b
jne 0x180003e73
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180003e60
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180004050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x18000406e
mov qword [r8], r14
lea rdx, [0x18007ca80]
call fcn.180003ea0
mov rbx, rax
test rax, rax
jne 0x180004093
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.18004c358
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800041b5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18004cd50
test eax, eax
jne 0x1800041b5
mov rcx, rbx
call fcn.18004c358
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1800041b5
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call fcn.18004cd50
test eax, eax
jne 0x1800041b5
cmp rdi, 0xffffffffffffffff
je 0x1800041b5
mov rcx, rdi
call fcn.180008e30
mov rbp, rax
test rax, rax
je 0x1800041b5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1800506a4
mov rcx, rbx
cmp rax, rdi
je 0x1800041a3
call fcn.18004c99c
mov r8, qword [0x18008f930]
test r8, r8
je 0x180004199
movsx rdx, word [r8 + 0x2750]
lea rcx, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x18000418e
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 + 0x2750], cx
movsx rax, cx
lea rcx, [r8 + 0x2754]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x274c]
mov rcx, rbp
call fcn.180050430
jmp 0x1800041bd
call fcn.18004c99c
test rsi, rsi
je 0x1800041b0
mov qword [rsi], rdi
mov rax, rbp
jmp 0x1800041bf
mov rcx, rbx
call fcn.18004c99c
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18000c310
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18000c360
lea r11, [0x18007cf80]
nop dword [rax]
cmp r9b, 0x23
jne 0x18000c343
cmp byte [r8], r9b
jne 0x18000c343
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18000c330
mov rcx, qword [0x18008f930]
not eax
movsxd rdx, dword [rcx + 0x1348]
mov r9, qword [rcx + 0x1350]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18000c3c1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18000c3b9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18000c3bc
mov rdx, r8
test rdx, rdx
jne 0x18000c390
cmp r9, r10
je 0x18000c3d0
cmp dword [r9], eax
jne 0x18000c3d0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x1800127e0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
lea r11, [0x18007cf80]
mov rax, qword [rcx + 0x110]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x13c0], ebx
jne 0x180012876
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.18001e560
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18001d210
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18008f930]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001d273
mov qword [rsp], rbx
lea rbx, [0x18007cf80]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001d253
cmp byte [r8], r9b
jne 0x18001d253
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 0x18001d240
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x2580]
not eax
mov r8, qword [r10 + 0x2588]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18001d29f
cmp dword [r8 + 8], eax
je 0x18001d2a6
add r8, 0x48
cmp r8, rcx
jne 0x18001d290
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x180031d70
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x18008d040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, qword [0x18008f930]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180031f8e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180031f8e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rsi
call fcn.180055cc0
mov r8, qword [0x18008f930]
xor ebx, ebx
mov rsi, rax
test r8, r8
je 0x180031e43
movsx rdx, word [r8 + 0x2750]
lea rax, [r8 + 0x2754]
mov r9d, dword [r8 + 0x12b0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x180031e38
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 + 0x2750], cx
movsx rax, cx
lea rax, [rax*8 + 0x2754]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x2748]
test rsi, rsi
je 0x180031e60
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
jmp 0x180031e63
mov rsi, rbx
or dword [rdi + 0xc], 6
lea rax, [0x180081c88]
mov qword [rdi + 0x90], rax
xor ecx, ecx
mov qword [rdi + 0xa0], rsi
mov qword [rsi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x28], 9
mov rdi, qword [rdi + 0xa0]
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rdi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180031eca
mov dword [rdi + 0x2c], ebx
mov rax, qword [0x18008f930]
mov rcx, qword [rax + 0x1e98]
mov rax, qword [rsi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
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 [rsi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x180031f4e
inc rbx
cmp rbx, 5
jl 0x180031f30
jmp 0x180031f7a
lea rdx, str.XInputGetCapabilities
mov qword [rsi + 0x38], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rdi
mov qword [rsi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
mov rsi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x180031f90
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800448f0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x180037c80
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x18008f930]
mov rdx, qword [rax + 0x2188]
cmp ecx, 0xffffffff
jne 0x180037c9a
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x180037d17
mov r10d, dword [rdx]
lea r8, [0x180081d59]
movzx eax, word [rdx + 0x78]
lea r11, [0x18007cf80]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x180037cf3
cmp byte [r8], r9b
jne 0x180037cf3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180037ce0
not ecx
jmp fcn.180017740
ret
Function at 0x180043660
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18004368e
xor eax, eax
jmp 0x180043774
cmp qword [rcx + 0x68], 0
je 0x18004369f
call fcn.180043790
jmp 0x180043774
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800436b6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800436b8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800436ea
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.18006d8a0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18004376e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180043721
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18004374a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800506a4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18004376e
cmp rsi, rbx
ja 0x180043728
test rsi, rsi
je 0x18004376e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800506a4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18004c0d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180045400
sub rsp, rax
mov rax, qword [0x18008d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18005caf4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004c123
mov rax, rbp
jmp 0x18004c22f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x8f320]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18005cd88
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x8f320]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004c22b
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004c22b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18005cd88
test rax, rax
js 0x18004c22b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004c22b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004c21d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004c21d
cmp byte [rcx], 0xd
jne 0x18004c203
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004c212
cmp byte [rcx + 1], 0xa
jne 0x18004c212
inc rcx
jmp 0x18004c212
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8d470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004c1e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004c22f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800448f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18005a2cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180097050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x18005a331
test rax, rax
jne 0x18005a31f
lea r9, str.GetLocaleInfoEx
lea r8, [0x1800749e8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.180059fa0
test rax, rax
je 0x18005a331
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.18006d860
jmp 0x18005a34b
xor edx, edx
mov rcx, rbp
call fcn.18005a5bc
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret