Function at 0x18008c240
Capabilities:
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r9d, dword [rdx + 4]
lea r15, [0x1800ca2c0]
mov r10d, dword [rdx + 8]
mov esi, r9d
mov r11d, dword [rdx + 0xc]
mov r8d, r10d
mov eax, dword [rcx + 0xf0]
mov r12, rcx
rol r10d, 8
and r10d, 0xff00ff
shr eax, 1
ror r8d, 8
mov dword [rsp + 0x38], eax
and r8d, 0xff00ff00
mov eax, dword [rdx]
or r8d, r10d
xor r8d, dword [rcx + 8]
mov ebx, eax
ror ebx, 8
mov r10d, r11d
ror r10d, 8
and ebx, 0xff00ff00
ror esi, 8
and r10d, 0xff00ff00
rol eax, 8
and esi, 0xff00ff00
rol r9d, 8
and eax, 0xff00ff
and r9d, 0xff00ff
rol r11d, 8
or ebx, eax
or esi, r9d
xor ebx, dword [rcx]
lea r9, [0x1800cb2c0]
xor esi, dword [rcx + 4]
and r11d, 0xff00ff
or r10d, r11d
mov rax, r15
xor r10d, dword [rcx + 0xc]
xor r13d, r13d
mov edx, r13d
mov ecx, reloc.WS2_32.dll_recv
nop word [rax + rax]
and edx, dword [rax]
add rax, 0x40
sub rcx, 1
jne 0x18008c310
cmp rax, r9
jl 0x18008c301
or ebx, edx
mov eax, r10d
shr eax, 0x10
movzx edx, al
mov eax, r8d
shr eax, 8
movzx ecx, al
mov eax, ebx
mov edi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor edi, dword [r15 + rcx*4 + 0x800]
mov edx, r8d
shr rdx, 0x18
xor edi, dword [r15 + rax*4]
movzx eax, sil
mov r9d, dword [r15 + rdx*4]
xor edi, dword [r15 + rax*4 + 0xc00]
mov eax, r10d
xor edi, dword [r12 + 0x10]
shr eax, 8
movzx ecx, al
mov eax, esi
shr rax, 0x18
mov r11d, dword [r15 + rcx*4 + 0x800]
xor r11d, dword [r15 + rax*4]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
movzx eax, r8b
shr r8d, 0x10
xor r11d, dword [r15 + rcx*4 + 0x400]
xor r11d, dword [r15 + rax*4 + 0xc00]
mov eax, esi
xor r11d, dword [r12 + 0x14]
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
shr esi, 8
xor r9d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r10b
xor r9d, dword [r15 + rcx*4 + 0x800]
xor r9d, dword [r15 + rax*4 + 0xc00]
xor r9d, dword [r12 + 0x18]
movzx eax, r8b
mov ecx, r10d
shr rcx, 0x18
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, sil
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, bl
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x1c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, edi
mov esi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor esi, dword [r15 + rcx*4 + 0x800]
xor esi, dword [r15 + rax*4]
movzx eax, r11b
xor esi, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor esi, dword [r12 + 0x20]
shr eax, 8
movzx ecx, al
mov eax, r11d
shr rax, 0x18
mov ebx, dword [r15 + rcx*4 + 0x800]
xor ebx, dword [r15 + rax*4]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor ebx, dword [r15 + rcx*4 + 0x400]
xor ebx, dword [r15 + rax*4 + 0xc00]
mov eax, r11d
xor ebx, dword [r12 + 0x24]
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
mov edx, r9d
shr r9d, 0x10
shr r11d, 8
shr rdx, 0x18
mov r10d, dword [r15 + rdx*4]
xor r10d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor r10d, dword [r15 + rcx*4 + 0x800]
xor r10d, dword [r15 + rax*4 + 0xc00]
xor r10d, dword [r12 + 0x28]
mov ecx, r8d
shr rcx, 0x18
movzx eax, r9b
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, r11b
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, dil
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x2c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, esi
mov edi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor edi, dword [r15 + rcx*4 + 0x800]
mov edx, r10d
shr rdx, 0x18
xor edi, dword [r15 + rax*4]
movzx eax, bl
mov r9d, dword [r15 + rdx*4]
xor edi, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor edi, dword [r12 + 0x30]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr rax, 0x18
mov r11d, dword [r15 + rcx*4 + 0x800]
xor r11d, dword [r15 + rax*4]
mov eax, esi
shr eax, 0x10
movzx ecx, al
movzx eax, r10b
shr r10d, 0x10
xor r11d, dword [r15 + rcx*4 + 0x400]
xor r11d, dword [r15 + rax*4 + 0xc00]
mov eax, ebx
xor r11d, dword [r12 + 0x34]
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
shr ebx, 8
xor r9d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor r9d, dword [r15 + rcx*4 + 0x800]
xor r9d, dword [r15 + rax*4 + 0xc00]
xor r9d, dword [r12 + 0x38]
mov ecx, r8d
shr rcx, 0x18
movzx eax, r10b
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, bl
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, sil
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x3c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, edi
mov esi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor esi, dword [r15 + rcx*4 + 0x800]
mov edx, r9d
shr rdx, 0x18
xor esi, dword [r15 + rax*4]
movzx eax, r11b
mov r10d, dword [r15 + rdx*4]
xor esi, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor esi, dword [r12 + 0x40]
shr eax, 8
movzx ecx, al
mov eax, r11d
shr rax, 0x18
mov ebx, dword [r15 + rcx*4 + 0x800]
xor ebx, dword [r15 + rax*4]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
shr r9d, 0x10
xor ebx, dword [r15 + rcx*4 + 0x400]
xor ebx, dword [r15 + rax*4 + 0xc00]
mov eax, r11d
xor ebx, dword [r12 + 0x44]
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
shr r11d, 8
xor r10d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor r10d, dword [r15 + rcx*4 + 0x800]
xor r10d, dword [r15 + rax*4 + 0xc00]
xor r10d, dword [r12 + 0x48]
mov ecx, r8d
shr rcx, 0x18
movzx eax, r9b
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, r11b
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, dil
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x4c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, esi
mov edi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor edi, dword [r15 + rcx*4 + 0x800]
xor edi, dword [r15 + rax*4]
movzx eax, bl
xor edi, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor edi, dword [r12 + 0x50]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr rax, 0x18
mov r11d, dword [r15 + rcx*4 + 0x800]
xor r11d, dword [r15 + rax*4]
mov eax, esi
shr eax, 0x10
movzx ecx, al
movzx eax, r10b
xor r11d, dword [r15 + rcx*4 + 0x400]
xor r11d, dword [r15 + rax*4 + 0xc00]
mov eax, ebx
xor r11d, dword [r12 + 0x54]
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
mov edx, r10d
shr r10d, 0x10
shr ebx, 8
shr rdx, 0x18
mov r9d, dword [r15 + rdx*4]
xor r9d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor r9d, dword [r15 + rcx*4 + 0x800]
xor r9d, dword [r15 + rax*4 + 0xc00]
xor r9d, dword [r12 + 0x58]
mov ecx, r8d
shr rcx, 0x18
movzx eax, r10b
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, bl
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, sil
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x5c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, edi
mov esi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor esi, dword [r15 + rcx*4 + 0x800]
mov edx, r9d
shr rdx, 0x18
xor esi, dword [r15 + rax*4]
movzx eax, r11b
mov r10d, dword [r15 + rdx*4]
xor esi, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor esi, dword [r12 + 0x60]
shr eax, 8
movzx ecx, al
mov eax, r11d
shr rax, 0x18
mov ebx, dword [r15 + rcx*4 + 0x800]
xor ebx, dword [r15 + rax*4]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
shr r9d, 0x10
xor ebx, dword [r15 + rcx*4 + 0x400]
xor ebx, dword [r15 + rax*4 + 0xc00]
mov eax, r11d
xor ebx, dword [r12 + 0x64]
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
shr r11d, 8
xor r10d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor r10d, dword [r15 + rcx*4 + 0x800]
xor r10d, dword [r15 + rax*4 + 0xc00]
xor r10d, dword [r12 + 0x68]
mov ecx, r8d
shr rcx, 0x18
movzx eax, r9b
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, r11b
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, dil
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x6c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, esi
mov edi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor edi, dword [r15 + rcx*4 + 0x800]
mov edx, r10d
shr rdx, 0x18
xor edi, dword [r15 + rax*4]
movzx eax, bl
mov r9d, dword [r15 + rdx*4]
xor edi, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor edi, dword [r12 + 0x70]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr rax, 0x18
mov r11d, dword [r15 + rcx*4 + 0x800]
xor r11d, dword [r15 + rax*4]
mov eax, esi
shr eax, 0x10
movzx ecx, al
movzx eax, r10b
shr r10d, 0x10
xor r11d, dword [r15 + rcx*4 + 0x400]
xor r11d, dword [r15 + rax*4 + 0xc00]
mov eax, ebx
xor r11d, dword [r12 + 0x74]
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
shr ebx, 8
xor r9d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor r9d, dword [r15 + rcx*4 + 0x800]
xor r9d, dword [r15 + rax*4 + 0xc00]
xor r9d, dword [r12 + 0x78]
mov ecx, r8d
shr rcx, 0x18
movzx eax, r10b
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, bl
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, sil
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x7c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, edi
mov esi, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor esi, dword [r15 + rcx*4 + 0x800]
xor esi, dword [r15 + rax*4]
movzx eax, r11b
xor esi, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor esi, dword [r12 + 0x80]
shr eax, 8
movzx ecx, al
mov eax, r11d
shr rax, 0x18
mov ebx, dword [r15 + rcx*4 + 0x800]
xor ebx, dword [r15 + rax*4]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor ebx, dword [r15 + rcx*4 + 0x400]
xor ebx, dword [r15 + rax*4 + 0xc00]
mov eax, r11d
xor ebx, dword [r12 + 0x84]
shr eax, 0x10
movzx ecx, al
mov eax, edi
shr eax, 8
mov edx, r9d
shr rdx, 0x18
shr r9d, 0x10
shr r11d, 8
mov r10d, dword [r15 + rdx*4]
xor r10d, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor r10d, dword [r15 + rcx*4 + 0x800]
xor r10d, dword [r15 + rax*4 + 0xc00]
xor r10d, dword [r12 + 0x88]
mov ecx, r8d
shr rcx, 0x18
movzx eax, r9b
mov r8d, dword [r15 + rcx*4]
xor r8d, dword [r15 + rax*4 + 0x400]
movzx eax, r11b
xor r8d, dword [r15 + rax*4 + 0x800]
movzx eax, dil
xor r8d, dword [r15 + rax*4 + 0xc00]
xor r8d, dword [r12 + 0x8c]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, esi
mov r14d, dword [r15 + rdx*4 + 0x400]
shr rax, 0x18
xor r14d, dword [r15 + rcx*4 + 0x800]
mov edx, r10d
shr rdx, 0x18
xor r14d, dword [r15 + rax*4]
movzx eax, bl
mov ebp, dword [r15 + rdx*4]
xor r14d, dword [r15 + rax*4 + 0xc00]
mov eax, r8d
xor r14d, dword [r12 + 0x90]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr rax, 0x18
mov edi, dword [r15 + rcx*4 + 0x800]
xor edi, dword [r15 + rax*4]
mov eax, esi
shr eax, 0x10
movzx ecx, al
movzx eax, r10b
shr r10d, 0x10
xor edi, dword [r15 + rcx*4 + 0x400]
xor edi, dword [r15 + rax*4 + 0xc00]
mov eax, ebx
xor edi, dword [r12 + 0x94]
shr eax, 0x10
movzx ecx, al
mov eax, esi
shr eax, 8
shr ebx, 8
xor ebp, dword [r15 + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor ebp, dword [r15 + rcx*4 + 0x800]
xor ebp, dword [r15 + rax*4 + 0xc00]
xor ebp, dword [r12 + 0x98]
movzx eax, r10b
mov ecx, r8d
shr rcx, 0x18
mov r15d, dword [r15 + rcx*4]
lea rcx, [0x1800ca2c0]
xor r15d, dword [rcx + rax*4 + 0x400]
movzx eax, bl
xor r15d, dword [rcx + rax*4 + 0x800]
movzx eax, sil
mov ebx, dword [rsp + 0x38]
lea rsi, [0x1800ca2c0]
xor r15d, dword [rsi + rax*4 + 0xc00]
xor r15d, dword [r12 + 0x9c]
cmp ebx, 5
jbe 0x18008cfbe
mov eax, r15d
shr eax, 0x10
movzx edx, al
mov eax, ebp
shr eax, 8
movzx ecx, al
mov eax, r14d
mov r11d, dword [rsi + rdx*4 + 0x400]
shr rax, 0x18
xor r11d, dword [rsi + rcx*4 + 0x800]
mov edx, ebp
shr rdx, 0x18
xor r11d, dword [rsi + rax*4]
movzx eax, dil
mov r9d, dword [rsi + rdx*4]
xor r11d, dword [rsi + rax*4 + 0xc00]
mov eax, r15d
xor r11d, dword [r12 + 0xa0]
shr eax, 8
movzx ecx, al
mov eax, edi
shr rax, 0x18
mov r10d, dword [rsi + rcx*4 + 0x800]
xor r10d, dword [rsi + rax*4]
mov eax, r14d
shr eax, 0x10
movzx ecx, al
movzx eax, bpl
shr ebp, 0x10
xor r10d, dword [rsi + rcx*4 + 0x400]
xor r10d, dword [rsi + rax*4 + 0xc00]
mov eax, edi
xor r10d, dword [r12 + 0xa4]
shr eax, 0x10
movzx ecx, al
mov eax, r14d
shr eax, 8
shr edi, 8
xor r9d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r15b
xor r9d, dword [rsi + rcx*4 + 0x800]
xor r9d, dword [rsi + rax*4 + 0xc00]
xor r9d, dword [r12 + 0xa8]
movzx eax, bpl
mov ecx, r15d
shr rcx, 0x18
mov r8d, dword [rsi + rcx*4]
xor r8d, dword [rsi + rax*4 + 0x400]
movzx eax, dil
xor r8d, dword [rsi + rax*4 + 0x800]
movzx eax, r14b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r12 + 0xac]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, r11d
mov r14d, dword [rsi + rdx*4 + 0x400]
shr rax, 0x18
xor r14d, dword [rsi + rcx*4 + 0x800]
xor r14d, dword [rsi + rax*4]
movzx eax, r10b
xor r14d, dword [rsi + rax*4 + 0xc00]
mov eax, r8d
xor r14d, dword [r12 + 0xb0]
shr eax, 8
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edi, dword [rsi + rcx*4 + 0x800]
xor edi, dword [rsi + rax*4]
mov eax, r11d
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor edi, dword [rsi + rcx*4 + 0x400]
xor edi, dword [rsi + rax*4 + 0xc00]
xor edi, dword [r12 + 0xb4]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
mov edx, r9d
shr rdx, 0x18
shr r9d, 0x10
shr r10d, 8
mov ebp, dword [rsi + rdx*4]
xor ebp, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor ebp, dword [rsi + rcx*4 + 0x800]
xor ebp, dword [rsi + rax*4 + 0xc00]
xor ebp, dword [r12 + 0xb8]
movzx eax, r9b
mov ecx, r8d
shr rcx, 0x18
mov r15d, dword [rsi + rcx*4]
xor r15d, dword [rsi + rax*4 + 0x400]
movzx eax, r10b
xor r15d, dword [rsi + rax*4 + 0x800]
movzx eax, r11b
xor r15d, dword [rsi + rax*4 + 0xc00]
xor r15d, dword [r12 + 0xbc]
cmp ebx, 6
jbe 0x18008cfbe
mov eax, r15d
shr eax, 0x10
movzx edx, al
mov eax, ebp
shr eax, 8
movzx ecx, al
mov eax, r14d
mov r11d, dword [rsi + rdx*4 + 0x400]
shr rax, 0x18
xor r11d, dword [rsi + rcx*4 + 0x800]
mov edx, ebp
shr rdx, 0x18
xor r11d, dword [rsi + rax*4]
movzx eax, dil
mov r9d, dword [rsi + rdx*4]
xor r11d, dword [rsi + rax*4 + 0xc00]
mov eax, r15d
xor r11d, dword [r12 + 0xc0]
shr eax, 8
movzx ecx, al
mov eax, edi
shr rax, 0x18
mov r10d, dword [rsi + rcx*4 + 0x800]
xor r10d, dword [rsi + rax*4]
mov eax, r14d
shr eax, 0x10
movzx ecx, al
movzx eax, bpl
shr ebp, 0x10
xor r10d, dword [rsi + rcx*4 + 0x400]
xor r10d, dword [rsi + rax*4 + 0xc00]
mov eax, edi
xor r10d, dword [r12 + 0xc4]
shr eax, 0x10
movzx ecx, al
mov eax, r14d
shr eax, 8
shr edi, 8
xor r9d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r15b
xor r9d, dword [rsi + rcx*4 + 0x800]
xor r9d, dword [rsi + rax*4 + 0xc00]
xor r9d, dword [r12 + 0xc8]
movzx eax, bpl
mov ecx, r15d
shr rcx, 0x18
mov r8d, dword [rsi + rcx*4]
xor r8d, dword [rsi + rax*4 + 0x400]
movzx eax, dil
xor r8d, dword [rsi + rax*4 + 0x800]
movzx eax, r14b
xor r8d, dword [rsi + rax*4 + 0xc00]
xor r8d, dword [r12 + 0xcc]
mov eax, r8d
shr eax, 0x10
movzx edx, al
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, r11d
mov r14d, dword [rsi + rdx*4 + 0x400]
shr rax, 0x18
xor r14d, dword [rsi + rcx*4 + 0x800]
xor r14d, dword [rsi + rax*4]
movzx eax, r10b
xor r14d, dword [rsi + rax*4 + 0xc00]
mov eax, r8d
xor r14d, dword [r12 + 0xd0]
shr eax, 8
movzx ecx, al
mov eax, r10d
shr rax, 0x18
mov edi, dword [rsi + rcx*4 + 0x800]
xor edi, dword [rsi + rax*4]
mov eax, r11d
shr eax, 0x10
movzx ecx, al
movzx eax, r9b
xor edi, dword [rsi + rcx*4 + 0x400]
xor edi, dword [rsi + rax*4 + 0xc00]
xor edi, dword [r12 + 0xd4]
mov eax, r10d
shr eax, 0x10
movzx ecx, al
mov eax, r11d
shr eax, 8
mov edx, r9d
shr rdx, 0x18
shr r9d, 0x10
shr r10d, 8
mov ebp, dword [rsi + rdx*4]
xor ebp, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
movzx eax, r8b
xor ebp, dword [rsi + rcx*4 + 0x800]
xor ebp, dword [rsi + rax*4 + 0xc00]
xor ebp, dword [r12 + 0xd8]
movzx eax, r9b
mov ecx, r8d
shr rcx, 0x18
mov r15d, dword [rsi + rcx*4]
xor r15d, dword [rsi + rax*4 + 0x400]
movzx eax, r10b
xor r15d, dword [rsi + rax*4 + 0x800]
movzx eax, r11b
xor r15d, dword [rsi + rax*4 + 0xc00]
xor r15d, dword [r12 + 0xdc]
lea eax, [rbx*8]
mov rcx, r13
lea r11, [r12 + rax*4]
lea rbx, [0x1800cb2c0]
movzx eax, byte [rcx + rbx]
add rcx, 0x40
and r13d, eax
cmp rcx, 0x100
jl 0x18008cfd3
or r14d, r13d
mov eax, r14d
shr rax, 0x18
movzx r10d, byte [rax + rbx]
mov eax, r15d
shr eax, 0x10
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + rbx]
xor r10d, eax
mov eax, ebp
shr eax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + rbx]
xor r10d, eax
movzx eax, dil
shl r10d, 8
movzx ecx, byte [rax + rbx]
xor r10d, ecx
mov eax, edi
xor r10d, dword [r11]
shr rax, 0x18
movzx r9d, byte [rax + rbx]
mov eax, r14d
shr eax, 0x10
movzx ecx, al
shl r9d, 8
movzx eax, byte [rcx + rbx]
xor r9d, eax
mov eax, r15d
shr eax, 8
movzx ecx, al
shl r9d, 8
movzx eax, byte [rcx + rbx]
xor r9d, eax
movzx eax, bpl
shl r9d, 8
movzx ecx, byte [rax + rbx]
xor r9d, ecx
mov eax, ebp
xor r9d, dword [r11 + 4]
shr rax, 0x18
shr ebp, 0x10
movzx r8d, byte [rax + rbx]
mov eax, edi
shr eax, 0x10
movzx ecx, al
shl r8d, 8
shr edi, 8
movzx eax, byte [rcx + rbx]
xor r8d, eax
mov eax, r14d
shr eax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rbx]
xor r8d, eax
movzx eax, r15b
shl r8d, 8
movzx ecx, byte [rax + rbx]
xor r8d, ecx
mov eax, r15d
xor r8d, dword [r11 + 8]
shr rax, 0x18
movzx edx, byte [rax + rbx]
shl edx, 8
movzx eax, bpl
movzx ecx, byte [rax + rbx]
xor edx, ecx
movzx eax, dil
shl edx, 8
movzx ecx, byte [rax + rbx]
xor edx, ecx
movzx eax, r14b
shl edx, 8
movzx ecx, byte [rax + rbx]
mov eax, r10d
xor edx, ecx
xor edx, dword [r11 + 0xc]
ror eax, 8
mov rcx, qword [rsp + 0x48]
and eax, 0xff00ff00
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
rol r10d, 8
and r10d, 0xff00ff
or eax, r10d
mov dword [rcx], eax
mov eax, r9d
ror eax, 8
and eax, 0xff00ff00
rol r9d, 8
and r9d, 0xff00ff
or eax, r9d
mov dword [rcx + 4], eax
mov eax, r8d
ror eax, 8
and eax, 0xff00ff00
rol r8d, 8
and r8d, 0xff00ff
or eax, r8d
mov dword [rcx + 8], eax
mov eax, edx
ror eax, 8
rol edx, 8
and eax, 0xff00ff00
and edx, 0xff00ff
or eax, edx
mov dword [rcx + 0xc], eax
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret