joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007c10
Capabilities:
Create thread
Inject thread

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp qword [rdx + 0x18], 0xf
mov rax, rdx
mov qword [r11 + 0x10], rbx
mov rbx, r8
mov qword [r11 - 8], rsi
mov rsi, rcx
mov qword [r11 - 0x18], r14
jbe 0x140007c4b
mov rax, qword [rdx]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
mov rax, qword [rdx + 0x10]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0xc8], rbp
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x98], rdi
call fcn.140006a50
mov r14, qword [rsp + 0x70]
test r14, r14
jne 0x140007ca6
test rbx, rbx
je 0x140007c9c
lea rax, str.Failed_to_convert_path_to_wide_string
mov qword [rbx], rax
mov eax, 0x57
jmp 0x140007dce
lea r14, [r14*2 + 2]
mov dword [rsp + 0x20], 4
lea r8, [r14 + 4]
xor edx, edx
mov r9d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
jne 0x140007ce8
test rbx, rbx
je 0x140007dc8
lea rax, str.Failed_to_remotely_allocate_page_with_VirtualAllocEx__
jmp 0x140007dc5
xor ebp, ebp
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x78], 7
lea r8, [rsp + 0x60]
mov r9, r14
mov qword [rsp + 0x40], rbp
cmova r8, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140007da4
cmp qword [rsp + 0x40], r14
jb 0x140007da4
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x28], ebp
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov r14, rax
test rax, rax
jne 0x140007d76
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140007dc8
lea rax, str.Failed_to_create_run_remote_thread_with_CreateRemoteThread__
jmp 0x140007dc5
mov edx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140007dd0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140007dc8
lea rax, str.Failed_to_remotely_write_dll_path_with_WriteProcessMemory__
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rdx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xb8]
cmp rdx, 7
jbe 0x140007e2e
mov rcx, qword [rsp + 0x60]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007e29
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007e50
call fcn.14001af38
mov eax, ebp
mov rbp, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001b0b0
add rsp, 0xa8
ret
call fcn.140020dc4
int3
Function at 0x14000f140
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004d9cb], 0
je 0x14000f3a9
lea rdx, str.restoring_registry_entries__HKCU_2_
lea rcx, [0x14004da60]
call fcn.1400071d0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f267
mov eax, dword [0x14004c1cc]
mov dword [rsp + 0x28], eax
lea rax, [0x140059b00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SourceModInstallPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14004c1d0]
mov dword [rsp + 0x28], eax
lea rax, [0x14005db00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14004c1d4]
mov dword [rsp + 0x28], eax
lea rax, [0x140061b00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamExe
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001b0b0
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r10, [rsp + 0x95]
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r10], cl
mov ecx, edx
test edx, edx
jne 0x14000f280
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140007e60
nop
mov r9d, 0x41
lea r8, str.Unable_to_restore_the_original_registry_entry__HKCU_2___error_
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140011f20
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x40]
lea rcx, [0x14004da60]
call fcn.140006f40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000f35d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f358
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f3c7
call fcn.14001af38
movdqa xmm0, xmmword [0x140038970]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000f3a9
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f3a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f3c1
call fcn.14001af38
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001b0b0
add rsp, 0xa8
ret
call fcn.140020dc4
nop
call fcn.140020dc4
nop
int3
Function at 0x14000f3d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004d9cc], 0
je 0x14000f619
lea rdx, str.restoring_registry_entries__HKLM_
lea rcx, [0x14004da60]
call fcn.1400071d0
mov qword [rsp + 0x38], 0
lea rdx, [0x14004da20]
cmp qword [0x14004da38], 7
cmova rdx, qword [0x14004da20]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f4d6
mov eax, dword [0x14004c1d8]
mov dword [rsp + 0x28], eax
lea rax, [0x140065b00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14004c1dc]
mov dword [rsp + 0x28], eax
lea rax, [0x140069b00]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Universe
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001b0b0
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea r10, [rsp + 0x95]
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r10], cl
mov ecx, edx
test edx, edx
jne 0x14000f4f0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140007e60
nop
mov r9d, 0x3e
lea r8, str.Unable_to_restore_the_original_registry_entry__HKLM___error_
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140011f20
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x40]
lea rcx, [0x14004da60]
call fcn.140006f40
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000f5cd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f5c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f637
call fcn.14001af38
movdqa xmm0, xmmword [0x140038970]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000f619
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f614
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f631
call fcn.14001af38
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14001b0b0
add rsp, 0xa8
ret
call fcn.140020dc4
nop
call fcn.140020dc4
nop
int3
Function at 0x1400143d0
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov rdx, rcx
jbe 0x1400143f5
mov rdx, qword [rcx]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp qword [rbx + 0x18], 0xf
jbe 0x14001440c
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, str.cold_player
lea rcx, str.SteamAppUser
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, str.cold_player
lea rcx, str.SteamUser
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x14003984c]
lea rcx, [0x140039850]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x14003984c]
lea rcx, str.SteamEnv
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.140007430
mov rcx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14001447e
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.140006a50
cmp qword [rax + 0x18], 7
jbe 0x1400144b0
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.SteamPath
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400144fe
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400144f9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014511
call fcn.14001af38
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001b0b0
add rsp, 0x60
pop rbx
ret
call fcn.140020dc4
int3
Function at 0x140014fe0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140015004
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x140015092
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140015060
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140015060
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140034b30
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001507d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140015085
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140015021
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x140015170
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x1400150a9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400150ab
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400150dd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140034b30
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001516d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015118
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 rsi, 0xfff
jbe 0x14001514e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140022c90
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14001516d
cmp rsi, rax
ja 0x140015121
test rsi, rsi
je 0x14001516d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140022c90
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x140019028
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140019062
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140019067
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400190b0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003a900]
cmp byte [rcx + rax], 0
je 0x1400190b0
dec r8
sub rdx, 1
jne 0x140019096
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001bce4
Capabilities:
Parse pe header

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

Function at 0x140024c60
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 0x140024ccf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024ccf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024ccf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024ccf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024ccf
cmp dword [rcx + 0x84], 0xe
jbe 0x140024ccf
cmp dword [rcx + 0xf8], 0
je 0x140024ccf
mov ecx, ebx
call fcn.140024d80
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.140024b5c
nop
cmp dword [rbp + 0x20], 0
je 0x140024d1d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024d28
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140024c60

Function at 0x140024e64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024c60
Function at 0x14002b0c0
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.14001b050
sub rsp, rax
mov rax, qword [0x14004c300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140028fc8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002b10f
mov rax, rbp
jmp 0x14002b217
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 + 0x77090]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002c1e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x77090]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002b213
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 0x14002b213
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002c1e0
test rax, rax
js 0x14002b213
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002b213
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002b205
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002b205
cmp byte [rcx], 0xd
jne 0x14002b1eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002b1fa
cmp byte [rcx + 1], 0xa
jne 0x14002b1fa
inc rcx
jmp 0x14002b1fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4c720]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002b1cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002b217
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001b0b0
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 0x14002b438
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002b44e
mov al, 1
jmp 0x14002b4ae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002b45f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002b4ac
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002f3bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002b4ac
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002b4ac
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002b4ac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002b4ae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002b580
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, [0x140077090]
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 0x14002b5d7
cmp word [rdx], r13w
jne 0x14002b5d7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002b5dc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002b701
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002b722
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002b615
mov rdx, r9
mov word [rbx], cx
jmp 0x14002b63c
cmp r9, r8
jae 0x14002b64c
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 0x14002b5f6
jmp 0x14002b701
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 0x14002b6f6
cmp dword [rsp + 0x80], esi
je 0x14002b6f6
lea r8, [0x140077090]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002b6ce
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002b69e
mov word [rbx], r13w
jmp 0x14002b6fe
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 0x14002b6ab
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002b6fe
cmp word [rsp + 0x70], r13w
jne 0x14002b6db
cmp rbx, r14
je 0x14002b698
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002c1e8
cmp word [rsp + 0x70], r13w
je 0x14002b701
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, [0x140077090]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002b6fb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002b701
Function at 0x14002eb64
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 0x14002ebeb
mov rsi, rbx
cmp word [rax], bp
je 0x14002ebaa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002eb94
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002eb90
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400282bc
mov rdi, rax
test rax, rax
je 0x14002ebd8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140034b30
mov rbp, rdi
xor ecx, ecx
call fcn.140027ddc
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 0x140031910
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.140027a7c
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 0x1400319b1
cmp ebx, dword [rsp + 0x30]
je 0x1400319aa
test esi, esi
je 0x1400319aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140031985
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140031992
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003196f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140031996
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400319b3
mov eax, 1
jmp 0x1400319b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret