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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 0
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x358]
mov qword [rsp + 0x30], rax
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x18007e238
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.180088510
mov rcx, rsp
lea rdx, [0x1800a8f70]
call fcn.18008dbe8
add rsp, 0x50
pop rdi
ret

Function at 0x18007e260
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov eax, 1
mov word [rsp + 0x28], ax
mov eax, 2
mov word [rsp + 0x2a], ax
mov dword [rsp + 0x2c], 1
mov qword [rsp + 0x30], 0
mov r8d, 0x10
mov edx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x18007e2d0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.180088510
mov rcx, rsp
lea rdx, [0x1800a8fc0]
call fcn.18008dbe8
add rsp, 0x50
pop rdi
ret

Function at 0x18007e810
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18007e83e
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18007e85e
mov eax, dword [rsp + 0x20]
or eax, 2
mov dword [rsp + 0x20], eax
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x18007e87e
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov dword [rsp + 0x24], eax
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
mov ecx, dword [rsp + 0x24]
or ecx, eax
mov eax, ecx
and eax, 0x8000
test eax, eax
je 0x18007e8b6
mov eax, dword [rsp + 0x20]
or eax, 8
mov dword [rsp + 0x20], eax
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x18007e8d4
mov eax, dword [rsp + 0x20]
or eax, 0x10
mov dword [rsp + 0x20], eax
mov ecx, 0x90
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x18007e8f2
mov eax, dword [rsp + 0x20]
or eax, 0x20
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x180084670
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0
je 0x1800846a0
mov r8d, 0x29
lea rdx, [0x1800e2260]
lea rcx, str.tls__win32.allocated__GLFW_FALSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 0xffffffff
jne 0x1800846ce
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.180088510
xor eax, eax
jmp 0x1800846de
mov rax, qword [rsp + 0x30]
mov dword [rax], 1
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180084730
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x180084760
mov r8d, 0x40
lea rdx, [0x1800e2330]
lea rcx, [0x1800e2390]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x20
pop rdi
ret

Function at 0x180084780
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x1800847b5
mov r8d, 0x46
lea rdx, [0x1800e23e0]
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor eax, eax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop rdi
ret
Function at 0x180088660
Capabilities:
Log keystrokes

Disassembly:
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800e7f40]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x18013a422]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x20
jmp 0x1800886c5
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x1800888c9
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x18013a168]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x1800886f6
jmp 0x1800886bb
cmp dword [rsp + 0x40], 0x140
jl 0x1800887d2
cmp dword [rsp + 0x40], 0x14e
jg 0x1800887d2
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x1800887eb
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x180088865
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x180088874
jmp 0x1800886bb
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x18013a422]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1800886bb
mov rcx, rsp
lea rdx, [0x1800aac60]
call fcn.18008dbe8
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.18008cf90
add rsp, 0x220
pop rdi
ret
Function at 0x18008b950
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800e7f40]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x18013ad78], 0
je 0x18008b9ab
mov eax, 1
jmp 0x18008bb2b
mov dword [rsp + 0x20], 0
jmp 0x18008b9bf
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x18008b9f1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x18013ad78], rax
cmp qword [0x18013ad78], 0
je 0x18008b9ef
jmp 0x18008b9f1
jmp 0x18008b9b5
cmp qword [0x18013ad78], 0
jne 0x18008ba13
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.180080fd0
xor eax, eax
jmp 0x18008bb2b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad80], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad88], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad90], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ad98], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ada0], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013ada8], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x18013ad78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18013adb0], rax
cmp qword [0x18013ad80], 0
je 0x18008bb0c
cmp qword [0x18013ad90], 0
je 0x18008bb0c
cmp qword [0x18013ad98], 0
je 0x18008bb0c
cmp qword [0x18013ada0], 0
je 0x18008bb0c
cmp qword [0x18013ada8], 0
je 0x18008bb0c
cmp qword [0x18013adb0], 0
jne 0x18008bb26
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.180080fd0
call fcn.18008bb60
xor eax, eax
jmp 0x18008bb2b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1800ab0b0]
call fcn.18008dbe8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18008cf90
add rsp, 0x70
pop rdi
ret
Function at 0x1400036c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rsi, rcx
test rcx, rcx
je 0x1400038f4
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400036f6
test rax, rax
je 0x1400038f4
test rdi, rdi
je 0x1400038f4
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x140003715
test rax, rax
je 0x1400038f4
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8d, 4
lea rdx, str.O:BA
lea rcx, [rbp - 0x28]
call fcn.14000c000
nop
lea rdx, str.G:BA
lea rcx, [rbp - 0x28]
call fcn.14000a7a0
lea rdx, str.D:_A__0xb___WD_
lea rcx, [rbp - 0x28]
call fcn.14000a7a0
lea rdx, str._A__0xb___
lea rcx, [rbp - 0x28]
call fcn.14000a7a0
mov rdx, rsi
lea rcx, [rbp - 0x28]
call fcn.14000a7a0
lea rdx, [0x140041790]
lea rcx, [rbp - 0x28]
call fcn.14000a7a0
lea rdx, str.S:_ML__NX___LW_
lea rcx, [rbp - 0x28]
call fcn.14000a7a0
mov qword [rbp - 0x40], 0
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
xor r9d, r9d
lea r8, [rbp - 0x40]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140003915
lea rcx, str.AppID_
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x14000391b
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400037f3
mov r8d, ebx
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.140002630
nop
mov qword [rbp - 0x30], 0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rbx, qword [rbp - 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
cmove rdi, qword [rbp - 0x30]
xor ecx, ecx
test eax, eax
cmovne ecx, eax
test ecx, ecx
jne 0x140003915
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.LaunchPermission
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test rdi, rdi
je 0x140003893
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400038b4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp - 0x40], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x1400038f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003926
call fcn.140011900
mov eax, esi
jmp 0x1400038f9
mov eax, 0xa0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400118e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.1400185d4
nop
mov ecx, 0x8007000e
call fcn.1400025d0
nop
call fcn.14001d3f4
int3
Function at 0x140003e80
Capabilities:
Get explorer pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x68], esi
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
lea rdx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x140003f22
lea rax, vtable.Microsoft::WRL::Wrappers::HandleT_struct_Microsoft::WRL::Wrappers::HandleTraits::HANDLENullTraits_.0
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x480
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov rcx, qword [rbx + 8]
cmp rax, rcx
je 0x140003ef5
test rcx, rcx
je 0x140003ef1
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
test al, al
je 0x140003f08
mov qword [rbx + 8], rsi
mov qword [rbx + 8], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140003f1a
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.140002cc0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x28]
call fcn.140002ad0
nop
lea rdx, str.ERROR:
lea rcx, [0x14004b9a0]
call fcn.14000b410
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140002b90
mov rdx, rax
mov rcx, rbx
call fcn.14000b410
mov rcx, rax
call fcn.140009650
call fcn.1400185d4
int3
Function at 0x140012624
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001266e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001266e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001266e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001266e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001266e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140012670
xor al, al
add rsp, 0x28
ret

Function at 0x1400185c8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140018433
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018433
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018433
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018433
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018433
cmp dword [rcx + 0x84], 0xe
jbe 0x140018433
cmp dword [rcx + 0xf8], 0
je 0x140018433
mov ecx, ebx
call fcn.1400184e4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400182c0
nop
cmp dword [rbp + 0x20], 0
je 0x140018481
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001848c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400183c4

Function at 0x140028178
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002818e
mov al, 1
jmp 0x1400281ee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002819f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400281ec
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002c528
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400281ec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400281ec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400281ec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400281ee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140029688
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.140012020
sub rsp, rax
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002524c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400296d7
mov rax, rbp
jmp 0x1400297df
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4cc70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140029b70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4cc70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400297db
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400297db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140029b70
test rax, rax
js 0x1400297db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400297db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400297cd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400297cd
cmp byte [rcx], 0xd
jne 0x1400297b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400297c2
cmp byte [rcx + 1], 0xa
jne 0x1400297c2
inc rcx
jmp 0x1400297c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4ab50]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140029795
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400297df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400118e0
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 0x14002bb0c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14002bb93
mov rsi, rbx
cmp word [rax], bp
je 0x14002bb52
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002bb3c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002bb38
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140023eb8
mov rdi, rax
test rax, rax
je 0x14002bb80
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140033730
mov rbp, rdi
xor ecx, ecx
call fcn.140023e7c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002ea7c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140025770
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002eb1d
cmp ebx, dword [rsp + 0x30]
je 0x14002eb16
test esi, esi
je 0x14002eb16
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002eaf1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002eafe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002eadb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002eb02
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002eb1f
mov eax, 1
jmp 0x14002eb1f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400308d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14004cc70]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140030927
cmp word [rdx], r13w
jne 0x140030927
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003092c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140030a51
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140030a72
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140030965
mov rdx, r9
mov word [rbx], cx
jmp 0x14003098c
cmp r9, r8
jae 0x14003099c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140030946
jmp 0x140030a51
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140030a46
cmp dword [rsp + 0x80], esi
je 0x140030a46
lea r8, [0x14004cc70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140030a1e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400309ee
mov word [rbx], r13w
jmp 0x140030a4e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400309fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140030a4e
cmp word [rsp + 0x70], r13w
jne 0x140030a2b
cmp rbx, r14
je 0x1400309e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140029b78
cmp word [rsp + 0x70], r13w
je 0x140030a51
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14004cc70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140030a4b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140030a51
Function at 0x140033360
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140033388
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140033388
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001330
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp edx, 1
je 0x180001343
mov eax, 1
add rsp, 0x28
ret
call section..text
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x14001123a
Capabilities:
Terminate process

Disassembly:
jmp 0x140013240
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret