joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ea10
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x50], 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x14001ea7a
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
jmp 0x14001ebac
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call fcn.140060a10
lea rcx, [rbp - 0x70]
call fcn.14001f9f0
nop
mov rdx, qword [rsp + 0x58]
shr rdx, 0x14
lea rcx, [rbp - 0x70]
call fcn.140020550
mov rcx, rax
lea rdx, [0x14008f6e8]
call fcn.1400223e0
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 4
movups xmmword [rsp + 0x28], xmm0
mov rcx, qword [rbp + 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x14001eb06
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x14001eb06
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x14001eb37
test cl, 4
jne 0x14001eb2d
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001eb2d
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x14001eb37
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14001eb45
mov rcx, rbx
call fcn.1400173f0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.1400200b0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.1400357a8
nop
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140036840
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400246e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, r14d
bt esi, edi
jae 0x1400248e5
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov r8d, 2
lea rdx, [0x14008f9fc]
lea rcx, [rsp + 0x50]
call fcn.140001fa0
nop
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
add word [rax], di
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x1400248a7
mov dword [rsp + 0x70], 0x404
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x80]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x140024898
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140024800
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x28]
call fcn.140001fa0
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140024847
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x28], r14w
add qword [rbx + 8], 0x20
jmp 0x140024859
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.14000eb50
mov rdx, qword [rsp + 0x40]
cmp rdx, 7
jbe 0x1400248a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024891
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002491a
call fcn.140036bb4
jmp 0x1400248a7
mov edx, eax
lea rcx, str.____WNetGetConnection_failed_0x_X_n
call fcn.14001da70
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400248e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1400248e0
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024920
call fcn.140036bb4
inc edi
cmp edi, 0x1a
jb 0x140024742
mov rax, rbx
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140036840
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140046420
nop
call fcn.140046420
int3
Function at 0x140024ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x58
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r15d, r15d
mov qword [rsp + 0x28], rcx
cmp qword [r8 + 0x18], 7
mov rbx, r8
mov rsi, rcx
jbe 0x140024f11
mov r8, qword [r8]
mov edx, 0x65
lea rcx, str.____Get_resource_with_id__i_and_type__s..._n
call fcn.14001da70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140024f4e
lea rcx, str.____Failed_to_get_module_handle_n
call fcn.14001da70
mov qword [rsi], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
jmp 0x1400250a0
cmp qword [rbx + 0x18], 7
mov r8, rbx
mov qword [rsp + 0x88], rbp
jbe 0x140024f63
mov r8, qword [rbx]
mov edx, 0x65
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x140024f8c
cmp qword [rbx + 0x18], 7
jbe 0x140024f83
mov rbx, qword [rbx]
lea rcx, str.____Resource_with_id__i_and_type__s_not_found_n
jmp 0x140024fae
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140024fcb
cmp qword [rbx + 0x18], 7
jbe 0x140024fa7
mov rbx, qword [rbx]
lea rcx, str.____Failed_to_load_resource_with_id__i_and_type__s_n
mov edx, 0x65
mov r8, rbx
call fcn.14001da70
mov qword [rsi], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
jmp 0x140025098
mov rcx, rax
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
jne 0x14002500f
cmp qword [rbx + 0x18], 7
jbe 0x140024feb
mov rbx, qword [rbx]
lea rcx, str.____Failed_to_lock_resource_with_id__i_and_type__s_n
mov edx, 0x65
mov r8, rbx
call fcn.14001da70
mov qword [rsi], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
jmp 0x140025093
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x140025032
cmp qword [rbx + 0x18], 7
jbe 0x140025029
mov rbx, qword [rbx]
lea rcx, str.____Resource_with_id__i_and_type__s_has_size_0_n
jmp 0x140024ff2
xorps xmm0, xmm0
mov edx, eax
lea rcx, [rsp + 0x30]
mov edi, eax
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
call fcn.140012bd0
mov rbx, qword [rsp + 0x30]
mov r8d, edi
mov rcx, rbx
xor edx, edx
call fcn.140060a10
mov rcx, qword [rsp + 0x30]
lea rax, [rbx + rdi]
mov r8d, edi
mov qword [rsp + 0x38], rax
mov rdx, r14
call fcn.1400602d0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x88]
mov rax, rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036840
add rsp, 0x58
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x140032f40
Capabilities:
Encode data using base64 via winapi

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x40
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
lea rax, [rsp + 0x34]
mov edx, dword [rcx + 8]
mov rsi, rcx
sub edx, dword [rcx]
xor ebp, ebp
mov rcx, qword [rcx]
xor r9d, r9d
mov r8d, 0x40000001
mov dword [rsp + 0x34], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140033040
mov edx, dword [rsp + 0x34]
mov qword [rsp + 0x70], rdi
mov rdi, qword [rbx + 0x10]
cmp rdx, rdi
ja 0x140032fb5
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140032faf
mov rax, qword [rbx]
mov word [rax + rdx*2], bp
jmp 0x140033009
mov r9, qword [rbx + 0x18]
mov rcx, rdx
mov rax, r9
sub rcx, rdi
sub rax, rdi
cmp rcx, rax
ja 0x140032ff0
mov qword [rbx + 0x10], rdx
mov r8, rbx
cmp r9, 7
jbe 0x140032fda
mov r8, qword [rbx]
lea rdi, [r8 + rdi*2]
test rcx, rcx
je 0x140032fe9
movzx eax, bp
rep stosw word [rdi], ax
mov word [r8 + rdx*2], bp
jmp 0x140033009
movzx r8d, byte [rsp + 0x30]
mov r9, rcx
mov rdx, rcx
mov word [rsp + 0x20], bp
mov rcx, rbx
call fcn.14000a160
cmp qword [rbx + 0x18], 7
mov rdi, qword [rsp + 0x70]
jbe 0x140033018
mov rbx, qword [rbx]
mov edx, dword [rsi + 8]
lea rax, [rsp + 0x34]
sub edx, dword [rsi]
mov r9, rbx
mov rcx, qword [rsi]
mov r8d, 0x40000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
setne al
jmp 0x140033042
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140036840
add rsp, 0x40
pop rsi
pop rbp
pop rbx
ret
Function at 0x140033060
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov rsi, rdx
cmp qword [rcx + 0x18], 7
mov rbx, rcx
mov dword [rsp + 0x40], r14d
jbe 0x140033090
mov rcx, qword [rcx]
mov edx, dword [rbx + 0x10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], r14
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140033167
mov rdx, qword [rsi]
mov qword [rsp + 0x80], rbp
mov rbp, qword [rsi + 8]
mov rcx, rbp
mov qword [rsp + 0x88], rdi
mov edi, dword [rsp + 0x40]
sub rcx, rdx
cmp rdi, rcx
jae 0x1400330ea
lea rax, [rdx + rdi]
jmp 0x140033119
jbe 0x14003311d
mov rax, qword [rsi + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x140033105
mov rdx, rdi
mov rcx, rsi
call fcn.140033fb0
jmp 0x14003311d
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.140060a10
lea rax, [rdi + rbp]
mov qword [rsi + 8], rax
cmp qword [rbx + 0x18], 7
mov edx, dword [rbx + 0x10]
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
jbe 0x14003313a
mov rbx, qword [rbx]
mov r9, qword [rsi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], r14
mov r8d, 1
mov qword [rsp + 0x28], r14
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
setne al
jmp 0x140033169
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140036840
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
Function at 0x140033590
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r13d, r13d
mov dword [rsp + 0x20], 0xf0000000
mov r14, r8
mov qword [rcx], r13
mov r15, rdx
mov qword [rcx + 8], r13
lea r12, [rcx + 8]
mov qword [rcx + 0x10], r13
lea rbp, [rcx + 0x10]
mov qword [rcx + 0x18], r13
xor r8d, r8d
xor edx, edx
mov r9d, 1
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140033702
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
mov dword [rsp + 0x48], 4
cmp rdx, r8
je 0x140033655
mov rcx, qword [rbx]
sub r8d, edx
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140033725
mov rcx, qword [r12]
lea r9, [rsp + 0x48]
lea r8, [rbx + 0x1c]
mov dword [rsp + 0x20], r13d
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x140033750
shr dword [rbx + 0x1c], 3
mov rdx, qword [r14]
mov r8, qword [r14 + 8]
cmp rdx, r8
je 0x1400336af
mov rcx, qword [rbx]
sub r8d, edx
mov qword [rsp + 0x28], rbp
xor r9d, r9d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14003377b
mov rcx, qword [rbp]
lea r9, [rsp + 0x48]
lea r8, [rbx + 0x18]
mov dword [rsp + 0x20], r13d
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
test eax, eax
je 0x1400336d7
mov eax, dword [rbx + 0x18]
shr eax, 3
sub eax, 0xb
mov dword [rbx + 0x18], eax
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140036840
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.1400338d0
lea rdx, str.CryptGetKeyParam_for_public_key_failed
lea rcx, [rsp + 0x30]
call fcn.140001830
lea rdx, [0x14009ca50]
lea rcx, [rsp + 0x30]
call fcn.1400387d0
int3
lea rdx, str.CryptAcquireContext_failed
lea rcx, [rsp + 0x30]
call fcn.140001830
lea rdx, [0x14009ca50]
lea rcx, [rsp + 0x30]
call fcn.1400387d0
int3
mov rcx, rbx
call fcn.1400338d0
lea rdx, str.CryptImportKey_for_private_key_failed
lea rcx, [rsp + 0x30]
call fcn.140001830
lea rdx, [0x14009ca50]
lea rcx, [rsp + 0x30]
call fcn.1400387d0
int3
mov rcx, rbx
call fcn.1400338d0
lea rdx, str.CryptGetKeyParam_for_private_key_failed
lea rcx, [rsp + 0x30]
call fcn.140001830
lea rdx, [0x14009ca50]
lea rcx, [rsp + 0x30]
call fcn.1400387d0
int3
mov rcx, rbx
call fcn.1400338d0
lea rdx, str.CryptImportKey_for_public_key_failed
lea rcx, [rsp + 0x30]
call fcn.140001830
lea rdx, [0x14009ca50]
lea rcx, [rsp + 0x30]
call fcn.1400387d0
int3
Function at 0x140034100
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push r13
push r14
sub rsp, 0x80
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, r9
mov rbx, r8
mov r8d, dword [rdx + 8]
lea r9, [rsp + 0x38]
sub r8d, dword [rdx]
mov r14, rdx
mov rdx, qword [rdx]
mov r13, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140034261
mov r8, qword [r14 + 8]
mov rcx, qword [r14]
mov r9, r8
mov eax, dword [rsp + 0x38]
sub r9, rcx
cmp rax, r9
jne 0x140034261
mov qword [rsp + 0x78], rbp
mov rdx, rcx
xor ebp, ebp
test r9, r9
je 0x140034229
mov eax, dword [rsp + 0xc0]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r15
lea r12d, [rax + rax]
mov r15d, eax
nop
sub r8, rcx
lea rdi, [rcx + rbp]
sub r8, rbp
mov rsi, r15
cmp r8, r15
cmovb rsi, r8
test rsi, rsi
je 0x1400341fd
nop dword [rax]
mov rax, qword [rbx + 0x80]
cmp rax, 0x40
jb 0x1400341e6
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.140034940
xor eax, eax
mov qword [rbx + 0x80], 0
movzx eax, byte [rax + rbx + 0x40]
xor byte [rdi], al
inc rdi
inc qword [rbx + 0x80]
sub rsi, 1
jne 0x1400341c0
mov rdx, qword [r14]
add rbp, r12
mov r8, qword [r14 + 8]
mov rcx, rdx
mov rax, r8
sub rax, rdx
cmp rbp, rax
jb 0x1400341a0
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, qword [rsp + 0x30]
lea r9, [rsp + 0x3c]
sub r8d, ecx
mov qword [rsp + 0x20], rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, qword [rsp + 0x78]
test eax, eax
je 0x140034261
mov rcx, qword [r14 + 8]
sub rcx, qword [r14]
mov eax, dword [rsp + 0x3c]
cmp rax, rcx
jne 0x140034261
mov al, 1
jmp 0x140034263
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140036840
add rsp, 0x80
pop r14
pop r13
pop rbx
ret
Function at 0x140034b44
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 0x140034b7e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140034b83
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 0x140034bcc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400647a0]
cmp byte [rcx + rax], 0
je 0x140034bcc
dec r8
sub rdx, 1
jne 0x140034bb2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140037694
Capabilities:
Parse pe header

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

Function at 0x140046dec
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 0x140046e23
call fcn.14004605c
mov dword [rax], 0x16
call fcn.140046400
xor eax, eax
jmp 0x140046eb1
mov rdx, r9
mov rcx, r8
call fcn.140046d88
mov rbx, rax
test rax, rax
je 0x140046eae
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140046cb4]
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 0x140046e9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140045fd0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140046e82
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140046e91
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004cce4
jmp 0x140046eae
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140046eab
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 0x140048100
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140048120
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140045fd0
or eax, 0xffffffff
jmp 0x140048122
xor eax, eax
add rsp, 0x28
ret
Function at 0x140049d60
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 0x140049dcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140049dcf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140049dcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140049dcf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140049dcf
cmp dword [rcx + 0x84], 0xe
jbe 0x140049dcf
cmp dword [rcx + 0xf8], 0
je 0x140049dcf
mov ecx, ebx
call fcn.140049e80
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.140049c5c
nop
cmp dword [rbp + 0x20], 0
je 0x140049e1d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140049e28
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140049d60

Function at 0x140049f64
Capabilities:
Parse pe header

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

Function at 0x14004fea0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004feb6
mov al, 1
jmp 0x14004ff16
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004fec7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004ff14
mov ecx, dword [rcx + 0x18]
nop
call fcn.140057d44
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004ff14
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004ff14
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004ff14
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004ff16
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140052578
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.1400374e0
sub rsp, rax
mov rax, qword [0x14009f100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004f678
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400525c7
mov rax, rbp
jmp 0x1400526cf
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 + 0xa61f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400534c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa61f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400526cb
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 0x1400526cb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400534c4
test rax, rax
js 0x1400526cb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400526cb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400526bd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400526bd
cmp byte [rcx], 0xd
jne 0x1400526a3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400526b2
cmp byte [rcx + 1], 0xa
jne 0x1400526b2
inc rcx
jmp 0x1400526b2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x9f530]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140052685
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400526cf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140036840
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret