joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001070
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x24], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8, qword [rsp + 0x28]
lea rdx, [0x140001190]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140005630], rax
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400010de
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1400010c0
mov rcx, qword [0x140005630]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400013c0
add rsp, 0x78
ret

Function at 0x140001c9c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x40
cmp qword [0x14003b3c8], 0
mov rdi, rdx
je 0x140005f31
call fcn.140005f44
test eax, eax
je 0x140005ebf
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x60]
mov rdx, rdi
mov rcx, qword [0x14003b3c8]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140005f31
mov edx, dword [rsp + 0x60]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140005f31
and qword [rsp + 0x38], 0
xor edx, edx
mov r9d, dword [rsp + 0x60]
mov r8, rdi
and qword [rsp + 0x30], 0
lea ecx, [r9 + r9]
mov dword [rsp + 0x28], ecx
lea ecx, [rdx + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x140005f28
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rcx, qword [0x14003b3c8]
mov r8d, eax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140007358
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov r14, rcx
xor edi, edi
mov esi, edi
cmp dword [rcx + 0x38], edi
jne 0x140007407
cmp dword [rcx + 0xc4], 1
jle 0x140007407
cmp dword [rcx + 0x70], edi
jne 0x1400073b9
cmp dword [rcx + 0x78], edi
jne 0x1400073a9
cmp dword [rcx + 0x44], edi
jne 0x1400073a1
mov dword [rdx], 0xc1500039
jmp 0x1400073af
mov dword [rdx], 0xc150000e
jmp 0x1400073af
mov dword [rdx], 0xc1500035
mov esi, 0x80070667
jmp 0x140007487
cmp dword [rcx + 0x50], edi
je 0x1400073d3
cmp dword [rcx + 0x44], edi
jne 0x1400073d3
mov dword [rdx], 0xc1500012
mov esi, 0x80070057
jmp 0x140007487
cmp dword [rcx + 0x78], edi
je 0x1400073ea
cmp dword [rcx + 0x50], edi
je 0x1400073e5
mov dword [rdx], 0xc1500019
jmp 0x1400073c9
cmp dword [rcx + 0x44], edi
jne 0x1400073dd
cmp dword [rcx + 0x58], edi
je 0x14000750a
cmp dword [rcx + 0xb8], edi
jne 0x14000750a
mov dword [rdx], 0xc1500032
jmp 0x1400073c9
mov dword [rcx + 0x38], 1
mov rax, qword [rcx + 0x30]
cmp dword [rax - 0x10], edi
jne 0x14000750a
mov r8d, 0x3e8
lea rdx, [rsp + 0x78]
mov rcx, qword [0x14003b210]
call fcn.140018754
mov esi, eax
test eax, eax
js 0x140007487
mov rbx, qword [rsp + 0x78]
test rbx, rbx
jne 0x140007446
mov ecx, edi
jmp 0x140007453
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], di
jne 0x14000744a
mov r8d, ecx
mov rdx, rbx
lea rcx, [r14 + 0x30]
call fcn.140005334
nop
mov rcx, rbx
call sub.msvcrt.dll_free
mov esi, edi
jmp 0x14000750a
cmp qword [r14 + 0xb0], rdi
je 0x14000750a
mov rax, qword [0x140039148]
lea rcx, [0x140039148]
mov rax, qword [rax + 0x18]
call qword [0x140024fd8]
add rax, 0x18
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
lea rdx, str.Failed_validating_command_line:__s
lea rcx, [rsp + 0x60]
call fcn.140004d18
mov rbx, qword [rsp + 0x60]
mov r8, rbx
mov edx, 1
mov rcx, qword [r14 + 0xb0]
call fcn.140017ad0
nop
lea rdx, [rbx - 0x18]
or rcx, 0xffffffffffffffff
mov eax, ecx
lock xadd dword [rdx + 0x10], eax
add eax, ecx
test eax, eax
jg 0x14000750a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140024fd8]
mov eax, esi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140017ad0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov esi, edx
mov rbx, rcx
jne 0x140017afc
lea rcx, str.Attempting_to_write_log_message_before_LogWrapper_has_been_fully_initialized.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140017b40
mov rcx, r8
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
jne 0x140017b14
mov ebx, 0x8007000e
jmp 0x140017b3e
mov rcx, qword [rbx + 0x10]
mov edx, esi
mov r9, qword [rbx]
mov r8d, dword [rbx + 8]
mov qword [rsp + 0x20], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140024fd8]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140019194
Capabilities:
Query environment variable

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov r15, rcx
xor edi, edi
mov ebx, edi
mov esi, edi
mov qword [rsp + 0x68], rdi
mov rcx, qword [rcx]
cmp dword [rcx - 0x10], edi
je 0x140019284
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r13d, eax
test eax, eax
jne 0x1400191fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14001929c
lea r12d, [rax + 1]
mov eax, 2
mul r12
mov r14, 0xffffffffffffffff
cmovo rax, r14
lea rdx, [0x1400252b0]
mov rcx, rax
call fcn.14001f930
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140019234
mov ebx, 0x8007000e
jmp 0x14001929c
lea r8, [r12 + r12]
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov r8d, r13d
mov rdx, rsi
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14001926b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14001928f
inc r14
cmp word [rsi + r14*2], di
jne 0x14001926b
mov r8d, r14d
mov rdx, rsi
mov rcx, r15
call fcn.140005334
nop
jmp 0x14001928f
test rsi, rsi
je 0x14001929c
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140019628
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14003a9b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
xor edi, edi
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x14002a720]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140019690
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400196cb
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x4000000
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14001967a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001f6f0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x14001b09c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14001b15c
test rdx, rdx
je 0x14001b15c
xor r9d, r9d
lea rdx, [0x14002a7a0]
lea edi, [r9 + 1]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x14001b0e3
xor ebx, ebx
jmp 0x14001b0f2
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
xor r9d, r9d
lea rdx, [0x14002a7a0]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x14001b111
xor ecx, ecx
jmp 0x14001b120
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rbx, rbx
je 0x14001b151
test rcx, rcx
je 0x14001b151
mov eax, 0xfecdfecd
cmp dword [rbx], eax
jne 0x14001b14b
cmp dword [rcx], eax
jne 0x14001b14b
mov rax, qword [rbx + 0x1c]
cmp rax, qword [rcx + 0x1c]
jne 0x14001b14b
mov rax, qword [rbx + 0x24]
cmp rax, qword [rcx + 0x24]
je 0x14001b14d
xor edi, edi
mov eax, edi
jmp 0x14001b15e
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d640
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebp, r9d
mov r14, r8
mov rsi, rdx
mov r15, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebp
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001d6af
mov r8d, dword [r14]
lea ecx, [rdi + 3]
mov r9d, ebp
mov qword [rsp + 0x20], rax
mov rdx, r15
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
test eax, eax
je 0x14001d6ba
test rsi, rsi
je 0x14001d6a8
mov qword [rsi], rbx
xor ebx, ebx
mov edi, 1
jmp 0x14001d6ba
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14001d6d3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14001fbec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001fc38
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fc30
cmp dword [rcx + 0x3c], edx
jl 0x14001fc30
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001fc30
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001fc38
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
push 0x3f
pop rax
lea rdi, [rsp]
syscall
mov rbx, qword [rdi + 0x41]
xor rcx, rcx
sub rcx, 0xffffffffffffffc2
lea rax, [0x14000400d]
xor qword [rax + 0x1d], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401e
xchg esp, eax
invalid
Function at 0x140001fd0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140039020]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
lea rdx, [0x140002030]
mov r8, rax
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14003b9c0], rax
nop
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
jmp 0x140002010

Function at 0x140006da0
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 0x140006dce
xor eax, eax
jmp 0x140006eb4
cmp qword [rcx + 0x68], 0
je 0x140006ddf
call fcn.140006ed0
jmp 0x140006eb4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006df6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006df8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006e2a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140009d10
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 0x140006eae
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140006e61
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 0x140006e8a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140011af0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140006eae
cmp rsi, rbx
ja 0x140006e68
test rsi, rsi
je 0x140006eae
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140011af0
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 0x140008bc8
Capabilities:
Parse pe header

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

Function at 0x140014da8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014ba4
Function at 0x14001be84
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.1400084d0
sub rsp, rax
mov rax, qword [0x140039020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001897c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001bed3
mov rax, rbp
jmp 0x14001bfdb
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 + 0x3b2b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001cfa4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3b2b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001bfd7
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 0x14001bfd7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001cfa4
test rax, rax
js 0x14001bfd7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001bfd7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001bfc9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001bfc9
cmp byte [rcx], 0xd
jne 0x14001bfaf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001bfbe
cmp byte [rcx + 1], 0xa
jne 0x14001bfbe
inc rcx
jmp 0x14001bfbe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x39410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001bf91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001bfdb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140007e60
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 0x14001c1fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c212
mov al, 1
jmp 0x14001c272
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c223
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c270
mov ecx, dword [rcx + 0x18]
nop
call fcn.140020aa4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c270
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c270
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c270
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c272
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c344
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, [0x14003b2b0]
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 0x14001c39b
cmp word [rdx], r13w
jne 0x14001c39b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c3a0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c4c5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c4e6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c3d9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c400
cmp r9, r8
jae 0x14001c410
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 0x14001c3ba
jmp 0x14001c4c5
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 0x14001c4ba
cmp dword [rsp + 0x80], esi
je 0x14001c4ba
lea r8, [0x14003b2b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c492
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c462
mov word [rbx], r13w
jmp 0x14001c4c2
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 0x14001c46f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c4c2
cmp word [rsp + 0x70], r13w
jne 0x14001c49f
cmp rbx, r14
je 0x14001c45c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001cfac
cmp word [rsp + 0x70], r13w
je 0x14001c4c5
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, [0x14003b2b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c4bf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c4c5
Function at 0x14002023c
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 0x14002026c
xor eax, eax
jmp 0x14002032f
mov rbp, rbx
cmp word [rax], si
je 0x140020291
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020278
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020274
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.14001e83c
movsxd r14, eax
test eax, eax
jne 0x1400202cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020265
mov rcx, r14
call fcn.140017720
mov rdi, rax
test rax, rax
jne 0x1400202e8
xor ecx, ecx
call fcn.1400176e4
jmp 0x1400202c4
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.14001e83c
test eax, eax
jne 0x140020319
mov rcx, rdi
call fcn.1400176e4
jmp 0x140020323
xor ecx, ecx
call fcn.1400176e4
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 0x140022ff8
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.140018e88
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 0x140023099
cmp ebx, dword [rsp + 0x30]
je 0x140023092
test esi, esi
je 0x140023092
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002306d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002307a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140023057
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002307e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002309b
mov eax, 1
jmp 0x14002309b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140025f54
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.140013470
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140025fde
cmp byte [rbp - 0x21], r15b
je 0x140025fd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026014
call fcn.14001a210
test eax, eax
jne 0x140026000
cmp byte [rbp - 0x21], r15b
je 0x140025ff8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026014
cmp byte [rbp - 0x21], r15b
je 0x140026011
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.140013a4c
test eax, eax
jne 0x1400260b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013470
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140026053
cmp byte [rbp - 0x21], r15b
je 0x140026088
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026088
call fcn.14001a210
test eax, eax
jne 0x140026074
cmp byte [rbp - 0x21], r15b
je 0x14002606d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026088
cmp byte [rbp - 0x21], r15b
je 0x140026085
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.140013a4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400260b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400260b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400260c5
mov rcx, rdi
call fcn.1400176e4
cmp byte [rbp + 0x3f], r15b
je 0x1400260d4
mov rcx, qword [rbp + 0x27]
call fcn.1400176e4
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