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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.10037560
add esp, 0xc
test eax, eax
jne 0x10037cdf
mov edx, dword [ebx + 0xf0]
push ebp
push esi
shl edx, 2
xor esi, esi
test edx, edx
push edi
jle 0x10037afc
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
lea esp, [esp]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x10037ac0
mov eax, dword [ebx + 0xf0]
mov edx, 1
cmp eax, edx
jle 0x10037cda
lea eax, [ebx + 2]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + str.ccccwwww]
mov ecx, dword [eax + 0xe]
and edi, 0xff
mov ebp, dword [edi*4 + 0x1013c8a8]
movzx edi, byte [eax + 0x10]
mov edi, dword [edi*4 + str.ccccwwww]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x1013c0a8]
xor esi, ebp
and edi, 0xff
xor esi, dword [edi*4 + 0x1013c4a8]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x1013cca8]
mov dword [eax - 2], esi
movzx edi, byte [eax + 3]
mov edi, dword [edi*4 + str.ccccwwww]
mov ecx, dword [eax + 2]
and edi, 0xff
mov ebp, dword [edi*4 + 0x1013c8a8]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x1013c0a8]
xor esi, ebp
and edi, 0xff
xor esi, dword [edi*4 + 0x1013c4a8]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov edi, dword [ecx*4 + 0x1013cca8]
mov ecx, dword [eax + 6]
xor esi, edi
movzx edi, byte [eax + 7]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov ebp, dword [edi*4 + 0x1013c8a8]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x1013c0a8]
xor esi, ebp
and edi, 0xff
mov ebp, dword [edi*4 + 0x1013c4a8]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
xor esi, ebp
and ecx, 0xff
mov edi, dword [ecx*4 + 0x1013cca8]
mov ecx, dword [eax + 0xa]
xor esi, edi
movzx edi, byte [eax + 0xb]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov ebp, dword [edi*4 + 0x1013c8a8]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + str.ccccwwww]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + str.ccccwwww]
and esi, 0xff
mov esi, dword [esi*4 + 0x1013c0a8]
xor esi, ebp
and edi, 0xff
mov ebp, dword [edi*4 + 0x1013c4a8]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
mov edi, dword [ecx*4 + 0x1013cca8]
xor esi, ebp
xor esi, edi
mov dword [eax + 0xa], esi
mov ecx, dword [ebx + 0xf0]
inc edx
cmp edx, ecx
jl 0x10037b12
pop edi
pop esi
xor eax, eax
pop ebp
pop ebx
ret