joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022fdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rcx
call fcn.14001eacc
mov rdx, rax
lea r8, [0x14017a484]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140023116
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x140023116
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140023116
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140023116
mov ecx, esi
mov ebp, esi
call fcn.14001d754
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov r14, rax
call fcn.140113bc0
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x140023116
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
test rax, rax
je 0x1400230d4
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call fcn.140113bc0
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1400230d4
mov rdx, qword [rsp + 0x40]
lea rcx, [rbx + 0x20]
call fcn.140022a6c
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r14
call fcn.140111f9c
lea rcx, [rbx + 0x20]
call fcn.140022a68
mov edx, eax
mov dword [rbx + 0x80], eax
call fcn.140022a38
add edx, dword [rbx + 0x70]
mov dword [rbx + 0x84], eax
add eax, dword [rbx + 0x74]
mov dword [rbx + 0x7c], eax
mov dword [rbx + 0x78], edx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140026a80
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140026ade
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140026ad8
shr ax, 8
cmp al, 2
jne 0x140026ad8
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x1d8
ret

Function at 0x1400283a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x1400283ac
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
add rdx, 4
mov r8, rax
mov ecx, 2
jmp fcn.14003eb20
Function at 0x140035870
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x7c0]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x1400358e0
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x1400358a3
cmp qword [rdi + 0x78], rcx
je 0x1400358e0
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x1400358b6
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x140036820]
lea rdx, [rsp + 0x20]
call fcn.14002d020
cmp byte [rsp + 0x28], 0
jne 0x1400358f7
mov qword [rdi + 0x7c0], 0
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x1400358ff
mov qword [rsi], rbx
cmp byte [rbx + 0x258], 0
mov rdi, qword [rbx + 0x1d0]
je 0x14003591d
mov rcx, rbx
call fcn.14003b4a0
test eax, eax
jne 0x14003593f
jmp 0x1400358e0
cmp rdi, 0xffffffffffffffff
je 0x14003593f
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400358e0
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140035de0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1401d1b24]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x140035edc
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov r8b, 3
xor ecx, ecx
movups xmmword [rsp + 0x58], xmm0
lea edx, [rax + 2]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [r11 - 0x20], eax
movups xmmword [r11 - 0x70], xmm0
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x50], xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
mov dword [rsp + 0x40], 0x9c
mov dword [rsp + 0x44], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edx, 0x33
lea rcx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140035ed0
mov dword [0x1401d1b24], 2
jmp 0x140035f33
mov dword [0x1401d1b24], 1
jmp 0x140035ee1
cmp eax, 2
je 0x140035f33
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140035f12
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x140035f33
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0xf0
pop rbx
ret
Function at 0x140036030
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
lea r9, [rsp + 0x40]
mov rax, rdx
mov dword [rsp + 0x40], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rdi, rcx
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14003609b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
call fcn.14003cb80
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.140037d40
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140037d40
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400361a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rbx, rdx
mov rsi, qword [rcx]
mov rdi, rcx
je 0x14003638f
cmp byte [rcx + 0x312], 0
jne 0x140036387
cmp byte [rcx + 0x32c], 0
jne 0x140036387
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0xb0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140036242
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14003cb80
mov r9, rax
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140037c70
jmp 0x14003638f
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
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 0x1400362c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14003cb80
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140037c70
jmp 0x14003638f
lea rbx, [rdi + 0x114]
mov rdx, rbx
lea r8, [rdi + 0x144]
lea rcx, [rsp + 0xb0]
call fcn.140036840
test al, al
jne 0x14003630f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14003cb80
mov r9, rax
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140037c70
jmp 0x14003638f
movups xmm0, xmmword [rbx]
mov eax, dword [rbx + 0x28]
lea r8, [rdi + 0x178]
movups xmm1, xmmword [rbx + 0x10]
lea rdx, [rdi + 0x148]
movups xmmword [rdi + 0x70], xmm0
lea rcx, [rsp + 0x30]
movsd xmm0, qword [rbx + 0x20]
movups xmmword [rdi + 0x80], xmm1
movsd qword [rdi + 0x90], xmm0
mov dword [rdi + 0x98], eax
movzx eax, word [rbx + 0x2c]
mov word [rdi + 0x9c], ax
call fcn.140036840
test al, al
jne 0x140036387
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14003cb80
mov r9, rax
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140037c70
jmp 0x14003638f
mov rcx, rdi
call fcn.140035d20
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140111cf0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400368c0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x20]
mov qword [r8], 0xffffffffffffffff
mov r14, r8
lea r8, [rsp + 0x30]
mov rdi, rcx
xor r15b, r15b
call fcn.140035f50
mov esi, eax
test eax, eax
je 0x140036910
xor eax, eax
jmp 0x140036b36
lea r8, [rsp + 0x28]
mov qword [rsp + 0x148], rbx
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.140036840
test al, al
jne 0x14003696c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call fcn.14003cb80
mov r9, rax
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rbp
call fcn.140037c70
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1400356d0
jmp 0x140036b2c
lea r8, [rsp + 0xc0]
mov rcx, rbp
lea rdx, str.__Trying__s..._n
call fcn.140037d40
cmp dword [rsp + 0x30], 2
jne 0x1400369c8
cmp dword [rsp + 0x34], 1
jne 0x1400369c8
mov rbx, qword [rsp + 0x20]
cmp byte [rbp + 0x466], r15b
je 0x1400369aa
mov rdx, rbx
mov rcx, rdi
call fcn.140036030
mov rcx, rbx
call fcn.140035de0
cmp byte [rbp + 0x62c], r15b
je 0x1400369d5
mov rdx, rbx
mov rcx, rbp
call fcn.140036b60
jmp 0x1400369d5
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.140035de0
mov rax, qword [rbp + 0x268]
test rax, rax
je 0x1400369f8
mov rcx, qword [rbp + 0x270]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x140036a3f
mov r15b, 1
cmp dword [rsp + 0x30], 2
jne 0x140036a58
lea rcx, [rsp + 0x40]
call fcn.1400277f0
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rdx, rbx
mov rcx, rdi
call fcn.1400363c0
mov esi, eax
test eax, eax
je 0x140036a58
mov rdx, rbx
mov rcx, rdi
call fcn.1400356d0
mov eax, 7
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x140036b2e
test eax, eax
je 0x1400369f8
mov rdx, rbx
mov rcx, rdi
call fcn.1400356d0
mov eax, Ordinal_46
jmp 0x140036b2e
mov edx, 1
mov rcx, rbx
call fcn.140054440
call fcn.140026ce0
cmp dword [rdi + 0x338], 1
mov qword [rdi + 0x330], rax
jle 0x140036a88
mov edx, dword [rdi + 0x33c]
mov rcx, rbp
call fcn.140023c60
test r15b, r15b
jne 0x140036b29
cmp dword [rdi + 0xa4], 1
jne 0x140036b29
cmp byte [rdi + 0x32c], r15b
jne 0x140036aca
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140036aca
test esi, esi
jne 0x140036b25
mov qword [r14], rbx
mov eax, esi
jmp 0x140036b2e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0xb
je 0x140036b20
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x140036b20
mov edx, eax
mov rcx, rdi
call fcn.14003cb80
mov r9, rax
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.140037d40
mov rdx, rbx
mov dword [rbp + 0x8834], esi
mov rcx, rdi
call fcn.1400356d0
mov esi, 7
mov eax, esi
jmp 0x140036b2e
xor esi, esi
mov qword [r14], rbx
mov eax, esi
jmp 0x140036b2e
mov qword [r14], rbx
xor eax, eax
mov rbx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140036b60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401bd830]
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 + 0x62c], 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 0x140036bcf
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.140037d40
jmp 0x140036c5e
mov ecx, dword [rbx + 0x630]
mov dword [rsp + 0x58], 1
call fcn.140038da0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0x634]
call fcn.140038da0
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 0x140036c5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.140037d40
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140111cf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140037f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140037f9b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov r14, rcx
mov rbx, qword [rcx + rax*8 + 0x1d0]
call fcn.140038430
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x140038108
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400380dd
mov dword [rsi], 0x51
xor eax, eax
jmp 0x14003810b
mov edx, ebx
mov rcx, r14
call fcn.14003cb80
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140037c70
mov rcx, qword [r14]
mov dword [rcx + 0x8834], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140038430
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x218]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x340]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x14003852b
lea rax, [0x140037fb0]
cmp qword [rcx + r8*8 + 0x1f8], rax
jne 0x14003852b
cmp qword [rbx], 0
je 0x14003848b
test rdi, rdi
je 0x14003852b
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + r8*8 + 0x1d0]
xor r9d, r9d
mov rcx, rsi
mov r8, rdx
call fcn.1400389c0
cmp eax, 0xffffffff
je 0x140038526
test al, 1
je 0x140038526
mov rax, qword [rbx]
test rax, rax
jne 0x1400384ed
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [section..data]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
test rax, rax
je 0x14003851e
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140038526
add qword [rbx + 0x10], rcx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rbx + 8], 0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14003b4a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140054540
sub rsp, 0x28
mov rcx, qword [rcx + 0x1d0]
lea rdx, [rsp + 0x30]
mov r9d, 2
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x1400545b1
cmp rcx, 1
je 0x1400545a7
cmp rcx, 0xffffffffffffffff
jne 0x14005459d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1400545a7
cmp eax, 0xb
je 0x1400545a7
add eax, 0xffffd8be
cmp eax, 0xa
ja 0x14005459d
mov ecx, 0x59d
bt ecx, eax
jb 0x1400545b1
mov eax, 0xffffffff
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x14003c780
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15, r9
mov qword [r9], r12
mov esi, r12d
lea r9, [rsp + 0x68]
mov r14d, r12d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x14003c8f8
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14003c8e1
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x14003c878
cmp qword [rbx + 0x20], r12
je 0x14003c878
cmp qword [rbx + 0x10], 0x10
jb 0x14003c878
mov ecx, Ordinal_50
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14003c8b1
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov qword [rax + 0x20], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
call qword [section..data]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14003c8a1
mov rcx, qword [rbx + 0x20]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14003c865
call qword [case.0x14003ac79.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14003c887
test rsi, rsi
cmove rsi, rdi
test r14, r14
je 0x14003c875
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14003c7d0
jmp 0x14003c8b6
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.14011e248]
mov rcx, rdi
call qword [fcn.14011e248]
jmp 0x14003c8b6
mov rcx, rdi
mov ebp, 8
call qword [fcn.14011e248]
jmp 0x14003c8b6
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x14003c8cb
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x14003c8dc
mov rcx, rsi
call fcn.14003c730
mov rsi, r12
jmp 0x14003c8ee
test rsi, rsi
jne 0x14003c8ee
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov qword [r15], rsi
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x14003eb20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov rax, r8
mov r10, rdx
cmp ecx, 2
je 0x14003eb41
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
ret
mov r8, r9
mov rdx, rax
mov rcx, r10
add rsp, 0x28
jmp 0x14003eb60
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401bd830]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, byte [rcx + 3]
mov rbx, rdx
movzx edx, byte [rcx + 2]
mov rdi, r8
movzx r10d, byte [rcx + 1]
lea r8, [0x140143708]
movzx r9d, byte [rcx]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
mov edx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x20], r10d
call fcn.14003d810
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14003ebc4
test rax, rax
je 0x14003ec04
cmp rax, rdi
jae 0x14003ec04
lea rax, [rsp + 0x40]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x40]
nop word [rax + rax]
movzx edx, byte [rcx]
mov byte [r8 + rcx], dl
lea rcx, [rcx + 1]
test dl, dl
jne 0x14003ebf0
mov rax, rbx
jmp 0x14003ec11
mov ecx, Ordinal_30
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140111cf0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14003fee0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 2
jne 0x14003ff2a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x14003ff1a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x14003ff76
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x14003ff63
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1401423bc]
call fcn.14011eb20
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14003ff63
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, rax
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.14012622c
mov rdi, rax
test rax, rax
jne 0x14003ff99
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14003ff90
call fcn.14011ec50
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400480f0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1401bd830]
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 0x140048136
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.140037c70
jmp 0x140048160
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140048151
shr ax, 8
test al, al
jne 0x140048151
xor eax, eax
jmp 0x140048165
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.140037c70
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140111cf0
add rsp, 0x1d0
pop rbx
ret