joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140c04ce8
Capabilities:
Encode data using base64

Disassembly:
sub cl, byte [rbx - 0x5928ccee]
or byte [rsi], ah
call 0x116f0a066
mov edi, 0x7551329
push qword [rdx]
and eax, 0x42359e42
and byte [rax], ch
fcomp qword [rbx]
test dword [rdx], ebp
invalid
and byte [rax + 0x47083d3a], bl
adc byte [rbx], ah
or dword [rdx + 0x10], 0x48576f78
adc byte [rcx], ch
stosd dword [rdi], eax
jrcxz 0x140c04c4d
lahf
sbb byte [rsi], dl
xchg edx, eax
out dx, eax
invalid
xor byte [rdi + r13*8 + 0x2e38abee], spl
cwde
add dword [rsi + rax*8], ebp
shl byte [rdi - 0x69], 1
adc ebp, ecx
mov bh, 0xef
pop rdi
invalid
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x18]
call fcn.140eb9bb0
jnp 0x140c04d10
scasb al, byte [rdi]
loopne 0x140c04c91
cmp byte [rdi + 0x36baf21e], bh
mov edi, 0xcbfc674c
jno 0x140c04cbc
mov cl, 0x3f
mov edi, 0x39e30876
mov edi, 0xc4b835ae
or bl, ah
cmp dword [rdi - 0x3b47ca52], edi
add dword [rbp + 0x79], 0x3d
mov edi, 0x2c58d863
mov edi, 0xdde86056
push rsi
invalid

Function at 0x140d56c0c
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x18]
call fcn.140eb015e
Function at 0x14000b1b0
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 0x14000b1e0
lea rdx, [0x140062428]
mov ecx, 0x10008
call fcn.1400088e0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14000d6c0
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 [0x14007e000]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call fcn.140046f30
xor edx, edx
lea rcx, [0x140081532]
mov r8d, 0x6d1
call fcn.140046f30
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1400812b8]
xor r12d, r12d
lea r15, [0x1400815d2]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x14000d878
cmp ebx, 0x140
jb 0x14000d7df
cmp ebx, 0x14e
ja 0x14000d7df
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 0x14000d7ee
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 0x14000d841
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 0x14000d878
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 0x14000d741
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14001e740
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 0x140012630
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x140081c18], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140012689
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 [0x140081c08], xmm0
movsd qword [0x140081c10], xmm1
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x1400126a6
cmp eax, 0x34004
je 0x1400126a6
mov rcx, qword [0x140081c38]
jmp 0x1400126c5
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400126b5
mov rcx, qword [rcx + 8]
jmp 0x1400126c5
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.14000a460
mov rcx, rbx
call fcn.140011c50
cmp dword [rbx + 0x208], 0
je 0x140012722
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 0x140012722
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14000d310
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140012730
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 0x140012772
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14000d310
add rsp, 0x38
ret
Function at 0x140012780
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x208], 0
mov rbx, rcx
je 0x1400127d0
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 0x1400127d0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.14000d310
xor ecx, ecx
mov qword [0x140081c18], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x140081c08]
mov qword [0x140081c20], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x140081c10]
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 0x140012859
cmp eax, 0x34004
je 0x140012859
mov rcx, qword [0x140081c38]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140012872
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 0x140012890
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 0x1400128d2
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.14000d310
add rsp, 0x38
ret

Function at 0x140012980
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 0x140017a80
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14007e000]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140080db0], 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 0x140017ad5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001e740
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140080db0], rax
mov rcx, rax
test rax, rax
jne 0x140017b04
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140017ae0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x140017b33
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400088e0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001e740
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140080db0]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140080db8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140080db0]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140080dc0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140080db0]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140080dc8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140080db0]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140080dd0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140080db0]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140080dd8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140080db0]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140080de0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140080db8], 0
mov qword [0x140080de8], rax
je 0x140017c1d
cmp qword [0x140080dc8], 0
je 0x140017c1d
cmp qword [0x140080dd0], 0
je 0x140017c1d
cmp qword [0x140080dd8], 0
je 0x140017c1d
cmp qword [0x140080de0], 0
je 0x140017c1d
test rax, rax
jne 0x140017abe
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400088e0
mov rcx, qword [0x140080db0]
test rcx, rcx
je 0x140017c4a
call fcn.14000c850
mov qword [0x140080db0], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001e740
add rsp, 0x48
ret
Function at 0x14001dd84
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 0x14001ddb2
xor eax, eax
jmp 0x14001de98
cmp qword [rcx + 0x68], 0
je 0x14001ddc3
call fcn.14001deb4
jmp 0x14001de98
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001ddda
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001dddc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001de0e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400467b0
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 0x14001de92
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001de45
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 0x14001de6e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140031bc4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001de92
cmp rsi, rbx
ja 0x14001de4c
test rsi, rsi
je 0x14001de92
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140031bc4
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 0x14001f3bc
Capabilities:
Parse pe header

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

Function at 0x140033c78
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140033a74
Function at 0x14003bba8
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.14001ecd0
sub rsp, rax
mov rax, qword [0x14007e000]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003829c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003bbf7
mov rax, rbp
jmp 0x14003bcff
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 + 0x83610]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003ccc8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x83610]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003bcfb
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 0x14003bcfb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003ccc8
test rax, rax
js 0x14003bcfb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003bcfb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003bced
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003bced
cmp byte [rcx], 0xd
jne 0x14003bcd3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003bce2
cmp byte [rcx + 1], 0xa
jne 0x14003bce2
inc rcx
jmp 0x14003bce2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7e450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003bcb5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003bcff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001e740
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 0x14003bf20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003bf36
mov al, 1
jmp 0x14003bf96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003bf47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003bf94
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003f3ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003bf94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003bf94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003bf94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003bf96
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003c068
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, [0x140083610]
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 0x14003c0bf
cmp word [rdx], r13w
jne 0x14003c0bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003c0c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003c1e9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003c20a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003c0fd
mov rdx, r9
mov word [rbx], cx
jmp 0x14003c124
cmp r9, r8
jae 0x14003c134
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 0x14003c0de
jmp 0x14003c1e9
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 0x14003c1de
cmp dword [rsp + 0x80], esi
je 0x14003c1de
lea r8, [0x140083610]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003c1b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003c186
mov word [rbx], r13w
jmp 0x14003c1e6
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 0x14003c193
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003c1e6
cmp word [rsp + 0x70], r13w
jne 0x14003c1c3
cmp rbx, r14
je 0x14003c180
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003ccd0
cmp word [rsp + 0x70], r13w
je 0x14003c1e9
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, [0x140083610]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003c1e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003c1e9
Function at 0x14003eb84
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 0x14003ebb4
xor eax, eax
jmp 0x14003ec77
mov rbp, rbx
cmp word [rax], si
je 0x14003ebd9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003ebc0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003ebbc
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.14003d184
movsxd r14, eax
test eax, eax
jne 0x14003ec17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003ebad
mov rcx, r14
call fcn.140036f9c
mov rdi, rax
test rax, rax
jne 0x14003ec30
xor ecx, ecx
call fcn.1400363e8
jmp 0x14003ec0c
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.14003d184
test eax, eax
jne 0x14003ec61
mov rcx, rdi
call fcn.1400363e8
jmp 0x14003ec6b
xor ecx, ecx
call fcn.1400363e8
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 0x140041940
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.140036088
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 0x1400419e1
cmp ebx, dword [rsp + 0x30]
je 0x1400419da
test esi, esi
je 0x1400419da
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400419b5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400419c2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004199f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400419c6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400419e3
mov eax, 1
jmp 0x1400419e3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140044834
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.14002c68c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400448be
cmp byte [rbp - 0x21], r15b
je 0x1400448b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400448f4
call fcn.140038d5c
test eax, eax
jne 0x1400448e0
cmp byte [rbp - 0x21], r15b
je 0x1400448d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400448f4
cmp byte [rbp - 0x21], r15b
je 0x1400448f1
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.14003291c
test eax, eax
jne 0x140044994
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002c68c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140044933
cmp byte [rbp - 0x21], r15b
je 0x140044968
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140044968
call fcn.140038d5c
test eax, eax
jne 0x140044954
cmp byte [rbp - 0x21], r15b
je 0x14004494d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140044968
cmp byte [rbp - 0x21], r15b
je 0x140044965
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.14003291c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140044994
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140044997
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400449a5
mov rcx, rdi
call fcn.1400363e8
cmp byte [rbp + 0x3f], r15b
je 0x1400449b4
mov rcx, qword [rbp + 0x27]
call fcn.1400363e8
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 0x140046360
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140046388
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140046388
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret