Function at 0x1400400e0
Capabilities:
Encrypt data using aes
Encrypt data using des

Disassembly:
push rbx
push r12
push r15
sub rsp, 0x10
mov r15d, dword [rcx + 0xf0]
mov r12, r8
shr r15d, 1
mov rbx, rcx
lea eax, [r15 - 1]
cmp eax, 6
ja 0x1400406bd
mov eax, dword [rdx]
mov r8d, eax
mov r9d, dword [rdx + 4]
mov r11d, r9d
mov r10d, dword [rdx + 8]
mov edx, dword [rdx + 0xc]
rol r9d, 8
and r9d, 0xff00ff
ror r11d, 8
ror r8d, 8
and r11d, 0xff00ff00
or r11d, r9d
mov qword [rsp + 0x30], rbp
xor r11d, dword [rcx + 4]
mov r9d, r10d
rol r10d, 8
and r8d, 0xff00ff00
and r10d, 0xff00ff
ror r9d, 8
and r9d, 0xff00ff00
rol eax, 8
or r9d, r10d
mov qword [rsp + 0x38], rsi
xor r9d, dword [rcx + 8]
mov r10d, edx
ror r10d, 8
and eax, 0xff00ff
and r10d, 0xff00ff00
mov qword [rsp + 0x40], rdi
or r8d, eax
rol edx, 8
xor r8d, dword [rcx]
lea rdi, [0x1400e2fe0]
and edx, 0xff00ff
mov qword [rsp + 8], r13
or r10d, edx
mov qword [rsp], r14
xor r10d, dword [rcx + 0xc]
lea r13, [0x1400e1fe0]
xor edx, edx
mov rax, r13
nop dword [rax]
mov ecx, reloc.WS2_32.dll_recv
nop word [rax + rax]
and edx, dword [rax]
add rax, 0x40
sub rcx, 1
jne 0x1400401d0
cmp rax, rdi
jl 0x1400401c0
or r8d, edx
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r11d
shr eax, 0x10
movzx ecx, al
mov eax, r8d
mov edi, dword [r13 + rdx*4 + 0x800]
shr rax, 0x18
xor edi, dword [r13 + rcx*4 + 0x400]
xor edi, dword [r13 + rax*4]
movzx eax, r10b
xor edi, dword [r13 + rax*4 + 0xc00]
mov eax, r10d
xor edi, dword [rbx + 0x10]
shr eax, 8
movzx edx, al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
mov esi, dword [r13 + rdx*4 + 0x800]
shr rax, 0x18
xor esi, dword [r13 + rcx*4 + 0x400]
xor esi, dword [r13 + rax*4]
movzx eax, r8b
xor esi, dword [r13 + rax*4 + 0xc00]
mov eax, r10d
xor esi, dword [rbx + 0x14]
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov ebp, dword [r13 + rcx*4 + 0x400]
xor ebp, dword [r13 + rax*4]
mov eax, r8d
shr eax, 8
movzx ecx, al
movzx eax, r11b
shr r11d, 8
shr r8d, 0x10
xor ebp, dword [r13 + rcx*4 + 0x800]
xor ebp, dword [r13 + rax*4 + 0xc00]
xor ebp, dword [rbx + 0x18]
movzx eax, r11b
mov ecx, r10d
shr rcx, 0x18
mov r14d, dword [r13 + rcx*4]
xor r14d, dword [r13 + rax*4 + 0x800]
movzx eax, r8b
xor r14d, dword [r13 + rax*4 + 0x400]
movzx eax, r9b
xor r14d, dword [r13 + rax*4 + 0xc00]
xor r14d, dword [rbx + 0x1c]
add rbx, 0x20
add r15d, 0xffffffff
je 0x1400404dd
nop word [rax + rax]
mov eax, ebp
shr eax, 8
movzx edx, al
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, edi
mov r11d, dword [r13 + rdx*4 + 0x800]
shr rax, 0x18
xor r11d, dword [r13 + rcx*4 + 0x400]
xor r11d, dword [r13 + rax*4]
movzx eax, r14b
xor r11d, dword [r13 + rax*4 + 0xc00]
mov eax, r14d
xor r11d, dword [rbx]
shr eax, 8
movzx edx, al
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov eax, esi
mov r10d, dword [r13 + rdx*4 + 0x800]
shr rax, 0x18
xor r10d, dword [r13 + rcx*4 + 0x400]
xor r10d, dword [r13 + rax*4]
movzx eax, dil
xor r10d, dword [r13 + rax*4 + 0xc00]
mov eax, r14d
xor r10d, dword [rbx + 4]
shr eax, 0x10
movzx ecx, al
mov eax, ebp
shr rax, 0x18
mov r9d, dword [r13 + rcx*4 + 0x400]
xor r9d, dword [r13 + rax*4]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, sil
shr edi, 0x10
shr esi, 8
xor r9d, dword [r13 + rcx*4 + 0x800]
xor r9d, dword [r13 + rax*4 + 0xc00]
xor r9d, dword [rbx + 8]
movzx eax, sil
mov ecx, r14d
shr rcx, 0x18
mov r8d, dword [r13 + rcx*4]
xor r8d, dword [r13 + rax*4 + 0x800]
movzx eax, dil
xor r8d, dword [r13 + rax*4 + 0x400]
movzx eax, bpl
xor r8d, dword [r13 + rax*4 + 0xc00]
mov eax, r9d
xor r8d, dword [rbx + 0xc]
shr eax, 8
movzx edx, al
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
mov edi, dword [r13 + rdx*4 + 0x800]
shr rax, 0x18
xor edi, dword [r13 + rcx*4 + 0x400]
xor edi, dword [r13 + rax*4]
movzx eax, r8b
xor edi, dword [r13 + rax*4 + 0xc00]
mov eax, r8d
xor edi, dword [rbx + 0x10]
shr eax, 8
movzx edx, al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r10d
mov esi, dword [r13 + rdx*4 + 0x800]
shr rax, 0x18
xor esi, dword [r13 + rcx*4 + 0x400]
xor esi, dword [r13 + rax*4]
movzx eax, r11b
xor esi, dword [r13 + rax*4 + 0xc00]
xor esi, dword [rbx + 0x14]
mov eax, r8d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr rax, 0x18
mov ebp, dword [r13 + rcx*4 + 0x400]
xor ebp, dword [r13 + rax*4]
mov eax, r11d
shr eax, 8
movzx ecx, al
movzx eax, r10b
shr r10d, 8
shr r11d, 0x10
xor ebp, dword [r13 + rcx*4 + 0x800]
xor ebp, dword [r13 + rax*4 + 0xc00]
xor ebp, dword [rbx + 0x18]
movzx eax, r10b
mov ecx, r8d
shr rcx, 0x18
mov r14d, dword [r13 + rcx*4]
xor r14d, dword [r13 + rax*4 + 0x800]
movzx eax, r11b
xor r14d, dword [r13 + rax*4 + 0x400]
movzx eax, r9b
xor r14d, dword [r13 + rax*4 + 0xc00]
xor r14d, dword [rbx + 0x1c]
add rbx, 0x20
add r15d, 0xffffffff
jne 0x1400402f0
mov eax, esi
shr eax, 0x10
movzx ecx, al
mov eax, ebp
shr eax, 8
mov r10d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
and r10d, 0xff0000
mov eax, dword [r13 + rcx*4]
and eax, 0xff00
xor r10d, eax
mov eax, edi
shr rax, 0x18
mov ecx, dword [r13 + rax*4 + 0x800]
and ecx, 0xff000000
movzx eax, r14b
xor r10d, ecx
movzx eax, byte [r13 + rax*4 + 0x400]
xor r10d, eax
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov eax, r14d
shr eax, 8
xor r10d, dword [rbx]
mov r9d, dword [r13 + rcx*4 + 0xc00]
movzx ecx, al
and r9d, 0xff0000
mov eax, dword [r13 + rcx*4]
and eax, 0xff00
xor r9d, eax
mov eax, esi
shr rax, 0x18
mov eax, dword [r13 + rax*4 + 0x800]
and eax, 0xff000000
xor r9d, eax
movzx eax, dil
movzx eax, byte [r13 + rax*4 + 0x400]
xor r9d, eax
mov eax, r14d
xor r9d, dword [rbx + 4]
shr eax, 0x10
movzx ecx, al
mov eax, ebp
shr rax, 0x18
mov r8d, dword [r13 + rcx*4 + 0xc00]
and r8d, 0xff0000
mov eax, dword [r13 + rax*4 + 0x800]
and eax, 0xff000000
xor r8d, eax
mov eax, edi
shr eax, 8
movzx ecx, al
shr edi, 0x10
mov eax, dword [r13 + rcx*4]
and eax, 0xff00
xor r8d, eax
movzx eax, sil
shr esi, 8
movzx eax, byte [r13 + rax*4 + 0x400]
xor r8d, eax
movzx eax, dil
xor r8d, dword [rbx + 8]
mov edx, dword [r13 + rax*4 + 0xc00]
and edx, 0xff0000
mov eax, r14d
shr rax, 0x18
mov eax, dword [r13 + rax*4 + 0x800]
and eax, 0xff000000
xor edx, eax
movzx eax, sil
mov ecx, dword [r13 + rax*4]
and ecx, 0xff00
movzx eax, bpl
xor edx, ecx
movzx eax, byte [r13 + rax*4 + 0x400]
xor edx, eax
mov eax, r10d
xor edx, dword [rbx + 0xc]
ror eax, 8
and eax, 0xff00ff00
mov r14, qword [rsp]
mov r13, qword [rsp + 8]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
rol r10d, 8
and r10d, 0xff00ff
or eax, r10d
mov dword [r12], eax
mov eax, r9d
ror eax, 8
and eax, 0xff00ff00
rol r9d, 8
and r9d, 0xff00ff
or eax, r9d
mov dword [r12 + 4], eax
mov eax, r8d
ror eax, 8
and eax, 0xff00ff00
rol r8d, 8
and r8d, 0xff00ff
or eax, r8d
mov dword [r12 + 8], eax
mov eax, edx
ror eax, 8
rol edx, 8
and eax, 0xff00ff00
and edx, 0xff00ff
or eax, edx
mov dword [r12 + 0xc], eax
add rsp, 0x10
pop r15
pop r12
pop rbx
ret