joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a560
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
test edx, edx
jne 0x44a57a
mov rdx, rcx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x44a59f
mov rax, qword [0x004cf720]
test rax, rax
jne 0x44a58d
mov eax, 0x80004001
jmp 0x44a59f
mov r8d, edx
mov rdx, rcx
xor r9d, r9d
mov rcx, 0xffffffff80000000
call rax
add rsp, 0x28
ret

Function at 0x450954
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rdi
sub rsp, 0x28
mov rdi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ecx, word [rbx + 0x18]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp ecx, 8
je 0x4509a8
cmp ecx, 0x52
je 0x450999
cmp ecx, 0x76
je 0x45098f
xor al, al
jmp 0x4509b2
mov rcx, rdi
call fcn.00450524
jmp 0x4509b0
test r11b, r11b
je 0x45098b
mov rcx, rdi
call fcn.0044f844
jmp 0x4509b0
mov rcx, rdi
call fcn.0044f93c
mov al, 1
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x45aa30
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x38]
xor ebx, ebx
mov r10, r8
cmp rax, rbx
mov r11, rdx
mov dword [rsp + 0x40], ebx
je 0x45aa71
lea rdx, [rsp + 0x40]
mov r9, rcx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
lea r8, [0x0045a968]
mov rcx, r11
mov rdx, r10
call rax
jmp 0x45aa83
mov r8d, 1
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x45c904
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
movsxd rbx, dword [rcx + 8]
mov r12, rdx
mov rsi, rcx
test ebx, ebx
mov rdi, rbx
je 0x45c94c
shl rdi, 3
mov rax, qword [rsi]
sub rdi, 8
add ebx, 0xffffffff
mov rbp, qword [rdi + rax]
test rbp, rbp
je 0x45c948
mov rcx, qword [rbp]
call sub.msvcrt.dll_free
mov rcx, rbp
call sub.msvcrt.dll_free
test ebx, ebx
jne 0x45c924
mov dword [rsi + 8], 0
mov dword [r12], 0
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp bx, ax
jne 0x45c989
movzx ecx, ax
mov rdx, rsi
mov eax, ecx
and ecx, 0x3ff
shr eax, 0xa
mov dword [r12], eax
call fcn.0045c788
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x483d0c
Capabilities:
Get common file path
Get file system object information
Get startup folder

Disassembly:
push rbx
mov rax, rsp
sub rsp, 0x2f0
mov edx, ecx
lea r8, [rax + 0x18]
xor ecx, ecx
mov qword [rax + 0x18], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x483d7d
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0x4008
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [rsp + 0x308]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x483d7d
mov eax, dword [rsp + 0x38]
jmp 0x483d7f
xor eax, eax
add rsp, 0x2f0
pop rbx
ret

Function at 0x483d88
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
mov rbx, r8
lea r8, [rsp + 0x30]
bts edx, 7
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret

Function at 0x483dc0
Capabilities:
Get file system object information

Disassembly:
sub rsp, 0x2f8
neg cl
lea r8, [rsp + 0x30]
lea rcx, [0x00499488]
sbb eax, eax
mov r9d, 0x2b8
mov edx, 0x90
and eax, 0xffffff01
add eax, 0x100
or eax, 0x4010
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add rsp, 0x2f8
ret

Function at 0x488444
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x488477
cmp dword [rbx + 0x54], 1
ja 0x488477
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x40]
jmp 0x48847f
mov rcx, rbx
call fcn.004880a0
add rsp, 0x20
pop rbx
ret

Function at 0x48da7c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x48db36
movzx ecx, word [rbx + 0x18]
xor edx, edx
cmp dil, dl
je 0x48db06
cmp cx, 0x41
je 0x48db0c
movzx eax, cx
cmp eax, 0x20
je 0x48daee
cmp eax, 0x6a
jle 0x48db36
cmp eax, 0x6d
jle 0x48daee
cmp eax, 0x6f
je 0x48daee
cmp eax, 0xbb
je 0x48daee
cmp eax, 0xbd
jne 0x48db36
cmp dil, dl
jne 0x48db36
cmp cx, 0x20
mov rcx, rsi
setne dl
call fcn.0048d974
mov al, 1
jmp 0x48db38
cmp cx, 0x6a
jne 0x48dac9
mov ecx, 2
lea r9, [rsp + 0x20]
mov edx, 0x102b
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rsi + 0x40]
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x48db02
xor al, al
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x49679d
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
Function at 0x140318130
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140318161
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1403181db
mov rdi, r14
mov rcx, rbx
call fcn.140315e10
test rax, rax
jle 0x1403181b3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14037b740
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1403181cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1403181d3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140318175
sub r14, rdi
jmp 0x1403182bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1403181f2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1403181f4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140318226
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14037b740
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1403182bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140318261
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14031829d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140358308
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1403182bc
cmp rbp, rax
ja 0x140318270
test rbp, rbp
je 0x1403182bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140358308
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14031ce10
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14031cfc1
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14031cc40
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14031cf86
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14031cf00
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14031cf75
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14031cf3d
mov r10, qword [rdx]
cmp r10, rax
je 0x14031cf37
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14031cf75
cmp r9, rdx
je 0x14031cf51
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x14031cf9b
cmp r9, rdx
jne 0x14031cf42
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14031ceb0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14031cf75
lea rcx, str.invalid_hash_bucket_count
call fcn.14032b52c
int3
Function at 0x14031f7b0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, qword [rdx + 8]
xor r10d, r10d
mov r15, qword [rdx]
mov rdi, r13
sub rdi, r15
mov r12, r8
sar rdi, 2
mov r9, rcx
mov rbp, r13
mov rdx, r15
test rdi, rdi
je 0x14031f9be
mov rax, qword [r8]
movabs r11, 0x100000001b3
mov r14, qword [r8 + 8]
mov rcx, rax
sub r14, rax
mov qword [rsp + 8], rax
sar r14, 2
lea r8, [r15 + 2]
sub rcx, r15
mov qword [rsp], r11
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], rax
cmp r10, r14
jae 0x14031f9bb
mov rdx, qword [r9]
movzx ecx, byte [r8 - 2]
xor rcx, rax
movzx eax, byte [r8 - 1]
imul rcx, r11
mov rbx, qword [rdx + 0x30]
mov rsi, qword [rdx + 0x18]
xor rcx, rax
movzx eax, byte [r8]
mov r9, qword [rdx + 8]
imul rcx, r11
xor rcx, rax
movzx eax, byte [r8 + 1]
imul rcx, r11
xor rcx, rax
imul rcx, r11
and rcx, rbx
add rcx, rcx
mov rax, qword [rsi + rcx*8 + 8]
cmp rax, r9
je 0x14031f8a5
mov rdx, qword [rsi + rcx*8]
mov ecx, dword [r8 - 2]
cmp ecx, dword [rax + 0x10]
je 0x14031f8a7
cmp rax, rdx
je 0x14031f8a5
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14031f895
jmp 0x14031f8a7
xor eax, eax
mov rdx, qword [rsp + 0x68]
test rax, rax
mov r11, r9
cmovne r11, rax
movzx eax, byte [rdx + r8 - 2]
xor rax, qword [rsp + 0x78]
imul rax, qword [rsp]
movzx ecx, byte [rdx + r8 - 1]
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx eax, byte [r8 + rdx]
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx eax, byte [rdx + r8 + 1]
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
and rbx, rcx
add rbx, rbx
mov rax, qword [rsi + rbx*8 + 8]
cmp rax, r9
jne 0x14031f91e
xor eax, eax
jmp 0x14031f948
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsi + rbx*8]
mov ecx, dword [rcx + r8 - 2]
cmp ecx, dword [rax + 0x10]
je 0x14031f943
cmp rax, rdx
je 0x14031f941
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x14031f931
jmp 0x14031f943
xor eax, eax
mov rdx, qword [rsp + 0x68]
test rax, rax
mov rcx, r9
cmovne rcx, rax
cmp r11, r9
je 0x14031f967
cmp rcx, r9
je 0x14031f9a1
mov eax, dword [r11 + 0x14]
cmp eax, dword [rcx + 0x14]
jne 0x14031f9b2
jmp 0x14031f977
cmp rcx, r9
jne 0x14031f9b7
mov eax, dword [rdx + r8 - 2]
cmp dword [r8 - 2], eax
jne 0x14031f9a5
inc r10
add r8, 4
cmp r10, rdi
jae 0x14031f9bb
mov r9, qword [rsp + 0x60]
movabs rax, 0xcbf29ce484222325
movabs r11, 0x100000001b3
jmp 0x14031f831
mov al, 1
jmp 0x14031f9d8
mov rax, qword [rsp + 8]
mov eax, dword [rax + r10*4]
cmp dword [r15 + r10*4], eax
setl al
jmp 0x14031f9d8
xor al, al
jmp 0x14031f9d8
mov rdx, r15
mov rax, qword [r12 + 8]
sub rbp, rdx
sub rax, qword [r12]
sar rax, 2
sar rbp, 2
cmp rbp, rax
setb al
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403470fc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140334052
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140334035
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140334020

Function at 0x14035116c
Capabilities:
Parse pe header

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

Function at 0x140359394
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 0x1403591ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1403591ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1403591ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1403591ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403591ff
cmp dword [rcx + 0x84], 0xe
jbe 0x1403591ff
cmp dword [rcx + 0xf8], 0
je 0x1403591ff
mov ecx, ebx
call fcn.1403592b0
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.14035908c
nop
cmp dword [rbp + 0x20], 0
je 0x14035924d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140359258
int3
xor r8d, r8d
xor edx, edx
jmp 0x140359190
Function at 0x14036a1d4
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.140350a70
sub rsp, rax
mov rax, qword [0x140429100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140368994
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14036a223
mov rax, rbp
jmp 0x14036a32b
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 + 0x42cb00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14036b4bc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x42cb00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14036a327
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 0x14036a327
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14036b4bc
test rax, rax
js 0x14036a327
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14036a327
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14036a319
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14036a319
cmp byte [rcx], 0xd
jne 0x14036a2ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14036a30e
cmp byte [rcx + 1], 0xa
jne 0x14036a30e
inc rcx
jmp 0x14036a30e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x429540]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14036a2e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14036a32b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140350a10
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 0x14036a648
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14036a65e
mov al, 1
jmp 0x14036a6be
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14036a66f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14036a6bc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14037317c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14036a6bc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x14036a6bc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x14036a6bc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14036a6be
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14036a85c
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, [0x14042cb00]
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 0x14036a8b3
cmp word [rdx], r13w
jne 0x14036a8b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14036a8b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14036a9dd
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14036a9fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14036a8f1
mov rdx, r9
mov word [rbx], cx
jmp 0x14036a918
cmp r9, r8
jae 0x14036a928
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 0x14036a8d2
jmp 0x14036a9dd
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 0x14036a9d2
cmp dword [rsp + 0x80], esi
je 0x14036a9d2
lea r8, [0x14042cb00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14036a9aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14036a97a
mov word [rbx], r13w
jmp 0x14036a9da
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 0x14036a987
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14036a9da
cmp word [rsp + 0x70], r13w
jne 0x14036a9b7
cmp rbx, r14
je 0x14036a974
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14036b4c4
cmp word [rsp + 0x70], r13w
je 0x14036a9dd
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, [0x14042cb00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14036a9d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14036a9dd
Function at 0x140371f70
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 0x140371fa0
xor eax, eax
jmp 0x140372063
mov rbp, rbx
cmp word [rax], si
je 0x140371fc5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140371fac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140371fa8
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.14036c840
movsxd r14, eax
test eax, eax
jne 0x140372003
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
jmp 0x140371f99
mov rcx, r14
call fcn.14036c750
mov rdi, rax
test rax, rax
jne 0x14037201c
xor ecx, ecx
call fcn.1403679b4
jmp 0x140371ff8
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.14036c840
test eax, eax
jne 0x14037204d
mov rcx, rdi
call fcn.1403679b4
jmp 0x140372057
xor ecx, ecx
call fcn.1403679b4
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 0x140372080
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 0x140372107
mov rsi, rbx
cmp word [rax], bp
je 0x1403720c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1403720b0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1403720ac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14036c750
mov rdi, rax
test rax, rax
je 0x1403720f4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14037b740
mov rbp, rdi
xor ecx, ecx
call fcn.1403679b4
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 0x1403756d0
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.140367654
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 0x140375771
cmp ebx, dword [rsp + 0x30]
je 0x14037576a
test esi, esi
je 0x14037576a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140375745
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140375752
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14037572f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140375756
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140375773
mov eax, 1
jmp 0x140375773
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret