joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100016570
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100019188]
jne 0x10001658b
rol rcx, 0x10
test cx, 0xffff
jne 0x100016587
ret 0
ror rcx, 0x10
jmp 0x1000166b8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100031010]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100031108]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10001673d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100031010]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10001675f
mov rax, qword [rsp + 0x88]
mov qword [0x100031108], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000310a8], rax
mov rax, qword [0x100031108]
mov qword [0x100030f80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100031090], rax
mov dword [0x100030f70], 0xc0000409
mov dword [0x100030f74], 1
mov rax, qword [0x100019188]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100019190]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000094d8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140017820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x140054018]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140017700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140017868
test al, al
je 0x140017868
cmp qword [rsi + 0x58], 0
je 0x140017884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140045f60
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14001790d
mov rcx, rdi
call fcn.140017710
mov r14, rax
mov rbp, qword [0x140054c18]
test rbp, rbp
jne 0x1400178cb
lea rcx, [0x14004c3fe]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x140054c18], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140017866
test dword [rsp + 0x38], 0x1000000
jne 0x140017866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140017984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140017710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140017866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400179a4
xor eax, eax
jmp 0x1400179b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400176a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400179e0
mov bpl, 1
jmp 0x140017868

Function at 0x140017a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140017ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140017ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140017aad
mov qword [rsi], rdi
call fcn.140017670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.firefox.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
nop
invalid
Function at 0x1000014a8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebx, esi
call fcn.1000016a4
lea rcx, [0x100001260]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp rax, rsi
mov rdi, rax
jne 0x1000014df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10000150d
lea rdx, [0x100001278]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rsi
jne 0x1000014fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100001504
xor edx, edx
xor ecx, ecx
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lock add dword [0x1000046e0], 1
cmp dword [0x1000046d4], esi
je 0x1000015e0
lea rcx, [rsp + 0x20]
call fcn.1000015f0
cmp eax, esi
je 0x1000015e0
sub dword [0x1000046d0], 1
jne 0x100001596
call fcn.10000202c
call fcn.100001be4
mov r8, qword [0x1000046f0]
cmp r8, rsi
je 0x100001568
mov rcx, qword [0x100004770]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x1000046f0], rsi
mov r8, qword [0x1000046f8]
cmp r8, rsi
je 0x10000158a
mov rcx, qword [0x100004770]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x1000046f8], rsi
mov dword [0x100004768], esi
mov dword [0x1000046d4], esi
lea rax, [rsp + 0x20]
lock cmpxchg qword [0x100004700], rsi
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x1000015e0
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
jne 0x1000015d3
mov rcx, qword [rax + 8]
mov qword [rcx + 0x10], rax
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x20]
cmp rax, rcx
jne 0x1000015b8
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rsi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100002338
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x100004110]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x1000024ab
test eax, eax
jne 0x10000238f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000024b0
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1000024ab
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x1000024ab
and word [rax], 0
movzx ecx, word [rsp + 0x30]
cmp cx, 0x41
jb 0x1000023c0
cmp cx, 0x5a
jbe 0x1000023c9
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x1000023e4
cmp word [rsp + 0x32], 0x3a
jne 0x1000023e4
cmp word [rsp + 0x34], 0x5c
jne 0x1000024ab
lea rsi, [rsp + 0x34]
jmp 0x1000023e9
mov rsi, qword [rsp + 0x20]
cmp cx, 0x5c
jne 0x100002425
cmp word [rsp + 0x32], cx
jne 0x100002425
movzx edx, cx
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x1000024ab
lea rcx, [rax + 2]
mov dx, 0x5c
call sub.msvcrt.dll_wcschr
test rax, rax
mov rsi, rax
je 0x1000024ab
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100002444
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x1000024b0
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_CharPrevW]
cmp rax, rsi
mov rdi, rax
je 0x1000024ab
cmp word [rax], 0x5c
jne 0x1000024ab
cmp rax, rsi
jbe 0x1000024ab
and word [rdi], 0
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call sub.msvcrt.dll_wcsrchr
test rax, rax
mov rbp, rax
je 0x1000024ab
movzx ebx, word [rax + 2]
and word [rax + 2], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp + 2], bx
cmp eax, 0xffffffff
jne 0x1000024d9
cmp rbp, rsi
mov rdi, rbp
ja 0x100002467
cmp rdi, rsi
ja 0x100002500
mov eax, 0x7b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.100002a40
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test al, 0x10
jne 0x1000024a6
mov eax, 0x10b
jmp 0x1000024b0
cmp word [rdi + 2], 0
je 0x100002516
mov rcx, rdi
mov word [rdi], 0x5c
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000024e4
jmp 0x100002384
xor eax, eax
jmp 0x1000024b0
Function at 0x100002520
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x40
and dword [rsp + 0x30], 0
lea rax, [r11 - 0x18]
mov rbx, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rdi, r9
mov rbp, rdx
mov r12, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rsi, qword [rsp + 0x70]
mov r8d, dword [rsp + 0x30]
test eax, eax
mov dword [rsi], r8d
jne 0x1000025e4
test r8d, r8d
jne 0x10000257c
and qword [rbx], 0
jmp 0x1000025e4
mov rcx, qword [0x100004770]
add r8d, 4
xor edx, edx
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rbx], rax
jne 0x1000025a3
mov eax, 8
jmp 0x1000025e4
mov r9, rdi
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, eax
je 0x1000025d9
mov r8, qword [rbx]
mov rcx, qword [0x100004770]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000025e2
mov eax, dword [rsi]
add rax, qword [rbx]
xor ecx, ecx
mov dword [rax], ecx
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x1400010e0
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x140036080]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ecx, 0x186a0
call fcn.1400012b0
test eax, eax
je 0x140001288
lea rcx, [rsp + 0x170]
call fcn.140002f90
mov dword [rsp + 0x34], 0
jmp 0x140001140
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movsxd rax, dword [rsp + 0x34]
mov qword [rsp + 0x40], rax
lea rcx, [0x1400372a0]
call fcn.140007c70
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
jae 0x1400011ac
movsxd rax, dword [rsp + 0x34]
mov rdx, rax
lea rcx, [0x1400372a0]
call fcn.1400042d0
movsx eax, byte [rax]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add eax, 0xfc
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov byte [rsp + 0x30], al
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x170]
call fcn.1400044d0
jmp 0x140001136
lea rdx, [0x1400274c2]
lea rcx, [rsp + 0x190]
call fcn.140002ef0
lea r8, [rsp + 0x190]
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x1b0]
call fcn.1400024d0
lea rcx, [rsp + 0x190]
call fcn.140003da0
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, [0x1400274c8]
lea rcx, [rsp + 0x60]
call fcn.140002b20
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x60]
call fcn.140001420
lea rcx, [rsp + 0x60]
call fcn.1400063e0
lea rax, str.C:_Users_Public_main.exe
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x48]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x60]
call fcn.140004500
lea rcx, [rsp + 0x1b0]
call fcn.140003da0
lea rcx, [rsp + 0x170]
call fcn.140003da0
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140009e10
add rsp, 0x1e8
ret
Function at 0x140008410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x140008432
xor eax, eax
jmp 0x1400085d5
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x140008457
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400085e0
jmp 0x1400085d5
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.140005300
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x1400084ed
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140002710
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.140006e20
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140006430
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.140006b70
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400085c5
mov rcx, qword [rsp + 0x60]
call fcn.140005a80
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x14000858d
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.14001191c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x14000858b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x1400085d5
jmp 0x140008513
cmp qword [rsp + 0x20], 0
jbe 0x1400085c5
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.14001191c
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret

Function at 0x14000a4d0
Capabilities:
Parse pe header

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

Function at 0x140013e04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013c00
Function at 0x140019c08
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.14000a0e0
sub rsp, rax
mov rax, qword [0x140036080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140018574
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140019c57
mov rax, rbp
jmp 0x140019d5f
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 + 0x38400]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001ad28
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x38400]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140019d5b
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 0x140019d5b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001ad28
test rax, rax
js 0x140019d5b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140019d5b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019d4d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019d4d
cmp byte [rcx], 0xd
jne 0x140019d33
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140019d42
cmp byte [rcx + 1], 0xa
jne 0x140019d42
inc rcx
jmp 0x140019d42
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x364b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019d15
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140019d5f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009e10
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 0x140019f80
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140019f96
mov al, 1
jmp 0x140019ff6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140019fa7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140019ff4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001f144
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140019ff4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140019ff4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140019ff4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140019ff6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001a0c8
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, [0x140038400]
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 0x14001a11f
cmp word [rdx], r13w
jne 0x14001a11f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a124
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a249
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a26a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a15d
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a184
cmp r9, r8
jae 0x14001a194
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 0x14001a13e
jmp 0x14001a249
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 0x14001a23e
cmp dword [rsp + 0x80], esi
je 0x14001a23e
lea r8, [0x140038400]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a216
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a1e6
mov word [rbx], r13w
jmp 0x14001a246
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 0x14001a1f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a246
cmp word [rsp + 0x70], r13w
jne 0x14001a223
cmp rbx, r14
je 0x14001a1e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001ad30
cmp word [rsp + 0x70], r13w
je 0x14001a249
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, [0x140038400]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a243
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a249
Function at 0x14001e878
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 0x14001e8a8
xor eax, eax
jmp 0x14001e96b
mov rbp, rbx
cmp word [rax], si
je 0x14001e8cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001e8b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001e8b0
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.14001cf60
movsxd r14, eax
test eax, eax
jne 0x14001e90b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001e8a1
mov rcx, r14
call fcn.14001af94
mov rdi, rax
test rax, rax
jne 0x14001e924
xor ecx, ecx
call fcn.1400177f4
jmp 0x14001e900
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.14001cf60
test eax, eax
jne 0x14001e955
mov rcx, rdi
call fcn.1400177f4
jmp 0x14001e95f
xor ecx, ecx
call fcn.1400177f4
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 0x140021698
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.1400172b4
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 0x140021739
cmp ebx, dword [rsp + 0x30]
je 0x140021732
test esi, esi
je 0x140021732
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002170d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002171a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400216f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002171e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002173b
mov eax, 1
jmp 0x14002173b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret