joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e6f70
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8, qword [rdx + rax*8]
xor qword [rcx + rax*8], r8
inc rax
cmp rax, 8
jne 0x1400e6e92
ret
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov ebp, 1
mov qword [rsp + 0x20], rcx
mov rdi, rdx
mov rdx, rcx
mov rcx, r8
mov rbx, r8
call 0x1400e6e90
mov rcx, rbx
cmp rbp, rdi
jae 0x1400e714e
call fcn.1400e73f0
mov rcx, rbx
call fcn.1400e7310
mov r10, qword [rbx]
mov r14, qword [rbx + 8]
mov r9, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rcx, r10
mov r13, qword [rbx + 0x20]
mov r12, qword [rbx + 0x28]
call fcn.1400e72b0
mov rcx, r14
mov r11, qword [rbx + 0x30]
mov rsi, qword [rbx + 0x38]
xor r10, rax
mov r15, rax
mov qword [rsp + 0x28], r10
call fcn.1400e72b0
mov rcx, r9
xor r14, rax
mov r10, rax
mov qword [rsp + 0x30], r14
call fcn.1400e72b0
mov rcx, r8
xor r9, rax
mov r14, rax
mov qword [rsp + 0x38], r9
call fcn.1400e72b0
mov rcx, r13
xor r8, rax
mov r9, rax
mov qword [rsp + 0x40], r8
call fcn.1400e72b0
mov rcx, r12
xor r13, rax
mov r8, rax
mov qword [rsp + 0x48], r13
call fcn.1400e72b0
mov rcx, r11
xor r12, rax
mov r13, rax
mov qword [rsp + 0x50], r12
call fcn.1400e72b0
mov rcx, rsi
xor r11, rax
mov r12, rax
mov qword [rsp + 0x58], r11
call fcn.1400e72b0
mov rcx, qword [rsp + 0x28]
xor rsi, rax
mov r11, rax
call fcn.1400e72e0
mov rcx, qword [rsp + 0x30]
xor r15, rax
xor r15, rsi
mov qword [rbx], r15
call fcn.1400e72e0
mov rcx, qword [rsp + 0x38]
xor r10, rax
mov rax, qword [rsp + 0x28]
xor r10, rax
xor r10, rsi
mov qword [rbx + 8], r10
call fcn.1400e72e0
mov rcx, qword [rsp + 0x40]
xor r14, rax
mov rax, qword [rsp + 0x30]
xor r14, rax
mov qword [rbx + 0x10], r14
call fcn.1400e72e0
mov rcx, qword [rsp + 0x48]
xor r9, rax
mov rax, qword [rsp + 0x38]
xor r9, rax
xor r9, rsi
mov qword [rbx + 0x18], r9
call fcn.1400e72e0
mov rcx, qword [rsp + 0x50]
xor r8, rax
mov rax, qword [rsp + 0x40]
xor r8, rax
xor r8, rsi
mov qword [rbx + 0x20], r8
call fcn.1400e72e0
mov rcx, qword [rsp + 0x58]
xor r13, rax
mov rax, qword [rsp + 0x48]
xor r13, rax
mov qword [rbx + 0x28], r13
call fcn.1400e72e0
mov rcx, rsi
xor r12, rax
mov rax, qword [rsp + 0x50]
xor r12, rax
mov qword [rbx + 0x30], r12
call fcn.1400e72e0
mov rdx, rbp
mov rcx, rbx
inc rbp
xor r11, rax
mov rax, qword [rsp + 0x58]
shl rdx, 6
xor r11, rax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x38], r11
add rdx, rax
call 0x1400e6e90
jmp 0x1400e6f9b
call fcn.1400e73f0
mov rcx, rbx
shl rdi, 6
call fcn.1400e7310
mov rdx, qword [rsp + 0x20]
mov rcx, rbx
add rdx, rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x1400e6e90

Function at 0x1400e7a40
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, qword [rcx + rax*8]
mov r9, qword [rdx + rax*8]
xor r9, r10
and r9, r8
xor r9, r10
mov qword [rcx + rax*8], r9
inc rax
cmp rax, 6
jne 0x1400e7a42
ret

Function at 0x1400e7f00
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
neg r8
mov r10, qword [rcx + rax]
mov r9, qword [rdx + rax]
xor r9, r10
and r9, r8
xor r9, r10
mov qword [rcx + rax], r9
add rax, 8
cmp rax, 0x28
jne 0x1400e7f05
ret
Function at 0x1400e7f30
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
neg r8
mov r10, qword [rcx + rax]
mov r9, qword [rdx + rax]
xor r9, r10
and r9, r8
xor r10, r9
mov qword [rcx + rax], r10
xor qword [rdx + rax], r9
add rax, 8
cmp rax, 0x28
jne 0x1400e7f35
ret

Function at 0x1400e9b30
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
xor edi, edi
lea rsi, [rsp + 0x20]
mov r9, rcx
lea rbx, [rsp + 0x50]
mov r10, rdx
mov rcx, rsi
lea r11, [rsp + 0x80]
call fcn.1400e9360
mov rcx, rbx
call fcn.1400e9360
mov rcx, r11
call fcn.1400e9360
mov rdx, r10
inc rdi
mov rax, rdi
xor rax, r8
mov rcx, rax
dec rax
not rcx
and rcx, rax
xor eax, eax
sar rcx, 0x3f
mov rbp, qword [rsi + rax*8]
mov r10, qword [rdx + rax*8]
xor r10, rbp
and r10, rcx
xor r10, rbp
mov rbp, qword [rbx + rax*8]
mov qword [rsi + rax*8], r10
mov r10, qword [rdx + rax*8 + 0x30]
xor r10, rbp
and r10, rcx
xor r10, rbp
mov rbp, qword [r11 + rax*8]
mov qword [rbx + rax*8], r10
mov r10, qword [rdx + rax*8 + 0x60]
xor r10, rbp
and r10, rcx
xor r10, rbp
mov qword [r11 + rax*8], r10
inc rax
cmp rax, 6
jne 0x1400e9b8b
add rdx, 0x90
cmp rdi, 0x10
jne 0x1400e9b70
mov rdx, rsi
mov rcx, r9
call fcn.1400e9320
lea rcx, [r9 + 0x30]
mov rdx, rbx
call fcn.1400e9320
lea rcx, [r9 + 0x60]
mov rdx, r11
call fcn.1400e9320
nop
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400ebe80
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r10, rcx
mov rbx, r8
cmp edx, 0x80
je 0x1400ebf16
mov eax, 1
cmp edx, 0x100
jne 0x1400ec136
lea rdi, [rsp + 0x20]
mov rdx, rcx
lea rbp, [rsp + 0x30]
mov dword [r8 + 0xf0], 0xe
mov rcx, rdi
mov esi, 2
lea r12, [rsp + 0x40]
lea r13, [0x140165360]
call fcn.1400e6eb0
mov r8d, 0x10
mov rcx, rbx
mov rdx, rdi
call fcn.1400e6dd0
lea rdx, [r10 + 0x10]
mov rcx, rbp
call fcn.1400e6eb0
lea rcx, [rbx + 0x10]
mov rdx, rbp
add rbx, 0x20
mov r8d, 0x10
call fcn.1400e6dd0
jmp 0x1400ec00a
lea rdi, [rsp + 0x30]
mov rdx, rcx
lea rsi, [rbx + 0x10]
mov dword [r8 + 0xf0], 0xa
mov rcx, rdi
lea rbp, [0x140165360]
lea r12, [rsp + 0x40]
call fcn.1400e6eb0
mov rcx, rbx
mov r8d, 0x10
mov rdx, rdi
call fcn.1400e6dd0
add rbx, 0xb0
mov rdx, rdi
mov rcx, r12
inc rbp
call fcn.1400e7380
mov r8b, byte [rbp - 1]
mov rcx, qword [rsp + 0x40]
call fcn.1400e72b0
mov rdx, r8
shr r8, 4
and edx, 0xf
shr rax, 0x30
xor rax, qword [rsp + 0x30]
and r8d, 0xf
xor rax, rdx
mov rdx, rax
mov rcx, rax
shl rcx, 0x10
shl rdx, 0x20
xor rdx, rcx
mov rcx, qword [rsp + 0x48]
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x30], rax
call fcn.1400e72b0
shr rax, 0x30
xor rax, qword [rsp + 0x38]
xor rax, r8
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
mov rcx, rsi
add rsi, 0x10
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rdi
mov qword [rsp + 0x38], rax
call fcn.1400e6dd0
cmp rbx, rsi
jne 0x1400ebf59
xor eax, eax
jmp 0x1400ec136
mov rdx, rbp
mov rcx, r12
lea r14, [rbx + 0x20]
call fcn.1400e7380
mov rax, rsi
mov rcx, qword [rsp + 0x40]
shr rax, 1
mov r8b, byte [r13 + rax - 1]
call fcn.1400e72b0
mov rdx, r8
shr rax, 0x30
xor rax, qword [rsp + 0x20]
and edx, 0xf
shr r8, 4
xor rax, rdx
and r8d, 0xf
mov rdx, rax
mov rcx, rax
shl rcx, 0x10
shl rdx, 0x20
xor rdx, rcx
mov rcx, qword [rsp + 0x48]
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x20], rax
call fcn.1400e72b0
shr rax, 0x30
xor rax, qword [rsp + 0x28]
xor rax, r8
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
mov rcx, rbx
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rdi
mov qword [rsp + 0x28], rax
call fcn.1400e6dd0
cmp rsi, 0xe
je 0x1400ec003
mov rdx, rdi
mov rcx, r12
add rsi, 2
call fcn.1400e7380
movzx eax, word [rsp + 0x46]
xor rax, qword [rsp + 0x30]
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x4e]
xor rax, qword [rsp + 0x38]
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
lea rcx, [rbx + 0x10]
mov rbx, r14
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rbp
mov qword [rsp + 0x38], rax
call fcn.1400e6dd0
jmp 0x1400ec00a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x1400ec150
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rsp + 0x98]
mov rbp, rcx
mov rdi, r8
test rsi, rsi
je 0x1400ec283
cmp rsi, rdx
jne 0x1400ec283
lea rdx, [rsi + rsi]
xor eax, eax
cmp rdx, r9
jne 0x1400ec285
mov rax, qword [rsp + 0xa0]
lea r12, [r8 + rsi*8]
xor r15d, r15d
xor ebx, ebx
mov r14, r12
mov r13, qword [rax]
mov r8, qword [rdi]
mov rdx, qword [rsp + 0x90]
mov rcx, rdi
mov r9, rsi
imul r8, r13
call fcn.1400ec2f0
mov rcx, qword [r14]
xor edx, edx
add rax, rbx
add rax, rcx
cmp rcx, rax
mov qword [r14], rax
setne dl
or rdx, rbx
xor ebx, ebx
cmp rcx, rax
setae bl
inc r15
add rdi, 8
add r14, 8
and rbx, rdx
cmp r15, rsi
jb 0x1400ec1a6
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
mov rax, qword [r12]
mov rdx, rax
sub rdx, rcx
mov qword [rbp], rdx
xor edx, edx
cmp rax, rcx
sbb rdx, 0
mov rax, rdx
mov edx, 1
and eax, 1
cmp rdx, rsi
jae 0x1400ec252
mov r8, qword [r12 + rdx*8]
xor r9d, r9d
sub r8, rax
mov rax, qword [rsp + 0x90]
sbb r9, 0
sub r8, qword [rax + rdx*8]
sbb r9, 0
mov qword [rbp + rdx*8], r8
inc rdx
mov rax, r9
and eax, 1
jmp 0x1400ec21f
sub rbx, rax
xor eax, eax
mov rcx, qword [rbp + rax*8]
mov rdx, qword [r12 + rax*8]
xor rdx, rcx
and rdx, rbx
xor rdx, rcx
mov qword [rbp + rax*8], rdx
xor edx, edx
mov qword [r12 + rax*8], rdx
inc rax
cmp rax, rsi
jb 0x1400ec257
mov eax, 1
jmp 0x1400ec285
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400ec2a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov ebx, 1
mov r9d, 0x40
xor eax, eax
mov r8d, 1
shl rbx, 0x3f
mov rdx, r8
mov r11, rcx
shr rax, 1
and edx, 1
neg rdx
and r11, rdx
and rdx, rbx
mov r10, r11
add rax, rdx
xor r10, r8
and r8, r11
shr r10, 1
add r8, r10
dec r9
jne 0x1400ec2b8
pop rbx
ret

Function at 0x1400ed0a0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov al, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [rcx + 0x1f], al
ret
Function at 0x1400ef940
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
movsx r10, r8b
mov eax, r8d
mov r9d, r8d
mov rsi, rcx
mov rbx, r10
lea rdi, [rsp + 0x99]
mov ecx, 0x5f
mov r8d, 1
sar rbx, 0x3f
and eax, ebx
add eax, eax
sub r9d, eax
xor eax, eax
rep stosb byte [rdi], al
mov rax, r10
dec r10
movzx r9d, r9b
not rax
and rax, r10
lea r10, [rsp + 0x98]
sar rax, 0x3f
and eax, 1
mov byte [rsp + 0x98], al
mov byte [rsp + 0xb8], al
movsxd rax, edx
lea rdx, [0x14018b000]
imul rax, rax, 0x300
add rax, rdx
mov rcx, r9
xor rcx, r8
mov rdx, rcx
dec rcx
not rdx
and rdx, rcx
xor ecx, ecx
sar rdx, 0x3f
mov r11b, byte [rax + rcx]
and r11d, edx
xor byte [r10 + rcx], r11b
inc rcx
cmp rcx, 0x60
jne 0x1400ef9de
inc r8
add rax, 0x60
cmp r8, 9
jne 0x1400ef9c6
lea rbp, [rsp + 0x20]
mov rdx, r10
lea r13, [rsp + 0x48]
neg rbx
mov rcx, rbp
lea r15, [rsp + 0x70]
lea r12, [rsi + 0x28]
call fcn.1400e8750
mov rcx, r13
lea rdx, [rsp + 0xb8]
lea rdi, [rsi + 0x50]
call fcn.1400e8750
lea rdx, [rsp + 0xd8]
mov rcx, r15
lea r14, [rsp + 0xf8]
call fcn.1400e8750
mov rdx, rbp
mov rcx, rsi
call fcn.1400e7fe0
mov rdx, r13
mov rcx, r12
call fcn.1400e7fe0
mov rdx, r15
mov rcx, rdi
call fcn.1400e7fe0
mov rdx, r13
mov rcx, r14
lea r13, [rsp + 0x120]
call fcn.1400e7fe0
mov rdx, rbp
mov rcx, r13
lea rbp, [rsp + 0x148]
call fcn.1400e7fe0
mov rdx, r15
mov rcx, rbp
call fcn.1400e8900
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1400e7f00
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.1400e7f00
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.1400e7f00
nop
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008d40
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xc60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xc50], rax
mov rsi, r8
mov qword [rsp + 0x48], rcx
mov rdi, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x800
mov rbx, r9
xor r14d, r14d
call fcn.140080e20
lea r9, [rsp + 0x450]
mov qword [rsp + 0x28], rbx
lea r8, [0x14009a720]
mov dword [rsp + 0x20], 0x400
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x450]
mov rdi, rbx
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140008dc3
test edi, edi
jg 0x140008dec
xorps xmm0, xmm0
lea rdx, [0x14009a343]
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
xor r8d, r8d
mov qword [rbp + 0x18], r14
jmp 0x140008e51
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call fcn.140080e20
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x450]
mov dword [rsp + 0x28], edi
mov r9d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
nop
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140008e40
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.1400020f0
mov rax, rbp
mov rcx, qword [rsp + 0xc50]
xor rcx, rsp
call fcn.14000dbb0
add rsp, 0xc60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000e668
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e6b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e6b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e6b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e6b2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e6b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000e6b4
xor al, al
add rsp, 0x28
ret
Function at 0x140021930
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 0x140021972
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
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 0x140021b10
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140021c1a
lea rax, [0x1400219c0]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x140021c1a
cmp qword [rbx], r13
je 0x140021b9e
test rdi, rdi
je 0x140021c1a
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.140030770
cmp eax, 0xffffffff
je 0x140021c1a
test al, 1
je 0x140021c1a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140021bf9
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.140067518]
mov rdi, qword [rbx + 8]
mov rcx, rax
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
jne 0x140021bf9
mov qword [rbx + 8], r13
jmp 0x140021c1a
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140021c1a
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140021c87
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140021c53
mov dword [r14], 0x51
mov rax, r13
jmp 0x140021c8a
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14004d050
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400215c0
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], Ordinal_60
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14000dbb0
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x14002232d
call fcn.14001b470
test eax, eax
je 0x140022359
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x140022359
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x14002f1f0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002f245
jmp 0x14002f3f4
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002f3cb
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002f3cb
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002f3cb
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002f3cb
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14002f3cb
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002f3cb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14002f3cb
mov r9, rsi
lea r8, [0x140087ce4]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140032040
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002f365
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14002f3cb
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14002f3cb
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140081860
test eax, eax
jne 0x14002f3cb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14002f3ec
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000dbb0
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400343d0
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
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140034594
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140034574
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x14003442d
lea ebp, [rax + 0xe]
jmp 0x140034439
cmp eax, 0x17
jne 0x1400344e1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400344e1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400344e1
cmp rax, rbp
jb 0x1400344e1
mov ecx, Ordinal_50
call qword [fcn.140067518]
mov rdi, rax
test rax, rax
je 0x14003451c
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 + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.140067518]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14003450b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.1400811e0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400344ce
call qword [case.0x140016719.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400344f0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400344de
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140034420
jmp 0x140034522
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.140067520]
mov rcx, rdi
call qword [fcn.140067520]
jmp 0x140034522
mov rcx, rdi
mov r14d, 8
call qword [fcn.140067520]
jmp 0x140034522
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140034537
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14003456f
test rbx, rbx
je 0x14003456a
mov rcx, qword [rbx + 0x20]
call qword [fcn.140067520]
mov rcx, qword [rbx + 0x18]
call qword [fcn.140067520]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.140067520]
mov rbx, rdi
test rdi, rdi
jne 0x140034541
mov rbx, r13
jmp 0x140034583
test rbx, rbx
jne 0x140034583
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret