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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, str.cwko0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
sub eax, 0x80
je 0x507b5f
sub eax, 0x40
je 0x507b6b
sub eax, 0x40
je 0x507b77
jmp 0x507b83
mov dword [ecx + 0x200], 0xa
jmp 0x507b8d
mov dword [ecx + 0x200], 0xc
jmp 0x507b8d
mov dword [ecx + 0x200], 0xe
jmp 0x507b8d
mov eax, 1
jmp 0x507fcb
mov eax, ecx
xor edx, edx
mov ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
jmp 0x507bd6
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
movzx edi, byte [edi + 1]
movzx ebx, byte [ebx]
shl ebx, 0x18
shl edi, 0x10
or ebx, edi
mov edi, dword [ebp - 4]
movzx edi, byte [edi + 2]
shl edi, 8
or ebx, edi
mov edi, dword [ebp - 4]
movzx edi, byte [edi + 3]
or ebx, edi
mov edi, dword [ebp - 8]
mov dword [edi], ebx
inc edx
add dword [ebp - 8], 4
add dword [ebp - 4], 4
mov ebx, dword [ebp + 0x10]
sar ebx, 5
cmp edx, ebx
jl 0x507b9e
mov edx, dword [ebp + 0x10]
sub edx, 0x80
je 0x507c02
sub edx, 0x40
je 0x507c85
sub edx, 0x40
je 0x507d1d
jmp 0x507e02
mov dword [ebp - 0xc], 0x51f25c
xor edx, edx
mov ebx, dword [eax + 0xc]
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 0xc]
shl edi, 0x18
mov ebx, dword [ebx]
xor ebx, dword [eax]
xor edi, ebx
mov ebx, dword [eax + 0xc]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
shl ebx, 0x10
xor edi, ebx
xor ebx, ebx
mov bl, byte [eax + 0xc]
mov ebx, dword [esi + ebx*4]
shl ebx, 8
xor edi, ebx
mov ebx, dword [eax + 0xc]
shr ebx, 0x18
and ebx, 0xff
xor edi, dword [esi + ebx*4]
mov dword [eax + 0x10], edi
mov ebx, dword [eax + 4]
xor ebx, dword [eax + 0x10]
mov dword [eax + 0x14], ebx
mov edi, dword [eax + 8]
xor edi, ebx
mov dword [eax + 0x18], edi
mov ebx, dword [eax + 0xc]
xor ebx, dword [eax + 0x18]
mov dword [eax + 0x1c], ebx
add dword [ebp - 0xc], 4
inc edx
add eax, 0x10
cmp edx, 0xa
jl 0x507c0b
jmp 0x507e02
mov dword [ebp - 0x10], 0x51f25c
xor edx, edx
mov ebx, dword [eax + 0x14]
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 0x10]
shl edi, 0x18
mov ebx, dword [ebx]
xor ebx, dword [eax]
xor edi, ebx
mov ebx, dword [eax + 0x14]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
shl ebx, 0x10
xor edi, ebx
xor ebx, ebx
mov bl, byte [eax + 0x14]
mov ebx, dword [esi + ebx*4]
shl ebx, 8
xor edi, ebx
mov ebx, dword [eax + 0x14]
shr ebx, 0x18
and ebx, 0xff
xor edi, dword [esi + ebx*4]
mov dword [eax + 0x18], edi
mov ebx, dword [eax + 4]
xor ebx, dword [eax + 0x18]
mov dword [eax + 0x1c], ebx
mov edi, dword [eax + 8]
xor edi, ebx
mov dword [eax + 0x20], edi
mov ebx, dword [eax + 0xc]
xor ebx, dword [eax + 0x20]
mov dword [eax + 0x24], ebx
mov edi, dword [eax + 0x10]
xor edi, ebx
mov dword [eax + 0x28], edi
mov ebx, dword [eax + 0x14]
xor ebx, dword [eax + 0x28]
mov dword [eax + 0x2c], ebx
add dword [ebp - 0x10], 4
inc edx
add eax, 0x18
cmp edx, 8
jl 0x507c8e
jmp 0x507e02
mov dword [ebp - 0x14], 0x51f25c
xor edx, edx
mov ebx, dword [eax + 0x1c]
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 0x14]
shl edi, 0x18
mov ebx, dword [ebx]
xor ebx, dword [eax]
xor edi, ebx
mov ebx, dword [eax + 0x1c]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
shl ebx, 0x10
xor edi, ebx
xor ebx, ebx
mov bl, byte [eax + 0x1c]
mov ebx, dword [esi + ebx*4]
shl ebx, 8
xor edi, ebx
mov ebx, dword [eax + 0x1c]
shr ebx, 0x18
and ebx, 0xff
xor edi, dword [esi + ebx*4]
mov dword [eax + 0x20], edi
mov ebx, dword [eax + 4]
xor ebx, dword [eax + 0x20]
mov dword [eax + 0x24], ebx
mov edi, dword [eax + 8]
xor edi, ebx
mov dword [eax + 0x28], edi
mov ebx, dword [eax + 0xc]
xor ebx, dword [eax + 0x28]
mov dword [eax + 0x2c], ebx
mov ebx, dword [eax + 0x2c]
shr ebx, 0x18
and ebx, 0xff
mov edi, dword [esi + ebx*4]
mov ebx, dword [eax + 0x2c]
shr ebx, 0x10
and ebx, 0xff
shl edi, 0x18
xor edi, dword [eax + 0x10]
mov ebx, dword [esi + ebx*4]
shl ebx, 0x10
xor edi, ebx
mov ebx, dword [eax + 0x2c]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
shl ebx, 8
xor edi, ebx
xor ebx, ebx
mov bl, byte [eax + 0x2c]
xor edi, dword [esi + ebx*4]
mov dword [eax + 0x30], edi
mov ebx, dword [eax + 0x14]
xor ebx, dword [eax + 0x30]
mov dword [eax + 0x34], ebx
mov ebx, dword [eax + 0x18]
xor ebx, dword [eax + 0x34]
mov dword [eax + 0x38], ebx
mov ebx, dword [eax + 0x1c]
xor ebx, dword [eax + 0x38]
mov dword [eax + 0x3c], ebx
add dword [ebp - 0x14], 4
inc edx
add eax, 0x20
cmp edx, 7
jl 0x507d26
xor edx, edx
lea eax, [ecx + 0x100]
jmp 0x507e56
mov ebx, dword [ecx + 0x200]
sub ebx, edx
shl ebx, 2
mov ebx, dword [ecx + ebx*4]
mov dword [eax], ebx
mov ebx, dword [ecx + 0x200]
sub ebx, edx
shl ebx, 2
mov ebx, dword [ecx + ebx*4 + 4]
mov dword [eax + 4], ebx
mov ebx, dword [ecx + 0x200]
sub ebx, edx
shl ebx, 2
mov ebx, dword [ecx + ebx*4 + 8]
mov dword [eax + 8], ebx
mov ebx, dword [ecx + 0x200]
sub ebx, edx
shl ebx, 2
mov ebx, dword [ecx + ebx*4 + 0xc]
mov dword [eax + 0xc], ebx
inc edx
add eax, 0x10
cmp edx, dword [ecx + 0x200]
jle 0x507e0c
mov edx, 1
lea eax, [ecx + 0x110]
jmp 0x507fbd
mov ebx, dword [eax]
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov edi, dword [ebx*4 + 0x51e25c]
mov ebx, dword [eax]
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51e65c]
mov ebx, dword [eax]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ea5c]
xor ebx, ebx
mov bl, byte [eax]
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ee5c]
mov dword [eax], edi
mov ebx, dword [eax + 4]
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov edi, dword [ebx*4 + 0x51e25c]
mov ebx, dword [eax + 4]
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51e65c]
mov ebx, dword [eax + 4]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ea5c]
xor ebx, ebx
mov bl, byte [eax + 4]
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ee5c]
mov dword [eax + 4], edi
mov ebx, dword [eax + 8]
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov edi, dword [ebx*4 + 0x51e25c]
mov ebx, dword [eax + 8]
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51e65c]
mov ebx, dword [eax + 8]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ea5c]
xor ebx, ebx
mov bl, byte [eax + 8]
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ee5c]
mov dword [eax + 8], edi
mov ebx, dword [eax + 0xc]
shr ebx, 0x18
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
mov edi, dword [ebx*4 + 0x51e25c]
mov ebx, dword [eax + 0xc]
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51e65c]
mov ebx, dword [eax + 0xc]
shr ebx, 8
and ebx, 0xff
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ea5c]
xor ebx, ebx
mov bl, byte [eax + 0xc]
mov ebx, dword [esi + ebx*4]
xor edi, dword [ebx*4 + 0x51ee5c]
mov dword [eax + 0xc], edi
inc edx
add eax, 0x10
cmp edx, dword [ecx + 0x200]
jl 0x507e6e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc