joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180038154
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
mov eax, 0x5e6ea9af
mul r8d
mov r11d, r8d
xor r9d, r9d
shr edx, 0xb
mov r10d, 1
imul eax, edx, 0x15b0
sub r11d, eax
test r8d, r8d
je 0x180038243
xor ecx, ecx
cmp r11d, 7
jbe 0x1800381ee
lea edx, [rcx + 7]
movzx eax, byte [rbx]
add ecx, 8
add r10d, eax
add edx, 8
movzx eax, byte [rbx + 1]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 2]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 3]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 4]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 5]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 6]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 7]
add r9d, r10d
add r10d, eax
add rbx, 8
add r9d, r10d
cmp edx, r11d
jb 0x180038190
cmp ecx, r11d
jae 0x18003820c
mov eax, r11d
sub eax, ecx
mov ecx, eax
movzx eax, byte [rbx]
inc rbx
add r10d, eax
add r9d, r10d
sub rcx, 1
jne 0x1800381fa
mov eax, 0x80078071
mul r10d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r10d, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul ecx, edx, 0xffff000f
add r9d, ecx
sub r8d, r11d
mov r11d, 0x15b0
jne 0x180038185
mov rbx, qword [rsp + 8]
shl r9d, 0x10
lea eax, [r10 + r9]
ret
Function at 0x180039960
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18003993c
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180039999
and dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x180039be8
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret

Function at 0x18003cd44
Capabilities:
Hash data with crc32

Disassembly:
mov eax, edx
lea r8, str.SCROLLX
test eax, eax
lea rdx, str.SCROLLY
cmove rdx, r8
jmp fcn.18001b650

Function at 0x18003e378
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18003e3bb
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
and qword [rsp + 0x28], 0
lea r8, [0x18003e3d4]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18003e3c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18003e3c9
test edx, edx
jne 0x18003e3c9
test r8, r8
jne 0x18003e3c9
call fcn.18003f9e4
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18003e928
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rax, str.void___cdecl_CInputHooks::Initialize_void_
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, str._prologue__
call fcn.1800016d8
lea rcx, [0x18007e858]
add rsp, 0x28
jmp 0x18003eb3c
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rax, str.void___cdecl_CWndProcHooks::Initialize_void_
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x10]
lea rcx, str._prologue__
call fcn.1800016d8
mov rdx, rbx
lea rcx, [0x18003eacc]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rbx]
test rax, rax
jne 0x18003eb90
lea rcx, str._wndproc__EnumWindows___returned_nullptr_
call fcn.18000162c
jmp 0x18003ec4c
mov qword [rbp + 0x10], rax
call fcn.180001440
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.18003ed30
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x48], rax
lea rax, str._wndproc__CWndProcHooks::m_Window____
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x27
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm1
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.180001948
nop
mov rdx, rax
call fcn.18003fb78
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x18003ec30
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003ec2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003ec2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042000
lea r8, [0x18003e998]
mov edx, 0xfffffffc
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x18007e518], rax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x18003eb3c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
lea rax, str.void___cdecl_CInputHooks::Initialize_void_
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, str._prologue__
call fcn.1800016d8
lea rcx, [0x18007e858]
add rsp, 0x28
jmp 0x18003eb3c
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rax, str.void___cdecl_CWndProcHooks::Initialize_void_
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x10]
lea rcx, str._prologue__
call fcn.1800016d8
mov rdx, rbx
lea rcx, [0x18003eacc]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rbx]
test rax, rax
jne 0x18003eb90
lea rcx, str._wndproc__EnumWindows___returned_nullptr_
call fcn.18000162c
jmp 0x18003ec4c
mov qword [rbp + 0x10], rax
call fcn.180001440
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.18003ed30
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x48], rax
lea rax, str._wndproc__CWndProcHooks::m_Window____
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 0x27
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm1
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.180001948
nop
mov rdx, rax
call fcn.18003fb78
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x18003ec30
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003ec2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003ec2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180042000
lea r8, [0x18003e998]
mov edx, 0xfffffffc
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov qword [0x18007e518], rax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x18003fa8c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rax, str.void___cdecl_CInstance::FreeLibrary_void_
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
lea rcx, str._prologue__
call fcn.1800016d8
and qword [rsp + 0x28], 0
lea r9, [0x180000000]
and dword [rsp + 0x20], 0
lea r8, [0x18003faf8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18003fae3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret

Function at 0x18003fb30
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.cs2_sdk_console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x180073b10]
mov rcx, rbx
mov r9, rax
lea rdx, str.CONOUT_
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
Function at 0x180040188
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov r10d, 0x811c9dc5
jmp 0x1800401b5
movzx eax, al
xor eax, r10d
imul r10d, eax, 0x1000193
inc rdx
mov al, byte [rdx]
test al, al
jne 0x1800401a5
mov dword [rbp + 0x20], r10d
lea rcx, [rbp + 0x20]
call fcn.1800103e8
mov r11, rax
and r11, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x18]
mov rcx, r11
add rcx, rcx
mov rax, qword [rdx + rcx*8 + 8]
cmp rax, qword [rdi + 8]
je 0x1800401fe
add r11, r11
mov rcx, qword [rdx + r11*8]
jmp 0x1800401f6
cmp rax, rcx
je 0x1800401fe
mov rax, qword [rax + 8]
cmp r10d, dword [rax + 0x10]
jne 0x1800401ed
jmp 0x180040200
xor eax, eax
test rax, rax
je 0x180040214
cmp rax, qword [rdi + 8]
je 0x180040214
add rax, 0x18
jmp 0x1800402d0
mov ecx, 0x38
call fcn.180042010
mov qword [rbp + 0x30], rax
mov rdx, rbx
mov rcx, rax
call fcn.18000d228
mov rbx, rax
mov qword [rbp + 0x30], rax
mov rcx, rax
call fcn.18000d2a4
lea rdx, [rbp + 0x28]
test al, al
je 0x18004027d
mov rax, qword [rbx + 0x20]
mov qword [rbp + 0x38], rax
lea r8, [rbp + 0x38]
lea rcx, str._module______
call fcn.18000ef74
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x20]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.18004042c
mov rdi, qword [rax]
add rdi, 0x18
mov rbx, qword [rbp + 0x30]
jmp 0x1800402b3
lea rcx, str._module___not_found.
call fcn.1800016d8
mov ecx, dword [0x18007ddf4]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x18007ea24], eax
jg 0x1800402d8
lea rdi, [0x18007e868]
test rbx, rbx
je 0x1800402cd
mov rcx, rbx
call fcn.18000d1cc
mov edx, 0x38
mov rcx, rbx
call fcn.180042000
mov rax, rdi
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
lea rcx, [0x18007ea24]
call fcn.180041c18
cmp dword [0x18007ea24], 0xffffffff
jne 0x1800402ac
lea rcx, [0x180043a90]
call fcn.180041fe8
lea rcx, [0x18007ea24]
call fcn.180041bac
jmp 0x1800402ac

Function at 0x180040308
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
and qword [rdx], 0
mov rdi, rdx
mov rdx, r8
mov rbx, r9
call fcn.180040188
mov rcx, qword [rax]
test rcx, rcx
jne 0x18004034e
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, str._interface__Couldnt_retrieve__because__was_not_loaded
call fcn.1800017a4
jmp 0x180040396
cmp byte [rbx], 0
mov edx, 0x811c9dc5
je 0x18004036e
mov al, byte [rbx]
movzx eax, al
inc rbx
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [rbx]
test al, al
jne 0x18004035a
call fcn.18000d2d4
lea r9, [rsp + 0x38]
mov qword [rdi], rax
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x40]
lea rcx, str._interface__________
call fcn.180040630
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14001bbb0
Capabilities:
Parse pe header

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

Function at 0x140020940
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140020977
call fcn.140021674
mov dword [rax], 0x16
call fcn.140020e14
xor eax, eax
jmp 0x140020a05
mov rdx, r9
mov rcx, r8
call fcn.1400208dc
mov rbx, rax
test rax, rax
je 0x140020a02
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140020808]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400209ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400215e8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400209d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400209e5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140026634
jmp 0x140020a02
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400209ff
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140020fb0
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 0x14002101f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002101f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002101f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002101f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002101f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002101f
cmp dword [rcx + 0xf8], 0
je 0x14002101f
mov ecx, ebx
call fcn.1400210d0
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.140020eac
nop
cmp dword [rbp + 0x20], 0
je 0x14002106d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140021078
int3
xor r8d, r8d
xor edx, edx
jmp 0x140020fb0
Function at 0x1400211b4
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 0x14002101f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002101f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002101f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002101f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002101f
cmp dword [rcx + 0x84], 0xe
jbe 0x14002101f
cmp dword [rcx + 0xf8], 0
je 0x14002101f
mov ecx, ebx
call fcn.1400210d0
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.140020eac
nop
cmp dword [rbp + 0x20], 0
je 0x14002106d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140021078
int3
xor r8d, r8d
xor edx, edx
jmp 0x140020fb0
Function at 0x140028fd4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140028fea
mov al, 1
jmp 0x14002904a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140028ffb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140029048
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400221a4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140029048
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140029048
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140029048
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002904a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002c33c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002c36c
xor eax, eax
jmp 0x14002c42f
mov rbp, rbx
cmp word [rax], si
je 0x14002c391
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002c378
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002c374
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002aab0
movsxd r14, eax
test eax, eax
jne 0x14002c3cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002c365
mov rcx, r14
call fcn.14002812c
mov rdi, rax
test rax, rax
jne 0x14002c3e8
xor ecx, ecx
call fcn.140026634
jmp 0x14002c3c4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002aab0
test eax, eax
jne 0x14002c419
mov rcx, rdi
call fcn.140026634
jmp 0x14002c423
xor ecx, ecx
call fcn.140026634
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002f080
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.1400269e8
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 0x14002f121
cmp ebx, dword [rsp + 0x30]
je 0x14002f11a
test esi, esi
je 0x14002f11a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002f0f5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002f102
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002f0df
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002f106
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002f123
mov eax, 1
jmp 0x14002f123
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140030b14
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140021368
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140030b9e
cmp byte [rbp - 0x21], r15b
je 0x140030b99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140030bd4
call fcn.140027068
test eax, eax
jne 0x140030bc0
cmp byte [rbp - 0x21], r15b
je 0x140030bb8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140030bd4
cmp byte [rbp - 0x21], r15b
je 0x140030bd1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140022e08
test eax, eax
jne 0x140030c74
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140021368
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140030c13
cmp byte [rbp - 0x21], r15b
je 0x140030c48
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140030c48
call fcn.140027068
test eax, eax
jne 0x140030c34
cmp byte [rbp - 0x21], r15b
je 0x140030c2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140030c48
cmp byte [rbp - 0x21], r15b
je 0x140030c45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140022e08
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140030c74
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140030c77
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140030c85
mov rcx, rdi
call fcn.140026634
cmp byte [rbp + 0x3f], r15b
je 0x140030c94
mov rcx, qword [rbp + 0x27]
call fcn.140026634
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140032630
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140032658
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140032658
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x51b450
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00734624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x51b5d8
mov rax, qword [0x00734628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x51b49c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x51b525
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x51b480
mov rcx, rbx
call fcn.0051c0f0
test rax, rax
mov r12, rax
je 0x51b60d
mov rax, qword [0x00734628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0051c220
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00734628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x51b5f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x51b51e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x51b580
add dword [0x00734624], 1
cmp edi, 8
jae 0x51b553
test dil, 4
jne 0x51b5c4
test edi, edi
je 0x51b548
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x51b5df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x51b548
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x51b56c
jmp 0x51b548
add rsi, qword [0x00734628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x51b51e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0051c610
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x51b548
xor esi, esi
jmp 0x51b4a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x51b548
mov rax, qword [0x00734628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0051c610
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0051c610
nop
nop dword [rax]

Function at 0x51bd60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00734900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x007348e0]
test rbx, rbx
je 0x51bdb4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x51bdab
test rsi, rsi
je 0x51bdab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x51bd90
lea rcx, [0x00734900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]