joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14071bfb0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140756978]
mov qword [rsp + 0x28], rax
test al, al
jne 0x14071bffc
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x20]
mov edx, dword [rsp + 0x20]
add edx, 0x78
xor edx, dword [rsp + rax*4 + 0x2c]
movsxd rax, dword [rsp + 0x20]
mov dword [rsp + rax*4 + 0x2c], edx
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cmp eax, 1
jb 0x14071bfd0
mov eax, dword [rsp + 0x2c]
lea rdx, reloc.WS2_32.dll_htonl
xor ecx, ecx
call qword [rdx + rax*8]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14071ca70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [r9 + 0x30]
mov r15, rcx
mov rcx, r9
mov rbx, r9
mov r14, r8
mov rbp, rdx
call rax
cmp eax, 0x38
jb 0x14071cbf1
xor r12d, r12d
lea r13, reloc.WS2_32.dll_htonl
nop dword [rax]
mov rax, qword [rbx + 0x30]
mov rcx, rbx
mov rsi, qword [r15 + 0x20]
call rax
mov r8, qword [rbx + 0x38]
xor edx, edx
mov rcx, rbx
mov edi, eax
call r8
mov edx, edi
mov rcx, rax
call rsi
mov edi, eax
cmp eax, 0xffffffff
je 0x14071cc08
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
call rdx
cmp eax, edi
jb 0x14071cbf1
mov rdx, qword [rbx + 0x30]
mov rcx, rbx
call rdx
cmp eax, edi
jb 0x14071cbdf
test rbp, rbp
je 0x14071cbdf
mov rax, qword [0x140756978]
mov qword [rsp + 0x78], rax
test al, al
jne 0x14071cb5c
mov dword [rsp + 0x60], r12d
mov eax, dword [rsp + 0x60]
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x60]
add edx, 0x78
xor edx, dword [rsp + rax*4 + 0x7c]
movsxd rax, dword [rsp + 0x60]
mov dword [rsp + rax*4 + 0x7c], edx
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x14071cb30
mov eax, dword [rsp + 0x7c]
xor edx, edx
mov r8d, gethostname
mov rcx, rbp
call qword [r13 + rax*8]
mov rax, qword [rbx + 0x30]
mov rcx, rbx
call rax
cmp eax, 0x38
jb 0x14071cbdf
mov r8d, gethostname
mov rdx, rbp
mov rcx, rbx
call qword [rbx + 0x20]
mov esi, dword [rbp + 0x28]
test esi, esi
je 0x14071cbce
cmp dword [rbp + 0x2c], r12d
jne 0x14071cbdf
mov rax, qword [rbx + 0x30]
mov rcx, rbx
call rax
cmp eax, esi
jb 0x14071cbf1
test r14, r14
je 0x14071cbdf
mov rax, qword [rbx + 0x38]
xor edx, edx
mov rdi, qword [r14 + 0x28]
mov rcx, rbx
call rax
mov rdx, rax
mov r8d, esi
mov rcx, r14
call rdi
mov edx, esi
mov rcx, rbx
call qword [rbx + 0x40]
mov rcx, qword [r15 + 0xa0]
mov r8, r14
mov rdx, rbp
call qword [r15 + 0x48]
mov rax, qword [rbx + 0x30]
mov rcx, rbx
call rax
cmp eax, 0x38
jae 0x14071cab0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xffffffff
jmp 0x14071cbf3
Function at 0x14071e3b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140756d11]
xor esi, esi
mov rbx, qword [0x140aa5088]
mov qword [rbp - 0x1f], rax
mov eax, dword [0x140756d19]
mov dword [rbp - 0x17], eax
movzx eax, byte [0x140756d1d]
mov byte [rbp - 0x13], al
mov byte [rbp - 0x20], 0
mov dword [rbp + 0x10], esi
mov eax, dword [rbp + 0x10]
nop dword [rax + rax]
movsxd rax, dword [rbp + 0x10]
mov edx, dword [rbp + 0x10]
add dl, 0x7a
xor dl, byte [rbp + rax - 0x1f]
movsxd rax, dword [rbp + 0x10]
mov byte [rbp + rax - 0x1f], dl
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
cmp eax, 0xd
jb 0x14071e400
mov rax, qword [0x140756d51]
mov r8, qword [0x140aa5098]
mov qword [rbp - 0x2f], rax
mov eax, dword [0x140756d59]
mov dword [rbp - 0x27], eax
movzx eax, byte [0x140756d5d]
mov byte [rbp - 0x23], al
mov byte [rbp - 0x20], 1
mov byte [rbp - 0x30], sil
mov dword [rbp + 0x10], esi
mov eax, dword [rbp + 0x10]
nop dword [rax]
movsxd rax, dword [rbp + 0x10]
mov edx, dword [rbp + 0x10]
add dl, 0x79
xor dl, byte [rbp + rax - 0x2f]
movsxd rax, dword [rbp + 0x10]
mov byte [rbp + rax - 0x2f], dl
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
cmp eax, 0xd
jb 0x14071e460
lea rcx, [rbp - 0x2f]
mov byte [rbp - 0x30], 1
call r8
lea rdx, [rbp - 0x1f]
mov rcx, rax
call rbx
mov rcx, qword [0x140756d31]
mov rbx, rax
mov rdi, qword [0x140aa5088]
mov qword [rbp - 0x3f], rcx
mov ecx, dword [0x140756d39]
mov dword [rbp - 0x37], ecx
mov byte [rbp - 0x40], sil
mov dword [rbp + 0x10], esi
mov ecx, dword [rbp + 0x10]
movsxd rcx, dword [rbp + 0x10]
mov edx, dword [rbp + 0x10]
movsxd rax, dword [rbp + 0x10]
add dl, 0x7b
xor dl, byte [rbp + rcx - 0x3f]
mov byte [rbp + rax - 0x3f], dl
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
cmp eax, 0xc
jb 0x14071e4c2
mov rax, qword [0x140756d41]
mov r8, qword [0x140aa5098]
mov qword [rbp - 0xf], rax
mov eax, dword [0x140756d49]
mov dword [rbp - 7], eax
movzx eax, byte [0x140756d4d]
mov byte [rbp - 3], al
mov byte [rbp - 0x40], 1
mov byte [rbp - 0x10], sil
mov dword [rbp + 0x10], esi
mov eax, dword [rbp + 0x10]
nop dword [rax + rax]
movsxd rax, dword [rbp + 0x10]
mov edx, dword [rbp + 0x10]
add dl, 0x7a
xor dl, byte [rbp + rax - 0xf]
movsxd rax, dword [rbp + 0x10]
mov byte [rbp + rax - 0xf], dl
mov eax, dword [rbp + 0x10]
inc eax
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
cmp eax, 0xd
jb 0x14071e520
lea rcx, [rbp - 0xf]
mov byte [rbp - 0x10], 1
call r8
lea rdx, [rbp - 0x3f]
mov rcx, rax
call rdi
mov edx, gethostname
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call rbx
mov rbx, rax
test rax, rax
je 0x14071e58b
lea rcx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14071eb80
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x28
mov edx, 0x18
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14071ed6d
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], rdi
mov qword [rax], 0xffffffffffffffff
call fcn.14071e3b0
xor r9d, r9d
mov qword [rbx + 8], rax
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x10], rax
xor edi, edi
mov rax, qword [0x140756cf0]
mov qword [rbp + 0x20], rax
test al, al
jne 0x14071ec26
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop word [rax + rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x79
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x14071ec00
mov eax, dword [rbp + 0x24]
lea rsi, [0x140000000]
mov rcx, qword [rbx + 8]
lea r8, [0x14071e630]
mov edx, 1
mov byte [rbp + 0x20], 1
call qword [rsi + rax*8 + 0xaa4520]
mov rax, qword [0x140756ca0]
mov qword [rbp + 0x20], rax
test al, al
jne 0x14071ec86
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7a
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x14071ec60
mov eax, dword [rbp + 0x24]
lea r8, [0x14071e890]
mov rcx, qword [rbx + 8]
mov edx, 2
mov byte [rbp + 0x20], 1
call qword [rsi + rax*8 + 0xaa4520]
mov rax, qword [0x140756cd8]
mov qword [rbp + 0x20], rax
test al, al
jne 0x14071ece6
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop dword [rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7b
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x14071ecc0
mov eax, dword [rbp + 0x24]
lea r8, [0x14071e9d0]
mov rcx, qword [rbx + 8]
mov edx, 3
mov byte [rbp + 0x20], 1
call qword [rsi + rax*8 + 0xaa4340]
mov rax, qword [0x140756cf0]
mov qword [rbp + 0x20], rax
test al, al
jne 0x14071ed46
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop dword [rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7b
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x14071ed20
mov eax, dword [rbp + 0x24]
lea r8, [0x14071eb50]
mov rcx, qword [rbx + 8]
mov edx, 5
call qword [rsi + rax*8 + 0xaa3fd0]
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop rbx
pop rbp
ret
Function at 0x14071f050
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbp, rdx
mov esi, r8d
mov edx, 0x48
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x14071f089
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [rbx + 0x18]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x48
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x14071f0cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x30]
mov eax, esi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x14071f0f0
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14075c4c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140756cf0]
xor r14d, r14d
mov dword [rsp + 0x78], r14d
mov ebp, r8d
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rdi, rcx
test al, al
jne 0x14071f16c
mov dword [rsp + 0x40], r14d
mov eax, dword [rsp + 0x40]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + 0x40]
add edx, 0x79
xor edx, dword [rsp + rax*4 + 0x4c]
movsxd rax, dword [rsp + 0x40]
mov dword [rsp + rax*4 + 0x4c], edx
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cmp eax, 1
jb 0x14071f140
mov eax, dword [rsp + 0x4c]
lea r9, [0x140aa3980]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call qword [r9 + rax*8]
xorps xmm0, xmm0
mov dword [rdi + 8], r14d
xor r9d, r9d
mov qword [rsp + 0x48], 0x1000
xor r8d, r8d
mov qword [rsp + 0x50], rbx
mov edx, 1
mov qword [rsp + 0x58], r14
xor ecx, ecx
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rdi]
lea r9, [rdi + 8]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov r8d, 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x14071f248
mov r9d, ebp
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x14071f221
cmp eax, 0x102
jne 0x14071f248
jmp 0x14071f240
mov rcx, qword [rdi]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rdi + 8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14071f258
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140743ce0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140720080
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x28
mov edx, 0x48
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14072026d
mov rcx, qword [0x140756cd8]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [rbp + 0x20], rcx
test cl, cl
jne 0x1407200f6
mov dword [rbp + 0x18], edi
mov ecx, dword [rbp + 0x18]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7b
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x1407200d0
mov eax, dword [rbp + 0x24]
lea rsi, [0x140000000]
xor edx, edx
mov byte [rbp + 0x20], 1
mov r8d, 0x48
mov rcx, rbx
call qword [rsi + rax*8 + 0xaa39d0]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x10], rax
call fcn.14071e3b0
mov qword [rbx + 0x40], rax
mov rax, qword [0x140756cf0]
mov qword [rbp + 0x20], rax
test al, al
jne 0x140720186
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop word [rax + rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7b
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x140720160
mov eax, dword [rbp + 0x24]
lea r8, [fcn.14071ee00]
mov rcx, qword [rbx + 0x40]
mov edx, 1
mov byte [rbp + 0x20], 1
call qword [rsi + rax*8 + 0xaa3fd0]
mov rax, qword [0x140756c98]
mov qword [rbp + 0x20], rax
test al, al
jne 0x1407201e6
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop dword [rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7c
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x1407201c0
mov eax, dword [rbp + 0x24]
lea r8, [fcn.14071f050]
mov rcx, qword [rbx + 0x40]
mov edx, 2
mov byte [rbp + 0x20], 1
call qword [rsi + rax*8 + 0xaa3da0]
mov rax, qword [0x140756cd0]
mov qword [rbp + 0x20], rax
test al, al
jne 0x140720246
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop dword [rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7d
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x140720220
mov eax, dword [rbp + 0x24]
lea r8, [fcn.14071f0f0]
mov rcx, qword [rbx + 0x40]
mov edx, 3
call qword [rsi + rax*8 + 0xaa3da0]
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop rbx
pop rbp
ret
Function at 0x140721ae0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov eax, eax
mov esi, 0xffffffff
cmp rax, rsi
jne 0x140721b3b
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140721b26
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
cmp rax, rsi
jne 0x140721b3b
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov dword [rdi + 4], eax
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140721c80
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x140721cc3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.140725610
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140721cd0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x2d0], ebx
je 0x140721de3
lea r9, [rax + 8]
mov dword [rax + 8], 1
mov edx, 0xffff
mov dword [rax - 0x58], 4
lea r8d, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140721d49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt_SO_KEEPALIVE_1_failed_with_error__d_n
lea ecx, [rbx + 1]
call fcn.140725610
lea eax, [rbx + 1]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
imul eax, dword [rsi + 0x2d0], 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
mov r9d, ntohs
mov qword [rsp + 0x38], rbx
mov edx, 0x98000004
mov rcx, rdi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], eax
imul eax, dword [rsi + 0x2d8], 0x3e8
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140721de3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, dword [rsp + 0x60]
lea rdx, str.WSAIoctl_SIO_KEEPALIVE_VALS_1__lu__lu_failed_with_error__d_n
mov r8d, dword [rsp + 0x5c]
mov ecx, 1
mov dword [rsp + 0x20], eax
call fcn.140725610
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [0x140750814]
mov dword [rsp + 0x80], 1
call qword [sym.imp.WS2_32.dll_getprotobyname]
mov edx, 6
test rax, rax
je 0x140721e09
movsx edx, word [rax + 0x10]
lea r9, [rsp + 0x80]
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x98]
mov dword [rsp + 0x98], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
setne bl
test eax, eax
je 0x140721e6c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.140725610
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140721e80
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x38], rcx
mov qword [r11 + 8], rax
inc ecx
lea rax, [r11 + 8]
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x248
ret
Function at 0x140723f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call sub.msvcrt.dll__errno
xor ebp, ebp
xor r9d, r9d
mov r8d, ebx
mov dword [rax], ebp
mov rax, qword [rdi + 0x380]
mov rcx, qword [rdi + 0x3f8]
test rax, rax
je 0x140723fc1
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x140723fca
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
test ebx, ebx
js 0x140723fe5
jne 0x140723fe1
mov eax, 0xffffffff
jmp 0x140724009
mov eax, ebx
jmp 0x140724009
cmp edx, 0x2733
je 0x140724004
mov eax, 0xffffffff
cmp edx, 0x2714
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, ecx
jmp 0x140724009
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x380], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14072408b
call fcn.140722760
mov rdx, qword [rbx + 0x380]
xor r9d, r9d
mov rcx, qword [rbx + 0x3f8]
mov r8d, edi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
test eax, eax
je 0x14072407b
lea rax, [rdx + 0x10]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x1407240b5
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x1407240b5
mov rax, qword [rcx + 0x360]
test byte [rax + 0x2e], 1
je 0x1407240a5
mov ecx, dword [rcx + 0x3f8]
call sub.msvcrt.dll__write
jmp 0x1407240b5
mov rcx, qword [rcx + 0x3f8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14072410e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1407240f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1407240f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1407240f5
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140724109
or dword [rbx + 0x424], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
movsx edx, byte [rcx + 0x435]
mov rcx, qword [rcx]
jmp fcn.140738440
Function at 0x140737610
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
test byte [rdx + 0xc0], 4
mov rbx, rcx
jne 0x14073764b
mov edx, 0x5f
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x14073764b
mov r8d, 0x60
lea rdx, str.unknown
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140729630
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsx rax, byte [rcx + 0x435]
mov esi, 2
imul rbx, rax, 0x138
xor r8d, r8d
mov edx, esi
add rbx, qword [rcx]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2d8], rax
cmp rax, 0xffffffffffffffff
je 0x140738410
xor r8d, r8d
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2e0], rax
cmp rax, 0xffffffffffffffff
je 0x140738410
mov ecx, 0x7f000001
mov word [rbx + 0x2a8], si
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 0x2ac], eax
lea r8d, [rsi + 0xe]
xor eax, eax
lea rdx, [rbx + 0x2a8]
mov word [rbx + 0x2aa], ax
mov rcx, qword [rbx + 0x2d8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140738410
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x2d8]
lea rdx, [rbx + 0x2a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140738410
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_plat_pipe_create
mov ecx, 1
lea rdx, str._s:_failed_n
call fcn.140725610
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x38
movsxd rax, edx
xor r9d, r9d
imul rdx, rax, 0x138
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea r8d, [r9 + 1]
add rcx, rdx
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
lea rax, [rcx + 0x2a8]
mov rcx, qword [rcx + 0x2e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 1
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x1407384a0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1407384c3
add rsp, 0x1c8
ret
mov r8d, eax
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 1
call fcn.140725610
mov eax, 1
add rsp, 0x1c8
ret