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

Disassembly:
jmp 0x140018400
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x14003b040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x1400440fe]
call fcn.140011c21
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140011d02
mov rax, qword [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x168]
mov r8, qword [rbp + 0x160]
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.14001140b
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.140011c67
nop
lea rcx, [rbp + 0x108]
call fcn.14001137a
lea rax, [0x140011ad7]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.140011294
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140018524
lea rcx, [rbp + 8]
call fcn.14001176c
jmp 0x14001853d
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400112ee
nop
lea rcx, [rbp + 8]
call fcn.14001137a
lea rcx, [rbp - 0x30]
lea rdx, [0x1400320e0]
call fcn.140011a32
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.140011618
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x140011889
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400272a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400272c0
xor al, al
jmp 0x140027341
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400272d3
xor al, al
jmp 0x140027341
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400272fd
xor al, al
jmp 0x140027341
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140027311
xor al, al
jmp 0x140027341
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140027323
xor al, al
jmp 0x140027341
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002733f
xor al, al
jmp 0x140027341
mov al, 1
add rsp, 0x38
ret
Function at 0x140011bf9
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001dc20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14003b040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400440f4]
call fcn.140011c21
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001dc86
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001dc8d
mov al, 1
jmp 0x14001dddd
call fcn.140011389
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011389
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400119c4
movzx eax, al
test eax, eax
je 0x14001dcde
xor al, al
jmp 0x14001dddd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001dd43
cmp dword [rbp + 0x154], 1
je 0x14001dd4e
cmp dword [rbp + 0x154], 3
je 0x14001ddcc
jmp 0x14001dddb
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001dd9e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001dd9e
xor al, al
jmp 0x14001dddd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001ddb9
mov dword [rbp + 0x154], 1
jmp 0x14001ddc3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001dddd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001dddd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140030a90]
call fcn.140011a32
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011618
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400022d0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140053b80
test eax, eax
je 0x1400022f9
mov r8d, eax
lea rcx, [r8 - 1]
and eax, 3
cmp rcx, 3
jae 0x140002300
xor ecx, ecx
xor edx, edx
jmp 0x14000236c
xor eax, eax
jmp 0x1400023a4
sub r8, rax
xor ecx, ecx
xor edx, edx
nop word [rax + rax]
movsx esi, byte [rbx + rcx]
add esi, edx
mov edx, esi
shl edx, 9
add edx, esi
mov esi, edx
shr esi, 6
xor esi, edx
movsx edi, byte [rbx + rcx + 1]
add edi, esi
mov edx, edi
shl edx, 9
add edx, edi
mov edi, edx
shr edi, 6
xor edi, edx
movsx esi, byte [rbx + rcx + 2]
add esi, edi
mov edx, esi
shl edx, 9
add edx, esi
mov edi, edx
shr edi, 6
xor edi, edx
movsx edx, byte [rbx + rcx + 3]
add edx, edi
mov edi, edx
shl edi, 9
add edi, edx
mov edx, edi
shr edx, 6
xor edx, edi
add rcx, 4
cmp r8, rcx
jne 0x140002310
test rax, rax
je 0x14000239d
add rbx, rcx
xor ecx, ecx
nop word cs:[rax + rax]
movsx esi, byte [rbx + rcx]
add esi, edx
mov edi, esi
shl edi, 9
add edi, esi
mov edx, edi
shr edx, 6
xor edx, edi
add rcx, 1
cmp rax, rcx
jne 0x140002380
mov eax, edx
shl eax, 7
add eax, edx
mov ecx, eax
shr ecx, 9
xor ecx, eax
mov eax, ecx
shl eax, 0xd
add eax, ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140035320
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x14118b834], 0xa
jl 0x14003533e
mov eax, dword [0x14118b830]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x14003538b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14002dfa0]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x14118b834], 0xa
jl 0x1400353c3
mov eax, dword [0x14118b830]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400353c3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14002dfa0]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003533e
xor eax, eax
add rsp, 0x38
ret

Function at 0x14005242c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005255c
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400525c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400525c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400525c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400525c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400525c3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400525c3
cmp dword [rcx + 0xf8], 0
je 0x1400525c3
mov ecx, ebx
call fcn.1400524a8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400526dc
cmp dword [rbp + 0x20], 0
je 0x140052610
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140052504
int3
Function at 0x1808ec058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808ec1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1808ec089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ec06f
add dl, dl
jne 0x1808ec096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ec0f6
xor eax, eax
add dl, dl
jne 0x1808ec0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808ec1ad
add dl, dl
jne 0x1808ec0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ec0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ec0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ec0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808ec0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1808ec07e
mov eax, 1
add dl, dl
jne 0x1808ec106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808ec113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ec0fb
sub eax, ebx
mov ebx, 1
jne 0x1808ec14c
mov ecx, 1
add dl, dl
jne 0x1808ec12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808ec13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ec123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ec07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1808ec168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1808ec175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808ec15d
cmp eax, 0x7d00
jae 0x1808ec19b
cmp eax, 0x500
jb 0x1808ec196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ec07e
cmp eax, 0x7f
ja 0x1808ec19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1808ec07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808ec1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1808ec07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400088ac
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 0x1400088e6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400088eb
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 0x140008934
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14002f460]
cmp byte [rcx + rax], 0
je 0x140008934
dec r8
sub rdx, 1
jne 0x14000891a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000a530
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 0x14000a55e
xor eax, eax
jmp 0x14000a644
cmp qword [rcx + 0x68], 0
je 0x14000a56f
call fcn.14000a660
jmp 0x14000a644
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a586
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a588
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a5ba
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002c740
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 0x14000a63e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000a5f1
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 0x14000a61a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400151b0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000a63e
cmp rsi, rbx
ja 0x14000a5f8
test rsi, rsi
je 0x14000a63e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400151b0
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 0x14000c4f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c53a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c53a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c53a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c53a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c53a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c53c
xor al, al
add rsp, 0x28
ret
Function at 0x140017b1c
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 0x140017b8b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017b8b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017b8b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017b8b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017b8b
cmp dword [rcx + 0x84], 0xe
jbe 0x140017b8b
cmp dword [rcx + 0xf8], 0
je 0x140017b8b
mov ecx, ebx
call fcn.140017c3c
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.140017a18
nop
cmp dword [rbp + 0x20], 0
je 0x140017bd9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140017be4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140017b1c

Function at 0x140017d20
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017b1c
Function at 0x140020788
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.14000bcd0
sub rsp, rax
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b8fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400207d7
mov rax, rbp
jmp 0x1400208df
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 + 0x42530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400218a8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x42530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400208db
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 0x1400208db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400218a8
test rax, rax
js 0x1400208db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400208db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400208cd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400208cd
cmp byte [rcx], 0xd
jne 0x1400208b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400208c2
cmp byte [rcx + 1], 0xa
jne 0x1400208c2
inc rcx
jmp 0x1400208c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x40480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140020895
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400208df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b680
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 0x140020b00
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140020b16
mov al, 1
jmp 0x140020b76
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140020b27
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020b74
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400247f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020b74
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020b74
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020b74
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140020b76
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140020c48
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, [0x140042530]
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 0x140020c9f
cmp word [rdx], r13w
jne 0x140020c9f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140020ca4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140020dc9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140020dea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140020cdd
mov rdx, r9
mov word [rbx], cx
jmp 0x140020d04
cmp r9, r8
jae 0x140020d14
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 0x140020cbe
jmp 0x140020dc9
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 0x140020dbe
cmp dword [rsp + 0x80], esi
je 0x140020dbe
lea r8, [0x140042530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140020d96
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140020d66
mov word [rbx], r13w
jmp 0x140020dc6
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 0x140020d73
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140020dc6
cmp word [rsp + 0x70], r13w
jne 0x140020da3
cmp rbx, r14
je 0x140020d60
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400218b0
cmp word [rsp + 0x70], r13w
je 0x140020dc9
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, [0x140042530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140020dc3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140020dc9
Function at 0x140023f8c
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 0x140023fbc
xor eax, eax
jmp 0x14002407f
mov rbp, rbx
cmp word [rax], si
je 0x140023fe1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140023fc8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140023fc4
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.14002258c
movsxd r14, eax
test eax, eax
jne 0x14002401f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140023fb5
mov rcx, r14
call fcn.14001a6a0
mov rdi, rax
test rax, rax
jne 0x140024038
xor ecx, ecx
call fcn.14001a664
jmp 0x140024014
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.14002258c
test eax, eax
jne 0x140024069
mov rcx, rdi
call fcn.14001a664
jmp 0x140024073
xor ecx, ecx
call fcn.14001a664
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 0x140026d48
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.14001be08
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 0x140026de9
cmp ebx, dword [rsp + 0x30]
je 0x140026de2
test esi, esi
je 0x140026de2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140026dbd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140026dca
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140026da7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140026dce
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140026deb
mov eax, 1
jmp 0x140026deb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret