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

Disassembly:
push ebx
push esi
push edi
lea esp, [esp - 0x20]
mov dword [esp + 0x10], ecx
mov esi, eax
mov ecx, dword [edx]
mov ebx, dword [esi]
xor ebx, ecx
mov dword [esp + 0x1c], ebx
mov ecx, esi
mov ebx, dword [edx + 4]
mov esi, dword [ecx + 4]
xor esi, ebx
mov dword [esp + 0x14], esi
mov ebx, ecx
mov ecx, dword [edx + 8]
mov esi, dword [ebx + 8]
xor esi, ecx
mov dword [esp + 0x18], esi
mov ecx, ebx
mov ebx, dword [edx + 0xc]
mov edx, dword [ecx + 0xc]
xor edx, ebx
mov edi, edx
add ecx, 0x10
movzx eax, word [eax + 0x112]
sub eax, 1
mov edx, eax
cmp edx, 1
jl 0x5f0bdc
xor eax, eax
lea esi, [esi]
add eax, 1
mov ebx, dword [esp + 0x14]
shr ebx, 8
and ebx, 0xff
mov esi, dword [esp + 0x1c]
and esi, 0xff
mov ebx, dword [ebx*4 + 0x614440]
mov esi, dword [esi*4 + 0x614040]
xor esi, ebx
mov ebx, dword [esp + 0x18]
shr ebx, 0x10
and ebx, 0xff
xor esi, dword [ebx*4 + 0x614840]
mov ebx, edi
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x614c40]
xor esi, dword [ecx]
mov dword [esp], esi
mov ebx, dword [esp + 0x18]
shr ebx, 8
and ebx, 0xff
mov esi, dword [esp + 0x14]
and esi, 0xff
mov ebx, dword [ebx*4 + 0x614440]
mov esi, dword [esi*4 + 0x614040]
xor esi, ebx
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
xor esi, dword [ebx*4 + 0x614840]
mov ebx, dword [esp + 0x1c]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x614c40]
xor esi, dword [ecx + 4]
mov dword [esp + 4], esi
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov esi, dword [esp + 0x18]
and esi, 0xff
mov ebx, dword [ebx*4 + 0x614440]
mov esi, dword [esi*4 + 0x614040]
xor esi, ebx
mov ebx, dword [esp + 0x1c]
shr ebx, 0x10
and ebx, 0xff
xor esi, dword [ebx*4 + 0x614840]
mov ebx, dword [esp + 0x14]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x614c40]
xor esi, dword [ecx + 8]
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x1c]
shr ebx, 8
and ebx, 0xff
mov esi, edi
and esi, 0xff
mov ebx, dword [ebx*4 + 0x614440]
mov esi, dword [esi*4 + 0x614040]
xor esi, ebx
mov ebx, dword [esp + 0x14]
shr ebx, 0x10
and ebx, 0xff
xor esi, dword [ebx*4 + 0x614840]
mov ebx, dword [esp + 0x18]
shr ebx, 0x18
xor esi, dword [ebx*4 + 0x614c40]
xor esi, dword [ecx + 0xc]
mov edi, esi
mov ebx, dword [esp]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x18], ebx
add ecx, 0x10
cmp edx, eax
jg 0x5f0a80
lea esi, [esi]
mov edx, str.cw
mov eax, dword [esp + 0x14]
shr eax, 8
and eax, 0xff
movzx eax, byte [edx + eax]
shl eax, 8
mov ebx, edx
mov edx, dword [esp + 0x1c]
and edx, 0xff
movzx edx, byte [ebx + edx]
xor eax, edx
mov edx, dword [esp + 0x18]
shr edx, 0x10
and edx, 0xff
movzx edx, byte [ebx + edx]
shl edx, 0x10
xor eax, edx
mov edx, edi
shr edx, 0x18
movzx edx, byte [ebx + edx]
shl edx, 0x18
xor eax, edx
mov edx, ecx
xor eax, dword [edx]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, str.cw
mov eax, dword [esp + 0x18]
shr eax, 8
and eax, 0xff
movzx eax, byte [ecx + eax]
shl eax, 8
mov ebx, ecx
mov ecx, dword [esp + 0x14]
and ecx, 0xff
movzx ecx, byte [ebx + ecx]
xor eax, ecx
mov ecx, edi
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ebx + ecx]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [esp + 0x1c]
shr ecx, 0x18
movzx ecx, byte [ebx + ecx]
shl ecx, 0x18
xor eax, ecx
xor eax, dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], eax
mov ecx, str.cw
mov eax, edi
shr eax, 8
and eax, 0xff
movzx eax, byte [ecx + eax]
shl eax, 8
mov ebx, ecx
mov ecx, dword [esp + 0x18]
and ecx, 0xff
movzx ecx, byte [ebx + ecx]
xor eax, ecx
mov ecx, dword [esp + 0x1c]
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ebx + ecx]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [esp + 0x14]
shr ecx, 0x18
movzx ecx, byte [ebx + ecx]
shl ecx, 0x18
xor eax, ecx
xor eax, dword [edx + 8]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], eax
mov ecx, str.cw
mov eax, dword [esp + 0x1c]
shr eax, 8
and eax, 0xff
movzx eax, byte [ecx + eax]
shl eax, 8
mov ebx, ecx
mov ecx, edi
and ecx, 0xff
movzx ecx, byte [ebx + ecx]
xor eax, ecx
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ebx + ecx]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [esp + 0x18]
shr ecx, 0x18
movzx ecx, byte [ebx + ecx]
shl ecx, 0x18
xor eax, ecx
xor eax, dword [edx + 0xc]
mov edx, dword [esp + 0x10]
mov dword [edx + 0xc], eax
lea esp, [esp + 0x20]
pop edi
pop esi
pop ebx
ret