joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014bc25
Capabilities:
Create thread

Disassembly:
jmp 0x14036ba70
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x90], 0
je 0x14036ba9c
mov dword [rsp + 0x30], 1
jmp 0x14036baa4
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14036baed
lea rax, str.procedure___nullptr
mov qword [rsp + 0x28], rax
lea rax, [0x14040a528]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, reloc.WLDAP32.dll_Ordinal_200
lea rdx, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
mov ecx, 2
call fcn.140145c0d
cmp eax, 1
jne 0x14036baed
int3
cmp dword [rsp + 0x34], 0
jne 0x14036bb2f
call fcn.140147756
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
mov qword [rsp + 0x20], 0
mov r9d, reloc.WLDAP32.dll_Ordinal_200
lea r8, str.minkernelcrtsucrt_src_appcrt_startup_thread.cpp
lea rdx, str._beginthreadex
lea rcx, str.procedure___nullptr
call fcn.14014ad3e
xor eax, eax
jmp 0x14036bc2f
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.14036b560
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14036b360
lea rcx, [rsp + 0x40]
call fcn.14036b3d0
movzx eax, al
test eax, eax
jne 0x14036bb7f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.14036b3b0
mov rax, qword [rsp + 0x50]
jmp 0x14036bc2f
lea rcx, [rsp + 0x40]
call fcn.14036b710
mov ecx, dword [rsp + 0x88]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], rdx
mov edx, dword [rsp + 0xa0]
mov dword [rsp + 0x20], edx
mov r9, rax
lea r8, [0x14036b110]
mov edx, ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14036bbf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140146fe5
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x40]
call fcn.14036b3b0
mov rax, qword [rsp + 0x58]
jmp 0x14036bc2f
cmp qword [rsp + 0xa8], 0
je 0x14036bc0c
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call fcn.14036b6d0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.14036b3b0
mov rax, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x14014bc2f
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x1401c41f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xf0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x50]
mov dword [rax + 0x1380], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1388], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
test eax, eax
je 0x1401c4265
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x6e4]
cmp eax, ecx
jle 0x1401c427c
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x6e4]
mov byte [rax + 0x1359], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1168], 0
je 0x1401c42b5
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x135a]
test eax, eax
jne 0x1401c42b5
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x1a0
jne 0x1401c42b5
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xd0], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0xa
jne 0x1401c42e8
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.14014b315
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.14014848f
jmp 0x1401c4350
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0x14
je 0x1401c430f
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x6c], 2
jne 0x1401c4329
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x65
jne 0x1401c4329
xor eax, eax
test eax, eax
jne 0x1401c430f
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6a8]
mov dword [rax], 2
jmp 0x1401c4350
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0xb
jl 0x1401c4350
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2ae]
test eax, eax
jne 0x1401c4350
xor eax, eax
test eax, eax
jne 0x1401c434a
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x64
jl 0x1401c4373
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0xc8
jge 0x1401c4373
mov dword [rsp + 0x28], 1
jmp 0x1401c437b
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x1401c438c
mov dword [rsp + 0x2c], 0
jmp 0x1401c4394
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xd1], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x1401c43e8
cmp dword [rsp + 0x30], 0x130
je 0x1401c43c6
jmp 0x1401c440d
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x510]
test eax, eax
je 0x1401c43e2
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x145c], 1
xor eax, eax
test eax, eax
jne 0x1401c43e2
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xd1], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x14014bf6d
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x1401db990
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14014a118
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call fcn.1401458c0
test eax, eax
je 0x1401db9d2
mov eax, 2
jmp 0x1401db9d4
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14017f400
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x54], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8d, 0x1008
mov edx, 0xffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14017f474
cmp dword [rsp + 0x34], 1
jne 0x14017f474
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14014a9ba
add rsp, 0x70
pop rdi
ret

Function at 0x1401874a0
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x14018752b
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.14014c35f
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x1401874cd
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x3f
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401b7280
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401b7321
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14014a9ba
add rsp, 0xa0
pop rdi
ret
Function at 0x1401d5120
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x88], 0
je 0x1401d516a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1401d51ac
cmp qword [rsp + 0x90], 0
je 0x1401d5182
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
jne 0x1401d51ac
cmp qword [rsp + 0x98], 0
je 0x1401d519a
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
jne 0x1401d51ac
mov rcx, qword [rsp + 0xa0]
call fcn.140148ddb
jmp 0x1401d527d
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.14014a578
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x98], 0
je 0x1401d51ea
mov rax, qword [rsp + 0x98]
cmp dword [rax], 0
je 0x1401d51ea
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x1401d51f3
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x90], 0
je 0x1401d521a
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x1401d521a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
jmp 0x1401d5223
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x88], 0
je 0x1401d524a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x1401d524a
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
jmp 0x1401d5253
mov qword [rsp + 0x60], 0
mov eax, dword [rsp + 0x80]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14014a9ba
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1401e1e80
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x94], 4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xb4], eax
mov r8, qword [rsp + 0xf8]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.14014a118
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x100]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1401e1f28
jmp 0x1401e2012
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x108]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1401e1f53
jmp 0x1401e1fea
xor r9d, r9d
mov r8d, dword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1401e1f77
jmp 0x1401e1fea
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x94]
lea r8, [rsp + 0x74]
mov edx, 4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1401e1fa2
jmp 0x1401e1fea
mov eax, dword [rsp + 0x74]
cmp qword [rsp + 0xf8], rax
jae 0x1401e1fb2
jmp 0x1401e1fea
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8, qword [rsp + 0xf0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1401e1fe0
jmp 0x1401e1fea
xor eax, eax
test eax, eax
jne 0x1401e1f28
cmp qword [rsp + 0x58], 0
je 0x1401e1ffd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x38], 0
je 0x1401e2012
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.14014a9ba
add rsp, 0xd0
pop rdi
ret
Function at 0x1401e3a50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x8000
mov eax, dword [rsp + 0x34]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [0x14045f030]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1401e3aa0
mov rcx, qword [rsp + 0x20]
call qword [fcn.1401476a7]
xor eax, eax
jmp 0x1401e3b0b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1401e3ae6
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x1401e3ae6
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x1401e3af5
mov rcx, qword [rsp + 0x20]
call qword [fcn.1401476a7]
xor eax, eax
jmp 0x1401e3b0b
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x1401e3b06
mov rax, qword [rsp + 0x20]
jmp 0x1401e3b0b
jmp 0x1401e3a73
add rsp, 0x40
pop rdi
ret
Function at 0x1401f5740
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x20]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x130]
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax + 0x188]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0xf4], 0x80
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1401f57fc
mov dword [rsp + 0xf4], 0x80
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1401f5822
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x130]
call fcn.14014c6a2
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1401f591a
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x130]
call fcn.14014b315
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x2b5], 0
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.1401464aa
lea r9, [rsp + 0x38]
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.14014c76a
mov dword [rsp + 0x104], eax
cmp dword [rsp + 0x104], 0
je 0x1401f588b
mov eax, dword [rsp + 0x104]
jmp 0x1401f591a
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x268], 0
je 0x1401f5918
mov dword [rsp + 0x108], 0
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.14014a906
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x270]
mov rax, qword [rsp + 0x130]
call qword [rax + 0x268]
mov dword [rsp + 0x108], eax
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.14014a906
cmp dword [rsp + 0x108], 0
je 0x1401f5918
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.1401f55f0
mov eax, Ordinal_46
jmp 0x1401f591a
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14014a9ba
mov rax, rdi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x120
pop rdi
ret
Function at 0x1401f9150
Capabilities:
Check http status code

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1401f91a5
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.14014c6a2
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x1401f9234
cmp dword [rsp + 0x48], 0xc8
je 0x1401f91c5
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
mov rcx, qword [rsp + 0x40]
call fcn.14014b315
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x1401f91e4
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1401f7460
mov dword [rsp + 0x20], eax
jmp 0x1401f9230
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x1401f91fe
mov rcx, qword [rsp + 0x40]
call fcn.1401f7520
mov dword [rsp + 0x20], eax
jmp 0x1401f9230
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x1401f9218
mov rcx, qword [rsp + 0x40]
call fcn.1401f77e0
mov dword [rsp + 0x20], eax
jmp 0x1401f9230
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x1401f9230
mov rcx, qword [rsp + 0x40]
call fcn.1401f7810
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x24], 0xff
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x68]
mov byte [rsp + rax + 0x24], cl
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x70]
mov byte [rsp + rax + 0x24], cl
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x188]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x140208652
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, [0x14046b670]
mov rcx, qword [rsp + 0x60]
call fcn.14014c6a2
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
lea rdx, [0x14046b68c]
mov rcx, qword [rsp + 0x60]
call fcn.1402082c0
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14014a9ba
add rsp, 0x50
pop rdi
ret
Function at 0x14021efa0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov r8d, reloc.WLDAP32.dll_Ordinal_27
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rdi
ret

Function at 0x14021efe0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x14021f085
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14014a4ce
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.14014b315
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14014a9ba
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x180
pop rdi
ret
Function at 0x14021f0c0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xa9b]
test eax, eax
je 0x14021f11d
mov dword [rsp + 0xc0], 1
jmp 0x14021f128
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x14021f187
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0xe0]
call fcn.14014b315
jmp 0x14021f25f
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa0c]
call fcn.140147256
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa10]
call fcn.140147256
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, recv
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14021f25f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__qd:_errno__d
mov rcx, qword [rsp + 0xe0]
call fcn.14014b315
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14014a9ba
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14014847b
add rsp, 0xd0
pop rdi
ret
Function at 0x14021ffb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x140471b00]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x1a8]
mov dword [rax], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x1a0]
mov rdx, qword [rsp + 0x198]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1402200de
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x2733
jne 0x140220088
mov rax, qword [rsp + 0x1a8]
mov dword [rax], 0x51
mov qword [rsp + 0x40], 0xffffffffffffffff
jmp 0x1402200de
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, dword [rsp + 0x48]
call fcn.14014a4ce
mov r8, rax
lea rdx, str.Recv_failure:__s
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.14014c6a2
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0xd64], ecx
mov rax, qword [rsp + 0x1a8]
mov dword [rax], gethostname
mov qword [rsp + 0x40], 0xffffffffffffffff
mov rax, qword [rsp + 0x1a8]
mov eax, dword [rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1a0]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.14014adca
mov rax, qword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14014a9ba
mov rax, rdi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14014847b
add rsp, 0x180
pop rdi
ret