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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x4c]
push ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
sub eax, 0x80
je 0x52a25c
sub eax, 0x40
je 0x52a265
sub eax, 0x40
je 0x52a26e
jmp 0x52a277
mov dword [ebp - 0x10], 4
jmp 0x52a283
mov dword [ebp - 0x10], 6
jmp 0x52a283
mov dword [ebp - 0x10], 8
jmp 0x52a283
mov dword [ebp - 0xc], 0xffffffff
jmp 0x52a59a
mov eax, dword [ebp - 8]
sub eax, 0x80
je 0x52a299
sub eax, 0x40
je 0x52a2a2
sub eax, 0x40
je 0x52a2ab
jmp 0x52a2b4
mov dword [ebp - 0x14], 4
jmp 0x52a2c0
mov dword [ebp - 0x14], 6
jmp 0x52a2c0
mov dword [ebp - 0x14], 8
jmp 0x52a2c0
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x52a59a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
setge al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00529df0
sub eax, 0x80
je 0x52a2e7
sub eax, 0x40
je 0x52a2f0
sub eax, 0x40
je 0x52a2f9
jmp 0x52a302
mov dword [ebp - 0x18], 0xa
jmp 0x52a30e
mov dword [ebp - 0x18], 0xc
jmp 0x52a30e
mov dword [ebp - 0x18], 0xe
jmp 0x52a30e
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x52a59a
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x52a351
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x4c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
mov byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a326
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x52a321
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x52a3a0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
shl eax, 2
mov edx, dword [ebp + 8]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx*8]
push eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
pop eax
mov ecx, dword [ebp - 0x1c]
lea ecx, [ebp + ecx*8 - 0x6c]
mov ebx, dword [ebp - 0x20]
mov cl, byte [ecx + ebx]
mov byte [eax + edx], cl
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a362
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x52a585
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x52a35d
jmp 0x52a585
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
inc eax
and eax, 0x80000003
jns 0x52a3d2
dec eax
or eax, 0xfffffffc
inc eax
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx - 1]
mov al, byte [eax + str.cw]
mov edx, dword [ebp - 0x1c]
xor byte [ebp + edx*8 - 0x6c], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a3c2
mov eax, dword [ebp - 0x28]
mov al, byte [eax*4 + 0x59e22c]
xor byte [ebp - 0x6c], al
inc dword [ebp - 0x28]
cmp dword [ebp - 0x10], 8
je 0x52a456
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jle 0x52a527
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx - 1]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
xor byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a425
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x52a420
jmp 0x52a527
mov dword [ebp - 0x20], 1
jmp 0x52a48b
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx - 1]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
xor byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a464
inc dword [ebp - 0x20]
fild dword [ebp - 0x20]
fild dword [ebp - 0x10]
fdiv dword [0x52a5a8]
fcompp
wait
fnstsw ax
sahf
ja 0x52a45f
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x52a4ae
adc eax, 0
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
movzx eax, byte [edx + eax - 1]
mov al, byte [eax + str.cw]
mov edx, dword [ebp - 0x10]
sar edx, 1
jns 0x52a4ca
adc edx, 0
mov ecx, dword [ebp - 0x1c]
lea ecx, [ebp + ecx*8 - 0x6c]
xor byte [ecx + edx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a4a4
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x52a4e7
adc eax, 0
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x52a527
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
lea eax, [ebp + eax*8 - 0x6c]
mov edx, dword [ebp - 0x20]
mov al, byte [eax + edx - 1]
mov edx, dword [ebp - 0x1c]
lea edx, [ebp + edx*8 - 0x6c]
mov ecx, dword [ebp - 0x20]
xor byte [edx + ecx], al
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a4f8
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jl 0x52a4f3
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x52a571
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
shl eax, 2
mov edx, dword [ebp + 8]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x1c]
lea eax, [eax + edx*8]
push eax
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x14]
pop eax
mov ecx, dword [ebp - 0x1c]
lea ecx, [ebp + ecx*8 - 0x6c]
mov ebx, dword [ebp - 0x20]
mov cl, byte [ecx + ebx]
mov byte [eax + edx], cl
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jne 0x52a533
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x52a585
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x52a52e
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x52a3bd
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4