joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b4860
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14012de40
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400b4925
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013ed4e
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400b4906
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400b48f8
test rsi, rsi
je 0x14013ed4e
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400b48b8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400b4954
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400b4970
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400b4a2d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013ed54
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400b4a0e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400b4a00
test rsi, rsi
je 0x14013ed54
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400b49c0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400d31f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x140173c90]
mov rsi, rcx
test rbx, rbx
je 0x1400d3270
mov rax, qword [0x1401525e0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x1400d3260
mov rdx, qword [0x140173ec8]
test rdx, rdx
je 0x1400d3360
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x1400d3241
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1400b4860
test rax, rax
je 0x1400d3380
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013ede2
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400d330e
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400d3300
test rbx, rbx
je 0x14013ede2
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x1400d32c0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.1400d3080
mov rbx, rax
mov qword [0x140173c90], rbx
jmp 0x1400d3212
lea rcx, [0x14014eb17]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x140173ec8], rax
mov rdx, rax
jmp 0x1400d3232
mov rbx, qword [0x140173ca8]
test rbx, rbx
jne 0x1400d3351
cmp byte [0x140173ec2], 0
jne 0x1400d339f
mov ecx, 1
call fcn.1400a6890
mov rdx, 0xffffffffffffffff
lea rcx, [0x140173cc0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x140173ca8], rax
mov rbx, rax
test rax, rax
je 0x1400d33cd
mov eax, dword [rax]
add eax, 1
je 0x1400d3351
mov dword [rbx], eax
jmp 0x1400d3351
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax]
call sub.msvcrt.dll_abort
nop
Function at 0x1400d3c60
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1400b4860
test rax, rax
je 0x1400d3db0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14013edfa
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1400d3d16
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400d3d08
test rbx, rbx
je 0x14013edfa
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1400d3cc8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1401743e0]
mov rsi, rax
mov rax, qword [0x1401525e0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1400d3e25
mov rdx, rbx
call fcn.1400a5050
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400c7b80
mov rdx, qword [rbx]
test edx, edx
js 0x1400d3d92
sub rdx, 1
mov qword [rbx], rdx
je 0x1400d3e0d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140173ca0]
lea rsi, [0x140173ca0]
test bl, bl
je 0x1400d3dd0
mov rax, qword [0x140173ca8]
lea rsi, [0x140173ca8]
test rax, rax
jne 0x1400d3d92
cmp byte [0x140173ec2], 0
jne 0x1400d3de6
movzx ecx, bl
call fcn.1400a6890
mov rdx, 0xffffffffffffffff
lea rcx, [0x140173cc0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400d3e4f
mov edx, dword [rax]
add edx, 1
je 0x1400d3d92
mov dword [rax], edx
jmp 0x1400d3d92
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400d3d92
mov rcx, qword [0x140174358]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1400d3e5a
mov rdx, rdi
call fcn.1400a5050
mov qword [0x1401743e0], rax
mov rcx, rax
jmp 0x1400d3d69
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14014a29b]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x140174358], rax
mov rcx, rax
test rax, rax
je 0x14013edfa
jmp 0x1400d3e38
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14012a5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140173c81], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14012a638
lea rdx, [0x14014e502]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14012a6a0
mov rbx, qword [0x140173b20]
jmp 0x14012a5f5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14012a5f0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14011a5f0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140173b20], rax
mov ebx, dword [rax]
mov qword [0x140173b20], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140173b20], rdx
call fcn.1401296e0
cmp eax, ebx
jne 0x14012a708
mov byte [0x140173c81], 1
jmp 0x14012a5cc
cmp byte [0x140173c80], 0
jne 0x14012a5e3
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1401745e8], rax
call rbx
mov qword [0x1401745e0], rax
call rbx
mov qword [0x1401745d8], rax
call rbx
mov qword [0x1401745d0], rax
call rbx
mov qword [0x1401745c8], rax
call rbx
mov qword [0x1401745c0], rax
call rbx
mov qword [0x1401745b8], rax
call rbx
mov byte [0x140173c80], 1
mov qword [0x1401745b0], rax
jmp 0x14012a5e3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14012cb20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14013e2a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14013e2a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14012d7f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140174aa8]
test eax, eax
je 0x14012d88a
lea rax, [0x140174a80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140174ab0]
mov qword [rbp - 8], rax
jmp 0x14012d86e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14012d862
cmp qword [rbp - 0x10], 0
je 0x14012d862
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14012d828
lea rax, [0x140174a80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14012d88b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14012d990
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14012d9b8
mov eax, 0
jmp 0x14012da06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14012d9e1
mov eax, 0
jmp 0x14012da06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14012da01
mov eax, 0
jmp 0x14012da06
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14012da0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14012da8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14012da81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14012da81
mov rax, qword [rbp - 8]
jmp 0x14012da9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14012da54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140064dec
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 0x140064e1a
xor eax, eax
jmp 0x140064f00
cmp qword [rcx + 0x68], 0
je 0x140064e2b
call fcn.140064f1c
jmp 0x140064f00
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140064e42
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140064e44
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140064e76
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140080680
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 0x140064efa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140064ead
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 0x140064ed6
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14006da3c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140064efa
cmp rsi, rbx
ja 0x140064eb4
test rsi, rsi
je 0x140064efa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14006da3c
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 0x140066b8c
Capabilities:
Parse pe header

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

Function at 0x1400706cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400704c8
Function at 0x140075900
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.140066470
sub rsp, rax
mov rax, qword [0x140091040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400744e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14007594f
mov rax, rbp
jmp 0x140075a57
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 + 0x93400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140076a20
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x93400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140075a53
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 0x140075a53
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140076a20
test rax, rax
js 0x140075a53
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140075a53
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140075a45
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140075a45
cmp byte [rcx], 0xd
jne 0x140075a2b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140075a3a
cmp byte [rcx + 1], 0xa
jne 0x140075a3a
inc rcx
jmp 0x140075a3a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x91470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140075a0d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140075a57
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140065e20
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 0x140075c78
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140075c8e
mov al, 1
jmp 0x140075cee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140075c9f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140075cec
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007ad40
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140075cec
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140075cec
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140075cec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140075cee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140075dc0
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, [0x140093400]
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 0x140075e17
cmp word [rdx], r13w
jne 0x140075e17
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140075e1c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140075f41
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140075f62
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140075e55
mov rdx, r9
mov word [rbx], cx
jmp 0x140075e7c
cmp r9, r8
jae 0x140075e8c
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 0x140075e36
jmp 0x140075f41
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 0x140075f36
cmp dword [rsp + 0x80], esi
je 0x140075f36
lea r8, [0x140093400]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140075f0e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140075ede
mov word [rbx], r13w
jmp 0x140075f3e
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 0x140075eeb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140075f3e
cmp word [rsp + 0x70], r13w
jne 0x140075f1b
cmp rbx, r14
je 0x140075ed8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140076a28
cmp word [rsp + 0x70], r13w
je 0x140075f41
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, [0x140093400]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140075f3b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140075f41
Function at 0x14007a4d8
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 0x14007a508
xor eax, eax
jmp 0x14007a5cb
mov rbp, rbx
cmp word [rax], si
je 0x14007a52d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007a514
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007a510
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.140078ad8
movsxd r14, eax
test eax, eax
jne 0x14007a56b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007a501
mov rcx, r14
call fcn.140076c8c
mov rdi, rax
test rax, rax
jne 0x14007a584
xor ecx, ecx
call fcn.140072f9c
jmp 0x14007a560
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.140078ad8
test eax, eax
jne 0x14007a5b5
mov rcx, rdi
call fcn.140072f9c
jmp 0x14007a5bf
xor ecx, ecx
call fcn.140072f9c
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 0x14007d294
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.140073350
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 0x14007d335
cmp ebx, dword [rsp + 0x30]
je 0x14007d32e
test esi, esi
je 0x14007d32e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007d309
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007d316
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007d2f3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007d31a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007d337
mov eax, 1
jmp 0x14007d337
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret