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

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbp, qword [rcx]
mov rbx, rdx
mov rsi, rcx
je 0x14001853d
cmp dword [rcx + 0x3b8], 0
mov qword [rsp + 0x170], rdi
jne 0x14001852d
cmp dword [rcx + 0x428], 0
jne 0x14001852d
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400183e3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.1400289e0
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.140016bd0
jmp 0x140018535
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.14004d2b0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140018440
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.1400289e0
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.140016bd0
jmp 0x140018535
lea rbx, [rsi + 0x186]
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.140018a30
test eax, eax
jne 0x140018496
call fcn.14004e100
mov rbx, rax
call fcn.14004e100
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.1400289e0
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140016bd0
jmp 0x140018535
mov rax, qword [rbx]
lea r8, [rsi + 0x1e8]
lea rdx, [rsi + 0x1b8]
mov qword [rsi + 0x88], rax
mov rax, qword [rbx + 8]
lea rcx, [rsp + 0x30]
mov qword [rsi + 0x90], rax
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x98], rax
mov rax, qword [rbx + 0x18]
mov qword [rsi + 0xa0], rax
mov rax, qword [rbx + 0x20]
mov qword [rsi + 0xa8], rax
mov eax, dword [rbx + 0x28]
mov dword [rsi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rsi + 0xb4], ax
call fcn.140018a30
test eax, eax
jne 0x14001852d
call fcn.14004e100
mov rbx, rax
call fcn.14004e100
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.1400289e0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140016bd0
jmp 0x140018535
mov rcx, rsi
call fcn.140017ed0
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140049680
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret
Function at 0x140018e40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0xa2c], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140018eaf
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.140016ce0
jmp 0x140018f3e
mov ecx, dword [rbx + 0xa30]
mov dword [rsp + 0x58], 1
call fcn.140019120
mov ecx, dword [rbx + 0xa34]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.140019120
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, ntohs
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140018f3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.140016ce0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140049680
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140019110
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14005ac6c
cdqe
add rsp, 0x28
ret
Function at 0x140027c20
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140027de4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140027dc4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140027c7d
lea ebp, [rax + 0xe]
jmp 0x140027c89
cmp eax, 0x17
jne 0x140027d31
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140027d31
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140027d31
cmp rax, rbp
jb 0x140027d31
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140027d6c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140027d5b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140049a70
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140027d1e
call qword [case.0x14000dcb6.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140027d40
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x140027d2e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140027c70
jmp 0x140027d72
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.140049fdc]
mov rcx, rdi
call qword [fcn.140049fdc]
jmp 0x140027d72
mov rcx, rdi
mov r14d, 8
call qword [fcn.140049fdc]
jmp 0x140027d72
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140027d87
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x140027dbf
test rbx, rbx
je 0x140027dba
mov rcx, qword [rbx + 0x20]
call qword [fcn.140049fdc]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140049fdc]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140049fdc]
mov rbx, rdi
test rdi, rdi
jne 0x140027d91
mov rbx, r13
jmp 0x140027dd3
test rbx, rbx
jne 0x140027dd3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x140029390
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call fcn.14004f3a0
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400297d0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400297fa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140081348]
mov rcx, rbx
mov r14, rax
call fcn.14004ec48
test rax, rax
je 0x14002985d
mov rcx, rbx
test r14, r14
je 0x140029847
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140029895
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029895
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140029959
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400298c0
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14002994b
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14002994b
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400298f0
mov ecx, 0x5c
mov word [rax + rdi], cx
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x140029904
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140029920
mov rcx, rdi
test r14, r14
je 0x140029942
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140029948
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.140049fdc]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rax, rbp
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400301f0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140030236
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.140016bd0
jmp 0x140030260
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140030251
shr ax, 8
test al, al
jne 0x140030251
xor eax, eax
jmp 0x140030265
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.140016bd0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140049680
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, qword [rcx]
movsxd r10, edx
mov r11, rcx
mov r9, qword [rax + 0x208]
mov r8d, dword [r9 + r10*4 + 8]
dec r8d
je 0x140030a6f
dec r8d
je 0x140030a4f
dec r8d
jne 0x140030a83
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140030a47
dec ecx
jne 0x140030a83
xor eax, eax
mov r8d, edx
mov rcx, r11
mov edx, 0xfb
mov dword [r9 + r10*4 + 8], 2
mov dword [r9 + r10*4 + 0x408], eax
jmp fcn.140030c10
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x140030a47
dec ecx
jne 0x140030a83
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.140030c10
repz ret

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

Disassembly:
mov rax, qword [rcx]
movsxd r10, edx
mov r11, rcx
mov r9, qword [rax + 0x208]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x140030b31
sub r8d, 2
je 0x140030aee
dec r8d
jne 0x140030b22
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140030ae1
dec ecx
jne 0x140030b22
mov dword [r9 + r10*4 + 0xc08], 1
mov dword [r9 + r10*4 + 0x1008], ecx
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140030b24
dec ecx
jne 0x140030b22
mov dword [r9 + r10*4 + 0x1008], ecx
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
jmp fcn.140030c10
repz ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x140030b15
mov r8d, edx
mov edx, 0xfd
mov dword [r9 + r10*4 + 0xc08], 1
jmp fcn.140030c10
Function at 0x140030b60
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r10, edx
mov r11, rcx
mov r9, qword [rax + 0x208]
mov r8d, dword [r9 + r10*4 + 0xc08]
dec r8d
je 0x140030beb
dec r8d
je 0x140030bc8
dec r8d
jne 0x140030c02
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140030bbd
dec ecx
jne 0x140030c02
xor eax, eax
mov r8d, edx
mov rcx, r11
mov edx, 0xfd
mov dword [r9 + r10*4 + 0xc08], 2
mov dword [r9 + r10*4 + 0x1008], eax
jmp fcn.140030c10
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x140030bbd
dec ecx
jne 0x140030c02
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.140030c10
repz ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x238]
mov esi, edx
mov byte [rax + 0x11], dl
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
mov byte [rax + 0x12], dil
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140030c6e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140016bd0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140030450
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140030e10
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140030fbe
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x208]
mov r14, rcx
mov qword [rsp + 0x20], r15
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140030e59
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140030e67
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140030e75
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x140030eaf
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x140030ec6
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140030ed4
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x140030ee6
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140030ef4
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140030f02
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.140030580
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x140030f6a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140016bd0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140030ca0
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140030fb6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140016bd0
add rsp, 0x30
pop r14
pop rdi
pop rbp
repz ret
Function at 0x1400321f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x7c0]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r14, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14003228c
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.140049a70
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xe8], rsi
cmp r8d, 4
jge 0x1400322e7
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140016bd0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140049680
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x14003237a
dec edx
je 0x1400323f4
dec edx
je 0x14003234e
dec edx
je 0x140032331
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x140098b74]
mov rcx, rdi
call fcn.140016bd0
jmp 0x1400323f4
lea rdx, [rcx + 2]
add r8d, 0xfffffffe
mov rcx, rbx
call fcn.140031f20
test eax, eax
je 0x1400323f4
jmp 0x1400322b9
movzx eax, byte [rcx + 2]
mov rdx, rcx
shl ax, 8
lea r8, [rdx + 4]
movzx ecx, ax
movzx eax, byte [rdx + 3]
lea rdx, [0x14007bf6c]
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rdi
call fcn.140016ce0
jmp 0x1400323f4
cmp r8d, 4
jle 0x1400323f4
movzx eax, byte [rcx + 2]
mov rdx, rcx
shl ax, 8
movzx ecx, ax
movzx eax, byte [rdx + 3]
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400323f4
lea eax, [r8 - 4]
lea r8, [rdx + 4]
mov rcx, r14
movsxd r9, eax
mov edx, 1
call fcn.140016a50
mov esi, eax
test eax, eax
je 0x1400323d3
mov edx, 5
mov rcx, rbx
call fcn.140032e00
mov eax, esi
jmp 0x1400322b9
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400245d0
mov rcx, r14
call fcn.1400249e0
test eax, eax
je 0x1400322b7
mov edx, 5
mov rcx, rbx
call fcn.140032e00
mov eax, Ordinal_46
jmp 0x1400322b9
Function at 0x140036450
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 [0x1400a45d0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x240]
mov rsi, qword [rcx]
mov rbx, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400364c7
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.1400176a0
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x1400364ec
lea rdx, str.Error_accept__ing_server_connect
call fcn.140016bd0
lea eax, [rdi + 0x1f]
jmp 0x140036553
lea rdx, str.Connection_accepted_from_server_n
call fcn.140016ce0
mov dword [rbx + 0x3e0], 0
mov edx, 1
mov rcx, rdi
mov qword [rbx + 0x240], rdi
call fcn.14003fc90
mov dword [rbx + 0x25c], 1
mov rax, qword [rsi + 0x2d8]
test rax, rax
je 0x140036551
mov rcx, qword [rsi + 0x2e0]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x140036551
mov rcx, rbx
call fcn.140036a90
mov eax, Ordinal_46
jmp 0x140036553
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140049680
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 0x140037820
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x858], 0
lea r9, [rcx + 0x7c0]
mov rbx, rcx
jne 0x1400378cc
xor edx, edx
mov dword [r9 + 0xbc], edx
mov rax, qword [rcx]
mov ecx, edx
cmp dword [rax + 0x754], 2
sete cl
mov dword [r9 + 0xc0], ecx
mov rax, qword [rbx]
cmp dword [rax + 0x750], 2
jne 0x140037871
cmp dword [r9 + 0x9c], edx
je 0x1400378c9
cmp dword [rbx + 0x3b8], edx
je 0x14003788b
mov r8, qword [r9 + 0x70]
test r8, r8
je 0x14003788b
mov dword [r9 + 0x9c], edx
jmp 0x1400378a6
cmp dword [r9 + 0x80], edx
je 0x1400378c9
mov r8, qword [r9 + 0x78]
mov dword [r9 + 0x9c], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
mov rcx, r9
call fcn.1400447d0
test eax, eax
jne 0x1400378d6
mov dword [rbx + 0x884], 0x10
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140037cc0
add rsp, 0x20
pop rbx
ret
Function at 0x140037cc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
add rcx, 0x7c0
cmp dword [rdx + 0x770], 0
jne 0x140037ce5
cmp dword [rdx + 0x5a8], 0
je 0x140037d11
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140037d11
lea rdx, str.MDTM__s
call fcn.1400447d0
test eax, eax
jne 0x140037d79
mov dword [rbx + 0x884], 0x12
add rsp, 0x20
pop rbx
ret
cmp dword [rdx + 0x7ac], 0
je 0x140037d6c
cmp qword [rbx + 0x848], 0
je 0x140037d6c
cmp dword [rdx + 0x778], 0
movsx ecx, byte [rbx + 0x874]
mov eax, 0x49
mov r8d, 0x41
cmovne eax, r8d
cmp ecx, eax
je 0x140037d6c
mov rax, qword [rdx + 0x208]
mov r8d, reloc.WS2_32.dll_send
mov rcx, rbx
mov dword [rax + 0x18], 1
mov edx, dword [rdx + 0x778]
add rsp, 0x20
pop rbx
jmp fcn.140036d50
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140038df0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x40
mov rbp, qword [rcx]
mov edi, dword [rcx + 0x878]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rbx, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x1400385dc
test edi, edi
jne 0x14003859a
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rbp
call fcn.140016ce0
mov dword [rbx + 0x404], edi
inc edi
cmp edi, 2
jne 0x1400385c3
lea rdx, str.Failed_to_do_PORT
mov rcx, rbp
call fcn.140016bd0
lea eax, [rdi + 0x1c]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov edx, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x140039420
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rbp
call fcn.140016ce0
mov dword [rbx + 0x884], 0
mov rax, qword [rbx]
mov rcx, qword [rax + 0x208]
cmp dword [rcx + 0x18], 0
je 0x140038633
or r8, 0xffffffffffffffff
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, rbx
or edx, r8d
mov dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], 0
call fcn.14001cb60
jmp 0x14003863d
mov dword [rbx + 0x3e0], 1
mov rbp, qword [rsp + 0x58]
mov dword [rbx + 0x854], 1
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rdi
ret