joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402261b0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140226358
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140226215
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140226215
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140226215
mov byte [rax], dl
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 + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14022624c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1402262a2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402262a2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402262a2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402262a2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1402262a2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140225c60
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140226304
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1402021f0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140226030
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140226350
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1402021f0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140227ac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140545d00]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140227b55
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140227bb6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1402021f0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140473210
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140227c71
sub ecx, 1
je 0x140227ce4
sub ecx, 1
je 0x140227c20
cmp ecx, 1
je 0x140227c03
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140480820]
call fcn.1402021f0
jmp 0x140227ce4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1402277f0
test eax, eax
je 0x140227ce4
jmp 0x140227b8a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140227ce4
sub rax, rsi
cmp rax, rbp
jae 0x140227ce4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140202370
jmp 0x140227ce4
cmp r8d, 4
jle 0x140227ce4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140227ce4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140202110
mov esi, eax
test eax, eax
je 0x140227cc3
mov edx, 5
mov rcx, rbx
call fcn.1402287b0
mov eax, esi
jmp 0x140227b8a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140210be0
mov rcx, r14
call fcn.140210ec0
test eax, eax
je 0x140227b88
mov edx, 5
mov rcx, rbx
call fcn.1402287b0
mov eax, Ordinal_45
jmp 0x140227b8a
Function at 0x14023bda0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14023bde2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14023be29
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14023be82
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14023be40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14023bec3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140487aca]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140487acb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14023be90
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14027df90
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x68
call fcn.140473cc0
sub rsp, rax
mov qword [rsp + 0x38], 0
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.14027d900
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.14027d770
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14027e063
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14027e039
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14027e02c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x50]
shl rax, 3
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
call fcn.14027d850
mov rcx, qword [rsp + 0x70]
call fcn.14027dae0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14027e075
mov rax, qword [rsp + 0x38]
jmp 0x14027e14a
mov edx, 1
mov rcx, qword [rsp + 0x70]
call fcn.14027d900
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.14027d770
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14027e131
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x20], 0xf0000040
mov r9d, reloc.WLDAP32.dll_Ordinal_22
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14027e107
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14027e0fa
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x58]
shl rax, 3
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
call fcn.14027d850
mov rcx, qword [rsp + 0x70]
call fcn.14027dae0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14027e140
mov rax, qword [rsp + 0x38]
jmp 0x14027e14a
mov rcx, qword [rsp + 0x70]
call fcn.14027dae0
add rsp, 0x68
ret
Function at 0x1402924b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x48
call fcn.140473cc0
sub rsp, rax
mov r8d, Ordinal_41
lea rdx, [0x1404ac478]
mov ecx, 8
call fcn.140247340
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1402924e8
jmp 0x140292539
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x140292760]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x140292524
jmp 0x140292539
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x20], rcx
mov eax, 1
jmp 0x14029255f
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x20], 0
mov r8d, reloc.WS2_32.dll_gethostbyname
lea rdx, [0x1404ac478]
mov rcx, qword [rsp + 0x30]
call fcn.140247070
xor eax, eax
add rsp, 0x48
ret

Function at 0x140296da0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, Ordinal_41
call fcn.140473cc0
sub rsp, rax
cmp dword [0x1405f7a90], 0
jne 0x140296e59
mov dword [0x1405f7a90], 1
mov r8d, 0x198
xor edx, edx
lea rcx, [0x1405f7aa0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [0x1405f7aa0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140296e59
call fcn.1402506f0
lea r8, str.BIO_sock_init
mov edx, 0x99
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_wsastartup__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
call fcn.1402506f0
lea r8, str.BIO_sock_init
mov edx, 0x9b
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x7a
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
mov eax, 0xffffffff
jmp 0x140296e5e
mov eax, 1
add rsp, 0x28
ret

Function at 0x140296e70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.140473cc0
sub rsp, rax
movsxd rax, dword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140296ee2
call fcn.1402506f0
lea r8, str.BIO_socket_ioctl
mov edx, 0xf7
lea rcx, str.crypto_bio_bio_sock.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_ioctlsocket__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140296f60
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
mov eax, 0x288
call fcn.140473cc0
sub rsp, rax
mov rax, qword [0x140545d00]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [rsp + 0x290], 0
jl 0x140296fa0
cmp dword [rsp + 0x290], 0x40
jl 0x140296faa
mov eax, 0xffffffff
jmp 0x1402970d3
cmp qword [rsp + 0x2a0], 0
jne 0x140296fbf
mov eax, 1
jmp 0x1402970d3
xor ecx, ecx
call fcn.140297120
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x2a0], rax
jge 0x140296fe1
xor eax, eax
jmp 0x1402970d3
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x30], 0
jmp 0x140296ffd
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jae 0x14029701d
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x290]
cmp qword [rsp + rax*8 + 0x68], rcx
jne 0x14029701b
jmp 0x14029701d
jmp 0x140296ff3
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jne 0x140297048
cmp dword [rsp + 0x60], 0x40
jae 0x140297048
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x290]
mov qword [rsp + rax*8 + 0x68], rcx
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
xor eax, eax
test eax, eax
jne 0x140296fe9
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x2a0]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x298], 0
je 0x140297082
mov qword [rsp + 0x48], 0
jmp 0x14029708c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x298], 0
je 0x1402970a2
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
jmp 0x1402970ab
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x290]
inc eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140473210
add rsp, 0x288
ret
Function at 0x140299280
Capabilities:
Resolve dns

Disassembly:
mov word [rsp + 0x20], r9w
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov eax, 0x48
call fcn.140473cc0
sub rsp, rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x70]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1402993a9
mov rax, qword [rsp + 0x28]
movsx eax, word [rax + 0x10]
cmp eax, 2
jne 0x140299387
mov rax, qword [rsp + 0x28]
movsx rax, word [rax + 0x12]
cmp rax, 4
jne 0x140299387
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x14029932e
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140299387
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x68]
mov edx, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x58]
call fcn.1402990f0
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x140299374
mov eax, 8
jmp 0x1402993fe
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
add rax, 0x28
mov qword [rsp + 0x30], rax
jmp 0x140299320
mov r9d, 0x400
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
mov edx, 0x401
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
xor eax, eax
jmp 0x1402993fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2af9
je 0x1402993dd
cmp dword [rsp + 0x20], 0x2afa
je 0x1402993e4
cmp dword [rsp + 0x20], 0x2afb
je 0x1402993eb
cmp dword [rsp + 0x20], 0x2afc
je 0x1402993f2
jmp 0x1402993f9
mov eax, 0x2af9
jmp 0x1402993fe
mov eax, 0x2afa
jmp 0x1402993fe
mov eax, 0x2afb
jmp 0x1402993fe
mov eax, 0x2af9
jmp 0x1402993fe
mov eax, 0x2af9
add rsp, 0x48
ret
Function at 0x1402c8470
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x48
call fcn.140473cc0
sub rsp, rax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x28], 0
je 0x1402c853f
cmp qword [rsp + 0x58], 0
je 0x1402c853f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x30]
and eax, 0x8000
test eax, eax
je 0x1402c850a
movsxd rax, dword [rsp + 0x60]
mov ecx, 8
imul rcx, rcx, 7
mov qword [rsp + 0x30], rcx
lea rdx, reloc.WLDAP32.dll_Ordinal_22
mov qword [rsp + 0x28], rdx
mov r8, qword [rsp + 0x50]
mov r9, qword [r8 + 0x40]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
mov r10, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
call qword [r10 + rax]
mov dword [rsp + 0x20], eax
jmp 0x1402c8530
movsxd rax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x40]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402c853f
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, reloc.WS2_32.dll_getservbyport
call fcn.140473cc0
sub rsp, rax
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x38]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, qword [rsp + 0x40]
call fcn.14026ba80
cmp dword [rsp + 0x20], 0
jg 0x1402f4ad1
mov ecx, dword [rsp + 0x20]
call fcn.1402f5060
test eax, eax
je 0x1402f4ad1
mov edx, 0xa
mov rcx, qword [rsp + 0x40]
call fcn.14026ce00
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1402f50e0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
mov eax, 0x48
call fcn.140473cc0
sub rsp, rax
mov dword [rsp + 0x34], 1
cmp dword [rsp + 0x50], 0xffffffff
jne 0x1402f5140
call fcn.1402506f0
lea r8, str.BIO_connect
mov edx, 0x56
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x87
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
xor eax, eax
jmp 0x1402f5374
mov eax, dword [rsp + 0x60]
and eax, 8
test eax, eax
je 0x1402f5155
mov dword [rsp + 0x30], 1
jmp 0x1402f515d
mov dword [rsp + 0x30], 0
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x50]
call fcn.140296ef0
test eax, eax
jne 0x1402f5175
xor eax, eax
jmp 0x1402f5374
mov eax, dword [rsp + 0x60]
and eax, 4
test eax, eax
je 0x1402f521a
movsxd rax, dword [rsp + 0x50]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 8
mov edx, 0xffff
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1402f521a
call fcn.1402506f0
lea r8, str.BIO_connect
mov edx, 0x60
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
call fcn.1402506f0
lea r8, str.BIO_connect
mov edx, 0x62
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x89
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
xor eax, eax
jmp 0x1402f5374
mov eax, dword [rsp + 0x60]
and eax, 0x10
test eax, eax
je 0x1402f52bf
movsxd rax, dword [rsp + 0x50]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, 6
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1402f52bf
call fcn.1402506f0
lea r8, str.BIO_connect
mov edx, 0x6a
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_setsockopt__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
call fcn.1402506f0
lea r8, str.BIO_connect
mov edx, WSASetLastError
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x8a
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
xor eax, eax
jmp 0x1402f5374
mov eax, dword [rsp + 0x60]
and eax, 0x20
mov rcx, qword [rsp + 0x58]
call fcn.1402975b0
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x58]
call fcn.1402517f0
movsxd rcx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x38]
mov r8d, edx
mov rdx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1402f536f
mov ecx, 0xffffffff
call fcn.1402f5060
test eax, eax
jne 0x1402f536b
call fcn.1402506f0
lea r8, str.BIO_connect
mov edx, 0xb2
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140250740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.calling_connect__
mov edx, eax
mov ecx, 2
call fcn.1402507b0
call fcn.1402506f0
lea r8, str.BIO_connect
mov edx, 0xb4
lea rcx, str.crypto_bio_bio_sock2.c
call fcn.140250740
xor r8d, r8d
mov edx, 0x67
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call fcn.1402507b0
xor eax, eax
jmp 0x1402f5374
mov eax, 1
add rsp, 0x48
ret
Function at 0x1402f75d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, Ordinal_27
call fcn.140473cc0
sub rsp, rax
movzx eax, byte [rsp + 0x38]
and eax, 1
mov dword [rsp], eax
cmp qword [rsp + 0x30], 0
je 0x1402f762e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 8], 0
je 0x1402f7696
mov rax, qword [rsp + 0x28]
dec rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
movzx ecx, byte [rsp + 0x38]
xor eax, ecx
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov rax, qword [rsp + 0x20]
dec rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp]
mov byte [rax], cl
mov eax, dword [rsp]
shr eax, 8
mov dword [rsp], eax
jmp 0x1402f762e
add rsp, 0x18
ret