joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180172a90
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
xor eax, eax
mov rbx, rcx
mov word [rsp + 0x38], ax
mov qword [r11 - 0x2e], rax
mov qword [r11 - 0x26], rax
mov qword [r11 - 0x1e], rax
mov word [rsp + 0x52], ax
lea rax, [r11 - 0x30]
mov qword [r11 - 0x48], rax
call fcn.180172c50
test eax, eax
je 0x180172c05
cmp word [rsp + 0x38], 2
mov rcx, qword [rbx + 0x198]
mov edi, 0x1c
mov r8d, edi
mov esi, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
cmove r8d, esi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x180172bf3
cmp word [rsp + 0x38], 2
mov rcx, qword [rbx + 0x198]
lea rdx, [rbx + 0x58]
cmove edi, esi
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], edi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x180172c2f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbx + 0x190]
mov r8, qword [rbx + 0x198]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
cmp eax, 2
je 0x180172bd7
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
je 0x180172bc2
mov rcx, qword [rbx + 0x198]
test eax, eax
jne 0x180172b97
mov eax, dword [rbx + 0x34]
mov r9d, dword [rbx + 0x30]
lea r8, [rbx + 0x3c]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x20], eax
call fcn.18015e500
test eax, eax
jne 0x180172bc2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], send
jmp 0x180172c15
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x20
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x180172c3a
mov eax, 1
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x1ac], 5
test eax, eax
cmove eax, ecx
jmp 0x180172c15
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], 4
jmp 0x180172c15
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x1ac], 3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.180127e80
int3
mov ecx, 0x80004005
call fcn.180127e80
int3
Function at 0x180172c50
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r9
movzx r14d, r8w
mov rbp, rdx
mov rdi, rcx
test r9, r9
je 0x180172c76
cmp word [r9], 0
jne 0x180172c85
mov eax, dword [rcx + 0x38]
cmp eax, 1
jne 0x180172cee
lea rsi, str.255.255.255.255
cmp dword [rcx + 0x38], 0xffffffff
mov qword [rsp + 0x80], rbx
je 0x180172cb7
mov rcx, rsi
call fcn.18015d2e0
lea r8, [rdi + 0x3c]
movzx edx, r14w
mov rcx, rsi
mov word [rdi + 0x3c], ax
call fcn.18015d3d0
test eax, eax
je 0x180172d73
test rbp, rbp
je 0x180172d10
cmp word [rbp], 0
je 0x180172d10
mov rcx, rbp
call fcn.18015d2e0
mov rbx, qword [rsp + 0xa0]
movzx edx, r14w
mov r8, rbx
mov rcx, rbp
mov word [rbx], ax
call fcn.18015d3d0
test eax, eax
jne 0x180172d3a
jmp 0x180172e30
test eax, eax
jne 0x180172c85
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
cmp dword [rdi + 0x38], 0xffffffff
je 0x180172d1c
movzx eax, word [rdi + 0x3c]
jmp 0x180172d21
mov eax, 2
mov rbx, qword [rsp + 0xa0]
movzx ecx, r14w
mov word [rbx], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
mov eax, dword [rdi + 0x38]
cmp eax, 1
jne 0x180172d5a
cmp word [rbx], 0x17
jne 0x180172d5a
mov ecx, 0x273b
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x180172e30
cmp eax, 0xffffffff
je 0x180172d7a
movzx eax, word [rbx]
cmp word [rdi + 0x3c], ax
je 0x180172d7a
mov ecx, 0x273f
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x180172e30
movzx ecx, word [rbx]
mov edx, 2
lea r8d, [rdx + 0xf]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi + 0x198], rax
cmp rax, 0xffffffffffffffff
je 0x180172d73
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8, [rsp + 0x98]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
lea r9d, [rdx + 4]
mov dword [rsp + 0x98], edx
mov qword [rsp + 0x20], rdx
mov rcx, rax
mov edx, 0x9800000c
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x180172def
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180172def
test eax, eax
jne 0x180172e49
mov rcx, qword [rdi + 0x198]
lea r8, [rsp + 0x98]
mov edx, 0x8004667e
mov dword [rsp + 0x98], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x180172e54
mov edx, dword [rdi + 0x10]
mov rcx, qword [rdi + 0x198]
call fcn.18015e030
test eax, eax
jne 0x180172e5f
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.180127e80
int3
mov ecx, 0x80004005
call fcn.180127e80
int3
mov ecx, 0x80004005
call fcn.180127e80
int3
Function at 0x180172e70
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rbp, rcx
mov esi, r14d
cmp dword [rcx + 0x14], r14d
jbe 0x180172f7e
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
nop word [rax + rax]
lea r8, [0x180173c40]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
call fcn.18017b9a4
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180172f61
lea rbx, [rbp + 0x1b0]
lea rcx, [rsp + 0x50]
mov rax, qword [rbx + 8]
cmp rcx, rax
jae 0x180172f1f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x180172f1f
lea rdi, [rsp + 0x50]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rbx + 0x10]
jne 0x180172f0a
mov rcx, rbx
call fcn.180162910
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x180172f39
mov rax, qword [rbx]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
jmp 0x180172f39
cmp rax, qword [rbx + 0x10]
jne 0x180172f2d
mov rcx, rbx
call fcn.180162910
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180172f39
mov qword [rcx], rdi
add qword [rbx + 8], 8
inc esi
cmp esi, dword [rbp + 0x14]
jb 0x180172ea0
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x1ac], 8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r14d
jmp 0x180172f4e
mov eax, 1
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret

Function at 0x180174670
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov rsi, rdx
mov rbx, rcx
lea r14, [rdx + 0x74]
lea rbp, [rdx + 0x58]
lea r12d, [r15 + 0x10]
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x90]
cmp word [rbp], 2
mov qword [rsp + 0x40], r15
mov dword [rsi + 0x30], eax
mov rcx, qword [rbx + 0x198]
mov qword [rsp + 0x38], r15
mov eax, 0x1c
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x80]
cmove eax, r12d
lea rdx, [rsi + 0x30]
mov r8d, 1
mov dword [r14], eax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x88], r15d
mov dword [rsp + 0x80], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x180174738
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x180174746
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x18017471f
mov dword [rsi + 0x30], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, rsi
mov rcx, rbx
call fcn.1801744d0
jmp 0x1801746a0
Function at 0x180174f20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
xor esi, esi
movzx ebp, r8w
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x180174f46
cmp word [rdx], si
jne 0x180174f4d
lea rdi, str.0.0.0.0
mov rcx, rdi
mov word [rsp + 0x50], si
call fcn.18015d2e0
mov r15d, reloc.WS2_32.dll_recv
mov word [rsp + 0x50], ax
lea r14d, [r15 + 0xc]
cmp ax, 2
je 0x180174fb3
cmp ax, 0x17
je 0x180174fae
mov ecx, 0x2741
call qword [sym.imp.WS2_32.dll_WSASetLastError]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x16c], 3
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, r14d
jmp 0x180174fb6
mov ecx, r15d
movzx edx, ax
lea rax, [rsp + 0xa8]
mov dword [rsp + 0xa8], ecx
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
test eax, eax
jne 0x180174f80
test bp, bp
je 0x180174ff5
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
movzx eax, word [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 0xf]
mov ecx, eax
mov word [rbx + 0x148], ax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x158], rax
cmp rax, 0xffffffffffffffff
je 0x180174f80
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0xa8]
mov r9d, 4
mov rcx, rax
mov edx, 0x9800000c
mov dword [rsp + 0x28], esi
mov dword [rsp + 0xa8], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x180175080
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180175080
test eax, eax
jne 0x180175146
mov edx, dword [rbx + 8]
mov rcx, qword [rbx + 0x158]
call fcn.18015e030
test eax, eax
jne 0x180175151
mov rcx, qword [rbx + 0x158]
lea r8, [rsp + 0xa8]
mov edx, 0x8004667e
mov dword [rsp + 0xa8], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x18017515c
cmp word [rsp + 0x50], 2
mov rcx, qword [rbx + 0x158]
lea rdx, [rsp + 0x50]
cmove r14d, r15d
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x180175131
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x158]
mov rcx, rbx
call qword [rax + 0x1c8]
cmp eax, 2
je 0x180175112
mov esi, 1
jmp 0x180174f98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c7
mov dword [rbx + 0x16c], 5
test eax, eax
cmove eax, ecx
jmp 0x180174f90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0x16c], 4
jmp 0x180174f90
mov ecx, 0x80004005
call fcn.180127e80
int3
mov ecx, 0x80004005
call fcn.180127e80
int3
mov ecx, 0x80004005
call fcn.180127e80
int3
Function at 0x180175170
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rbp, rcx
mov esi, r14d
cmp dword [rcx + 0x18], r14d
jbe 0x18017527e
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
nop word [rax + rax]
lea r8, [0x180176b10]
mov r9, rbp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
call fcn.18017b9a4
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x180175261
lea rbx, [rbp + 0x170]
lea rcx, [rsp + 0x50]
mov rax, qword [rbx + 8]
cmp rcx, rax
jae 0x18017521f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x18017521f
lea rdi, [rsp + 0x50]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rbx + 0x10]
jne 0x18017520a
mov rcx, rbx
call fcn.180162910
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x180175239
mov rax, qword [rbx]
mov rcx, qword [rax + rdi*8]
mov qword [rdx], rcx
jmp 0x180175239
cmp rax, qword [rbx + 0x10]
jne 0x18017522d
mov rcx, rbx
call fcn.180162910
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180175239
mov qword [rcx], rdi
add qword [rbx + 8], 8
inc esi
cmp esi, dword [rbp + 0x18]
jb 0x1801751a0
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x16c], 8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r14d
jmp 0x18017524e
mov eax, 1
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180175510
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r14, rcx
cmp qword [rcx + 0x158], 0xffffffffffffffff
je 0x180175700
xor ebp, ebp
mov dword [rax + 8], ebp
lea r8, [rax + 8]
lea rdx, [rax + 0x10]
add rcx, 0x1e0
call fcn.180167770
nop
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x1801756ee
mov ebx, ebp
mov edi, eax
lea r15d, [rbp + 0x10]
nop dword [rax]
mov rax, qword [rsp + 0xa8]
mov rax, qword [rbx + rax]
mov r9, qword [r14 + 0x1e8]
test r9, r9
je 0x1801755f8
dec rax
mov ecx, dword [r14 + 0x1e0]
xor edx, edx
div rcx
mov rcx, qword [r14 + 0x228]
movzx r8d, byte [rdx + rcx]
cmp rax, r8
jne 0x1801755f8
mov rdx, qword [r9 + rdx*8]
mov eax, ebp
cmp rdx, 0xf
seta al
cmp eax, 1
jne 0x1801755f8
test rdx, rdx
je 0x1801755f8
cmp dword [rdx + 0x48], 0
je 0x1801755f8
add rdx, r15
mov eax, 0x1c
cmp word [rdx], 2
cmove eax, r15d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8d, r15d
lea rdx, [0x180220d20]
mov rcx, qword [r14 + 0x158]
call qword [sym.imp.WS2_32.dll_sendto]
add rbx, 8
dec rdi
jne 0x180175570
mov rax, qword [0x18026e2e0]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.WINMM.dll_timeGetTime]
mov edi, eax
mov ebx, 1
cmp edi, 0xffffffff
je 0x180175641
call qword [sym.imp.WINMM.dll_timeGetTime]
mov r9d, edi
sub r9d, eax
add r9d, 0x1e
test r9d, r9d
jle 0x1801756d7
jmp 0x180175645
or r9d, 0xffffffff
mov dword [rsp + 0x20], 0x4ff
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov ecx, ebx
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
jne 0x1801756b6
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x180175621
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x180175680
jmp 0x180175621
test eax, eax
je 0x1801756d9
cmp eax, 0x102
je 0x1801756d7
mov ecx, 0x80004005
cmp eax, 0xffffffff
je 0x1801756d1
call fcn.180127e80
int3
call fcn.180127e80
int3
mov ebx, ebp
test ebx, ebx
sete bpl
test ebp, ebp
jne 0x1801756ee
mov ecx, 0x80004005
call fcn.180127e80
nop
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x180175700
call fcn.180179550
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180175f60
Capabilities:
Send data
Send data on socket

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov ebp, r9d
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
cmp dword [rsp + 0x78], 0
je 0x180175fcf
mov rcx, qword [rcx + 0x158]
cmp rcx, 0xffffffffffffffff
je 0x180175fcf
lea r10, [rdx + 0x10]
mov eax, 0x1c
mov r8d, reloc.WS2_32.dll_recv
cmp word [r10], 2
cmove eax, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r10
xor r9d, r9d
lea rdx, [0x180220d20]
call qword [sym.imp.WS2_32.dll_sendto]
cmp ebx, 1
jne 0x18017600a
lea rbx, [rsi + 0x80]
mov qword [rsp + 0x38], rbx
mov rcx, rbx
call fcn.18012ca10
nop
mov rax, qword [rdi]
xor r9d, r9d
lea r8d, [r9 + 5]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0x1f8]
nop
mov rcx, rbx
call fcn.18012cba0
jmp 0x180176022
cmp ebx, 2
jne 0x180176022
mov r9d, dword [rsp + 0x70]
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call fcn.180174ae0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x1e8]
mov rdi, r9
mov rsi, r8
mov r11, rcx
test rbx, rbx
je 0x1801760ec
mov r10d, dword [rcx + 0x1e0]
mov rcx, qword [rcx + 0x228]
lea rax, [rdx - 1]
xor edx, edx
div r10
movzx r8d, byte [rcx + rdx]
cmp rax, r8
jne 0x1801760ec
mov rcx, qword [rbx + rdx*8]
xor eax, eax
cmp rcx, 0xf
seta al
cmp eax, 1
jne 0x1801760ec
test rcx, rcx
je 0x1801760ec
cmp dword [rcx + 0x48], 0
je 0x1801760ec
mov r9, qword [rsp + 0x60]
mov rcx, qword [r11 + 0x158]
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x60], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.18015dcb0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x180177070
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rbp, rdx
mov rsi, rcx
lea rbx, [rcx + 0x1b0]
mov qword [rsp + 0x78], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
add rbp, 0x58
mov rdx, rbp
mov rcx, rsi
call fcn.180175ef0
mov rdi, rax
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x18017711d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x58]
test eax, eax
je 0x18017711b
lea rcx, [rsi + 0x1e0]
lea r8, [rsp + 0x70]
call fcn.180167b00
test eax, eax
jne 0x18017712b
mov eax, 0x1c
mov r8d, reloc.WS2_32.dll_recv
cmp word [rbp], 2
cmove eax, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [0x180220d20]
mov rcx, qword [rsi + 0x158]
call qword [sym.imp.WS2_32.dll_sendto]
xor edi, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1801771ad
mov rdi, qword [rsp + 0x70]
mov rdx, rdi
mov rcx, rsi
call fcn.180175970
mov r14, rax
lea rcx, [rax + 0x80]
call fcn.18012ca10
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.180175cf0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8, qword [rsi]
mov rdx, r14
mov rcx, rsi
call qword [r8 + 0x1d0]
cmp eax, 2
jne 0x1801771a1
mov dword [rsp + 0x28], 1
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.180175b20
lea rcx, [r14 + 0x80]
call fcn.18012cba0
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180177ca0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
push rdi
push r12
push r15
sub rsp, 0x70
xor r12d, r12d
mov rdi, rdx
mov r15, rcx
cmp dword [rdx + 0xd0], r12d
jle 0x180177e35
mov qword [rax + 8], rbx
mov qword [rax - 0x20], rbp
mov qword [rax - 0x28], rsi
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r14
lea r14, [rdx + 0x10]
lea r13d, [r12 + 0x10]
nop
mov rbx, qword [rdi + 0xd8]
cmp rbx, qword [rdi + 0xe0]
je 0x180177d01
mov rax, qword [rbx + 0x48]
mov qword [rdi + 0xd8], rax
mov qword [rax + 0x50], r12
jmp 0x180177d14
test rbx, rbx
je 0x180177d27
mov qword [rdi + 0xd8], r12
mov qword [rdi + 0xe0], r12
test rbx, rbx
je 0x180177d27
mov qword [rbx + 0x48], r12
mov qword [rbx + 0x50], r12
dec dword [rdi + 0xd0]
lea rbp, [rbx + 0x58]
cmp r14, rbp
je 0x180177d4c
cmp word [r14], 2
mov eax, 0x1c
mov rdx, r14
cmove eax, r13d
mov rcx, rbp
movsxd r8, eax
call fcn.18017dd20
mov eax, dword [rbx + 0x30]
lea rdx, [rbx + 0x30]
sub dword [rdi + 0x58], eax
lock xadd dword [rdi + 0x5c], eax
mov rcx, qword [r15 + 0x158]
cmp word [rbp], 2
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov eax, 0x1c
mov dword [rsp + 0x98], r12d
cmove eax, r13d
mov dword [rbx + 0x28], 3
lea r9, [rsp + 0x98]
mov dword [rbx + 0x74], eax
mov eax, dword [rbx + 0x74]
mov r8d, 1
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbp
mov esi, r12d
mov dword [rsp + 0x20], r12d
mov dword [rbx + 0x44], 2
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x180177dc8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lock dec dword [rbx + 0x44]
je 0x180177dda
test esi, esi
je 0x180177e00
cmp esi, 0x3e5
je 0x180177dfc
lea rcx, [r15 + 0x78]
mov rdx, rbx
call fcn.180126a20
test eax, eax
jne 0x180177dfc
mov rcx, qword [rbx + 0x20]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x180177e0d
cmp dword [rdi + 0xd0], r12d
jg 0x180177ce0
mov r13, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x70
pop r15
pop r12
pop rdi
ret
mov eax, r12d
add rsp, 0x70
pop r15
pop r12
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rsi, r8
mov rdi, rcx
mov ebx, 1
call qword [rax + 0x58]
test eax, eax
jne 0x180177e88
xor ebx, ebx
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp word [rsi + 0x10], 2
lea rcx, [rsi + 0x10]
mov eax, 0x1c
mov edx, reloc.WS2_32.dll_recv
cmove eax, edx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x158]
xor edx, edx
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x180177e76
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180177e76
mov rax, qword [rdi]
mov rcx, rdi
xor ebx, ebx
call qword [rax + 0x58]
test eax, eax
je 0x180177e76
mov ecx, 0x80004005
call fcn.180127e80
int3
Function at 0x180177ff0
Capabilities:
Encode data using xor
Hash data using fnv

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, 0x20
mov rsi, qword [r8]
xor r8d, r8d
mov r12d, 0x1c
cmp word [rsi], 2
mov r13d, 8
mov r9d, r12d
cmove r9d, r13d
mov r14, rdx
mov rdi, rcx
mov eax, 0x811c9dc5
test r9, r9
jle 0x180178057
nop dword [rax]
movzx ecx, byte [r8 + rsi]
imul rax, rax, 0x1000193
inc r8
xor rax, rcx
cmp r8, r9
jl 0x180178040
mov rcx, qword [rdi + 0x28]
mov rdx, rcx
and rdx, rax
cmp qword [rdi + 0x30], rdx
ja 0x180178074
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
mov rcx, qword [rdi + 0x10]
mov rdi, qword [rdi]
lea rax, [rdx + rdx]
mov rbp, qword [rcx + rax*8]
mov rbx, rdx
lea r15, [rcx + rax*8]
add rbx, rbx
mov rbx, qword [rcx + rbx*8]
cmp rbp, rdi
jne 0x18017809b
mov rax, rdi
jmp 0x1801780a2
mov rax, qword [r15 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x1801780f9
mov rcx, qword [rbx + 0x10]
mov r8, r12
mov rdx, rsi
cmp word [rcx], 2
cmove r8, r13
call fcn.18017e7c0
test eax, eax
je 0x1801780c7
mov rbx, qword [rbx]
jmp 0x180178091
cmp word [rsi], 2
mov rdx, qword [rbx + 0x10]
mov rcx, rsi
cmove r12, r13
mov r8, r12
call fcn.18017e7c0
mov qword [rsp + 0x50], rdi
test eax, eax
lea rax, [rsp + 0x50]
jne 0x1801780f1
mov qword [rsp + 0x50], rbx
mov rax, qword [rax]
mov qword [r14], rax
jmp 0x1801780fc
mov qword [r14], rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret