joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140166a44
Capabilities:
Parse pe header

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

Function at 0x140169d4a
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, [0x1401e8f65]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140169da8
mov rdi, rax
lea rdx, [0x1401e8f86]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140169da8
mov rsi, rax
lea rdx, [0x1401e8f94]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140169da8
xor edi, edi
jmp 0x140169e2e
lea rcx, [0x1401e8f20]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140169e93
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140169e93
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140169e93
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140169e93
mov rsi, rax
lea rcx, [rbp - 0x30]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x140169e93
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rax
mov al, byte [0x140288be1]
push 0x18
pop rcx
push 8
pop rdx
call fcn.14001cc40
test rax, rax
je 0x140169ec7
mov rcx, rax
mov rax, qword [rbp - 0x20]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rcx], xmm0
xor eax, eax
lock cmpxchg qword [0x140288c30], rcx
je 0x140169e87
mov rsi, rax
mov qword [rbp - 0x30], rcx
call fcn.140110d3b
lea rcx, [rbp - 0x30]
call fcn.140002727
mov rcx, rsi
mov rax, rcx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rax, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_
lea rcx, [rbp - 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], 1
lea rax, [0x1401e8ef0]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.10_src_thread_parkerwindowsmod.rs
call fcn.14016c070
push 8
pop rcx
push 0x18
pop rdx
call fcn.14016be50
ud2
Function at 0x14016af20
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov r14, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401548b0
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x14016afab
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14016afde
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14016aff3
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x14016b013
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14001cc50
mov rcx, qword [r14]
mov rax, qword [rsp + 0x28]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x14016b013
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.14001cc50
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140009f20
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rcx, str.Checking_if_OS_is_modified
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
xor edx, edx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x14000a014
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov r8d, 0x32
lea rdx, str.__Failed_to_check_if_the_OS_is_modified__Error_31_
lea rcx, [rbp - 0x20]
call fcn.1400026b0
nop
lea rcx, [0x140051d00]
call fcn.14000a2d0
lea rdx, str._X_
call fcn.1400023d0
lea rcx, [0x140051d50]
call fcn.14000a2d0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.14000e090
mov rcx, rax
call fcn.14000bfa0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000a192
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009fff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1a8
call fcn.140014944
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
mov r8d, 4
lea rdx, str.WinDefend
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
xorps xmm0, xmm0
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
test rax, rax
jne 0x14000a0e4
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov r8d, 0x43
lea rdx, str.__The_OS_is_likely_modified__the__WinDefend__service_doesnt_exist_
call fcn.1400026b0
nop
lea rcx, [0x140051d40]
call fcn.14000a2d0
lea rdx, str.___
call fcn.1400023d0
lea rcx, [0x140051d50]
call fcn.14000a2d0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.14000e090
mov rcx, rax
call fcn.14000bfa0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000a189
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a0da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1ae
call fcn.140014944
jmp 0x14000a189
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov r8d, 0x1d
lea rdx, str.__The_OS_is_likely_unmodified
call fcn.1400026b0
nop
lea rcx, [0x140051cf0]
call fcn.14000a2d0
lea rdx, str.__
call fcn.1400023d0
lea rcx, [0x140051d50]
call fcn.14000a2d0
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0xf
cmova rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.14000e090
lea rcx, [0x140052500]
call fcn.14000bfa0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x14000a180
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a17b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a1a2
call fcn.140014944
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
call fcn.14001aa40
int3
call fcn.14001aa40
int3
call fcn.14001aa40
int3
Function at 0x140012578
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 0x1400125a6
xor eax, eax
jmp 0x14001268c
cmp qword [rcx + 0x68], 0
je 0x1400125b7
call fcn.14000b250
jmp 0x14001268c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400125ce
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400125d0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012602
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140039d50
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 0x140012686
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140012639
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 0x140012662
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140021e7c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140012686
cmp rsi, rbx
ja 0x140012640
test rsi, rsi
je 0x140012686
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140021e7c
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 0x140012d30
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 0x140012d6a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140012d6f
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 0x140012db8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003e790]
cmp byte [rcx + rax], 0
je 0x140012db8
dec r8
sub rdx, 1
jne 0x140012d9e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001582c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14001a55f
call fcn.1400210ec
mov dword [rax], 0x16
call fcn.14001aa20
xor eax, eax
jmp 0x14001a5f1
mov rdx, r9
mov rcx, r8
call fcn.14001a4c4
mov rbx, rax
test rax, rax
je 0x14001a5ee
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x14001a3f8]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001a5db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002107c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001a5c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001a5d1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140027680
jmp 0x14001a5ee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001a5eb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140024bac
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 0x140024c1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024c1b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024c1b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024c1b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024c1b
cmp dword [rcx + 0x84], 0xe
jbe 0x140024c1b
cmp dword [rcx + 0xf8], 0
je 0x140024c1b
mov ecx, ebx
call fcn.140024cc0
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.140024ab4
nop
cmp dword [rbp + 0x20], 0
jne 0x140024c7c
call fcn.14002884c
cmp eax, 1
jne 0x140024c6c
xor dl, dl
jmp 0x140024c76
call fcn.14003261c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140024c87
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024c90
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140024bac

Function at 0x140024d94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024bac
Function at 0x1400281b0
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 [0x140057050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140028215
test rax, rax
jne 0x140028203
lea r9, [0x140041d20]
lea r8, [0x140041d18]
lea rdx, [0x140041d20]
lea ecx, [rax + 0xa]
call fcn.140027d64
test rax, rax
je 0x140028215
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140039d10
jmp 0x14002822f
xor edx, edx
mov rcx, rbp
call fcn.1400284a0
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 0x14002dd20
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.1400152e0
sub rsp, rax
mov rax, qword [0x140051080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002b7cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002dd6f
mov rax, rbp
jmp 0x14002de7b
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 + 0x539e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002ef08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x539e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002de77
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 0x14002de77
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002ef08
test rax, rax
js 0x14002de77
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002de77
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002de69
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002de69
cmp byte [rcx], 0xd
jne 0x14002de4f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002de5e
cmp byte [rcx + 1], 0xa
jne 0x14002de5e
inc rcx
jmp 0x14002de5e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x514d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002de31
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002de7b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400148e0
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 0x14002e09c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002e0b2
mov al, 1
jmp 0x14002e11e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002e0c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002e11c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140032afc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002e11c
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 0x14002e11c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002e11c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002e11e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002e1f0
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, [0x1400539e0]
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 0x14002e246
cmp word [rdx], r9w
jne 0x14002e246
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14002e24b
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14002e3ca
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14002e395
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14002e293
cmp rcx, r8
jae 0x14002e2b3
cmp word [rcx], r9w
jne 0x14002e293
add rax, 4
mov edx, r9d
jmp 0x14002e296
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14002e268
jmp 0x14002e3ca
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 0x14002e38e
cmp dword [rsp + 0x80], edi
je 0x14002e38e
lea r9, [0x1400539e0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14002e368
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14002e31b
mov word [rbx], bp
jmp 0x14002e3c7
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 0x14002e336
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 0x14002e3c7
cmp word [rsp + 0x70], bp
jne 0x14002e374
cmp rbx, rsi
je 0x14002e313
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002ef10
cmp word [rsp + 0x70], bp
je 0x14002e3ca
mov word [rbx], 0xd
jmp 0x14002e3c7
mov rcx, r15
lea r9, [0x1400539e0]
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 0x14002e3c4
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002e3ca
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 0x1400320c4
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 0x1400320f4
xor eax, eax
jmp 0x1400321b7
mov rbp, rbx
cmp word [rax], si
je 0x140032119
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140032100
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400320fc
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.1400306ec
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14003215a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400320ed
call fcn.14002a1b0
mov rdi, rax
test rax, rax
jne 0x140032170
xor ecx, ecx
call fcn.140027680
jmp 0x14003214f
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.1400306ec
test eax, eax
jne 0x1400321a1
mov rcx, rdi
call fcn.140027680
jmp 0x1400321ab
xor ecx, ecx
call fcn.140027680
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 0x140034ff4
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 0x140035067
cmp word [rcx], si
je 0x140035067
lea rdx, [0x140043678]
call fcn.140038348
test eax, eax
je 0x140035067
lea rdx, [0x140043690]
mov rcx, rbx
call fcn.140038348
test eax, eax
jne 0x14003505d
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 0x140035084
mov eax, dword [rsp + 0x30]
jmp 0x140035096
mov rcx, rbx
call fcn.14002751c
jmp 0x140035096
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 0x140035088
xor eax, eax
jmp 0x140035096
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140035096
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 0x1400350a8
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.140027b08
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 0x14003514b
cmp edi, dword [rsp + 0x30]
je 0x140035144
test ebp, ebp
je 0x140035144
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140035120
sub dx, 0x61
cmp dx, 0x19
ja 0x14003512c
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14003510d
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140035130
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14003514d
mov eax, 1
jmp 0x14003514d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret