Function at 0x1800239d0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov r13d, dword [rcx + 0xf0]
mov r12, r8
mov rdi, rcx
shr r13d, 1
lea eax, [r13 - 1]
cmp eax, 6
ja 0x180023f97
mov r10d, dword [rdx + 8]
mov eax, dword [rdx]
mov r9d, dword [rdx + 4]
mov edx, dword [rdx + 0xc]
mov qword [rsp + 0x30], rbx
mov r11d, r9d
ror r11d, 8
mov ebx, r10d
mov r8d, eax
rol r9d, 8
and r11d, 0xff00ff00
mov qword [rsp + 0x38], rbp
ror ebx, 8
and r9d, 0xff00ff
mov qword [rsp + 0x40], rsi
ror r8d, 8
or r11d, r9d
mov r9d, edx
rol r10d, 8
xor r11d, dword [rcx + 4]
and ebx, 0xff00ff00
ror r9d, 8
and r10d, 0xff00ff
and r8d, 0xff00ff00
rol edx, 8
and r9d, 0xff00ff00
or ebx, r10d
xor ebx, dword [rcx + 8]
and edx, 0xff00ff
lea r10, [0x180045b00]
or r9d, edx
rol eax, 8
mov qword [rsp + 8], r14
xor r9d, dword [rcx + 0xc]
and eax, 0xff00ff
mov qword [rsp], r15
or r8d, eax
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rax, r10
xor r8d, dword [rcx]
xor edx, edx
nop word [rax + rax]
mov ecx, reloc.WS2_32.dll_recv
and edx, dword [rax]
add rax, 0x40
dec rcx
jne 0x180023ab5
cmp rax, rsi
jl 0x180023ab0
or r8d, edx
mov eax, ebx
add rdi, 0x20
shr eax, 8
movzx edx, al
mov eax, r11d
mov esi, dword [r10 + rdx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
mov eax, r8d
xor esi, dword [r10 + rcx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
movzx eax, r9b
xor esi, dword [r10 + rcx*4]
xor esi, dword [r10 + rax*4 + 0xc00]
mov eax, r9d
xor esi, dword [rdi - 0x10]
shr eax, 8
movzx edx, al
mov eax, ebx
mov ebp, dword [r10 + rdx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor ebp, dword [r10 + rcx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
movzx eax, r8b
xor ebp, dword [r10 + rcx*4]
xor ebp, dword [r10 + rax*4 + 0xc00]
mov eax, r9d
shr r9d, 0x18
xor ebp, dword [rdi - 0xc]
shr eax, 0x10
movzx edx, al
mov eax, ebx
mov r15d, dword [r10 + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r8d
shr r8d, 0x10
xor r15d, dword [r10 + rcx*4]
shr eax, 8
movzx ecx, al
movzx eax, r11b
shr r11d, 8
xor r15d, dword [r10 + rcx*4 + 0x800]
movzx ecx, r9b
xor r15d, dword [r10 + rax*4 + 0xc00]
mov r14d, dword [r10 + rcx*4]
movzx eax, r11b
xor r14d, dword [r10 + rax*4 + 0x800]
xor r15d, dword [rdi - 8]
movzx eax, r8b
xor r14d, dword [r10 + rax*4 + 0x400]
movzx eax, bl
lea rbx, [0x180045b00]
xor r14d, dword [rbx + rax*4 + 0xc00]
xor r14d, dword [rdi - 4]
dec r13d
je 0x180023dbe
nop
mov eax, r15d
shr eax, 8
movzx edx, al
mov eax, ebp
mov r11d, dword [rbx + rdx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
mov eax, esi
xor r11d, dword [rbx + rcx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
movzx eax, r14b
xor r11d, dword [rbx + rcx*4]
xor r11d, dword [rbx + rax*4 + 0xc00]
mov eax, r14d
xor r11d, dword [rdi]
shr eax, 8
movzx edx, al
mov eax, r15d
mov r10d, dword [rbx + rdx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
mov eax, ebp
xor r10d, dword [rbx + rcx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
movzx eax, sil
xor r10d, dword [rbx + rcx*4]
xor r10d, dword [rbx + rax*4 + 0xc00]
mov eax, r14d
shr r14d, 0x18
xor r10d, dword [rdi + 4]
shr eax, 0x10
movzx edx, al
mov eax, r15d
mov r9d, dword [rbx + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, esi
shr esi, 0x10
xor r9d, dword [rbx + rcx*4]
shr eax, 8
movzx ecx, al
movzx eax, bpl
shr ebp, 8
xor r9d, dword [rbx + rcx*4 + 0x800]
movzx ecx, r14b
xor r9d, dword [rbx + rax*4 + 0xc00]
mov r8d, dword [rbx + rcx*4]
movzx eax, bpl
xor r8d, dword [rbx + rax*4 + 0x800]
xor r9d, dword [rdi + 8]
movzx eax, sil
xor r8d, dword [rbx + rax*4 + 0x400]
movzx eax, r15b
xor r8d, dword [rbx + rax*4 + 0xc00]
mov eax, r9d
xor r8d, dword [rdi + 0xc]
shr eax, 8
movzx edx, al
mov eax, r10d
mov esi, dword [rbx + rdx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor esi, dword [rbx + rcx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
movzx eax, r8b
xor esi, dword [rbx + rcx*4]
xor esi, dword [rbx + rax*4 + 0xc00]
mov eax, r8d
xor esi, dword [rdi + 0x10]
shr eax, 8
movzx edx, al
mov eax, r9d
mov ebp, dword [rbx + rdx*4 + 0x800]
shr eax, 0x10
movzx ecx, al
mov eax, r10d
xor ebp, dword [rbx + rcx*4 + 0x400]
shr eax, 0x18
add rdi, 0x20
movzx ecx, al
movzx eax, r11b
xor ebp, dword [rbx + rcx*4]
xor ebp, dword [rbx + rax*4 + 0xc00]
mov eax, r8d
shr r8d, 0x18
xor ebp, dword [rdi - 0xc]
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r15d, dword [rbx + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
shr r11d, 0x10
xor r15d, dword [rbx + rcx*4]
shr eax, 8
movzx ecx, al
movzx eax, r10b
shr r10d, 8
xor r15d, dword [rbx + rcx*4 + 0x800]
movzx ecx, r8b
xor r15d, dword [rbx + rax*4 + 0xc00]
mov r14d, dword [rbx + rcx*4]
movzx eax, r10b
xor r14d, dword [rbx + rax*4 + 0x800]
xor r15d, dword [rdi - 8]
movzx eax, r11b
xor r14d, dword [rbx + rax*4 + 0x400]
movzx eax, r9b
xor r14d, dword [rbx + rax*4 + 0xc00]
xor r14d, dword [rdi - 4]
dec r13d
jne 0x180023bd0
mov eax, ebp
shr eax, 0x10
movzx ecx, al
mov eax, r15d
mov r10d, dword [rbx + rcx*4 + 0xc00]
shr eax, 8
movzx ecx, al
and r10d, 0xff0000
mov eax, dword [rbx + rcx*4]
and eax, 0xff00
xor r10d, eax
mov eax, esi
shr eax, 0x18
movzx ecx, al
mov eax, dword [rbx + rcx*4 + 0x800]
and eax, 0xff000000
xor r10d, eax
movzx eax, r14b
movzx eax, byte [rbx + rax*4 + 0x400]
xor r10d, eax
mov eax, r15d
shr eax, 0x10
xor r10d, dword [rdi]
movzx ecx, al
mov eax, r14d
mov r9d, dword [rbx + rcx*4 + 0xc00]
shr eax, 8
movzx ecx, al
and r9d, 0xff0000
mov eax, dword [rbx + rcx*4]
and eax, 0xff00
xor r9d, eax
mov eax, ebp
shr eax, 0x18
movzx ecx, al
mov eax, dword [rbx + rcx*4 + 0x800]
and eax, 0xff000000
xor r9d, eax
movzx eax, sil
movzx eax, byte [rbx + rax*4 + 0x400]
xor r9d, eax
mov eax, r14d
shr r14d, 0x18
xor r9d, dword [rdi + 4]
shr eax, 0x10
movzx ecx, al
mov eax, r15d
mov r8d, dword [rbx + rcx*4 + 0xc00]
shr eax, 0x18
movzx ecx, al
and r8d, 0xff0000
mov eax, dword [rbx + rcx*4 + 0x800]
and eax, 0xff000000
xor r8d, eax
mov eax, esi
shr esi, 0x10
shr eax, 8
movzx ecx, al
mov eax, dword [rbx + rcx*4]
and eax, 0xff00
xor r8d, eax
movzx eax, bpl
shr ebp, 8
movzx eax, byte [rbx + rax*4 + 0x400]
xor r8d, eax
movzx eax, sil
mov edx, dword [rbx + rax*4 + 0xc00]
xor r8d, dword [rdi + 8]
movzx eax, r14b
mov ecx, dword [rbx + rax*4 + 0x800]
and edx, 0xff0000
movzx eax, bpl
and ecx, 0xff000000
xor edx, ecx
mov ecx, dword [rbx + rax*4]
movzx eax, r15b
movzx eax, byte [rbx + rax*4 + 0x400]
and ecx, 0xff00
xor edx, ecx
xor edx, eax
xor edx, dword [rdi + 0xc]
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov eax, r10d
ror eax, 8
and eax, 0xff00ff00
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
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or eax, edx
mov dword [r12 + 0xc], eax
add rsp, 0x10
pop r13
pop r12
pop rdi
ret