joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016b90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3260], 0
lea rbx, [rcx + 0x3268]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140016c37
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140016bea
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140023a60
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140002f60
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3260]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3270]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140059b88]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140016c3f
mov rcx, rbx
call fcn.140002f60
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140017080
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x1400170d2
lea r11, [0x14004cde0]
cmp r9b, 0x23
jne 0x1400170b5
cmp byte [r8], r9b
jne 0x1400170b5
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400170a2
mov r11, qword [0x140059b90]
xor r9d, r9d
not eax
mov r10, qword [r11 + 0x3228]
test r10, r10
lea rcx, [r10 + 4]
cmovne r9, rcx
test r9, r9
je 0x14001711e
cmp dword [r9], eax
je 0x140017127
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x3220]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x1400170f5
mov rcx, rbx
pop rbx
jmp fcn.140016f90
test r9, r9
je 0x14001711e
mov rax, r9
pop rbx
ret
Function at 0x14001a580
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14001a7be
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x14004cde0]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14001a786
mov rcx, rbp
call fcn.140019bc0
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14001a651
movsxd rdx, dword [rbp + 0x31c0]
mov r8, qword [rbp + 0x31c8]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14001a641
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14001a639
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14001a63c
mov rdx, rcx
test rdx, rdx
jne 0x14001a610
cmp r8, r10
je 0x14001a651
cmp dword [r8], r9d
jne 0x14001a651
mov rcx, qword [r8 + 8]
jmp 0x14001a653
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x14001a6e7
cmp qword [rcx + 0x18], 0
jne 0x14001a6dc
mov qword [rcx + 0x18], rbx
jmp 0x14001a6e7
cmp qword [rcx + 0x20], 0
jne 0x14001a6e7
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14001a71c
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001a710
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.1400027c0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14001a778
cmp r9b, 0x23
jne 0x14001a75b
cmp byte [r8], r9b
jne 0x14001a75b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14001a748
not ecx
call fcn.14000a820
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x14001a5d0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140049c50
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x14004a978
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004a9c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004a9c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004a9c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004a9c2
cmp dword [rcx + 0x84], 0xe
jbe 0x14004a9c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004a9c4
xor al, al
add rsp, 0x28
ret
Function at 0x140004410
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
movups xmm0, xmmword [r9]
movaps xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [r8]
movaps xmmword [rsp + 0x20], xmm1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140029240
nop
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
cmp rcx, rdx
jae 0x140004480
lea rax, [rcx + 1]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rdx, 0xf
cmova rax, qword [rsp + 0x40]
mov word [rax + rcx], 0xa
jmp 0x14000448d
mov r9b, 0xa
lea rcx, [rsp + 0x40]
call fcn.14002ec20
lea rdi, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140069c48
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x20], xmm0
psrldq xmm0, 8
movd ecx, xmm0
test ecx, ecx
je 0x1400044f4
cmp ecx, 2
je 0x1400044d5
cmp ecx, 0x32
jne 0x140004576
jmp 0x140004519
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, rbx
jne 0x14000457c
jmp 0x140004519
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
test eax, eax
jne 0x14000458a
mov r8, rbx
mov rdx, rdi
mov rcx, qword [rsp + 0x20]
call fcn.140069cdc
test eax, eax
jne 0x14000456e
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140004559
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004554
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004554
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a300
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14006a2e0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
mov ecx, eax
call fcn.140003f60
int3
call fcn.140003f60
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140003ca0
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140003ca0
int3
Function at 0x1400086c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
lea r14, [rcx + 0x10]
mov qword [r14], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x14000871a
mov rdx, rax
call fcn.14002ead0
mov qword [r14], rbp
mov rax, qword [rdi + 0x10]
mov r13d, 0xfffffffa
lea r8, [rbx + 0x18]
mov qword [rsp + 0x88], r8
cmp qword [rdi + 0x18], 0xf
jbe 0x140008742
mov r15, qword [rdi]
lea r14, [rbx + 0x10]
mov rcx, r15
mov rdi, r15
jmp 0x140008748
mov r15, rdi
mov rcx, rdi
add rax, rcx
mov qword [rsp + 0x98], rax
cmp rdi, rax
je 0x140008863
nop dword [rax]
shl ebp, 8
movzx eax, byte [r15]
add ebp, eax
mov qword [rsp + 0x90], rbp
add r13d, 8
js 0x1400087fc
movsxd r12, ebp
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov edi, edx
imul eax, edx, 0xfffffffa
add r13d, eax
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + rbp]
mov rcx, qword [r14]
mov rdx, qword [r8]
cmp rcx, rdx
jae 0x1400087da
lea rax, [rcx + 1]
mov qword [r14], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400087cf
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400087ea
mov rcx, rbx
call fcn.14002ec20
mov r8, qword [rsp + 0x88]
sub rsi, 6
sub rdi, 1
jne 0x1400087a0
mov rbp, qword [rsp + 0x90]
inc r15
cmp r15, qword [rsp + 0x98]
jne 0x140008760
cmp r13d, 0xfffffffa
jle 0x140008863
lea ecx, [r13 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx r9d, byte [rax + r9]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000885b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140008850
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140008863
mov rcx, rbx
call fcn.14002ec20
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x1400088a9
nop dword [rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140008895
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000888d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x1400088a0
mov r9b, 0x3d
mov rcx, rbx
call fcn.14002ec20
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140008870
mov rax, rbx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009480
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400094ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400094c0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14006a2e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140009520
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000958e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140009560
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14006a2e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140009480
test rax, rax
jne 0x1400095e0
mov al, 1
add rsp, 0x20
pop rdi
ret
jns 0x1400095f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 9
jne 0x1400095f5
xor al, al
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rsi
lea rsi, [rsp + 0x38]
nop dword [rax]
nop dword [rax + rax]
mov r9d, 2
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x140009639
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140009610
mov rsi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
setg al
add rsp, 0x20
pop rdi
ret
Function at 0x140009c70
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140009ca8
cmp ax, 0x17
jne 0x140009d1d
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140009d1d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140009d02
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140023c00
mov al, 1
jmp 0x140009d1f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14006a2e0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140016b30
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbx, qword [rcx + 0x450]
lea rbp, [rcx + 0x458]
mov r15, qword [rdx]
mov r14, rcx
mov qword [rax - 0x68], rcx
mov rdi, rdx
mov qword [rax - 0x60], r8
mov rcx, rbp
movups xmm0, xmmword [rax - 0x68]
mov qword [rax - 0x58], rdx
movsd xmm1, qword [rax - 0x58]
movaps xmmword [rax - 0x48], xmm0
movsd qword [rax - 0x38], xmm1
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140016d30
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x140016cbb
mov rcx, rbx
call qword [sym.imp.libssl_3_x64.dll_SSL_new]
mov rcx, rbp
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
je 0x140016cff
lea r8, [rsp + 0x90]
mov dword [rsp + 0x90], 1
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r15d
call qword [sym.imp.libcrypto_3_x64.dll_BIO_new_socket]
xor r9d, r9d
mov edx, 0x66
mov rcx, rax
mov r8d, 1
mov r12, rax
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
mov r8, r12
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.libssl_3_x64.dll_SSL_set_bio]
cmp qword [r14 + 0x20], 0xf
lea r9, [r14 + 8]
jbe 0x140016c1c
mov r9, qword [r9]
xor r8d, r8d
mov edx, 0x37
mov rcx, rbx
call qword [sym.imp.libssl_3_x64.dll_SSL_ctrl]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140016d40
cmp al, 1
jne 0x140016c9b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x66
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_BIO_ctrl]
lea r8, [rsp + 0x90]
mov dword [rsp + 0x90], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test rbx, rbx
je 0x140016cff
mov qword [rdi + 8], rbx
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.libssl_3_x64.dll_SSL_shutdown]
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x140016d30
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
jne 0x140016ccc
dec eax
mov ecx, 6
mov dword [rbp + 0x4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov rcx, rbx
call qword [sym.imp.libssl_3_x64.dll_SSL_free]
mov rcx, rbp
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea r8, [rsp + 0x90]
mov dword [rsp + 0x90], 0
mov edx, 0x8004667e
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140016d13
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140016d29
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi], 0xffffffffffffffff
xor al, al
jmp 0x140016c82
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140017180
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x30], rcx
cmp qword [rcx + 0x20], 0xf
lea rsi, [rcx + 8]
xorps xmm0, xmm0
mov byte [rsp + 0x20], 0
mov rbp, rdx
mov dword [rsp + 0x24], ebx
mov edi, 2
mov r15d, ebx
movups xmmword [rsp + 0x38], xmm0
mov rdx, rsi
jbe 0x1400171d0
mov rdx, qword [rsi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400171ec
mov r15d, reloc.WS2_32.dll_recv
jmp 0x140017210
cmp qword [rsi + 0x18], 0xf
jbe 0x1400171f6
mov rsi, qword [rsi]
lea r8, [rsp + 0x24]
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140017215
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov edx, 0x55
mov rcx, rbp
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_ext_d2i]
mov r12, rax
test rax, rax
je 0x140017305
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_num]
mov dword [rsp + 0x28], eax
test eax, eax
jle 0x1400172f8
nop dword [rax]
test r14b, r14b
jne 0x1400172f3
mov edx, ebx
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_OPENSSL_sk_value]
mov rsi, rax
cmp dword [rax], edi
jne 0x1400172dd
mov rcx, qword [rax + 8]
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_get0_data]
mov rcx, qword [rsi + 8]
mov rbp, rax
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_STRING_length]
movsxd r8, eax
cmp edi, 2
je 0x1400172cc
cmp edi, 7
jne 0x1400172dd
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400172c7
mov r8, r15
lea rcx, [rsp + 0x24]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400172dd
mov r13b, 1
jmp 0x1400172dd
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
call fcn.140017330
movzx r14d, al
inc ebx
cmp ebx, dword [rsp + 0x28]
jl 0x140017260
test r14b, r14b
jne 0x1400172f3
test r13b, r13b
je 0x1400172f8
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.libcrypto_3_x64.dll_GENERAL_NAMES_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006a2e0
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140017fe0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov esi, reloc.WS2_32.dll_recv
mov edi, 4
mov rax, qword gs:[0x58]
add rdi, qword [rax]
lea r14, [0x1400aaf60]
mov eax, dword [rdi]
cmp dword [0x1400ac318], eax
jle 0x140018097
lea rcx, [0x1400ac318]
call fcn.14006a3b8
cmp dword [0x1400ac318], 0xffffffff
jne 0x140018097
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x1400ac2e4], 0xffffffff
mov dword [0x1400aaf64], eax
mov r8d, 1
nop dword [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [r14 + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x140018060
mov dword [0x1400aaf60], 0x270
lea rcx, [0x1400ac318]
call fcn.14006a34c
mov eax, dword [rdi]
cmp dword [0x1400ac2e8], eax
jle 0x1400180d4
lea rcx, [0x1400ac2e8]
call fcn.14006a3b8
cmp dword [0x1400ac2e8], 0xffffffff
jne 0x1400180d4
mov qword [0x1400aaf50], rbp
mov qword [0x1400aaf58], 0x3d
lea rcx, [0x1400ac2e8]
call fcn.14006a34c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov rdx, rsi
mov rcx, rbx
call fcn.14002ead0
mov qword [rbx + 0x10], rbp
lea r15, str.0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
nop word [rax + rax]
dec rsi
mov qword [rsp + 0x68], r14
mov rbp, qword [0x1400aaf50]
mov rdx, qword [0x1400aaf58]
sub rdx, rbp
cmp rdx, 0xffffffffffffffff
jne 0x14001814c
mov rcx, r14
call fcn.1400253c0
mov edi, eax
shl rdi, 0x20
mov rcx, r14
call fcn.1400253c0
mov eax, eax
or rdi, rax
jmp 0x14001815c
inc rdx
lea rcx, [rsp + 0x68]
call fcn.140043460
mov rdi, rax
lea rax, [rdi + rbp]
movzx r9d, byte [rax + r15]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140018191
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x140018186
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140018199
mov rcx, rbx
call fcn.14002ec20
test rsi, rsi
jne 0x140018110
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400253c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140025421
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400253e0
mov ecx, dword [r9]
jmp 0x14002550b
cmp ecx, 0x4e0
jb 0x14002550b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140025440
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140025490
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret