joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c191
Capabilities:
Hash data with md5

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
lea rax, str.md5Init
mov qword [rbp - 0x38], rax
lea rax, str._home_syahrul_.nimble_pkgs2_checksums_0.2.1_d3c7a1d0c0dee8fa089bd7f4d474e005877b608a_checksums_md5.nim
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov word [rbp - 0x20], 0
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.nimFrame_13
call sym.nimErrorFlag_10
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], 0x118
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x67452301
mov qword [rbp - 0x30], 0x119
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0xefcdab89
mov qword [rbp - 0x30], 0x11a
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x98badcfe
mov qword [rbp - 0x30], 0x11b
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0x10325476
mov qword [rbp - 0x30], 0x11c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0
mov qword [rbp - 0x30], 0x11d
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0
mov qword [rbp - 0x30], 0x11e
mov rcx, qword [rbp + 0x10]
call sym.clearBuffer__pkgZchecksumsZmd5_u269
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
nop
call sym.popFrame_13
nop
add rsp, 0x60
pop rbp
ret
Function at 0x1400304c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140030530
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140042334]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400306e0
mov rax, qword [0x140042338]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14003057c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140030607
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140030560
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x14003073d
mov rax, qword [0x140042338]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140042338]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x140030722
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140030600
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140030690
add dword [0x140042334], 1
cmp ebx, 8
jae 0x140030638
test bl, 4
jne 0x1400306f0
test ebx, ebx
je 0x140030629
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140030710
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140030629
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14003066a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140042338]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x140030600
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140030587
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140030629
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140030629
mov rax, qword [0x140042338]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140030c50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400423a0]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x140042380]
test rbx, rbx
je 0x140030ca4
mov rdi, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140030c9b
test r12, r12
je 0x140030c9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140030c80
lea rcx, [0x1400423a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]

Function at 0x140030ed0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140030ee0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140030ef0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140030f35
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140030f2c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140030f37
add rax, 0x28
cmp rax, r9
jne 0x140030f18
xor eax, eax
ret

Function at 0x140030fe0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14003ca60]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140031059
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140031059
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140031056
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14003104d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140031059
add r8, 0x28
cmp r8, r9
jne 0x140031038
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140031140
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14003ca60]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400311af
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400311af
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1400311ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400311a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400311b8
add rax, 0x28
cmp rax, r9
jne 0x140031190
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400311d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14003ca60]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140031248
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140031248
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140031248
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140031248
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x14003123c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140031250
add rdx, 0x28
cmp rdx, r10
jne 0x140031228
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140031260
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14003126e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140031245
test r8d, r8d
jg 0x140031258
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x1400313c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x140042420], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateSemaphoreW]
mov qword [0x140042428], rax
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x140031410
lea rdx, [0x1400312d0]
mov dword [0x140042418], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x140031418
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x140031407
call sym.abort
nop
nop
Function at 0x140031420
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x14003c9e0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x140031460
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400314c8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400314e0
mov r13d, dword [0x140042418]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.DLL_SetLastError]
test r13, r13
je 0x140031558
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x1400315a0
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x140031449
mov rcx, r12
call fcn.140031320
mov qword [r13 + rsi*8 + 8], rax
jmp 0x140031449
call fcn.140031320
mov qword [r12 + 0x10], rax
jmp 0x140031449
mov r10d, dword [r13]
test r10d, r10d
je 0x140031602
mov r9d, dword [0x1400374d0]
test r9d, r9d
je 0x140031630
lock add dword [0x140042420], 1
jne 0x140031664
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x140031610
mov eax, dword [r13]
test eax, eax
je 0x140031469
mov eax, 0xffffffff
lock xadd dword [0x140042420], eax
sub eax, 1
js 0x140031469
mov rcx, qword [0x140042428]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
jmp 0x140031469
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sym.calloc
mov r13, rax
test rax, rax
je 0x14003168b
mov qword [rax], rbx
mov ecx, dword [0x140042418]
mov rdx, r13
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
jne 0x1400314a7
call rdi
jmp 0x1400314a7
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sym.realloc
mov r13, rax
test rax, rax
je 0x14003168b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sym.memset
jmp 0x140031579
call fcn.1400313c0
mov dword [0x1400374d0], 1
mov edx, dword [r13]
test edx, edx
jne 0x1400314fd
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x140031469
mov rax, qword [0x140042410]
lea rsi, [rax + 1]
mov qword [0x140042410], rsi
mov qword [r12 + 0x10], rsi
jmp 0x140031519
lock add dword [0x1400374d4], 1
je 0x1400315e7
mov r8d, dword [0x1400374d0]
mov rsi, qword [sym.imp.KERNEL32.DLL_Sleep]
lea rbx, [0x1400374d0]
test r8d, r8d
jne 0x1400315f6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x140031658
jmp 0x1400315f6
mov rcx, qword [0x140042428]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x14003150b
lock sub dword [0x140042420], 1
jmp 0x14003150b
call sym.abort
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000784c
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 0x14000787a
xor eax, eax
jmp 0x140007960
cmp qword [rcx + 0x68], 0
je 0x14000788b
call fcn.14000797c
jmp 0x140007960
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400078a2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400078a4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400078d6
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000a8a0
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 0x14000795a
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000790d
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 0x140007936
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140013ac0
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000795a
cmp rsi, rbx
ja 0x140007914
test rsi, rsi
je 0x14000795a
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140013ac0
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 0x140009670
Capabilities:
Parse pe header

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

Function at 0x140016dd4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016bec

Function at 0x140019ba0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140044050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140019c05
test rax, rax
jne 0x140019bf3
lea r9, str.GetLocaleInfoEx
lea r8, [0x1400303e8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1400197b0
test rax, rax
je 0x140019c05
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14002a080
jmp 0x140019c1f
xor edx, edx
mov rcx, rbp
call fcn.140019e90
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001e364
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.140009310
sub rsp, rax
mov rax, qword [0x14003d020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001bbe4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e3b3
mov rax, rbp
jmp 0x14001e4bf
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 + 0x3f3c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001f54c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f3c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e4bb
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e4bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001f54c
test rax, rax
js 0x14001e4bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e4bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e4ad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e4ad
cmp byte [rcx], 0xd
jne 0x14001e493
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e4a2
cmp byte [rcx + 1], 0xa
jne 0x14001e4a2
inc rcx
jmp 0x14001e4a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e475
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e4bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008910
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 0x14001e6e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001e6f6
mov al, 1
jmp 0x14001e762
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001e707
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001e760
mov ecx, dword [rcx + 0x18]
nop
call fcn.140022f8c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001e760
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001e760
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001e760
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001e762
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e834
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
xor edi, edi
mov rax, r15
lea rcx, [0x14003f3c0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14001e88a
cmp word [rdx], r9w
jne 0x14001e88a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14001e88f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14001ea0e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14001e9d9
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14001e8d7
cmp rcx, r8
jae 0x14001e8f7
cmp word [rcx], r9w
jne 0x14001e8d7
add rax, 4
mov edx, r9d
jmp 0x14001e8da
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14001e8ac
jmp 0x14001ea0e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e9d2
cmp dword [rsp + 0x80], edi
je 0x14001e9d2
lea r9, [0x14003f3c0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14001e9ac
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14001e95f
mov word [rbx], bp
jmp 0x14001ea0b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14001e97a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14001ea0b
cmp word [rsp + 0x70], bp
jne 0x14001e9b8
cmp rbx, rsi
je 0x14001e957
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f554
cmp word [rsp + 0x70], bp
je 0x14001ea0e
mov word [rbx], 0xd
jmp 0x14001ea0b
mov rcx, r15
lea r9, [0x14003f3c0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001ea08
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001ea0e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x140022724
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 0x140022754
xor eax, eax
jmp 0x140022817
mov rbp, rbx
cmp word [rax], si
je 0x140022779
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022760
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002275c
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.140020ea0
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400227ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002274d
call fcn.14001a4f0
mov rdi, rax
test rax, rax
jne 0x1400227d0
xor ecx, ecx
call fcn.1400196b0
jmp 0x1400227af
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.140020ea0
test eax, eax
jne 0x140022801
mov rcx, rdi
call fcn.1400196b0
jmp 0x14002280b
xor ecx, ecx
call fcn.1400196b0
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 0x140025484
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1400254f7
cmp word [rcx], si
je 0x1400254f7
lea rdx, [0x140032958]
call fcn.1400288e8
test eax, eax
je 0x1400254f7
lea rdx, [0x140032970]
mov rcx, rbx
call fcn.1400288e8
test eax, eax
jne 0x1400254ed
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140025514
mov eax, dword [rsp + 0x30]
jmp 0x140025526
mov rcx, rbx
call fcn.14001954c
jmp 0x140025526
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140025518
xor eax, eax
jmp 0x140025526
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140025526
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140025538
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.14001c1a8
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400255db
cmp edi, dword [rsp + 0x30]
je 0x1400255d4
test ebp, ebp
je 0x1400255d4
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x1400255b0
sub dx, 0x61
cmp dx, 0x19
ja 0x1400255bc
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14002559d
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400255c0
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x1400255dd
mov eax, 1
jmp 0x1400255dd
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret