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

Disassembly:
sub esp, 0x20
push edi
mov edi, ecx
cmp byte [edi + 4], 0
mov dword [esp + 0x10], edi
jne 0x4374dd
push 0x4c9e04
lea ecx, [esp + 0x1c]
call fcn.004810ab
push 0x4c0eac
lea eax, [esp + 0x1c]
push eax
call fcn.00481c90
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
add eax, 1
shl edx, 0x10
add eax, 1
shl ecx, 0x18
or ecx, edx
xor edx, edx
mov dh, byte [eax]
add eax, 1
push ebx
add eax, 1
add eax, 1
push ebp
push esi
movzx esi, byte [eax - 1]
or ecx, edx
movzx edx, byte [eax - 2]
or ecx, edx
movzx edx, byte [eax]
shl esi, 0x18
shl edx, 0x10
or esi, edx
add eax, 1
xor edx, edx
mov dh, byte [eax]
add eax, 1
add eax, 1
add eax, 1
xor ebx, ebx
mov bh, byte [eax + 1]
add eax, 1
or esi, edx
movzx edx, byte [eax - 3]
or esi, edx
xor esi, dword [edi + 0x1ec]
movzx edx, byte [eax - 2]
mov dword [esp + 0x34], esi
movzx esi, byte [eax - 1]
shl esi, 0x10
shl edx, 0x18
or edx, esi
movzx esi, byte [eax + 1]
or edx, ebx
add eax, 1
or edx, esi
movzx esi, byte [eax + 1]
add eax, 1
movzx ebx, byte [eax + 1]
add eax, 1
xor ecx, dword [edi + 0x1e8]
xor edx, dword [edi + 0x1f0]
shl ebx, 0x10
shl esi, 0x18
or esi, ebx
xor ebx, ebx
mov bh, byte [eax + 1]
add eax, 1
mov bl, byte [eax + 1]
or ebx, esi
xor ebx, dword [edi + 0x1f4]
mov esi, dword [edi + 0x3d0]
cmp esi, 1
mov eax, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
jle 0x43770c
add edi, 0x210
add esi, 0xffffffff
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x10], edi
jmp 0x4375d0
movzx edi, ah
mov ebx, esi
mov esi, dword [edi*4 + 0x4ac878]
sar ebx, 0x18
and ebx, 0xff
xor esi, dword [ebx*4 + 0x4ac078]
mov ebx, dword [esp + 0x34]
mov edi, ecx
sar edi, 0x10
and edi, 0xff
xor esi, dword [edi*4 + 0x4ac478]
mov edi, edx
and edi, 0xff
xor esi, dword [edi*4 + 0x4acc78]
mov edi, dword [esp + 0x10]
xor esi, dword [edi - 4]
sar ebx, 0x10
and ebx, 0xff
mov edi, edx
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x4ac078]
xor edi, dword [ebx*4 + 0x4ac478]
movzx ebx, ch
xor edi, dword [ebx*4 + 0x4ac878]
mov ebx, eax
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4acc78]
mov ebx, dword [esp + 0x10]
xor edi, dword [ebx]
mov ebx, eax
sar ebx, 0x18
and ebx, 0xff
mov ebp, edx
sar ebp, 0x10
and ebp, 0xff
mov dword [esp + 0x18], ebp
mov ebp, dword [ebx*4 + 0x4ac078]
mov ebx, dword [esp + 0x18]
xor ebp, dword [ebx*4 + 0x4ac478]
movzx ebx, byte [esp + 0x35]
xor ebp, dword [ebx*4 + 0x4ac878]
sar eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x4ac478]
mov ebx, ecx
movzx edx, dh
xor eax, dword [edx*4 + 0x4ac878]
sar ecx, 0x18
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4ac078]
mov ecx, dword [esp + 0x34]
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x4acc78]
mov ebx, dword [esp + 0x10]
xor ebp, dword [ebx + 4]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x4acc78]
add ebx, 0x20
xor eax, dword [ebx - 0x28]
sub dword [esp + 0x14], 1
mov ecx, eax
mov dword [esp + 0x34], esi
mov edx, edi
mov eax, ebp
mov dword [esp + 0x10], ebx
jne 0x4375d0
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov ebx, ecx
sar ebx, 0x18
mov dword [esp + 0x20], ecx
and ebx, 0xff
shl esi, 5
lea edi, [esi + edi + 0x1e8]
mov esi, dword [edi]
mov ecx, esi
sar ecx, 0x18
xor cl, byte [ebx + 0x4aaf78]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov byte [esi], cl
mov ecx, eax
sar ecx, 0x10
xor cl, byte [ebx + 0x4aaf78]
movzx ebx, dh
mov byte [esi + 1], cl
mov ecx, eax
sar ecx, 8
xor cl, byte [ebx + 0x4aaf78]
mov ebx, dword [esp + 0x34]
mov byte [esi + 2], cl
and ebx, 0xff
movzx ebx, byte [ebx + 0x4aaf78]
xor bl, al
mov byte [esi + 3], bl
mov eax, dword [edi + 4]
mov ebx, dword [esp + 0x34]
sar ebx, 0x18
and ebx, 0xff
mov ecx, eax
sar ecx, 0x18
xor cl, byte [ebx + 0x4aaf78]
mov byte [esi + 4], cl
mov ecx, dword [esp + 0x20]
mov ebx, ecx
sar ebx, 0x10
and ebx, 0xff
mov ecx, eax
sar ecx, 0x10
xor cl, byte [ebx + 0x4aaf78]
movzx ebx, byte [esp + 0x11]
mov byte [esi + 5], cl
mov ecx, eax
sar ecx, 8
xor cl, byte [ebx + 0x4aaf78]
mov ebx, edx
mov byte [esi + 6], cl
and ebx, 0xff
movzx ebx, byte [ebx + 0x4aaf78]
xor bl, al
mov byte [esi + 7], bl
mov eax, dword [edi + 8]
mov ebx, edx
sar ebx, 0x18
and ebx, 0xff
mov ecx, eax
sar ecx, 0x18
xor cl, byte [ebx + 0x4aaf78]
mov ebx, dword [esp + 0x34]
mov byte [esi + 8], cl
sar ebx, 0x10
and ebx, 0xff
mov ecx, eax
sar ecx, 0x10
xor cl, byte [ebx + 0x4aaf78]
mov byte [esi + 9], cl
mov ecx, dword [esp + 0x20]
movzx ebx, ch
mov ecx, eax
sar ecx, 8
xor cl, byte [ebx + 0x4aaf78]
mov ebx, dword [esp + 0x10]
and ebx, 0xff
mov byte [esi + 0xa], cl
movzx ebx, byte [ebx + 0x4aaf78]
mov ebp, dword [esp + 0x10]
xor bl, al
mov byte [esi + 0xb], bl
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x20]
sar ebp, 0x18
mov eax, edi
and ebp, 0xff
sar eax, 0x18
xor al, byte [ebp + 0x4aaf78]
sar edx, 0x10
mov byte [esi + 0xc], al
mov eax, edi
and edx, 0xff
mov ebx, eax
sar ebx, 0x10
xor bl, byte [edx + 0x4aaf78]
movzx edx, byte [esp + 0x35]
mov byte [esi + 0xd], bl
mov ebx, eax
sar ebx, 8
xor bl, byte [edx + 0x4aaf78]
and ecx, 0xff
mov byte [esi + 0xe], bl
mov cl, byte [ecx + 0x4aaf78]
xor cl, al
mov byte [esi + 0xf], cl
pop esi
pop ebp
pop ebx
mov dword [esp + 8], edi
pop edi
add esp, 0x20
ret 8