joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400434cc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebp, ebp
mov rbx, rcx
lea edi, [rbp + 1]
cmp dword [rcx + 8], ebp
jne 0x1400434f9
mov rax, qword [rbx + 0x70]
cmp dword [rax + 8], 0
jle 0x140043597
mov rax, qword [rbx + 0x70]
xor esi, esi
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14004350b
mov rsi, qword [rcx]
mov rcx, qword [rsi]
lea rdx, [rsi + 0x10]
mov r8d, dword [rsi + 0xc]
lea r9, [rsp + 0x50]
mov ebp, dword [rsi + 8]
lea rax, [rcx + 0x38]
mov rcx, qword [rcx + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, eax
cmp eax, edi
jne 0x140043558
cmp dword [rbx + 8], 0
jne 0x1400435ae
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x70]
call fcn.140069510
mov rcx, rsi
call fcn.1401630c0
cmp dword [rbx + 8], 0
je 0x1400434eb
test r14d, r14d
jne 0x140043597
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140043585
mov rdx, qword [rbx + 0x50]
lea r9, [0x14004345c]
mov rcx, qword [rbx + 0x58]
xor edi, edi
mov r8, rbx
call fcn.14006e138
jmp 0x1400435b0
mov rcx, qword [rbx]
mov rdx, rbx
mov edi, 0xfffffffc
call fcn.140043338
jmp 0x1400435b0
cmp dword [rbx + 8], 0
jne 0x1400435ae
test ebp, ebp
je 0x1400435b0
mov rcx, qword [rbx]
mov rdx, rbx
call fcn.140043408
jmp 0x1400435b0
xor edi, edi
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1400435f8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx]
mov rbx, rdx
mov rcx, qword [rcx + 0x70]
call fcn.14006c8a0
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x70]
cmp dword [rax + 8], 1
jne 0x140043624
add rsp, 0x20
pop rbx
jmp fcn.1400434cc
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400437f4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx + 0x70]
mov rbx, rdx
call fcn.140069510
mov rcx, rax
call fcn.1401630c0
mov rax, qword [rbx + 0x70]
cmp dword [rax + 8], 0
jne 0x140043828
mov rcx, qword [rbx]
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140043408
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400434cc
Function at 0x14005ad7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
or ebx, 0xffffffff
mov rdi, rcx
mov edx, ebx
call fcn.14000b26c
mov r9, rax
lea r8, [0x1401d590c]
mov edx, 0xfffc
lea rcx, [0x140204124]
mov rbp, rax
call fcn.1400010e4
mov rcx, rdi
lea esi, [rax + 4]
mov dword [0x140204120], esi
call fcn.14000e31c
lea r8, [0x1401e0be8]
mov edx, ebx
mov rcx, rdi
call fcn.140044b9c
mov rcx, rdi
mov rbx, rax
call fcn.14000ee94
test rbx, rbx
je 0x14005ae45
lea ecx, [rsi + 8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.1400686a4
movsxd rdx, esi
mov r8, rbp
mov r9, rdx
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rax], rbx
call section..text
mov rcx, qword [rbx + 0x18]
call fcn.14006decc
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x14005ae3b
lea r9d, [rax + 1]
mov r8, rdi
lea rdx, [fcn.14005e794]
call fcn.1400687cc
jmp 0x14005ae76
mov rdx, rdi
call fcn.14005e794
jmp 0x14005ae76
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
lea rdx, [0x140204120]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call fcn.14000ee94
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140064184
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
add rcx, 0xb4
mov r10, r9
mov rdi, r8
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], eax
and dword [rbx + 0x1d0], eax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x1d8], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x1e0], rax
test r9, r9
je 0x1400641eb
cmp word [r10], 0x17
mov edx, 0x1c
mov r8, r10
lea r9d, [rdx - 0xc]
cmove r9d, edx
call section..text
mov rax, qword [rsp + 0x78]
mov r8, rdi
mov r9, qword [rsp + 0x70]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140063e8c

Function at 0x140064210
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
or edx, 0xffffffff
mov rcx, qword [rcx + 0x270]
mov edi, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbx + 0x2b8]
cmp qword [rax], 0
jbe 0x1400642e5
cmp qword [rbx + 0x268], 0
jne 0x1400642e5
cmp dword [rbx + 0x240], 0
je 0x1400642a4
mov rcx, qword [rbx + 0x2a8]
lea edx, [rdi + 0x13]
call fcn.140095600
mov rdx, qword [rbx + 0x2b8]
xor r9d, r9d
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400642e5
mov rdx, qword [rbx + 0x2b8]
cmp eax, dword [rdx]
jge 0x1400642cd
movsxd rcx, eax
add qword [rdx + 8], rcx
mov rax, qword [rbx + 0x2b8]
sub qword [rax], rcx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.1400686a4
xor edi, edi
mov dword [rax + 0x2c], 3
mov qword [rbx + 0x268], rax
mov qword [rbx + 0x260], rax
jmp 0x1400642e5
jne 0x1400642e5
and qword [rdx], 0
mov edi, 1
mov rcx, qword [rbx + 0x2b8]
cdqe
add qword [rcx + 8], rax
mov rcx, qword [rbx + 0x270]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1400656d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x58], 0
lea rax, [0x140214120]
and dword [rcx + 0x5c], 0
mov rbx, rcx
and dword [rcx + 0x23c], 0
and dword [rcx + 0x28c], 0
mov qword [rcx + 0x50], rdx
mov qword [rcx + 0x208], r8
mov qword [rcx + 0x228], r9
mov dword [rcx + 0x240], 1
mov rcx, qword [rcx + 0x250]
cmp rcx, rax
je 0x140065742
movsxd rdx, dword [rbx + 0x25c]
call fcn.140169874
test rax, rax
je 0x140065772
mov qword [rbx + 0x250], rax
mov eax, dword [rbx + 0x25c]
mov dword [rbx + 0x258], eax
and dword [rbx + 0x244], 0
lea r8, [rsp + 0x40]
and dword [rbx + 0x248], 0
mov edx, 0x8004667e
mov rcx, qword [rbx + 0x50]
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x830
lea rdx, str...microstackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.14006ddcc
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, 0xfe
call fcn.14015e4d8
int3

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x7c]
mov esi, 0x1c
cmp word [rdi], 0
mov rax, rdx
mov dword [rsp + 0x30], esi
je 0x140065862
cmp word [rdi], 0x17
lea ebx, [rsi - 0xc]
mov edx, ebx
mov r8, rdi
cmove edx, esi
mov rcx, rax
mov r9d, edx
call section..text
cmp word [rdi], 0x17
cmove ebx, esi
mov eax, ebx
jmp 0x140065875
mov rcx, qword [rcx + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp word [rcx + 0x7c], 0x17
mov dword [rsp + 0x20], 0x1c
jne 0x1400658b6
movzx ecx, word [rcx + 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x1400658ea
cmp word [rcx + 0x7c], 2
je 0x1400658aa
mov rcx, qword [rcx + 0x50]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x28], 0x17
jne 0x1400658e0
movzx ecx, word [rsp + 0x2a]
jmp 0x1400658ae
cmp word [rsp + 0x28], 2
je 0x1400658d9
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14015bde0
add rsp, 0x58
ret
Function at 0x140065a38
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
and dword [rax + 0x18], 0
mov r14d, edx
and dword [rax - 0x38], 0
xor edx, edx
and dword [rax - 0x34], 0
mov ebp, r9d
mov rsi, r8
mov dword [rax + 0x20], r9d
mov r15, rcx
xor r9d, r9d
lea ecx, [rdx + 0x30]
xor r8d, r8d
call fcn.1400686a4
mov r8, qword [rsp + 0xb0]
mov edx, 2
mov rcx, qword [rsp + 0xb8]
mov rbx, rax
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0xc0]
mov qword [rax + 0x20], r8
lea r8d, [rdx + 0xf]
mov qword [rax], rcx
movzx ecx, word [rsi]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140065ac6
mov rcx, rbx
call fcn.1401630c0
xor eax, eax
jmp 0x140065bef
cmp ebp, 1
jne 0x140065af5
lea r9, [rsp + 0xa8]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
lea r8d, [rbp + 3]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140065c03
cmp word [rsi], 0x17
jne 0x140065b25
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xa0]
mov rcx, rdi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140065c30
cmp word [rsi], 0x17
mov eax, 0x1c
mov rdx, rsi
mov rcx, rdi
lea r8d, [rax - 0xc]
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, rdi
test eax, eax
je 0x140065b54
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140065ab7
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov r9d, 4
and dword [rsp + 0x28], 0
mov edx, 0x9800000c
and qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAIoctl]
movzx ecx, word [rsi + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
and dword [rsp + 0x30], 0
lea rbp, [0x14000a824]
mov word [rbx + 0x18], ax
lea r8, [0x14006597c]
lea rax, [0x140065a1c]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], rbp
call fcn.14006353c
mov rsi, rax
test rax, rax
jne 0x140065bdb
mov rcx, rdi
jmp 0x140065b49
mov r9, rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call fcn.1400656d0
mov rax, rsi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x7f
xor ecx, ecx
call fcn.14006ddcc
mov ecx, 0xfd
call fcn.14015e4d8
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibAsyncUDPSocket.c
mov r9d, eax
mov r8d, 0x83
xor ecx, ecx
call fcn.14006ddcc
mov ecx, 0xfd
call fcn.14015e4d8
int3

Function at 0x140065c60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x50]
mov rbx, r8
lea r8, [rdx + 4]
mov edx, 4
mov r9d, edx
lea rcx, [rsp + 0x40]
call fcn.1400658fc
mov eax, dword [rbx + 4]
lea r9, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x44], eax
mov rcx, rdi
mov dword [rsp + 0x20], 8
lea r8d, [rdx + 0xc]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140065cb8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [rcx + 0x50]
mov edi, r8d
lea r8, [rdx + 8]
mov edx, reloc.WS2_32.dll_recv
mov r9d, edx
lea rcx, [rsp + 0x30]
call fcn.1400658fc
mov edx, 0x29
mov dword [rsp + 0x40], edi
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], reloc.WS2_32.dll_sendto
mov rcx, rbx
lea r8d, [rdx - 0x1d]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14015bde0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400660ac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x20
and qword [rax + 0x18], 0
xor ebx, ebx
mov rdi, rdx
test rcx, rcx
jne 0x1400660d6
xor eax, eax
jmp 0x140066193
mov rdx, rcx
lea r8, [0x1401dcbbc]
lea rcx, [rsp + 0x40]
call fcn.140163068
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x140066190
cmp qword [rdi], rbx
jne 0x140066153
xor edx, edx
mov rcx, r9
lea r8d, [rdx + 2]
call fcn.14015f00c
mov rcx, qword [rsp + 0x40]
call fcn.14015ea1c
mov rcx, qword [rsp + 0x40]
movsxd rsi, eax
mov eax, 0x400
cmp rsi, rax
cmova rsi, rax
xor r8d, r8d
xor edx, edx
call fcn.14015f00c
lea rcx, [rsi + 1]
call fcn.140164508
mov qword [rdi], rax
test rax, rax
jne 0x140066178
mov rcx, qword [rsp + 0x40]
call fcn.14015ec50
jmp 0x1400660cf
mov esi, 0x3ff
cmp rbx, rsi
jae 0x14006617f
mov rcx, qword [rdi]
mov r8, rsi
sub r8, rbx
mov edx, 1
call fcn.140164440
add rbx, rax
test rax, rax
je 0x14006617f
mov r9, qword [rsp + 0x40]
jmp 0x140066158
mov rcx, qword [rdi]
mov byte [rbx + rcx], 0
mov rcx, qword [rsp + 0x40]
call fcn.14015ec50
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400661a4
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov eax, dword [0x140202e0c]
inc eax
mov dword [0x140202e0c], eax
cmp eax, 1
jg 0x14006626d
xor edx, edx
xor ecx, ecx
call fcn.140138020
xor edx, edx
mov ecx, 0x200002
call fcn.140138020
xor edx, edx
lea ecx, [rdx + 2]
call fcn.140099870
xor edx, edx
lea ecx, [rdx + 0xc]
call fcn.140099870
xor edx, edx
lea ecx, [rdx + 4]
call fcn.140099870
xor edx, edx
lea ecx, [rdx + 8]
call fcn.140099870
lea rcx, str.ADVAPI32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14006626d
lea rdx, str.SystemFunction036
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140066264
mov edx, 0x40
lea rcx, [rsp + 0x20]
call rax
test al, al
je 0x140066264
movsd xmm2, qword [0x1401e42d0]
lea rcx, [rsp + 0x20]
mov edx, 0x40
call fcn.14009b0c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14015bde0
add rsp, 0x230
pop rbx
ret
Function at 0x140066a70
Capabilities:
Create udp socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
lea r9, [rax + 0x18]
xor edx, edx
mov rdi, r8
mov rbp, rcx
lea r8, [rax + 0x10]
lea ecx, [rdx + 0x50]
call fcn.1400686a4
mov rsi, qword [rsp + 0x78]
mov ecx, reloc.WS2_32.dll_getservbyport
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rbx
mov qword [rsi + 0x30], rdi
call fcn.140164508
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
lea edx, [r9 + 0x20]
call fcn.140068570
xor r8d, r8d
mov qword [rsi + 0x48], rax
mov qword [rax + 0x18], rsi
lea ecx, [r8 + 2]
mov edx, ecx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi + 0x38], rax
lea rcx, [rsi + 0x40]
mov r10, rax
xor r9d, r9d
lea rax, [0x140066980]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov edx, 0x28000017
mov rax, qword [rsi + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov rcx, r10
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rax, [0x140066a48]
mov rdx, rsi
mov rcx, rbp
mov qword [rsi + 0x10], rax
call fcn.140068ac0
mov rbx, qword [rsp + 0x70]
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400670c4
Capabilities:
Send data
Send data on socket
Set socket configuration

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 r14
sub rsp, 0x30
xor esi, esi
mov r14, rdx
mov rdi, rcx
cmp dword [rcx + 0xa0], esi
jle 0x140067183
xor ebp, ebp
mov rax, qword [rdi + 0x38]
cmp qword [rax + rbp], 0
je 0x140067171
mov rax, qword [rdi + 0x28]
xor edx, edx
mov r9, qword [rdi + 0x98]
add r9, 4
movsxd rcx, esi
shl rcx, 4
mov rbx, qword [rax + 0x50]
lea r8d, [rdx + 9]
add r9, rcx
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov dword [rsp + 0x20], 4
lea r9, [rdi + 0x50]
mov rcx, rbx
lea r8d, [rdx + 0xa]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdx, [0x140204120]
mov qword [rsp + 0x20], r14
mov rcx, rbx
lea r8d, [r9 + 0x60]
call qword [sym.imp.WS2_32.dll_sendto]
inc esi
add rbp, 8
cmp esi, dword [rdi + 0xa0]
jl 0x1400670f3
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400671a0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0xb0], edi
jle 0x14006721f
mov rax, qword [rbx + 0xa8]
mov edx, 0x29
mov rcx, qword [rbx + 0x30]
movsxd r8, edi
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx + 0x50]
lea r9, [rax + r8*4]
lea r8d, [rdx - 0x20]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x30]
lea rdx, [0x140204120]
xor r9d, r9d
mov dword [rsp + 0x28], 0x1c
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 0x50]
lea r8d, [r9 + 0x60]
call qword [sym.imp.WS2_32.dll_sendto]
inc edi
cmp edi, dword [rbx + 0xb0]
jl 0x1400671bf
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400676d4
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov bl, byte [0x1401d5458]
mov rsi, rcx
mov rbp, qword [rsp + 0x8c8]
mov r12d, 0x400
mov dword [rsp + 0x24], r8d
xor edi, edi
mov dword [rsp + 0x28], edx
mov r8d, r12d
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x41]
mov word [rsp + 0x20], r9w
mov r13d, edi
mov byte [rsp + 0x40], bl
call fcn.14015d410
mov r8d, r12d
mov byte [rsp + 0x450], bl
xor edx, edx
lea rcx, [rsp + 0x451]
call fcn.14015d410
lea r15, [rsp + 0x40]
mov r9d, r12d
mov r8, rsi
mov qword [rsp + 0x30], r15
lea edx, [r12 + 1]
lea rcx, [rsp + 0x40]
lea r14, [rsp + 0x450]
call fcn.14015ecbc
or rbx, 0xffffffffffffffff
mov rcx, rsi
mov qword [rbp], rdi
mov r12, rbp
mov byte [r14], dil
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x1400678c4
cmp word [rax + 0x10], 2
jne 0x1400677f3
cmp word [rax + 0x12], 4
jne 0x1400677f3
mov r15, qword [rax + 0x18]
mov rax, qword [r15]
test rax, rax
je 0x1400677ee
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.140067634
mov qword [r12], rax
test rax, rax
je 0x140067860
lea r12, [rax + 0x28]
add r15, 8
jmp 0x1400677bd
mov r15, qword [rsp + 0x30]
mov r8, qword [rsi]
mov r9d, 0x400
mov rcx, r14
lea edx, [r9 + 1]
call fcn.14015ecbc
cmp qword [rbp], rdi
jne 0x14006786e
mov rax, rbx
inc rax
cmp byte [r14 + rax], dil
jne 0x140067811
test rax, rax
je 0x140067867
mov r8, r14
mov rax, r15
sub r8, r15
movzx ecx, byte [rax]
movzx edx, byte [rax + r8]
sub ecx, edx
jne 0x14006783b
inc rax
test edx, edx
jne 0x140067828
test ecx, ecx
je 0x140067867
inc r13d
cmp r13d, 0x10
je 0x140067867
mov rsi, qword [rsp + 0x38]
mov rax, r15
mov r15, r14
mov qword [rsp + 0x30], r14
mov r14, rax
jmp 0x14006778c
mov edi, 8
jmp 0x1400678e1
mov edi, 0x2afb
jmp 0x1400678e1
cmp dword [rsp + 0x8c0], edi
je 0x1400678e1
inc rbx
cmp byte [r14 + rbx], dil
jne 0x140067877
lea rdx, [rbx + 1]
mov ecx, 1
call fcn.14016b750
mov rsi, rax
test rax, rax
jne 0x14006789b
mov rsi, rdi
jmp 0x1400678aa
mov r8, r14
lea rdx, [rbx + 1]
mov rcx, rax
call fcn.140162a04
mov rax, qword [rbp]
mov qword [rax + 0x18], rsi
mov rax, qword [rbp]
cmp qword [rax + 0x18], rdi
mov eax, 8
cmove edi, eax
jmp 0x1400678e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x1400678df
sub ecx, 1
je 0x140067914
sub ecx, 1
je 0x140067867
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.14015bde0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov edi, 0x2afa
jmp 0x1400678e1
Function at 0x140067f9c
Capabilities:
Get common file path

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 rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rbp + 0x170], rax
lea rax, [0x14006796c]
xor ebx, ebx
cmp dword [0x140202e88], ebx
lea rsi, str.getaddrinfo
mov qword [rsp + 0x28], rax
movzx r12d, cx
lea rax, str.getnameinfo
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rax
lea rax, [0x140067d60]
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x14006791c]
mov qword [rsp + 0x48], rax
je 0x140068035
lea r14, str.getaddrinfo
jmp 0x140068168
mov edx, 0x104
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r14, str.getaddrinfo
test eax, eax
je 0x14006815e
mov r15d, 0x10c
lea r8, [rbp + 0x60]
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.140162a04
lea r8, str.ws2_32
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.14016bf00
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1400680b3
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400680ae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
jne 0x14006810d
lea r8, [rbp + 0x60]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.140162a04
lea r8, str.wship6
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.14016bf00
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14006815e
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140068108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
je 0x14006815e
mov r15d, ebx
lea rsi, [rsp + 0x28]
mov rdx, qword [rsi - 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi], rax
test rax, rax
je 0x140068139
inc r15d
add rsi, 0x10
cmp r15d, 3
jl 0x140068115
jmp 0x140068145
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
je 0x14006815e
mov rax, qword [rsp + rbx + 0x28]
mov qword [rbx + r14 + 8], rax
add rbx, 0x10
cmp rbx, 0x30
jl 0x14006814a
mov dword [0x140202e88], 1
movzx eax, r12w
add rax, rax
mov rax, qword [r14 + rax*8 + 8]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14015bde0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret