joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18015e490
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1801540a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1801540a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18015e5e0
cmp rax, 0xffffffffffffffff
je 0x18015e5e0
xor edi, edi
test rbp, rbp
jle 0x18015e58b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18014f3a4
mov rbx, rax
test rax, rax
jne 0x18015e518
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18015e581
mov edx, 0x8000
mov ecx, r14d
call fcn.18015e314
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180152e24
cmp eax, 0xffffffff
je 0x18015e561
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18015e528
mov edx, r15d
mov ecx, r14d
call fcn.18015e314
jmp 0x18015e581
cmp byte [rsi + 0x38], dil
je 0x18015e578
cmp dword [rsi + 0x34], 5
jne 0x18015e578
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18015e581
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18014f41c
jmp 0x18015e5f4
jns 0x18015e5f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1801540a8
cmp rax, 0xffffffffffffffff
jne 0x18015e5ac
cmp byte [rsi + 0x30], dil
je 0x18015e5f4
mov edi, dword [rsi + 0x2c]
jmp 0x18015e5f4
mov ecx, r14d
call fcn.18015a7d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18015e5f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18015e5f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18015e5ed
mov eax, dword [rsi + 0x2c]
jmp 0x18015e5f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1801540a8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18015ec60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18015ec88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18015ec88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x40efc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x40efcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x40efdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x40efc5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x40eff5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x40efe2
sub eax, 3
jb 0x40f00f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x40f046
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x40f036
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x40f034
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x40f023
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.0040ef82
jmp 0x40efcd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2200
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x40f092
cmp rsi, rcx
jae 0x40f09a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x40f079
cmp al, 0x8f
ja 0x40f079
cmp byte [rsi - 2], 0xf
je 0x40f07f
sub al, 0xe8
cmp al, 1
ja 0x40f063
cmp rsi, rcx
jae 0x40f09a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x40f069
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x40f09a
lodsb al, byte [rsi]
jmp 0x40f079
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xc000]
mov eax, dword [rdi]
or eax, eax
je 0x40f0f7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf2a0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x40f0a7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x40f0f1
mov qword [rbx], rax
add rbx, 8
jmp 0x40f0c7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0040f17a], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0040f17a
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x40f16a
sub rsp, 0xffffffffffffff80
jmp 0x4014c0
Function at 0x140001798
Capabilities:
Parse pe header

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

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

Function at 0x140004f60
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004d5c
Function at 0x140008014
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 0x140008044
xor eax, eax
jmp 0x140008107
mov rbp, rbx
cmp word [rax], si
je 0x140008069
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008050
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000804c
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.140007f34
movsxd r14, eax
test eax, eax
jne 0x1400080a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000803d
mov rcx, r14
call fcn.140008aa8
mov rdi, rax
test rax, rax
jne 0x1400080c0
xor ecx, ecx
call fcn.14000656c
jmp 0x14000809c
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.140007f34
test eax, eax
jne 0x1400080f1
mov rcx, rdi
call fcn.14000656c
jmp 0x1400080fb
xor ecx, ecx
call fcn.14000656c
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 0x14000c4c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x348
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x350]
call fcn.14000bff0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000c4fe
jmp 0x14000c6a1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
cmp dword [rsp + 0x20], 0
jne 0x14000c51b
jmp 0x14000c6a1
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x411
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000c53f
jmp 0x14000c6a1
mov r9d, 0x104
lea r8, [rsp + 0x120]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
jne 0x14000c56e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000c6a1
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14000c590
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000c6a1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0xa0]
call fcn.140001260
nop
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xa0]
call fcn.14000e960
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x48]
call fcn.14000e960
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
call fcn.14000e960
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.14000e960
nop
lea rcx, [rsp + 0xc0]
call fcn.140006d80
nop
lea rcx, [rsp + 0xe0]
call fcn.140006d80
nop
lea rcx, [rsp + 0x100]
call fcn.140006d80
nop
lea rcx, [rsp + 0x80]
call fcn.14000edf0
nop
jmp 0x14000c685
lea rcx, [rsp + 0x80]
call fcn.140006d80
nop
lea rcx, [rsp + 0xa0]
call fcn.140006d80
nop
add rsp, 0x348
ret
Function at 0x14000fb10
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 0x14000fb4a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000fb4f
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 0x14000fb98
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140035d20]
cmp byte [rcx + rax], 0
je 0x14000fb98
dec r8
sub rdx, 1
jne 0x14000fb7e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140011f6c
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 0x140011f9a
xor eax, eax
jmp 0x140012080
cmp qword [rcx + 0x68], 0
je 0x140011fab
call fcn.14001209c
jmp 0x140012080
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140011fc2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011fc4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011ff6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140032390
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 0x14001207a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14001202d
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 0x140012056
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001cd80
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14001207a
cmp rsi, rbx
ja 0x140012034
test rsi, rsi
je 0x14001207a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001cd80
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 0x1400133b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013402
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013402
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013402
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013402
cmp dword [rcx + 0x84], 0xe
jbe 0x140013402
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013404
xor al, al
add rsp, 0x28
ret
Function at 0x14001ed94
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 0x14001ee03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ee03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ee03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ee03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ee03
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ee03
cmp dword [rcx + 0xf8], 0
je 0x14001ee03
mov ecx, ebx
call fcn.14001eeb4
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.14001ec90
nop
cmp dword [rbp + 0x20], 0
je 0x14001ee51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001ee5c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001ed94

Function at 0x14001ef98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ed94
Function at 0x140027944
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.140012e20
sub rsp, rax
mov rax, qword [0x140046080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002400c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140027993
mov rax, rbp
jmp 0x140027a9b
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 + 0x485d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140028a64
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x485d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140027a97
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 0x140027a97
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140028a64
test rax, rax
js 0x140027a97
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140027a97
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140027a89
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140027a89
cmp byte [rcx], 0xd
jne 0x140027a6f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140027a7e
cmp byte [rcx + 1], 0xa
jne 0x140027a7e
inc rcx
jmp 0x140027a7e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x464d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140027a51
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140027a9b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012d70
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 0x140027cbc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140027cd2
mov al, 1
jmp 0x140027d32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140027ce3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140027d30
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002af70
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140027d30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140027d30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140027d30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140027d32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140027e04
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, [0x1400485d0]
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 0x140027e5b
cmp word [rdx], r13w
jne 0x140027e5b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140027e60
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140027f85
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140027fa6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140027e99
mov rdx, r9
mov word [rbx], cx
jmp 0x140027ec0
cmp r9, r8
jae 0x140027ed0
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 0x140027e7a
jmp 0x140027f85
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 0x140027f7a
cmp dword [rsp + 0x80], esi
je 0x140027f7a
lea r8, [0x1400485d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140027f52
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140027f22
mov word [rbx], r13w
jmp 0x140027f82
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 0x140027f2f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140027f82
cmp word [rsp + 0x70], r13w
jne 0x140027f5f
cmp rbx, r14
je 0x140027f1c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140028a6c
cmp word [rsp + 0x70], r13w
je 0x140027f85
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, [0x1400485d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140027f7f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140027f85
Function at 0x14002a708
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 0x14002a738
xor eax, eax
jmp 0x14002a7fb
mov rbp, rbx
cmp word [rax], si
je 0x14002a75d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002a744
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002a740
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.140028d08
movsxd r14, eax
test eax, eax
jne 0x14002a79b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002a731
mov rcx, r14
call fcn.140022db0
mov rdi, rax
test rax, rax
jne 0x14002a7b4
xor ecx, ecx
call fcn.140022d74
jmp 0x14002a790
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.140028d08
test eax, eax
jne 0x14002a7e5
mov rcx, rdi
call fcn.140022d74
jmp 0x14002a7ef
xor ecx, ecx
call fcn.140022d74
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 0x14002d4c4
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.140021bd4
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 0x14002d565
cmp ebx, dword [rsp + 0x30]
je 0x14002d55e
test esi, esi
je 0x14002d55e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002d539
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002d546
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002d523
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002d54a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002d567
mov eax, 1
jmp 0x14002d567
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret