Function at 0x77ca9c81
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
mov esi, eax
push edx
sar esi, 2
push ebx
mov dword [ebp - 8], ebx
lea edi, [esi + 6]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp + 8]
mov edx, edi
shl edx, 4
lea ecx, [edx + ebx + 0x10]
shl edi, 5
mov dword [ebp - 4], ecx
and esi, 2
mov dword [ebx + 0x1d4], edi
mov edi, dword [ebp - 4]
add eax, ebx
add esp, 0xc
add esi, 3
cmp eax, edi
mov dword [ebx + 0x1d0], edx
mov cl, 1
jae 0x77ca9dc3
lea esp, [esp]
movzx edx, byte [eax - 3]
movzx edx, byte [edx + 0x77cac400]
xor dl, cl
mov byte [eax], dl
movzx edx, byte [eax - 2]
movzx edx, byte [edx + 0x77cac400]
mov byte [eax + 1], dl
movzx edx, byte [eax - 1]
movzx edx, byte [edx + 0x77cac400]
mov byte [eax + 2], dl
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x77cac400]
mov byte [eax + 3], dl
mov edx, eax
sub edx, dword [ebp + 8]
add eax, 4
mov edx, dword [edx]
xor dword [eax - 4], edx
mov dl, cl
and dl, 0x80
neg dl
sbb dl, dl
add cl, cl
and edx, 0x1b
xor cl, dl
test esi, esi
jle 0x77ca9d56
mov edx, 4
sub edx, dword [ebp + 8]
mov edi, esi
mov ebx, dword [edx + eax - 4]
xor ebx, dword [eax - 4]
add eax, 4
sub edi, 1
mov dword [eax - 4], ebx
jne 0x77ca9d41
mov edi, dword [ebp - 4]
cmp dword [ebp + 8], 0x20
jne 0x77ca9db8
movzx edx, byte [eax - 4]
movzx edx, byte [edx + 0x77cac400]
mov byte [eax], dl
movzx edx, byte [eax - 3]
movzx edx, byte [edx + 0x77cac400]
mov byte [eax + 1], dl
movzx edx, byte [eax - 2]
movzx edx, byte [edx + 0x77cac400]
mov byte [eax + 2], dl
movzx edx, byte [eax - 1]
movzx edx, byte [edx + 0x77cac400]
mov byte [eax + 3], dl
mov edx, dword [eax - 0x20]
xor dword [eax], edx
mov edx, dword [eax - 0x1c]
xor edx, dword [eax]
add eax, 4
mov dword [eax], edx
mov edi, dword [eax - 0x1c]
xor edi, edx
mov dword [eax + 4], edi
mov edx, dword [eax - 0x18]
xor edx, edi
mov edi, dword [ebp - 4]
mov dword [eax + 8], edx
add eax, 0xc
cmp eax, edi
jb 0x77ca9cdd
mov ebx, dword [ebp - 8]
lea edx, [ebx + 0x20]
cmp edi, edx
mov ecx, edi
mov eax, edi
jbe 0x77ca9e9e
movzx esi, byte [eax - 0x1d]
mov esi, dword [esi*4 + 0x77caac00]
movzx edi, byte [eax - 0x1e]
xor esi, dword [edi*4 + 0x77caa800]
movzx edi, byte [eax - 0x1f]
xor esi, dword [edi*4 + 0x77caa400]
movzx edi, byte [eax - 0x20]
xor esi, dword [edi*4 + 0x77caa000]
sub eax, 0x20
mov dword [ecx], esi
movzx esi, byte [eax + 7]
mov esi, dword [esi*4 + 0x77caac00]
movzx edi, byte [eax + 6]
xor esi, dword [edi*4 + 0x77caa800]
movzx edi, byte [eax + 5]
xor esi, dword [edi*4 + 0x77caa400]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x77caa000]
add eax, 0x10
mov dword [ecx + 4], esi
movzx esi, byte [eax - 5]
mov esi, dword [esi*4 + 0x77caac00]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x77caa800]
movzx edi, byte [eax - 7]
xor esi, dword [edi*4 + 0x77caa400]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x77caa000]
add ecx, 0x10
mov dword [ecx - 8], esi
movzx esi, byte [eax - 1]
movzx edi, byte [eax - 2]
mov esi, dword [esi*4 + 0x77caac00]
xor esi, dword [edi*4 + 0x77caa800]
movzx edi, byte [eax - 3]
xor esi, dword [edi*4 + 0x77caa400]
movzx edi, byte [eax - 4]
xor esi, dword [edi*4 + 0x77caa000]
cmp eax, edx
mov dword [ecx - 4], esi
ja 0x77ca9dd2
mov eax, dword [ebx]
mov dword [ecx], eax
mov edx, dword [ebx + 4]
mov dword [ecx + 4], edx
mov eax, dword [ebx + 8]
pop edi
mov dword [ecx + 8], eax
mov edx, dword [ebx + 0xc]
pop esi
mov dword [ecx + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret 4