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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rsi, r8
mov edi, edx
mov rbx, rcx
test r8, r8
jne 0x14015b5a8
xor al, al
jmp 0x14015b680
lea rcx, [rsp + 0x20]
call fcn.14015a7c0
test edi, edi
je 0x14015b5ce
test rbx, rbx
je 0x14015b5ce
mov r9b, ntohs
lea rcx, [rsp + 0x20]
mov r8d, edi
mov rdx, rbx
call fcn.14015bb70
movzx eax, byte [rsp + 0x1c0]
mov byte [rsp + 0x15f], 0
mov byte [rsp + rax + 0xf8], 6
movzx edx, byte [rsp + 0x1c0]
or byte [rsp + 0x15f], 0x80
inc dl
cmp dl, 0x67
jae 0x14015b61d
movzx eax, dl
lea rcx, [rsp + 0xf8]
add rcx, rax
mov eax, 0x67
sub al, dl
xor edx, edx
movzx r8d, al
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov edx, recv
nop word [rax + rax]
mov rcx, qword [rax + 0xc8]
xor qword [rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x14015b630
lea rcx, [rsp + 0x30]
call fcn.14015a8c0
movaps xmm0, xmmword [rsp + 0x30]
lea rax, vtable._ckSha3.0
movaps xmm1, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x20]
movups xmmword [rsi], xmm0
mov qword [rsp + 0x20], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi + 0x20], xmm0
call fcn.14007e310
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401feaa0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14015b6f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rsi, r8
mov edi, edx
mov rbx, rcx
test r8, r8
jne 0x14015b728
xor al, al
jmp 0x14015b809
lea rcx, [rsp + 0x20]
call fcn.14015a7c0
test edi, edi
je 0x14015b74e
test rbx, rbx
je 0x14015b74e
mov r9b, 9
lea rcx, [rsp + 0x20]
mov r8d, edi
mov rdx, rbx
call fcn.14015bb70
movzx eax, byte [rsp + 0x1c0]
mov byte [rsp + 0x13f], 0
mov byte [rsp + rax + 0xf8], 6
movzx edx, byte [rsp + 0x1c0]
or byte [rsp + 0x13f], 0x80
inc dl
cmp dl, 0x47
jae 0x14015b79d
movzx eax, dl
lea rcx, [rsp + 0xf8]
add rcx, rax
mov eax, 0x47
sub al, dl
xor edx, edx
movzx r8d, al
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov edx, 9
nop word [rax + rax]
mov rcx, qword [rax + 0xc8]
xor qword [rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x14015b7b0
lea rcx, [rsp + 0x30]
call fcn.14015a8c0
movaps xmm0, xmmword [rsp + 0x30]
lea rax, vtable._ckSha3.0
movaps xmm1, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x20]
movups xmmword [rsi], xmm0
mov qword [rsp + 0x20], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
call fcn.14007e310
mov al, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401feaa0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14015baa0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, r8b
lea rdi, [rcx + 0x10]
mov rbx, rdx
movzx esi, r9b
mov rdx, rcx
lea eax, [rax*8]
mov byte [rax + rcx + 0xd7], 0
lea r11d, [rax - 1]
mov r10d, eax
movzx eax, byte [rcx + 0x1a0]
mov byte [rax + rcx + 0xd8], 6
or byte [r10 + rcx + 0xd7], 0x80
movzx ecx, byte [rcx + 0x1a0]
inc cl
movzx eax, cl
cmp eax, r11d
jge 0x14015bb15
movzx eax, cl
inc cl
mov byte [rax + rdx + 0xd8], 0
movzx eax, cl
cmp eax, r11d
jl 0x14015bb00
test r8b, r8b
je 0x14015bb35
mov rax, rdi
movzx edx, r8b
mov rcx, qword [rax + 0xc8]
xor qword [rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x14015bb21
mov rcx, rdi
call fcn.14015a8c0
test sil, sil
je 0x14015bb60
sub rdi, rbx
mov rcx, rsi
nop dword [rax + rax]
movzx eax, byte [rdi + rbx]
mov byte [rbx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x14015bb50
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14015bb70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov qword [rsp + 0x40], rbp
movzx ecx, byte [rcx + 0x1a0]
mov esi, r8d
mov qword [rsp + 0x50], r14
mov rdi, rdx
movzx r14d, r9b
test cl, cl
je 0x14015bc37
movzx eax, r14b
movzx r9d, sil
shl al, 3
sub al, cl
movzx r8d, al
cmp r8d, esi
cmovbe r9d, r8d
xor dl, dl
lea r8, [rbx + rcx]
test r9b, r9b
je 0x14015bbd7
movzx ecx, dl
inc dl
movzx eax, byte [rcx + rdi]
mov byte [rcx + r8 + 0xd8], al
cmp dl, r9b
jb 0x14015bbc1
add byte [rbx + 0x1a0], dl
movzx ecx, byte [rbx + 0x1a0]
movzx eax, dl
add rdi, rax
movzx eax, dl
sub esi, eax
mov eax, r14d
shl eax, 3
cmp ecx, eax
jne 0x14015bc37
test r14b, r14b
je 0x14015bc24
lea rcx, [rbx + 0x10]
mov rdx, r14
nop word [rax + rax]
mov rax, qword [rcx + 0xc8]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x14015bc10
mov rcx, rbx
add rcx, 0x10
call fcn.14015a8c0
mov byte [rbx + 0x1a0], 0
mov ebp, r14d
shl ebp, 3
cmp esi, ebp
jb 0x14015bc9e
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r15
mov r12d, ebp
nop
test r14b, r14b
je 0x14015bc82
mov r8, rdi
lea rax, [rbx + 0x10]
sub r8, rbx
mov rdx, r14
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r8 + rax - 0x10]
xor qword [rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x14015bc70
lea rcx, [rbx + 0x10]
call fcn.14015a8c0
sub esi, ebp
add rdi, r12
cmp esi, ebp
jae 0x14015bc50
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
xor dl, dl
mov rbp, qword [rsp + 0x40]
test esi, esi
je 0x14015bcc7
nop
movzx ecx, dl
inc dl
movzx eax, byte [rcx + rdi]
mov byte [rcx + rbx + 0xd8], al
movzx eax, dl
cmp eax, esi
jb 0x14015bcb0
add byte [rbx + 0x1a0], dl
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14015e800
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
movzx esi, dl
mov rbx, rcx
jne 0x140116cc9
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x140116cfb
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x140116d15
xor ecx, ecx
call fcn.14005a1a0
cmp dword [rbx + 0xee8], 2
mov r8, rdi
movzx edx, sil
jne 0x140116d33
lea rcx, [rbx + 0x220]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401c1ef0
cmp dword [rcx + 0xee8], 2
jne 0x140116cd0
add rcx, 0x220
call fcn.1401c3170
test rax, rax
je 0x140116cd0
mov r8, rdi
movzx edx, sil
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401d2000
lea rcx, [rbx + 0xb48]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140160560
mov rcx, qword [rcx + 0x60]
test rcx, rcx
jne 0x14015e80c
mov al, 1
ret
jmp 0x140116c90
push rbx
sub rsp, 0x80
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x298]
cmp rcx, 0xffffffffffffffff
jne 0x14016058f
xor al, al
jmp 0x140160620
xor r8d, r8d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], r8d
test dl, dl
je 0x140160600
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], r8
lea r9d, [r8 + 0xc]
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r8
mov dword [rsp + 0x50], r8d
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x68], 0x7148
mov dword [rsp + 0x64], 0x1d0d8
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbx + 0x298]
lea r9, [rsp + 0x54]
jmp 0x140160605
lea r9, [rsp + 0x58]
mov r8d, 8
mov dword [rsp + 0x20], 4
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x80
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
movzx ebp, dl
mov rbx, rcx
xor dil, dil
call fcn.14005c220
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1401c114c
mov r8, rsi
movzx edx, bpl
call 0x140160560
jmp 0x1401c1161
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1401c1164
mov r8, rsi
movzx edx, bpl
call 0x140116c90
movzx edi, al
mov rcx, rbx
call fcn.14005c1a0
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
add rcx, 0x18
jmp 0x1401c1110
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
movzx edi, dl
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14007e760
nop
lea rcx, [rbx + 0xb18]
mov r8, rsi
movzx edx, dil
call 0x1401c1110
movzx ebx, al
lea rcx, [rsp + 0x20]
call fcn.14007e830
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14015fd40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
cmp dword [rcx + 0x2a0], 2
je fcn.140160c90
jmp fcn.140160da0
Function at 0x140160560
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xcc], 0xc64d29ea
mov rdi, r8
movzx esi, dl
mov rbx, rcx
jne 0x140116cc9
mov rax, qword [rcx + 0xed8]
test rax, rax
je 0x140116cfb
cmp dword [rax + 0x3c], 0xc64d29ea
je 0x140116d15
xor ecx, ecx
call fcn.14005a1a0
cmp dword [rbx + 0xee8], 2
mov r8, rdi
movzx edx, sil
jne 0x140116d33
lea rcx, [rbx + 0x220]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401c1ef0
cmp dword [rcx + 0xee8], 2
jne 0x140116cd0
add rcx, 0x220
call fcn.1401c3170
test rax, rax
je 0x140116cd0
mov r8, rdi
movzx edx, sil
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1401d2000
lea rcx, [rbx + 0xb48]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140160560
mov rcx, qword [rcx + 0x60]
test rcx, rcx
jne 0x14015e80c
mov al, 1
ret
jmp 0x140116c90
push rbx
sub rsp, 0x80
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x298]
cmp rcx, 0xffffffffffffffff
jne 0x14016058f
xor al, al
jmp 0x140160620
xor r8d, r8d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], r8d
test dl, dl
je 0x140160600
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], r8
lea r9d, [r8 + 0xc]
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r8
mov dword [rsp + 0x50], r8d
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x68], 0x7148
mov dword [rsp + 0x64], 0x1d0d8
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbx + 0x298]
lea r9, [rsp + 0x54]
jmp 0x140160605
lea r9, [rsp + 0x58]
mov r8d, 8
mov dword [rsp + 0x20], 4
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x80
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
movzx ebp, dl
mov rbx, rcx
xor dil, dil
call fcn.14005c220
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1401c114c
mov r8, rsi
movzx edx, bpl
call 0x140160560
jmp 0x1401c1161
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1401c1164
mov r8, rsi
movzx edx, bpl
call 0x140116c90
movzx edi, al
mov rcx, rbx
call fcn.14005c1a0
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
add rcx, 0x18
jmp 0x1401c1110
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r8
movzx edi, dl
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14007e760
nop
lea rcx, [rbx + 0xb18]
mov r8, rsi
movzx edx, dil
call 0x1401c1110
movzx ebx, al
lea rcx, [rsp + 0x20]
call fcn.14007e830
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140160a90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
je 0x140160b31
mov r8d, dword [rcx + 0xdc]
mov qword [rsp + 0x40], rbx
lea eax, [r8 - 0x1000]
cmp eax, 0x7ff000
ja 0x140160b2c
and r8d, 0xfffff000
mov dword [rcx + 0xdc], r8d
cmp byte [rdx + 0x161], 0
je 0x140160b05
mov rax, qword [rdx]
mov rcx, rsi
lea rdx, str.Setting_SO_RCVBUF_size
call qword [rax + 0x30]
mov r8d, dword [rdi + 0xdc]
lea rdx, str.recvBufSize
mov rcx, rsi
call fcn.1400a12d0
mov rcx, qword [rdi + 0x298]
lea r9, [rdi + 0xdc]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140160b40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov rsi, rdx
mov rdi, rcx
je 0x140160be1
mov r8d, dword [rcx + 0xd8]
mov qword [rsp + 0x40], rbx
lea eax, [r8 - 0x1000]
cmp eax, 0x7ff000
ja 0x140160bdc
and r8d, 0xfffff000
mov dword [rcx + 0xd8], r8d
cmp byte [rdx + 0x161], 0
je 0x140160bb5
mov rax, qword [rdx]
mov rcx, rsi
lea rdx, str.Setting_SO_SNDBUF_size
call qword [rax + 0x30]
mov r8d, dword [rdi + 0xd8]
lea rdx, str.sendBufSize
mov rcx, rsi
call fcn.1400a12d0
mov rcx, qword [rdi + 0x298]
lea r9, [rdi + 0xd8]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
lea r8, str.ck_getsockname_ipv4
mov rdx, r9
lea rcx, [rsp + 0x38]
call fcn.1400a0aa0
nop
mov rcx, rsi
call fcn.14008c640
mov dword [r14], 0
mov rcx, qword [rbx + 0x298]
cmp rcx, 0xffffffffffffffff
je 0x140160d5f
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x140160d3b
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
mov rcx, rsi
call fcn.1400882e0
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r14], eax
mov bl, 1
jmp 0x140160d71
mov rax, qword [rdi]
lea rdx, str.Failed_to_getsockname
mov rcx, rdi
call qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.140164a10
jmp 0x140160d6f
mov rax, qword [rdi]
lea rdx, str.Cannot_get_socket_name:_INVALID_SOCKET.
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.1400a0bb0
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140160da0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
lea r8, str.ck_getsockname_ipv6
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.1400a0aa0
nop
mov rcx, rsi
call fcn.14008c640
mov dword [r14], 0
mov rcx, qword [rbx + 0x298]
cmp rcx, 0xffffffffffffffff
je 0x140160e6f
mov dword [rsp + 0x20], 0x1c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x140160e4b
mov rcx, rsi
call fcn.14008c640
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140163880
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [r14], eax
mov bl, 1
jmp 0x140160e81
mov rax, qword [rdi]
lea rdx, str.Failed_to_getsockname_ipv6
mov rcx, rdi
call qword [rax + 0x28]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.140164a10
jmp 0x140160e7f
mov rax, qword [rdi]
lea rdx, str.Cannot_get_socket_name:_INVALID_SOCKET.
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.1400a0bb0
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140164880
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1000]
mov eax, 0x1100
call fcn.1401feb50
sub rsp, rax
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rbp + 0xff0], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400c8a60
mov rdx, rbx
mov rcx, rdi
call fcn.1400c8be0
test al, al
je 0x1401648ed
mov byte [rdi + 0x29], 1
mov rax, qword [rbx]
lea rdx, str.Wait_for_data_on_socket_aborted_by_app
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401649af
cmp qword [rsi + 0x298], 0xffffffffffffffff
jne 0x140164912
mov rax, qword [rbx]
lea rdx, str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
mov rcx, rbx
call qword [rax + 0x28]
mov byte [rdi + 0x2a], 1
xor al, al
jmp 0x1401649af
xor r14d, r14d
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x40]
call fcn.14007e230
lea r15, vtable.ckFdSet.0
mov qword [rsp + 0x40], r15
mov ebx, 0x3004bc8d
mov dword [rsp + 0x50], ebx
mov dword [rbp + 0xfe0], ebx
mov dword [rsp + 0x58], r14d
xorps xmm0, xmm0
movups xmmword [rbp + 0xf60], xmm0
movups xmmword [rbp + 0xf70], xmm0
movups xmmword [rbp + 0xf80], xmm0
movups xmmword [rbp + 0xf90], xmm0
movups xmmword [rbp + 0xfa0], xmm0
movups xmmword [rbp + 0xfb0], xmm0
movups xmmword [rbp + 0xfc0], xmm0
movups xmmword [rbp + 0xfd0], xmm0
movsxd r9, dword [rsi + 0x298]
test r9d, r9d
jns 0x1401649d5
mov byte [rdi + 0x2a], 1
xor bl, bl
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x50], r14d
mov dword [rbp + 0xfe0], r14d
lea rcx, [rsp + 0x40]
call fcn.14007e310
movzx eax, bl
mov rcx, qword [rbp + 0xff0]
xor rcx, rsp
call fcn.1401feaa0
mov rbx, qword [rsp + 0x1148]
add rsp, 0x1100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + r14*8 + 0x60], r9
inc dword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14016498f
jne 0x140164a07
mov byte [rdi + 0x28], 1
jmp 0x14016498f
mov bl, 1
jmp 0x140164991

Function at 0x140165150
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov rbx, rcx
je 0x1401651e1
movzx eax, byte [r8 + 0x161]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
test dl, dl
je 0x1401651a9
test al, al
je 0x1401651a2
mov rax, qword [r8]
lea rdx, str.Turning_on_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x30]
jmp 0x1401651c2
test al, al
je 0x1401651bd
mov rax, qword [r8]
lea rdx, str.Turning_off_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x34]
mov rcx, qword [rbx + 0x298]
mov r8d, 1
mov dword [rsp + 0x20], 4
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401feaa0
add rsp, 0x40
pop rbx
ret
Function at 0x140165200
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rcx
cmp dword [rcx + 0xdc], edx
je 0x14016529b
cmp edx, 0x1000
jb 0x14016529b
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov dword [rcx + 0xdc], eax
je 0x14016529b
cmp byte [r8 + 0x161], 0
je 0x140165274
mov rax, qword [r8]
lea rdx, str.Setting_SO_RCVBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rsi + 0xdc]
lea rdx, str.recvBufSize
mov rcx, rbx
call fcn.1400a12d0
mov rcx, qword [rsi + 0x298]
lea r9, [rsi + 0xdc]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1401652b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xd0], 0x4901fb2a
mov rbx, r8
mov rdi, rcx
je 0x1401652ed
mov rax, qword [r8]
lea rdx, str.Internal_error:_Socket_object_already_deleted.
mov rcx, rbx
call qword [rax + 0x28]
xor ecx, ecx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14005a1a0
mov qword [rsp + 0x40], rsi
cmp dword [rcx + 0xd8], edx
je 0x140165378
cmp edx, 0x1000
jb 0x140165378
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x298], 0xffffffffffffffff
mov dword [rcx + 0xd8], eax
je 0x140165378
cmp byte [r8 + 0x161], 0
je 0x140165351
mov rax, qword [r8]
lea rdx, str.Setting_SO_SNDBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rdi + 0xd8]
lea rdx, str.sendBufSize
mov rcx, rbx
call fcn.1400a12d0
mov rcx, qword [rdi + 0x298]
lea r9, [rdi + 0xd8]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140165390
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403291e8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x298]
cmp rcx, 0xffffffffffffffff
jne 0x1401653c3
mov byte [rbx + 0x290], 0
cmp byte [rbx + 0x290], 0
je 0x140165420
cmp byte [rbx + 0xd6], 0
jne 0x140165420
cmp byte [rbx + 0xd5], 0
jne 0x140165487
cmp byte [rbx + 0xd4], 0
jne 0x140165487
cmp byte [rdx + 0x16b], 0
jne 0x140165487
mov r9d, 2
lea r8d, [r9 - 1]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x14016543a
mov rdx, rdi
mov rcx, rbx
call fcn.1401646f0
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401feaa0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp eax, 0xffffffff
jg 0x140165487
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140165487
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.isConnected_recv_peek
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400a0aa0
nop
mov rdx, rdi
xor ecx, ecx
call fcn.140164fb0
nop
lea rcx, [rsp + 0x20]
call fcn.1400a0bb0
jmp 0x140165420
mov al, 1
jmp 0x140165422
Function at 0x1401913e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, r8
mov rcx, rdx
mov rsi, rdx
call fcn.140081790
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140191432
add rcx, 0xc8
mov r9b, 1
mov qword [rsp + 0x20], rbx
mov r8, rsi
xor edx, edx
call fcn.140101f30
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140191452
mov rdx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14019e070
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14019148b
add rcx, 0x550
mov qword [rsp + 0x20], rbx
mov r9b, 1
mov r8, rsi
xor edx, edx
call fcn.140101f30
mov dl, 0x2c
mov rcx, rsi
call fcn.14007f6a0
mov rcx, qword [rdi + 0x20]
add rcx, 0x570
jmp 0x140191410
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1401914ce
add rcx, 0xa0
call fcn.140091190
mov rcx, qword [rdi + 0x28]
mov ebx, eax
add rcx, 0xa0
call fcn.140090e60
mov rcx, rax
mov r8, rsi
mov edx, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14009d8a0
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret