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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14009d070]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140019dc5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400063d0
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x140019e0b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400198e0
test al, al
jne 0x140019e16
call fcn.140054ed8
mov ebx, dword [rax]
call fcn.140054ed8
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400063d0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140018fa0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14004d760
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001a610
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14009e758]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14001a674
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140044290
test al, al
je 0x14001a668
mov dword [0x14009e758], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14009e758], 1
jmp 0x14001a679
cmp eax, 2
je 0x14001a6cb
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14001a6aa
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14001a6cb
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x14001b460
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14009d070]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xb2b], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14001b4cf
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.140019080
jmp 0x14001b55e
mov ecx, dword [rbx + 0xa8c]
mov dword [rsp + 0x58], 1
call fcn.14001b790
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa90]
call fcn.14001b790
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, recvfrom
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14001b55e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.140019080
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004d760
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14001b580
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14009d070]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14001b5f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1400063d0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.140019080
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14004d760
add rsp, 0x150
pop rbx
ret

Function at 0x14001b750
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.14001b7a0
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.140068a78
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x14001bc40
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14009d070]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14001bca6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14001bc89
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14001bc83
shr ax, 8
cmp al, 2
je 0x14001bca6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14004d760
add rsp, 0x1e8
ret
lea rcx, str.iphlpapi.dll
call fcn.14001baa0
mov qword [0x14009e768], rax
test rax, rax
je 0x14001bce3
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009e760]
test rax, rax
cmovne rcx, rax
mov qword [0x14009e760], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140044290
test al, al
lea rcx, [0x14009fa50]
setne byte [0x14009fa48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14004d760
add rsp, 0x1e8
ret
Function at 0x140029890
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400298ba
cmp dword [rdx], 0
jne 0x1400298d0
test rbx, rbx
je 0x1400298c5
cmp dword [r8], 0
jne 0x1400298d0
test rdi, rdi
je 0x14002991c
cmp dword [r9], 0
je 0x14002991c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140049190
test rdi, rdi
je 0x1400298e9
cmp dword [rdi], 0
jne 0x1400298eb
xor edi, edi
test rbx, rbx
je 0x1400298f5
cmp dword [rbx], 0
jne 0x1400298f7
xor ebx, ebx
test rsi, rsi
je 0x140029901
cmp dword [rsi], 0
jne 0x140029903
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x140029926
mov rcx, qword [rsp + 0x60]
call fcn.140029840
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14002cab0
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.14001f5d0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14002bc40
mov rcx, rdi
mov rsi, rax
call fcn.14002bc40
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14002cb60
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14001f5d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14001f660
cmp rax, 0x3e8
ja 0x14002cb91
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 0x14002cb10
test rsi, rsi
je 0x14002cb6d
mov rcx, rsi
call fcn.140054ef8
test rbx, rbx
je 0x14002cb7a
mov rcx, rbx
call fcn.140054ef8
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 0x14002cb9e
mov rcx, rsi
call fcn.140054ef8
test rbx, rbx
je 0x14002cbab
mov rcx, rbx
call fcn.140054ef8
mov eax, 1
jmp 0x14002cb7c
Function at 0x14002cbc0
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 [0x14009d070]
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 0x14002cc12
jmp 0x14002cddb
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 0x14002cdb2
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002cdb2
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002cdb2
cmp dword [rbp - 0x40], 0x10
jl 0x14002cdb2
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002cdb2
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 0x14002cdb2
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002cdb2
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.140043b50
test eax, eax
js 0x14002cdb2
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.1400293a0
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 0x14002cdb2
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 0x14002cdb2
cmp dword [rbp - 0x40], 0x10
jl 0x14002cdb2
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 0x14002cdb2
cmp dword [rbp - 0x40], 0x10
jl 0x14002cdb2
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x14002cdb2
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x14002cdb2
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x14002cdb2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14002cdd3
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.14004d760
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002ce30
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 0x14002cfb9
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14002cf9e
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 0x14002ce9e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002ce90
inc rbx
jmp 0x14002cea0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14002ceae
lea r14d, [rax + 0xe]
jmp 0x14002cebb
cmp eax, 0x17
jne 0x14002cf54
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14002cf54
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14002cf54
cmp rax, r14
jb 0x14002cf54
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [fcn.1400552f4]
mov rsi, rax
test rax, rax
je 0x14002cf63
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.14004f5b0
test rbx, rbx
je 0x14002cf41
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.14004f5b0
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x14002cf51
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14002ce80
jmp 0x14002cf69
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 0x14002cf88
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14002cf99
mov rcx, rbp
call fcn.14002ce00
xor ebp, ebp
jmp 0x14002cfad
test rbp, rbp
jne 0x14002cfad
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 0x140033490
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 [0x14009d070]
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 + 0x1f8]
mov rcx, rbp
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14003350b
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.1400199c0
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x140033533
lea rdx, str.Error_accept__ing_server_connect
call fcn.140018fa0
lea eax, [rbx + 0x1f]
jmp 0x1400335af
lea rdx, str.Connection_accepted_from_server
call fcn.140019080
mov edx, 1
mov byte [rsi + 0x3b9], 0
mov rcx, rbx
mov qword [rsi + 0x1f8], rbx
call fcn.140043b50
mov byte [rsi + 0x3cc], 1
cmp qword [rdi + 0x288], 0
je 0x1400335ad
mov dl, 1
mov rcx, rdi
call fcn.14000a8a0
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.14000a8a0
test ebx, ebx
je 0x1400335ad
mov rdx, rsi
mov rcx, rdi
call fcn.140033a60
mov eax, Ordinal_46
jmp 0x1400335af
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14004d760
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 0x140034610
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x4b0
cmp byte [rdx + 0xa6], 0
jne 0x1400346ba
xor r8d, r8d
mov dword [rdx + 0xc8], r8d
cmp byte [rax + 0x3b3], r8b
je 0x140034673
mov r9, qword [rdx + 0x88]
test r9, r9
je 0x140034673
cmp dword [rdx + 0xa0], r8d
je 0x140034667
mov rax, qword [rdx + 0x98]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x140034673
mov dword [rdx + 0xa8], r8d
mov rcx, rbx
jmp 0x140034693
mov rcx, rbx
cmp dword [rdx + 0xa0], r8d
je 0x1400346ba
mov r9, qword [rdx + 0x98]
mov dword [rdx + 0xa8], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.140049650
mov r8d, eax
test eax, eax
jne 0x1400346c4
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.140033a50
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140034aa0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
add rdx, 0x4b0
cmp byte [rcx + 0xb09], 0
jne 0x140034ac6
cmp dword [rcx + 0x568], 0
je 0x140034af9
mov r9, qword [rdx + 0x90]
test r9, r9
je 0x140034af9
lea r8, str.MDTM__s
call fcn.140049650
mov r8d, eax
test eax, eax
jne 0x140034b03
lea edx, [rax + 0x12]
mov rcx, rbx
call fcn.140033a50
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140035c60
add rsp, 0x20
pop rbx
ret
Function at 0x1400352c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
cmp eax, 0x64
jb 0x14003533f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x18]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x574]
lea edi, [rax + 1]
test eax, eax
jne 0x14003531b
lea rdx, str.disabling_EPRT_usage
call fcn.140019080
mov byte [rsi + 0x3bf], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140036040
cmp edi, 2
jne 0x140035302
lea rdx, str.Failed_to_do_PORT
call fcn.140018fa0
mov rsi, qword [rsp + 0x30]
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively
call fcn.140019080
xor edx, edx
mov rcx, rbx
call fcn.140033a50
add rsp, 0x20
pop rbx
jmp fcn.140033c00
Function at 0x140035690
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x4b0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400356e1
cmp qword [rdx + 0x90], 0
je 0x1400356e1
xor r9d, r9d
lea r8, str.REST__d
call fcn.140049650
mov r8d, eax
test eax, eax
jne 0x1400356eb
lea edx, [rax + 0x1a]
mov rcx, rbx
call fcn.140033a50
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140035360
add rsp, 0x20
pop rbx
ret

Function at 0x1400359b0
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 0x140035a00
mov r9, qword [rdx + 0x540]
test r9, r9
je 0x140035a00
lea r8, str.SIZE__s
add rdx, 0x4b0
call fcn.140049650
mov r8d, eax
test eax, eax
jne 0x140035a0a
lea edx, [rax + 0x17]
mov rcx, rbx
call fcn.140033a50
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140035690
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xb1c], 0
mov r10, rcx
mov r11, qword [rcx + 0x18]
je 0x140035cbc
cmp qword [r11 + 0x540], 0
je 0x140035cbc
movzx edx, byte [rcx + 0x1368]
mov rcx, r11
call fcn.140033e60
test eax, eax
je 0x140035cbc
mov rax, qword [r10 + 0x1b0]
mov r9d, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x1368]
add rsp, 0x28
jmp fcn.140033dc0
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.1400359b0

Function at 0x140035cd0
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 0x140035d0c
lea rdx, str.Couldnt_set_desired_mode
call fcn.140018fa0
lea eax, [rdi + 0x11]
jmp 0x140035d64
cmp edx, 0xc8
je 0x140035d23
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140019080
cmp esi, 0x13
jne 0x140035d35
mov rdx, rbp
mov rcx, rbx
call fcn.1400359b0
jmp 0x140035d60
cmp esi, 0x14
jne 0x140035d44
mov rcx, rbx
call fcn.140034900
jmp 0x140035d60
cmp esi, 0x15
jne 0x140035d53
mov rcx, rbx
call fcn.1400359a0
jmp 0x140035d60
cmp esi, 0x16
jne 0x140035d62
mov rcx, rbx
call fcn.140035bb0
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 0x14003c6f0
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 0x14003c771
sub r8d, 1
je 0x14003c748
cmp r8d, 1
jne 0x14003c785
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14003c769
cmp ecx, r8d
jne 0x14003c785
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.14003c910
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14003c769
cmp ecx, 1
jne 0x14003c785
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.14003c910
ret

Function at 0x14003c790
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 0x14003c834
sub r8d, 2
je 0x14003c7ed
cmp r8d, 1
jne 0x14003c826
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14003c7e0
cmp ecx, r8d
jne 0x14003c826
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 0x14003c827
cmp ecx, 1
jne 0x14003c826
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.14003c910
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14003c819
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14003c910

Function at 0x14003c860
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 0x14003c8ed
sub r8d, 1
je 0x14003c8be
cmp r8d, 1
jne 0x14003c904
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14003c8e2
cmp ecx, r8d
jne 0x14003c904
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.14003c910
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14003c8e2
cmp ecx, 1
jne 0x14003c904
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.14003c910
ret
Function at 0x14003c910
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 + 0x1f0]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14003c96f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140018fa0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.14003c100
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret