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

Disassembly:
push 0xffffffffffffffff
push 0x4dd118
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53132c]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x50]
shr esi, 2
lea eax, [esi + 6]
lea ecx, [esp + 0x1c]
mov dword [edi + 0x14], eax
call fcn.00480610
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebx
call fcn.00480610
xor ecx, ecx
cmp esi, ebx
je 0x48f47a
mov edx, dword [esp + 0x4c]
jmp 0x48f460
mov eax, dword [edx + ecx*4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x4c]
bswap eax
mov ebp, dword [esp + 0x1c]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, esi
jne 0x48f460
mov ecx, dword [edi + 0x14]
lea edx, [ecx*4 + 4]
mov ebp, esi
mov dword [esp + 0x18], ebp
cmp esi, edx
jae 0x48f5e1
mov dword [esp + 0x4c], ebx
lea ecx, [esi*4 - 0x10]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
mov eax, dword [ecx + eax + 0xc]
rol eax, 8
mov edx, eax
shr edx, 0x18
movzx ebx, byte [edx + str.cw]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, dword [esp + 0x4c]
shl ebx, 8
or ebx, edx
xor edx, edx
div esi
mov edx, dword [esp + 0x14]
xor ebx, dword [eax*4 + 0x4f3dfc]
mov eax, dword [esp + 0x1c]
xor ebx, dword [edx + eax]
mov dword [ecx + eax + 0x10], ebx
mov eax, 1
cmp esi, eax
je 0x48f5b6
lea ebx, [ebx]
cmp esi, 8
jne 0x48f58c
cmp eax, 4
jne 0x48f58c
mov edx, dword [esp + 0x1c]
mov edx, dword [ecx + edx + 0x1c]
mov ebx, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x1c]
mov edx, dword [ecx + edx + 0x1c]
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x1c]
movzx edx, byte [ecx + edx + 0x1c]
movzx edx, byte [edx + str.cw]
shl ebx, 8
or ebx, edx
mov edx, dword [esp + 0x1c]
xor ebx, dword [ecx + edx]
mov dword [ecx + edx + 0x20], ebx
jmp 0x48f5ad
mov ebx, dword [esp + 0x1c]
lea edx, [eax + ebp]
lea edx, [ebx + edx*4]
mov ebx, eax
sub ebx, esi
add ebx, ebp
mov ebp, dword [esp + 0x1c]
mov ebx, dword [ebp + ebx*4]
xor ebx, dword [edx - 4]
mov ebp, dword [esp + 0x18]
mov dword [edx], ebx
inc eax
cmp eax, esi
jne 0x48f520
add dword [esp + 0x4c], esi
lea eax, [esi*4]
add dword [esp + 0x14], eax
add ecx, eax
mov eax, dword [edi + 0x14]
add ebp, esi
lea edx, [eax*4 + 4]
mov dword [esp + 0x18], ebp
cmp ebp, edx
jb 0x48f4a1
xor ebx, ebx
mov ecx, dword [edi + 0x14]
lea edx, [ecx*4 + 4]
xor eax, eax
test edx, edx
je 0x48f664
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4], ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4 + 4]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4 + 4], ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4 + 8]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [edi + 0x14]
mov edx, dword [esp + 0x1c]
add ecx, ecx
add ecx, ecx
sub ecx, eax
mov ecx, dword [edx + ecx*4 + 0xc]
mov edx, dword [esp + 0x2c]
mov dword [edx + eax*4 + 0xc], ecx
mov ecx, dword [edi + 0x14]
add eax, 4
lea edx, [ecx*4 + 4]
cmp eax, edx
jne 0x48f5f1
mov ebp, dword [esp + 0x50]
mov eax, 4
add ebp, 0x18
cmp ebp, eax
je 0x48f6d3
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + eax*4]
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x4f6fd8]
shr ebx, 0x10
shr ecx, 8
movzx ebx, bl
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x4f73d8]
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x4f77d8]
movzx ecx, byte [esi + eax*4]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x4f7bd8]
inc eax
mov dword [esi + eax*4 - 4], edx
cmp eax, ebp
jne 0x48f674
xor ecx, ecx
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x1c]
mov edx, dword [edi + 0x28]
lea eax, [ecx + eax*4]
mov eax, dword [esi + eax*4]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
bswap eax
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + ecx*4]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x50]
bswap eax
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, 4
jne 0x48f6d5
mov ecx, dword [edi + 0x1c]
cmp ebp, ecx
ja 0x48f718
mov ecx, ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x18]
add ecx, ecx
add ecx, ecx
push ecx
push edx
push eax
call fcn.00459280
mov eax, dword [edi + 0x3c]
add esp, 0xc
cmp ebp, eax
ja 0x48f737
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov edi, dword [edi + 0x38]
add eax, eax
add eax, eax
push eax
push ecx
push edi
call fcn.00459280
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, eax
add esp, 0xc
add eax, eax
push eax
mov eax, dword [esp + 0x30]
push eax
call edx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add edx, edx
add edx, edx
push edx
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x4c], 0xffffffff
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8