joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e700
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov r8d, reloc.WLDAP32.dll_Ordinal_27
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x38
ret

Function at 0x14001e750
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rdx
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test rsi, rsi
je 0x14001e7d2
test eax, eax
jns 0x14001e7d2
cmp byte [rsi + 0xaaf], 0
je 0x14001e7d2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call fcn.140036ed0
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rsi
mov r8, rax
call fcn.140003900
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x140
pop rsi
ret

Function at 0x14001e7f0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rcx + 0xabb]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x5c]
mov rcx, rdx
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x14001e8df
mov dword [rsp + 0x50], 1
mov ecx, dword [rdi + 0xa24]
call fcn.140016020
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x54], eax
mov ecx, dword [rdi + 0xa28]
call fcn.140016020
imul eax, eax, 0x3e8
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x58], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, 0x98000004
mov r9d, recvfrom
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14001e8fa
cmp byte [rdi + 0xaaf], 0
je 0x14001e8fa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, rdi
mov r8d, esi
mov r9d, eax
call fcn.140003900
jmp 0x14001e8fa
cmp byte [rdi + 0xaaf], 0
je 0x14001e8fa
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rdi
mov r8, rsi
call fcn.140003900
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14001eef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x140
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov dword [r9], 0
mov rcx, qword [rax + 0x98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14001ef89
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001ef52
mov dword [rdi], 0x51
jmp 0x14001ef89
mov ebp, eax
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call fcn.140036ed0
mov rcx, qword [r14 + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140003830
mov rax, qword [r14 + 8]
mov dword [rax + 0xd74], ebp
mov dword [rdi], gethostname
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x14001efc5
cmp byte [rcx + 0xaaf], 0
je 0x14001efc5
mov rdx, qword [r14]
test rdx, rdx
je 0x14001efc5
mov rax, qword [rdx]
cmp dword [rax + 0xc], 0
jle 0x14001efc5
mov eax, dword [rdi]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r8, str.nw_in_read_len_zu______d__err_d
mov r9, rsi
call fcn.1400039a0
movsxd rsi, ebx
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1408ac9a0
mov rax, rsi
add rsp, 0x140
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14001f1c0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rcx + 0x10]
mov r8d, dword [rsi + 0x14]
lea rdx, [rsi + 0x18]
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14001f28b
mov rcx, rbx
mov rdx, rdi
call fcn.14001dee0
test rdi, rdi
je 0x14001f270
cmp byte [rdi + 0xaaf], 0
je 0x14001f270
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x14001f270
mov eax, dword [rsi + 0x110]
lea rcx, [rsi + 0xe0]
mov edx, dword [rsi + 0x144]
lea r8, [rsi + 0x114]
mov r10, qword [rsi + 0x98]
cmp dword [rsi], 5
lea r11, str.QUIC
lea r9, [0x1409078c4]
cmove r9, r11
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r10
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov rcx, rdi
mov rdx, rbx
call fcn.1400039a0
mov rcx, qword [rsi + 0x98]
mov edx, 1
call fcn.140050c50
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsi, 0xe0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
jmp fcn.14001e510
Function at 0x140023a50
Capabilities:
Query environment variable

Disassembly:
jmp 0x140023a60
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax]
mov edx, edi
mov rcx, r14
call qword [case.0x14001328e.0]
test rax, rax
je 0x140023abe
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x140023ab9
cmp eax, edi
je 0x140023ab9
cmp eax, 0x8001
jae 0x140023ab9
mov r14, rbx
cmp eax, edi
mov edi, eax
jae 0x140023a80
jmp 0x140023ac9
mov rcx, rbx
jmp 0x140023ac1
mov rcx, r14
call qword [fcn.1408b5568]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140023a60
Capabilities:
Query environment variable

Disassembly:
jmp 0x140023a60
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 1
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
nop dword [rax]
mov edx, edi
mov rcx, r14
call qword [case.0x14001328e.0]
test rax, rax
je 0x140023abe
mov rbx, rax
mov rcx, rsi
mov rdx, rax
mov r8d, edi
call r15
test eax, eax
je 0x140023ab9
cmp eax, edi
je 0x140023ab9
cmp eax, 0x8001
jae 0x140023ab9
mov r14, rbx
cmp eax, edi
mov edi, eax
jae 0x140023a80
jmp 0x140023ac9
mov rcx, rbx
jmp 0x140023ac1
mov rcx, r14
call qword [fcn.1408b5568]
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400278d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], edi
mov rcx, r8
xor edx, edx
mov r8, r9
call fcn.1408affc0
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x48]
xor edx, edx
xor r8d, r8d
mov r9d, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400279fa
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400279d8
mov rcx, qword [rsp + 0x40]
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400279d8
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400279d8
mov eax, dword [rsp + 0x3c]
cmp rax, rdi
ja 0x1400279d8
mov rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov edx, 2
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400279e8
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400279fa
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140027e90
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor esi, esi
xor ecx, ecx
xor edx, edx
call fcn.1408b56c4
cmp rax, 0xffffffffffffffff
cmove rax, rsi
add rsp, 0x30
pop rsi
ret
Function at 0x140029510
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rsi, r9
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [r9], 0
lea r9, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x140029697
mov r13, qword [rsp + 0x20]
test r13, r13
je 0x140029682
xor ebp, ebp
xorps xmm6, xmm6
xor edi, edi
jmp 0x140029583
mov r14, rbp
mov r13, qword [r13 + 0x28]
mov rbp, r14
test r13, r13
je 0x14002966b
mov rcx, qword [r13 + 0x18]
test rcx, rcx
je 0x1400295a0
call fcn.1408c5050
mov rbx, rax
inc rbx
jmp 0x1400295a2
xor ebx, ebx
mov eax, dword [r13 + 4]
cmp eax, 2
je 0x1400295c0
cmp eax, 0x17
jne 0x140029570
mov r15d, 0x1c
cmp qword [r13 + 0x20], 0
jne 0x1400295cd
jmp 0x140029570
mov r15d, reloc.WS2_32.dll_recv
cmp qword [r13 + 0x20], 0
je 0x140029570
cmp qword [r13 + 0x10], r15
jb 0x140029570
lea rcx, [rbx + r15]
add rcx, 0x30
call qword [fcn.1408b557c]
test rax, rax
je 0x1400296bc
mov r14, rax
mov eax, dword [r13]
mov dword [r14], eax
mov eax, dword [r13 + 4]
mov dword [r14 + 4], eax
mov eax, dword [r13 + 8]
mov dword [r14 + 8], eax
mov eax, dword [r13 + 0xc]
mov dword [r14 + 0xc], eax
mov dword [r14 + 0x10], r15d
lea r12, [r14 + 0x30]
movups xmmword [r14 + 0x18], xmm6
mov qword [r14 + 0x28], 0
mov qword [r14 + 0x20], r12
mov rdx, qword [r13 + 0x20]
mov rcx, r12
mov r8, r15
call fcn.1408af920
test rbx, rbx
je 0x140029652
lea rax, [r14 + 0x18]
add r12, r15
mov qword [rax], r12
mov rdx, qword [r13 + 0x18]
mov rcx, r12
mov r8, rbx
call fcn.1408af920
test rdi, rdi
cmove rdi, r14
test rbp, rbp
je 0x140029573
mov qword [rbp + 0x28], r14
jmp 0x140029573
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14002967b
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor ebx, ebx
test rdi, rdi
jne 0x140029694
mov ebx, 0x2af9
mov ecx, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400296cc
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call fcn.1400294e0
mov ebx, 8
jmp 0x140029692
Function at 0x14002c070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r15, rdx
test r9b, r9b
jne 0x14002c0ab
mov rcx, rbx
call fcn.14002d320
mov r15, rax
xor esi, esi
test rdi, rdi
je 0x14002c176
movzx ebp, byte [rsp + 0xa0]
xor bpl, 1
lea r12, [0x14090abac]
lea r13, [0x14090ac02]
cmp rbx, r15
jb 0x14002c110
movzx eax, byte [rbx]
cmp eax, 0x3f
je 0x14002c0f6
cmp eax, 0x20
jne 0x14002c0fa
test bpl, 1
jne 0x14002c12f
mov r8d, 1
mov rcx, r14
mov rdx, r12
jmp 0x14002c11c
xor ebp, ebp
jmp 0x14002c110
cmp al, 0x20
jb 0x14002c110
cmp rax, 0x20
je 0x14002c110
cmp eax, 0x7f
je 0x14002c110
cmp al, 0x7f
jae 0x14002c13d
nop dword [rax]
mov r8d, 1
mov rcx, r14
mov rdx, rbx
call fcn.14000fbf0
test eax, eax
jne 0x14002c171
inc rbx
dec rdi
jne 0x14002c0d0
jmp 0x14002c176
mov r8d, 3
mov rcx, r14
mov rdx, r13
jmp 0x14002c11c
mov byte [rsp + 0x2d], Ordinal_41
mov ecx, eax
shr ecx, 4
lea rdx, [0x14090abb0]
movzx ecx, byte [rcx + rdx]
mov byte [rsp + 0x2e], cl
and eax, 0xf
movzx eax, byte [rax + rdx]
mov byte [rsp + 0x2f], al
mov r8d, 3
mov rcx, r14
lea rdx, [rsp + 0x2d]
jmp 0x14002c11c
mov esi, 7
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400347a0
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1400347c2
nop word cs:[rax + rax]
cmp byte [rcx], 0
lea rcx, [rcx + 1]
sete al
setns dl
xor dl, al
jne 0x1400347b0
ret
mov al, 1
ret

Function at 0x140036b80
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140036bf1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x60
pop rsi
ret

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
add edx, 0xffffff38
cmp edx, 0x64
jae 0x14003aec6
cmp byte [rsi + 0xaaf], 0
je 0x14003aeac
lea rdx, str.Connect_data_stream_actively
mov rcx, rsi
call fcn.140003900
mov rcx, rsi
xor edx, edx
call fcn.140039580
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14003c720
mov rdi, qword [rsi + 0x20]
mov edx, dword [rdi + 0x6b8]
test edx, edx
je 0x14003aef6
inc edx
cmp edx, 2
jne 0x14003af1a
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.140003830
mov eax, 0x1e
add rsp, 0x28
pop rdi
pop rsi
ret
cmp byte [rsi + 0xaaf], 0
je 0x14003af0e
lea rdx, str.disabling_EPRT_usage
mov rcx, rsi
call fcn.140003900
mov byte [rdi + 0x2da], 0
mov edx, 1
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14003b9f0

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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rcx + 0x1a0]
cmp dword [rax + 0x10], 1
jne 0x14003b89d
mov r9, qword [rdx + 0x670]
test r9, r9
je 0x14003b89d
add rdx, 0x5d0
lea r8, str.SIZE__s
mov rcx, rsi
call fcn.1400594b0
test eax, eax
jne 0x14003b897
mov rcx, rsi
mov dl, reloc.WS2_32.dll_socket
call fcn.140039580
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14003b8b0

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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rcx + 0x1a0]
cmp dword [rax + 0x10], 0
je 0x14003b8fe
cmp qword [rdx + 0x670], 0
je 0x14003b8fe
add rdx, 0x5d0
lea r8, str.REST__d
mov rcx, rsi
xor r9d, r9d
call fcn.1400594b0
test eax, eax
jne 0x14003b8f8
mov rcx, rsi
mov dl, reloc.WLDAP32.dll_Ordinal_26
call fcn.140039580
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14003b910
Function at 0x14003cc20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, qword [rcx + 0x20]
mov rbx, qword [rdi + 0x1b0]
mov dword [rsp + 0x24], Ordinal_133
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14003cc9c
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rsi
call fcn.140003830
mov ebx, 0x1e
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov dword [rsp + 0x24], Ordinal_133
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x14003cc6a
mov rbx, rax
cmp byte [rsi + 0xaaf], 0
je 0x14003ccdd
lea rdx, str.Connection_accepted_from_server
mov rcx, rsi
call fcn.140003900
mov byte [rdi + 0x2d5], 0
mov rcx, rbx
mov edx, 1
call fcn.140050c50
lea r9, [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
mov r8d, 1
call fcn.14001e020
mov ebx, eax
test eax, eax
jne 0x14003cc7e
cmp qword [rsi + 0x270], 0
je 0x14003cd68
mov rcx, rsi
mov dl, 1
call fcn.14000f250
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi + 0x278]
mov r8d, 1
call qword [rsi + 0x270]
mov ebp, eax
xor ebx, ebx
mov rcx, rsi
xor edx, edx
call fcn.14000f250
test ebp, ebp
je 0x14003cc7e
mov rcx, rsi
mov rdx, rdi
call fcn.14003c7d0
mov ebx, Ordinal_46
jmp 0x14003cc7e
xor ebx, ebx
jmp 0x14003cc7e

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x1a0]
mov r14d, edx
mov eax, dword [rbx + r14*4 + 8]
cmp eax, 3
je 0x140044d63
mov esi, edx
mov rdi, rcx
cmp eax, 2
je 0x140044d7f
test eax, eax
jne 0x140044df2
cmp dword [rbx + r14*4 + 0x808], 1
jne 0x140044da6
mov dword [rbx + r14*4 + 8], 1
mov rcx, rdi
mov edx, 0xfb
mov r8d, esi
call fcn.1400451d0
cmp dword [rbx + r14*4 + 0x1808], 1
je 0x140044dca
jmp 0x140044df2
mov eax, dword [rbx + r14*4 + 0x408]
cmp eax, 1
je 0x140044ddd
test eax, eax
jne 0x140044df2
mov dword [rbx + r14*4 + 8], 0
jmp 0x140044df2
mov eax, dword [rbx + r14*4 + 0x408]
cmp eax, 1
je 0x140044dfc
test eax, eax
jne 0x140044df2
mov dword [rbx + r14*4 + 8], 1
cmp dword [rbx + r14*4 + 0x1808], 1
je 0x140044dca
jmp 0x140044df2
cmp dword [rbx + r14*4 + 0x1808], 1
jne 0x140044e11
mov dword [rbx + r14*4 + 8], 1
mov rcx, rdi
mov edx, 0xfb
mov r8d, esi
call fcn.1400451d0
mov rcx, rdi
mov edx, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140045270
mov dword [rbx + r14*4 + 8], 1
mov dword [rbx + r14*4 + 0x408], 0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rbx + r14*4 + 8], 3
mov dword [rbx + r14*4 + 0x1008], 0
mov rcx, rdi
mov edx, 0xfc
mov r8d, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400451d0
Function at 0x140044ed0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x858
mov rsi, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r13, qword [rcx + 0x20]
mov rdi, qword [rcx + 0x1a0]
mov r9, qword [rdi + 0x1ec0]
sub r9, qword [rdi + 0x1eb8]
add r9, 2
lea r8, [rdi + 0x1cb8]
mov edx, 0x3c
call fcn.140045460
mov rax, qword [rdi + 0x1eb8]
lea rcx, [rax + 1]
mov qword [rdi + 0x1eb8], rcx
movzx eax, byte [rax]
cmp eax, 0x27
je 0x140044f93
cmp eax, 0x23
je 0x14004508b
cmp eax, 0x18
jne 0x1400451a8
add rdi, 0x1c08
mov rcx, rdi
call fcn.1408c5050
mov r14, rax
lea rbx, [rax + 4]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_27
jmp 0x1400450c7
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_46
mov dword [rsp + 0x20], 0xfa
lea r8, str._c_c_c_c
lea rcx, [rsp + 0x50]
mov ebx, 0x800
mov edx, 0x800
mov r9d, 0xff
call fcn.14001b430
mov rbp, qword [rdi + 0x1cb0]
mov edi, 4
test rbp, rbp
je 0x140045136
lea r14, str._c_s
lea r15, str._c_.s_c_s
jmp 0x140045045
mov r8d, eax
sub r8d, r12d
inc rax
mov edx, 0x800
sub rdx, rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x30], 1
mov r8, r15
xor r9d, r9d
call fcn.14001b430
cdqe
add rdi, rax
mov rbp, qword [rbp + 8]
test rbp, rbp
je 0x140045136
mov r12, qword [rbp]
mov rcx, r12
call fcn.1408c5050
add rax, rdi
inc rax
cmp rax, 0x7f9
ja 0x140045038
mov rcx, r12
mov edx, Ordinal_46
call fcn.1408b1cf0
lea rcx, [rsp + rdi]
add rcx, 0x50
test rax, rax
jne 0x140045000
mov edx, 0x800
sub rdx, rdi
mov qword [rsp + 0x20], r12
mov r8, r14
jmp 0x14004502b
add rdi, 0x1c28
mov rcx, rdi
call fcn.1408c5050
mov r14, rax
lea rbx, [rax + 4]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_41
mov dword [rsp + 0x20], 0xfa
lea r8, str._c_c_c_c_s_c_c
lea rdi, [rsp + 0x50]
mov edx, 0x800
mov rcx, rdi
mov r9d, 0xff
call fcn.14001b430
add r14d, 6
mov rcx, qword [r13 + 0x1a8]
mov rdx, rdi
mov r8d, r14d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140045124
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140003830
lea r8, [rsp + 0x52]
mov rcx, rsi
mov edx, 0x3e
mov r9, rbx
jmp 0x1400451a3
sub rbx, rdi
lea rcx, [rsp + rdi]
add rcx, 0x50
mov dword [rsp + 0x20], 0xf0
lea r8, str._c_c
mov rdx, rbx
mov r9d, 0xff
call fcn.14001b430
lea r8d, [rdi + 2]
mov rcx, qword [r13 + 0x1a8]
lea rdx, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140045193
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140003830
lea r8, [rsp + 0x52]
mov rcx, rsi
mov edx, 0x3e
mov r9, rdi
call fcn.140045460
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x858
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400451d0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, r8d
mov edi, edx
mov rbx, rcx
mov rax, qword [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0x20]
mov byte [rsp + 0x25], 0xff
mov byte [rsp + 0x26], dil
mov byte [rsp + 0x27], sil
mov rcx, qword [rax + 0x1a8]
lea rdx, [rsp + 0x25]
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140045238
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140003830
lea rdx, str.SENT
mov rcx, rbx
mov r8d, edi
mov r9d, esi
call fcn.140044a80
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1408ac9a0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp edx, 0x1f
jne 0x1400453de
mov rsi, rcx
mov r15, qword [rcx + 0x20]
mov rdi, qword [rcx + 0x1a0]
lea r12, [rdi + 0x1eb8]
mov word [rdi + 0x1cb8], 0xfaff
lea rbx, [rdi + 0x1cbb]
mov qword [rdi + 0x1eb8], rbx
mov byte [rdi + 0x1cba], 0x1f
movzx ecx, word [rdi + 0x1ca8]
mov r14, qword [sym.imp.WS2_32.dll_htons]
call r14
mov ebp, eax
movzx ecx, word [rdi + 0x1caa]
call r14
mov r9, qword [rdi + 0x1eb8]
cmp r9, r12
jb 0x1400453ee
cmp r9, r12
jb 0x140045406
cmp r9, r12
jb 0x140045421
cmp r9, r12
jb 0x140045439
cmp r9, r12
jae 0x140045317
lea rax, [r9 + 1]
mov qword [r12], rax
mov byte [r9], 0xff
mov r9, qword [r12]
lea r14, [rdi + 0x1cb8]
lea r8, [rdi + 0x1cba]
cmp r9, r12
jae 0x14004533a
lea rax, [r9 + 1]
mov qword [r12], rax
mov byte [r9], 0xf0
mov r9, qword [r12]
mov qword [rdi + 0x1ec0], r9
mov qword [rdi + 0x1eb8], r14
sub r9, r14
add r9, 0xfffffffffffffffe
mov rcx, rsi
mov edx, 0x3e
call fcn.140045460
mov rcx, qword [r15 + 0x1a8]
mov rdx, r14
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140045391
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140003830
mov r8d, 4
mov rcx, rsi
mov rdx, rbx
call fcn.140044360
add rdi, 0x1cbf
mov rcx, qword [r15 + 0x1a8]
mov rdx, rdi
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400453de
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140003830
nop
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], bpl
mov r9, qword [r12]
cmp r9, r12
jae 0x1400452f0
shr ebp, 8
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], bpl
mov r9, qword [r12]
cmp r9, r12
jae 0x1400452f9
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], al
mov r9, qword [r12]
cmp r9, r12
jae 0x140045302
shr eax, 8
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], al
mov r9, qword [r12]
cmp r9, r12
jb 0x140045307
jmp 0x140045317