joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b5d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140129b78]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400b5de5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400b5e46
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400902a0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c90c0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400b5f01
sub ecx, 1
je 0x1400b5f74
sub ecx, 1
je 0x1400b5eb0
cmp ecx, 1
je 0x1400b5e93
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400cfe8c]
call fcn.1400902a0
jmp 0x1400b5f74
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400b5a80
test eax, eax
je 0x1400b5f74
jmp 0x1400b5e1a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400b5f74
sub rax, rsi
cmp rax, rbp
jae 0x1400b5f74
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140090420
jmp 0x1400b5f74
cmp r8d, 4
jle 0x1400b5f74
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400b5f74
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400901c0
mov esi, eax
test eax, eax
je 0x1400b5f53
mov edx, 5
mov rcx, rbx
call fcn.1400b6a40
mov eax, esi
jmp 0x1400b5e1a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14009eca0
mov rcx, r14
call fcn.14009ef80
test eax, eax
je 0x1400b5e18
mov edx, 5
mov rcx, rbx
call fcn.1400b6a40
mov eax, Ordinal_46
jmp 0x1400b5e1a
Function at 0x1400c8d10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c8d52
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c8d99
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c8df2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c8db0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c8e33
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14010afe2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14010afe3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c8e00
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c9f18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c9f62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c9f62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c9f62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c9f62
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c9f62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c9f64
xor al, al
add rsp, 0x28
ret
Function at 0x140148040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x1401f1080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb8]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x98]
mov ecx, eax
call fcn.14019e4fc
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
xor r8d, r8d
lea rdx, str..Translated
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x38]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0
jmp 0x140148140
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x30], eax
jae 0x1401481d2
mov rax, qword [rsp + 0x40]
add rax, 8
mov r9, rax
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0xa8]
lea rcx, [0x1401f50e8]
call fcn.140171040
lea rax, [0x1401f50e8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x88], rax
movzx eax, byte [rsp + 0xb0]
mov byte [rsp + 0x90], al
mov rax, qword [rsp + 0x40]
add rax, 0x14
mov qword [rsp + 0x40], rax
jmp 0x140148136
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14019dfd0
cmp qword [rsp + 0x50], 0
jne 0x1401481f9
mov qword [rsp + 0x78], 0
jmp 0x14014820c
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14019dfb0
add rsp, 0xd8
ret
Function at 0x1401482a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1401f1080]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x78], 0
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140148349
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x78]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x1401482ed
cmp dword [rsp + 0x30], 0
jge 0x14014836a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1401484d2
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
jmp 0x140148388
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x1401484bd
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x24]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140164050
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x18], 0x10
jb 0x140148405
mov dword [rsp + 0x34], 1
jmp 0x14014840d
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140148436
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
call fcn.1401a9104
test eax, eax
jne 0x1401484ab
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x68], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x80]
call fcn.140166640
mov rax, qword [rsp + 0x70]
jmp 0x1401484d2
lea rcx, [rsp + 0x80]
call fcn.140166640
jmp 0x14014837e
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14019dfb0
add rsp, 0xb8
ret
Function at 0x14014c720
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x1401f1080]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x290]
call fcn.140162fe0
test eax, eax
jne 0x14014c7b3
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x290]
call fcn.140166100
mov eax, dword [rsp + 0x20]
jmp 0x14014c7e0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14014c782
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x290]
call fcn.140166100
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14019dfb0
add rsp, 0x280
pop rdi
ret

Function at 0x14014d090
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
jmp 0x14014d0d2
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
add rcx, rax
mov rax, rcx
cmp qword [rsp], rax
jae 0x14014d140
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x20], rax
jb 0x14014d13e
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp]
add eax, dword [rcx + 8]
mov eax, eax
cmp qword [rsp + 0x20], rax
jae 0x14014d13e
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x20]
sub rdx, rcx
mov rcx, rdx
add rax, rcx
jmp 0x14014d142
jmp 0x14014d0c6
xor eax, eax
add rsp, 0x18
ret

Function at 0x14014d1c0
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov dword [rsp], 0
jmp 0x14014d204
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x14014d23f
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x28], eax
jb 0x14014d23d
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 8]
cmp dword [rsp + 0x28], eax
jae 0x14014d23d
mov rax, qword [rsp + 8]
jmp 0x14014d241
jmp 0x14014d1ee
xor eax, eax
add rsp, 0x18
ret
Function at 0x14014d610
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
jmp 0x14014d65d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jge 0x14014d6f8
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jae 0x14014d690
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x24], eax
jmp 0x14014d69c
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x14014d6ad
jmp 0x14014d645
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x28]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.14014ca00
jmp 0x14014d645
mov al, 1
add rsp, 0x58
ret
Function at 0x14014e4a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x1401f1080]
xor rax, rsp
mov qword [rsp + 0xe8], rax
lea rax, [0x1401dfaa8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp byte [rax + rcx], 0
jne 0x14014e4d4
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x50]
lea r8, [0x1401dfaa8]
xor edx, edx
mov rcx, qword [rsp + 0x100]
call fcn.140167030
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
lea rax, str.cmd.exe
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 0x10
jb 0x14014e58a
mov dword [rsp + 0x24], 1
jmp 0x14014e592
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14014e5bb
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x14014e621
mov edx, 0xffffffff
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x100]
call fcn.140166640
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.14019dfb0
add rsp, 0xf0
pop rdi
ret
Function at 0x140174500
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, rcx
add rcx, 0x18
call fcn.14015ffc0
mov rax, qword [r14 + 0x38]
lea rcx, [r14 + 0x18]
mov ebx, dword [rax + 0x50]
call fcn.140165630
mov rdi, qword [r14 + 0x20]
mov rsi, rax
mov rdx, qword [r14 + 0x18]
mov rcx, rdi
sub rcx, rdx
cmp rbx, rcx
jae 0x140174565
add rbx, rdx
lea rcx, [r14 + 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.14016ceb0
mov rdx, qword [r14 + 0x20]
mov r8, rsi
mov rcx, rbx
call fcn.14016ceb0
mov qword [r14 + 0x20], rbx
jmp 0x1401745a2
jbe 0x1401745a2
mov rax, qword [r14 + 0x28]
sub rax, rdx
cmp rbx, rax
jbe 0x140174581
mov rdx, rbx
lea rcx, [r14 + 0x18]
call fcn.140174a20
jmp 0x1401745a2
sub rbx, rcx
mov rcx, rdi
mov rdx, rbx
call fcn.140174ad0
mov r8, rdi
mov qword [r14 + 0x20], rax
mov rdx, rdi
lea rcx, [r14 + 0x18]
call fcn.14016ceb0
mov rax, qword [r14 + 0x18]
lea rdx, [r14 + 0x18]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.140145900
mov rax, qword [r14 + 0x38]
lea rcx, [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov rdx, r14
mov esi, dword [rax + 0x54]
mov rax, qword [r14]
mov qword [rsp + 0x28], rax
call fcn.140145900
test esi, esi
je 0x140174602
mov rcx, qword [rsp + 0x28]
call fcn.140160430
mov rcx, rbx
mov rdi, rax
call fcn.140160430
lea rdx, [rdi + rsi]
mov r8, rax
mov rcx, rdi
call fcn.140172780
mov rax, qword [r14 + 0x38]
xor esi, esi
cmp si, word [rax + 6]
jae 0x1401746b7
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], r12
mov r12d, esi
nop
mov rdi, qword [r14 + 0x40]
lea rcx, [r14 + 0x18]
call fcn.14015ff90
mov rax, qword [r14 + 0x18]
lea rdx, [r14 + 0x18]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.140145900
mov rax, qword [r14]
lea rcx, [rsp + 0x20]
mov ebx, dword [rdi + r12 + 0xc]
mov rdx, r14
add rbx, qword [rsp + 0x28]
mov ebp, dword [rdi + r12 + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140145900
mov ecx, dword [rdi + r12 + 0x14]
add rcx, qword [rsp + 0x20]
test ebp, ebp
je 0x140174695
call fcn.140160430
mov rcx, rbx
mov rdi, rax
call fcn.140160430
lea rdx, [rdi + rbp]
mov r8, rax
mov rcx, rdi
call fcn.140172780
mov rax, qword [r14 + 0x38]
inc rsi
add r12, 0x28
movzx ecx, word [rax + 6]
cmp rsi, rcx
jb 0x140174620
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140174b50
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret
Function at 0x140174cf8
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 0x140174d7c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401cf640]
cmp byte [rcx + rax], 0
je 0x140174d7c
dec r8
sub rdx, 1
jne 0x140174d62
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401750ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140174e0c
mov ebx, eax
test eax, eax
jne 0x14017511c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140175178
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14017516f
test al, 0x10
je 0x14017516f
bt eax, 0xa
jae 0x140175168
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140175190
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140175164
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140175188
test edi, edi
jne 0x14017516f
and dword [rsp + 0x3c], 0
jmp 0x140175174
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1401a89dc
int3

Function at 0x140193574
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14017df52
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14017df35
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14017df20

Function at 0x14019eeb4
Capabilities:
Parse pe header

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

Function at 0x1401a4bfc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401a49f8
Function at 0x1401a575c
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 0x1401a5793
call fcn.1401aa294
mov dword [rax], 0x16
call fcn.1401a9de8
xor eax, eax
jmp 0x1401a5821
mov rdx, r9
mov rcx, r8
call fcn.1401a56f8
mov rbx, rax
test rax, rax
je 0x1401a581e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401a5624]
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 0x1401a580b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401aa208
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401a57f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401a5801
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401b86bc
jmp 0x1401a581e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401a581b
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 0x1401b7bb0
Capabilities:
Get file size

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