joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402a8930
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x1402a8996
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1402a8979
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1402a8973
shr ax, 8
cmp al, 2
je 0x1402a8996
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401aed20
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.1402a8740
mov qword [0x140491788], rax
test rax, rax
je 0x1402a89d3
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140491780]
test rax, rax
cmovne rcx, rax
mov qword [0x140491780], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.1402d3100
test al, al
lea rcx, [0x140493eb8]
setne byte [0x140493eb0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401aed20
add rsp, 0x1d8
ret

Function at 0x1402aae70
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1402c4d30
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1402a94a0
mov rcx, rdi
mov rsi, rax
call fcn.1402a94a0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1402aaf20
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1402c4d30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1402c4dc0
cmp rax, 0x3e8
ja 0x1402aaf51
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1402aaed0
test rsi, rsi
je 0x1402aaf2d
mov rcx, rsi
call fcn.1402e51e4
test rbx, rbx
je 0x1402aaf3a
mov rcx, rbx
call fcn.1402e51e4
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1402aaf5e
mov rcx, rsi
call fcn.1402e51e4
test rbx, rbx
je 0x1402aaf6b
mov rcx, rbx
call fcn.1402e51e4
mov eax, 1
jmp 0x1402aaf3c
Function at 0x1402b1240
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f0]
mov rcx, rbp
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1402b12bb
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.1402a6880
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x1402b12e3
lea rdx, str.Error_accept__ing_server_connect
call fcn.1402a5e30
lea eax, [rbx + 0x1f]
jmp 0x1402b135f
lea rdx, str.Connection_accepted_from_server
call fcn.1402a5f10
mov edx, 1
mov byte [rsi + 0x3da], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.1402d28a0
mov byte [rsi + 0x3ed], 1
cmp qword [rdi + 0x288], 0
je 0x1402b135d
mov dl, 1
mov rcx, rdi
call fcn.1402a1920
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1402a1920
test ebx, ebx
je 0x1402b135d
mov rdx, rsi
mov rcx, rdi
call fcn.1402b1820
mov eax, Ordinal_46
jmp 0x1402b135f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401aed20
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x4d0
cmp byte [rdx + 0xa6], 0
jne 0x1402b245a
xor r8d, r8d
mov dword [rdx + 0xc8], r8d
cmp byte [rax + 0x3d2], r8b
je 0x1402b2413
mov r9, qword [rdx + 0x88]
test r9, r9
je 0x1402b2413
cmp dword [rdx + 0xa0], r8d
je 0x1402b2407
mov rax, qword [rdx + 0x98]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x1402b2413
mov dword [rdx + 0xa8], r8d
mov rcx, rbx
jmp 0x1402b2433
mov rcx, rbx
cmp dword [rdx + 0xa0], r8d
je 0x1402b245a
mov r9, qword [rdx + 0x98]
mov dword [rdx + 0xa8], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.1402d6400
mov r8d, eax
test eax, eax
jne 0x1402b2464
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.1402b1810
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1402b2820
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
add rdx, 0x4d0
cmp byte [rcx + 0xb21], 0
jne 0x1402b2846
cmp dword [rcx + 0x580], 0
je 0x1402b2879
mov r9, qword [rdx + 0x90]
test r9, r9
je 0x1402b2879
lea r8, str.MDTM__s
call fcn.1402d6400
mov r8d, eax
test eax, eax
jne 0x1402b2883
lea edx, [rax + 0x12]
mov rcx, rbx
call fcn.1402b1810
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1402b39b0
add rsp, 0x20
pop rbx
ret
Function at 0x1402b3040
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rdi
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x1402b30b8
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rsi, qword [rcx + 0x18]
mov ebx, dword [rsi + 0x594]
test ebx, ebx
jne 0x1402b307e
lea rdx, str.disabling_EPRT_usage
call fcn.1402a5f10
mov byte [rsi + 0x3e0], bl
mov rsi, qword [rsp + 0x38]
inc ebx
mov rcx, rdi
cmp ebx, 2
jne 0x1402b30a7
lea rdx, str.Failed_to_do_PORT
call fcn.1402a5e30
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1402b3d90
lea rdx, str.Connect_data_stream_actively
call fcn.1402a5f10
xor edx, edx
mov rcx, rdi
call fcn.1402b1810
add rsp, 0x20
pop rdi
jmp fcn.1402b19c0
Function at 0x1402b33e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x4d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1402b3431
cmp qword [rdx + 0x90], 0
je 0x1402b3431
xor r9d, r9d
lea r8, str.REST__d
call fcn.1402d6400
mov r8d, eax
test eax, eax
jne 0x1402b343b
lea edx, [rax + 0x1a]
mov rcx, rbx
call fcn.1402b1810
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1402b30e0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x1402b3750
mov r9, qword [rdx + 0x560]
test r9, r9
je 0x1402b3750
lea r8, str.SIZE__s
add rdx, 0x4d0
call fcn.1402d6400
mov r8d, eax
test eax, eax
jne 0x1402b375a
lea edx, [rax + 0x17]
mov rcx, rbx
call fcn.1402b1810
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1402b33e0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xb34], 0
mov r10, rcx
mov r11, qword [rcx + 0x18]
je 0x1402b3a0c
cmp qword [r11 + 0x560], 0
je 0x1402b3a0c
movzx edx, byte [rcx + 0x1330]
mov rcx, r11
call fcn.1402b1c20
test eax, eax
je 0x1402b3a0c
mov rax, qword [r10 + 0x1b0]
mov r9d, reloc.SHELL32.dll_ILCloneFirst
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x1330]
add rsp, 0x28
jmp fcn.1402b1b80
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.1402b3700

Function at 0x1402b3a20
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x1402b3a5c
lea rdx, str.Couldnt_set_desired_mode
call fcn.1402a5e30
lea eax, [rdi + 0x11]
jmp 0x1402b3ab4
cmp edx, 0xc8
je 0x1402b3a73
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1402a5f10
cmp esi, 0x13
jne 0x1402b3a85
mov rdx, rbp
mov rcx, rbx
call fcn.1402b3700
jmp 0x1402b3ab0
cmp esi, 0x14
jne 0x1402b3a94
mov rcx, rbx
call fcn.1402b2680
jmp 0x1402b3ab0
cmp esi, 0x15
jne 0x1402b3aa3
mov rcx, rbx
call fcn.1402b36f0
jmp 0x1402b3ab0
cmp esi, 0x16
jne 0x1402b3ab2
mov rcx, rbx
call fcn.1402b3900
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402bef90
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1402bf011
sub r8d, 1
je 0x1402befe8
cmp r8d, 1
jne 0x1402bf025
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1402bf009
cmp ecx, r8d
jne 0x1402bf025
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.1402bf1b0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1402bf009
cmp ecx, 1
jne 0x1402bf025
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.1402bf1b0
ret

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1402bf0d4
sub r8d, 2
je 0x1402bf08d
cmp r8d, 1
jne 0x1402bf0c6
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1402bf080
cmp ecx, r8d
jne 0x1402bf0c6
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1402bf0c7
cmp ecx, 1
jne 0x1402bf0c6
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.1402bf1b0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1402bf0b9
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1402bf1b0

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1402bf18d
sub r8d, 1
je 0x1402bf15e
cmp r8d, 1
jne 0x1402bf1a4
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1402bf182
cmp ecx, r8d
jne 0x1402bf1a4
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.1402bf1b0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1402bf182
cmp ecx, 1
jne 0x1402bf1a4
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.1402bf1b0
ret
Function at 0x1402bf1b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1e8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1402bf20f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1402a5e30
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1402be990
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402bf560
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x1402bf5b3
test r9d, r9d
je 0x1402bf59d
sub r9d, 2
je 0x1402bf5c5
cmp r9d, r8d
jne 0x1402bf5f3
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x1402bf5f3
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.1402bf1b0
sub r9d, 1
je 0x1402bf5dd
sub r9d, 1
je 0x1402bf585
cmp r9d, 1
jne 0x1402bf5f3
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x1402bf5f3
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.1402bf1b0
ret

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

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x1402bf659
test r9d, r9d
je 0x1402bf640
sub r9d, 2
je 0x1402bf66b
cmp r9d, r8d
jne 0x1402bf69c
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x1402bf69c
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.1402bf1b0
sub r9d, 1
je 0x1402bf683
sub r9d, 1
je 0x1402bf628
cmp r9d, 1
jne 0x1402bf69c
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x1402bf69c
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.1402bf1b0
ret
Function at 0x1402c0880
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x4d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x1402c0919
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1402dcfd0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x1402c097a
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1402a5e30
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401aed20
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.1402c03a0
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x1402c0a29
sub r8d, 1
je 0x1402c0a9b
sub r8d, 1
je 0x1402c09e5
cmp r8d, 1
je 0x1402c09c5
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1403c8894]
call fcn.1402a5e30
jmp 0x1402c0a9b
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.1402c05c0
test eax, eax
je 0x1402c0a9b
jmp 0x1402c094e
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.1402c0380
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1402c1430
cmp rax, rbx
jae 0x1402c0a9b
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s
call fcn.1402a5f10
jmp 0x1402c0a9b
cmp r9d, 4
jle 0x1402c0a9b
mov rcx, r14
call fcn.1402c0380
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne 0x1402c0a9b
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.1402a5d60
mov ebx, eax
test eax, eax
je 0x1402c0a7a
mov edx, 5
mov rcx, rdi
call fcn.1402c1320
mov eax, ebx
jmp 0x1402c094e
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.1402c7d10
mov rcx, rsi
call fcn.1402c7fb0
test eax, eax
je 0x1402c094c
mov edx, 5
mov rcx, rdi
call fcn.1402c1320
mov eax, Ordinal_46
jmp 0x1402c094e
Function at 0x1402c5010
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1402c5199
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1402c517e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1402c507e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1402c5070
inc rbx
jmp 0x1402c5080
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1402c508e
lea r14d, [rax + 0xe]
jmp 0x1402c509b
cmp eax, 0x17
jne 0x1402c5134
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1402c5134
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1402c5134
cmp rax, r14
jb 0x1402c5134
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [fcn.1402e51dc]
mov rsi, rax
test rax, rax
je 0x1402c5143
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.1402dcfd0
test rbx, rbx
je 0x1402c5121
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.1402dcfd0
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1402c5131
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1402c5060
jmp 0x1402c5149
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1402c5168
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1402c5179
mov rcx, rbp
call fcn.1402c4fe0
xor ebp, ebp
jmp 0x1402c518d
test rbp, rbp
jne 0x1402c518d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x1402c8f60
Capabilities:
Get socket status

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, rcx
test rdx, rdx
je 0x1402c8f76
cmp dword [rdx], 0
jne 0x1402c8f94
test r8, r8
je 0x1402c8f81
cmp dword [r8], 0
jne 0x1402c8f94
test r9, r9
je 0x1402c9036
cmp dword [r9], 0
je 0x1402c9036
mov rcx, qword [rsp + 0x60]
lea r11, [rsp + 0x48]
test rcx, rcx
jns 0x1402c8fa8
xor r11d, r11d
jmp 0x1402c8ff5
jle 0x1402c8fec
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x3e8
sub rcx, rax
imul rax, rcx, 0x3e8
mov ecx, 0x7fffffff
cmp rdx, rcx
mov dword [rsp + 0x4c], eax
cmovg rdx, rcx
mov dword [rsp + 0x48], edx
jmp 0x1402c8ff5
mov qword [rsp + 0x48], 0
test r9, r9
je 0x1402c9000
cmp dword [r9], 0
jne 0x1402c9003
xor r9d, r9d
test r8, r8
je 0x1402c900e
cmp dword [r8], 0
jne 0x1402c9011
xor r8d, r8d
test r10, r10
je 0x1402c901c
cmp dword [r10], 0
jne 0x1402c901f
xor r10d, r10d
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], r11
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x60]
call fcn.1402c8f10
add rsp, 0x30
pop rbx
ret
Function at 0x1402d2470
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14047b0a0]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1402d24c2
jmp 0x1402d268b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1402d2662
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1402d2662
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1402d2662
cmp dword [rbp - 0x40], 0x10
jl 0x1402d2662
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1402d2662
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x1402d2662
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1402d2662
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1402d28a0
test eax, eax
js 0x1402d2662
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.1402c8a70
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1402d2662
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1402d2662
cmp dword [rbp - 0x40], 0x10
jl 0x1402d2662
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x1402d2662
cmp dword [rbp - 0x40], 0x10
jl 0x1402d2662
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x1402d2662
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x1402d2662
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x1402d2662
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1402d2683
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401aed20
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret