Function at 0x530620
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 0x530658
sub eax, 0x40
je 0x530661
sub eax, 0x40
je 0x53066a
jmp 0x530673
mov dword [ebp - 0x10], 4
jmp 0x53067f
mov dword [ebp - 0x10], 6
jmp 0x53067f
mov dword [ebp - 0x10], 8
jmp 0x53067f
mov dword [ebp - 0xc], 0xffffffff
jmp 0x530996
mov eax, dword [ebp - 8]
sub eax, 0x80
je 0x530695
sub eax, 0x40
je 0x53069e
sub eax, 0x40
je 0x5306a7
jmp 0x5306b0
mov dword [ebp - 0x14], 4
jmp 0x5306bc
mov dword [ebp - 0x14], 6
jmp 0x5306bc
mov dword [ebp - 0x14], 8
jmp 0x5306bc
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x530996
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
setge al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.005301ec
sub eax, 0x80
je 0x5306e3
sub eax, 0x40
je 0x5306ec
sub eax, 0x40
je 0x5306f5
jmp 0x5306fe
mov dword [ebp - 0x18], 0xa
jmp 0x53070a
mov dword [ebp - 0x18], 0xc
jmp 0x53070a
mov dword [ebp - 0x18], 0xe
jmp 0x53070a
mov dword [ebp - 0xc], 0xfffffffd
jmp 0x530996
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x53074d
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 0x530722
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x53071d
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x53079c
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 0x53075e
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x530981
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x530759
jmp 0x530981
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
inc eax
and eax, 0x80000003
jns 0x5307ce
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 0x5307be
mov eax, dword [ebp - 0x28]
mov al, byte [eax*4 + 0x595254]
xor byte [ebp - 0x6c], al
inc dword [ebp - 0x28]
cmp dword [ebp - 0x10], 8
je 0x530852
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jle 0x530923
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 0x530821
inc dword [ebp - 0x20]
dec dword [ebp - 0x2c]
jne 0x53081c
jmp 0x530923
mov dword [ebp - 0x20], 1
jmp 0x530887
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 0x530860
inc dword [ebp - 0x20]
fild dword [ebp - 0x20]
fild dword [ebp - 0x10]
fdiv dword [0x5309a4]
fcompp
wait
fnstsw ax
sahf
ja 0x53085b
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x5308aa
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 0x5308c6
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 0x5308a0
mov eax, dword [ebp - 0x10]
sar eax, 1
jns 0x5308e3
adc eax, 0
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x530923
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 0x5308f4
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jl 0x5308ef
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x53096d
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 0x53092f
inc dword [ebp - 0x20]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x530981
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x53092a
mov eax, dword [ebp - 0x18]
inc eax
imul dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jg 0x5307b9
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