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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov ebp, ecx
shr ebx, 2
lea eax, [ebx + 6]
push edi
lea edi, [ebp + 0xc]
lea esi, [eax*4 + 4]
mov dword [ebp + 8], eax
call fcn.004d6da0
mov eax, dword [esp + 0x18]
mov esi, dword [ebp + 0x14]
push eax
mov eax, dword [esp + 0x18]
push ebx
call fcn.004f0570
mov ecx, dword [esi + ebx*4 - 4]
mov edx, ecx
shr edx, 0x10
movzx eax, dl
movzx eax, byte [eax + str.cw]
mov edx, ecx
shr edx, 8
xor eax, 1
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
movzx edx, cl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl eax, 8
xor eax, ecx
xor eax, dword [esi]
add esp, 8
mov dword [esi + ebx*4], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + ebx*4 + 4], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + ebx*4 + 8], eax
mov edx, dword [esi + 0xc]
xor edx, eax
mov dword [esi + ebx*4 + 0xc], edx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
lea edx, [ecx + eax*4]
lea eax, [esi + ebx*4 + 0x10]
mov dword [esp + 0x14], 0x6bb03c
cmp eax, edx
je 0x4ef9af
lea esp, [esp]
mov eax, dword [esp + 0x18]
cmp eax, 0x18
jne 0x4ef8bc
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jmp 0x4ef925
cmp eax, 0x20
jne 0x4ef925
mov ecx, dword [esi + 0x2c]
mov edx, ecx
shr edx, 0x18
movzx eax, byte [edx + str.cw]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
xor eax, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + str.cw]
shl eax, 8
movzx ecx, cl
xor eax, edx
movzx edx, byte [ecx + str.cw]
mov ecx, dword [esi + 0x14]
shl eax, 8
xor eax, edx
xor eax, dword [esi + 0x10]
xor ecx, eax
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x18]
xor eax, ecx
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x1c]
xor ecx, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
lea esi, [esi + ebx*4]
mov eax, dword [esi + ebx*4 - 4]
mov edx, eax
shr edx, 0x10
movzx ecx, dl
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
movzx ecx, al
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x14]
xor edx, dword [eax]
add eax, 4
xor edx, dword [esi]
mov dword [esp + 0x14], eax
mov dword [esi + ebx*4], edx
mov eax, dword [esi + 4]
xor eax, edx
mov dword [esi + ebx*4 + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov dword [esi + ebx*4 + 8], ecx
mov edx, dword [esi + 0xc]
xor edx, ecx
mov dword [esi + ebx*4 + 0xc], edx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
lea edx, [ecx + eax*4]
lea eax, [esi + ebx*4 + 0x10]
cmp eax, edx
jne 0x4ef8a0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
lea ecx, [ebp - 4]
call eax
test al, al
jne 0x4efbaf
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
add esi, esi
xor edi, edi
add esi, esi
je 0x4efa3c
lea edx, [eax + esi*4 + 8]
lea ecx, [eax + 8]
jmp 0x4ef9e0
mov ebx, dword [ecx - 8]
mov dword [esp + 0x18], ebx
mov ebx, dword [edx - 8]
mov dword [ecx - 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [edx - 8], ebx
mov ebx, dword [ecx - 4]
mov dword [esp + 0x18], ebx
mov ebx, dword [edx - 4]
mov dword [ecx - 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [edx - 4], ebx
mov ebx, dword [ecx]
mov dword [esp + 0x18], ebx
mov ebx, dword [edx]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x18]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [esp + 0x18], ebx
mov ebx, dword [edx + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [esp + 0x18]
mov dword [edx + 4], ebx
add edi, 4
sub esi, 4
add ecx, 0x10
sub edx, 0x10
cmp edi, esi
jb 0x4ef9e0
mov esi, 1
cmp dword [ebp + 8], esi
jbe 0x4efbaf
lea ebx, [ebx]
mov ecx, dword [eax + 0x10]
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x6ba038]
shr ecx, 8
add eax, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shr ebx, 0x10
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x6ba438]
inc esi
xor edx, dword [ecx*4 + 0x6ba838]
movzx ecx, byte [eax]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x6bac38]
mov ecx, dword [eax + 4]
mov dword [eax], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x6ba038]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
shr ebx, 0x10
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x6ba438]
xor edx, dword [ecx*4 + 0x6ba838]
movzx ecx, byte [eax + 4]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x6bac38]
mov ecx, dword [eax + 8]
mov dword [eax + 4], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x6ba038]
shr ecx, 8
shr ebx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x6ba438]
xor edx, dword [ecx*4 + 0x6ba838]
movzx ecx, byte [eax + 8]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x6bac38]
mov ecx, dword [eax + 0xc]
mov dword [eax + 8], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
mov edx, dword [edx*4 + 0x6ba038]
shr ebx, 0x10
shr ecx, 8
movzx edi, bl
movzx edi, byte [edi + str.cw]
xor edx, dword [edi*4 + 0x6ba438]
movzx ecx, cl
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x6ba838]
movzx ecx, byte [eax + 0xc]
movzx ecx, byte [ecx + str.cw]
xor edx, dword [ecx*4 + 0x6bac38]
mov dword [eax + 0xc], edx
cmp esi, dword [ebp + 8]
jb 0x4efa50
mov eax, dword [ebp + 0x14]
mov ecx, eax
sub ecx, eax
mov edx, 4
jmp 0x4efbc0
mov esi, dword [ecx + eax]
bswap esi
mov dword [eax], esi
add eax, 4
sub edx, 1
jne 0x4efbc0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
shl edx, 4
add eax, edx
mov ecx, eax
sub ecx, eax
mov edx, 4
mov esi, dword [ecx + eax]
bswap esi
mov dword [eax], esi
add eax, 4
sub edx, 1
jne 0x4efbe3
pop edi
pop esi
pop ebp
pop ebx
ret 0xc