joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016490
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xor r15d, r15d
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], r15
lea r8d, [r15 + 0x13]
lea rdx, str.enabling_power_plan
lea rcx, [rbp - 0x79]
call fcn.140001920
nop
xor r8d, r8d
lea rdx, [rbp - 0x79]
call fcn.140012800
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x140016530
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001652b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400166e6
call fcn.140022abc
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r14, 0xffffffffffffffff
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.140022af0
mov rbx, rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
lea rcx, [rbp + 0x17]
call fcn.140002af0
nop
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x59]
call fcn.140002c30
mov rdx, rax
call fcn.140015610
mov qword [rbp + 0xf], r15
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
lea r8, [rbp + 0xf]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerImportPowerScheme]
test eax, eax
jne 0x14001667d
lea rdx, str.Power_plan_loaded_successfully_from_resource._n
lea rcx, [0x140069060]
call fcn.140016710
mov rdx, qword [rbp + 0xf]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerSetActiveScheme]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rcx, qword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14001664c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016677
call fcn.140022abc
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140022a60
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14002994c
nop
lea rcx, [rbp + 0x17]
call fcn.1400032e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 1
lea rcx, [rbp - 0x79]
call fcn.1400034e0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.140001a20
nop
mov r8, rax
lea rdx, str.Failed_to_load_power_plan_from_resource._Error:
lea rcx, [rbp - 0x11]
call fcn.14000f880
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.140015380
lea rdx, [0x140065118]
lea rcx, [rbp - 0x39]
call fcn.1400249e8
nop
call fcn.14002994c
int3
Function at 0x140016f90
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, ecx
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001703f
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r8d, [rax + 0x21]
lea rdx, str.CreateToolhelp32Snapshot_failed.
lea rcx, [rsp + 0x20]
call fcn.140001920
nop
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x20]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400170dd
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400170d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017158
jmp 0x1400170d8
mov dword [rsp + 0x40], 0x1c
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x1400170e1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x15
lea rdx, str.Thread32First_failed.
lea rcx, [rsp + 0x20]
call fcn.140001920
nop
mov r8d, 1
lea rdx, [rsp + 0x20]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400170dd
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400170d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017152
call fcn.140022abc
xor eax, eax
jmp 0x140017133
cmp dword [rsp + 0x4c], esi
jne 0x1400170ff
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x140017113
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400170e1
jmp 0x140017125
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140022a60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.14002994c
int3
call fcn.14002994c
int3
Function at 0x1400175b0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, ecx
xor edx, edx
lea ecx, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001765f
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea r8d, [rax + 0x21]
lea rdx, str.CreateToolhelp32Snapshot_failed.
lea rcx, [rsp + 0x20]
call fcn.140001920
nop
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x20]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400176f9
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400176f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017775
jmp 0x1400176f4
mov dword [rsp + 0x40], 0x1c
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x140017700
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x15
lea rdx, str.Thread32First_failed.
lea rcx, [rsp + 0x20]
call fcn.140001920
nop
mov r8d, 1
lea rdx, [rsp + 0x20]
call fcn.140012800
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400176f9
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400176f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001776f
call fcn.140022abc
xor eax, eax
jmp 0x140017750
cmp dword [rsp + 0x4c], esi
jne 0x140017730
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140017730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140017700
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140022a60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.14002994c
int3
call fcn.14002994c
int3
Function at 0x140017ca0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov dword [rsp + 0x3c], 4
cmp qword [rdx + 0x18], 7
mov rbx, r8
mov rdi, rdx
mov dword [rsp + 0x38], ebp
jbe 0x140017cd9
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017d35
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x140017d03
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi + 0x18]
mov esi, dword [rsp + 0x38]
cmp rdx, 7
jbe 0x140017d78
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140017d73
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140017df0
mov rcx, r8
call fcn.140022abc
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140017dc2
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140017dbd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140017df0
mov rcx, r8
call fcn.140022abc
mov qword [rbx + 0x10], rbp
mov eax, esi
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140022a60
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
call fcn.14002994c
int3
Function at 0x140018790
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, r9
mov rax, r8
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x48], r12d
cmp qword [r8 + 0x18], 7
jbe 0x1400187f1
mov rax, qword [r8]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400189b9
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x140018829
mov rdx, qword [r15]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400189ae
cmp dword [rsp + 0x4c], 1
jne 0x1400189ae
xorps xmm0, xmm0
mov ebx, dword [rsp + 0x48]
movdqu xmmword [rsp + 0x50], xmm0
mov rsi, r12
mov qword [rsp + 0x60], r12
mov rdi, r12
cmp rbx, 2
jb 0x1400188ef
and rbx, 0xfffffffffffffffe
cmp rbx, 0x1000
jb 0x1400188b2
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1400189d8
call fcn.140022a80
test rax, rax
je 0x1400189de
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400188c7
test rbx, rbx
je 0x1400188c4
mov rcx, rbx
call fcn.140022a80
mov rdi, rax
jmp 0x1400188c7
mov rdi, r12
mov rbp, rdi
mov qword [rsp + 0x50], rdi
lea rsi, [rbx + rdi]
mov qword [rsp + 0x60], rsi
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.14004aa20
mov rbx, rsi
mov qword [rsp + 0x58], rbx
jmp 0x1400188f9
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
cmp qword [r15 + 0x18], 7
jbe 0x140018903
mov r15, qword [r15]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018974
sub rbx, rbp
sub rbx, 2
sar rbx, 1
mov rax, qword [r14 + 0x18]
cmp rbx, rax
ja 0x140018965
mov r15, r14
cmp rax, 7
jbe 0x140018949
mov r15, qword [r14]
mov qword [r14 + 0x10], rbx
add rbx, rbx
mov r8, rbx
mov rdx, rbp
mov rcx, r15
call fcn.14004a380
mov word [rbx + r15], r12w
jmp 0x140018974
mov r9, rbp
mov rdx, rbx
mov rcx, r14
call fcn.1400189f0
nop
test rdi, rdi
je 0x1400189ae
sub rsi, rdi
sar rsi, 1
add rsi, rsi
cmp rsi, 0x1000
jb 0x1400189a3
add rsi, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400189de
mov rdi, rcx
mov rdx, rsi
mov rcx, rdi
call fcn.140022abc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140022a60
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140001620
int3
call fcn.14002994c
int3
Function at 0x14001a310
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x14001a36a
mov r8d, 4
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14001a38b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140022a60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x14001a36a
mov eax, dword [rsp + 0x3c]
jmp 0x14001a36c

Function at 0x14001d050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x40
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14001d08b
lea r9, str.filename_null_
xor r8d, r8d
lea edx, [rsi + 4]
call fcn.14001d330
jmp 0x14001d1ae
mov qword [rsp + 0x60], rdi
call fcn.14001cee0
lea r8, [0x14005c7e8]
mov qword [rsp + 0x30], 0
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14002bdc4
test eax, eax
jne 0x14001d18e
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14001d18e
mov rcx, rbx
call fcn.14001cee0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14002c824
mov rcx, rdi
call fcn.14002ac7c
cmp eax, 0xffffffff
jne 0x14001d0f6
mov rcx, rdi
call fcn.14002e2b4
test eax, eax
jne 0x14001d171
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.14002c824
mov rcx, rdi
call fcn.140031ec4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rsi, rax
call fcn.14002c824
cmp rsi, 0xffffffffffffffff
jae 0x14001d171
test rsi, rsi
jne 0x14001d12c
lea edx, [rsi + 0xd]
jmp 0x14001d176
lea rcx, [rsi + 1]
call fcn.140022af0
mov r9, rdi
mov qword [rbx + 0x98], rax
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.14002c4ec
cmp rax, rsi
jne 0x14001d171
mov rax, qword [rbx + 0x98]
mov rcx, rbx
mov byte [rsi + rax], 0
call fcn.14001d4c0
mov rcx, rdi
call fcn.14002ab98
jmp 0x14001d1a9
mov edx, 5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.14001d330
mov rcx, rdi
call fcn.14002ab98
jmp 0x14001d1a9
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea r9, str.filename_s
mov rcx, rbx
lea edx, [r8 + 3]
call fcn.14001d330
mov rdi, qword [rsp + 0x60]
mov eax, dword [rbx + 0x6c]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140022a60
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x14001f650
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 0x14001f68a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001f68f
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 0x14001f6d8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004ea10]
cmp byte [rcx + rax], 0
je 0x14001f6d8
dec r8
sub rdx, 1
jne 0x14001f6be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140023830
Capabilities:
Parse pe header

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

Function at 0x14002a460
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 0x14002a2cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a2cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a2cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a2cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a2cb
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a2cb
cmp dword [rcx + 0xf8], 0
je 0x14002a2cb
mov ecx, ebx
call fcn.14002a37c
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.14002a158
nop
cmp dword [rbp + 0x20], 0
je 0x14002a319
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002a324
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002a25c
Function at 0x14002b4e8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400512a0]
mov rbp, rcx
call fcn.14003b3ac
xor edi, edi
test rax, rax
je 0x14002b5ce
mov ebx, edi
call fcn.14002defc
mov r14d, dword [rax]
call fcn.14002defc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14003b2f8
mov rsi, rax
test rax, rax
je 0x14002b55f
call fcn.14002defc
mov dword [rax], r14d
jmp 0x14002b589
call fcn.14002defc
cmp dword [rax], 0x22
jne 0x14002b5c6
call fcn.14002defc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14003b2f8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14002b5c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14002b58d
cmp rax, 3
je 0x14002b5a8
mov rcx, rsi
call fcn.14002b444
test al, al
je 0x14002b5b9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14002b5b9
mov dil, 1
mov rcx, rbx
call fcn.14002c0c8
mov al, dil
jmp 0x14002b5d0
mov rcx, rbx
call fcn.14002c0c8
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140022a60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14002ca90
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 0x14002cac7
call fcn.14002defc
mov dword [rax], 0x16
call fcn.14002992c
xor eax, eax
jmp 0x14002cb55
mov rdx, r9
mov rcx, r8
call fcn.14002ca2c
mov rbx, rax
test rax, rax
je 0x14002cb52
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14002c958]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002cb3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002de70
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002cb26
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002cb35
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14003a7d8
jmp 0x14002cb52
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002cb4f
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 0x140031ce8
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.1400231d0
sub rsp, rax
mov rax, qword [0x140067080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003934c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140031d37
mov rax, rbp
jmp 0x140031e3f
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 + 0x6a0d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003db20
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6a0d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140031e3b
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 0x140031e3b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003db20
test rax, rax
js 0x140031e3b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140031e3b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140031e2d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140031e2d
cmp byte [rcx], 0xd
jne 0x140031e13
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140031e22
cmp byte [rcx + 1], 0xa
jne 0x140031e22
inc rcx
jmp 0x140031e22
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x674b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140031df5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140031e3f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140022a60
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 0x140039568
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003957e
mov al, 1
jmp 0x1400395de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003958f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400395dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003c5c0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400395dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400395dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400395dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400395de
xor al, al
add rsp, 0x20
pop rbx
ret