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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 0x1c]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
div edi
mov dword [ebp - 0x5c], edi
test edx, edx
jne 0x457fe4
cmp byte [ebp + 8], 0
mov edx, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0xc], ecx
je 0x45793e
mov eax, dword [ebp + 0x18]
mov edx, 8
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], 0x4b7518
mov dword [ebp - 0x34], 0x4b7918
mov dword [ebp - 0x24], 0x4b7d18
mov dword [ebp - 0x2c], 0x4b8118
mov dword [ebp - 8], str.cw
mov dword [ebp - 0x40], 4
mov dword [ebp + 0x14], eax
jmp 0x457991
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffc
mov dword [ebp - 0x28], 0x4b8518
add eax, edi
mov dword [ebp - 0x34], 0x4b8918
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x18]
add eax, 0xfffffffc
mov dword [ebp - 0x24], 0x4b8d18
add eax, edi
mov dword [ebp - 0x2c], 0x4b9118
mov dword [ebp - 8], 0x4b7418
mov dword [ebp - 0x40], 0xfffffffc
mov dword [ebp + 0x18], eax
test ecx, ecx
je 0x45798a
add ecx, 0xfffffffc
add ecx, edi
mov dword [ebp - 0xc], ecx
lea edx, [edx*4 + 8]
mov dword [ebp - 0x44], edx
push esi
lea esi, [edx + ebx]
test ecx, ecx
je 0x457a34
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
mov edx, dword [ebp - 0x40]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
add ecx, edx
or ebx, eax
mov dword [ebp - 0x20], ebx
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
add ecx, edx
or ebx, eax
mov dword [ebp - 0x1c], ebx
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
add ecx, edx
or ebx, eax
mov dword [ebp - 0x18], ebx
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 3]
shl ebx, 8
or ebx, eax
add ecx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
jmp 0x457a4c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, edi
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 0x58]
sar eax, 2
sub edx, eax
lea eax, [esi + edx*4]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
add edx, eax
mov dword [ebp - 0x64], edx
cmp eax, edx
jae 0x457f68
lea ecx, [esi + 0x10]
mov dword [ebp - 0x60], ecx
lea ebx, [eax + 2]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], ecx
add eax, 2
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], ecx
nop
movzx edx, byte [ebx - 2]
movzx ecx, byte [ebx - 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 1]
shl edx, 8
or edx, ecx
cmp byte [ebp + 8], 0
mov dword [ebp + 0x14], edx
je 0x457b42
movzx edx, byte [ebx + 2]
movzx ecx, byte [ebx + 3]
movzx esi, byte [ebx + 6]
movzx edi, byte [ebx + 0xa]
shl edx, 8
or edx, ecx
shl esi, 8
movzx ecx, byte [ebx + 4]
shl edx, 8
or edx, ecx
shl edi, 8
movzx ecx, byte [ebx + 5]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 7]
or esi, ecx
movzx ecx, byte [ebx + 8]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx + 9]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx + 0xb]
or edi, ecx
movzx ecx, byte [ebx + 0xc]
shl edi, 8
or edi, ecx
movzx ecx, byte [ebx + 0xd]
shl edi, 8
or edi, ecx
cmp dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x14]
je 0x457bd4
xor ecx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x1c]
xor esi, dword [ebp - 0x18]
xor edi, dword [ebp - 0x14]
jmp 0x457bd4
movzx ecx, byte [ebx - 5]
movzx esi, byte [ebx - 0xa]
movzx edi, byte [ebx - 0xe]
mov dword [ebp + 0x14], edx
movzx edx, byte [ebx - 6]
shl edx, 8
or edx, ecx
shl esi, 8
movzx ecx, byte [ebx - 4]
shl edx, 8
or edx, ecx
shl edi, 8
movzx ecx, byte [ebx - 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx - 9]
or esi, ecx
movzx ecx, byte [ebx - 8]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx - 7]
shl esi, 8
or esi, ecx
movzx ecx, byte [ebx - 0xd]
or edi, ecx
movzx ecx, byte [ebx - 0xc]
shl edi, 8
or edi, ecx
movzx ecx, byte [ebx - 0xb]
shl edi, 8
or edi, ecx
cmp dword [ebp - 0xc], 0
je 0x457bd1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
jmp 0x457bd4
mov ecx, dword [ebp + 0x14]
add ebx, dword [ebp - 0x5c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebx + eax]
xor eax, ecx
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ebx + 4]
xor ecx, edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + ebx + 8]
xor ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + ebx + 0xc]
mov eax, dword [ebp - 0x38]
xor ecx, edi
mov edi, dword [ebp - 0x60]
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], edi
cmp edi, dword [ebp - 0x48]
je 0x457d20
mov eax, dword [ebp - 0x30]
jmp 0x457c20
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x34]
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [ebx + edx*4]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
xor ebx, dword [edi + ecx*4]
mov ecx, eax
shr ecx, 0x18
xor ebx, dword [edx + ecx*4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x2c]
movzx ecx, cl
xor ebx, dword [edx + ecx*4]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
movzx edx, cl
mov ecx, dword [ebp + 0x18]
shr ecx, 8
movzx ecx, cl
mov edi, dword [edi + edx*4]
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0x1c], ebx
mov ebx, dword [ebp - 0x2c]
xor edi, dword [edx + ecx*4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
shr ecx, 0x18
xor edi, dword [edx + ecx*4]
mov edx, dword [ebp - 0x2c]
movzx ecx, al
xor edi, dword [edx + ecx*4]
mov ecx, eax
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp + 0x18]
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [esi + edx*4]
mov edx, dword [ebp - 0x34]
shr eax, 0x10
xor esi, dword [edx + ecx*4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
shr ecx, 0x18
xor esi, dword [edx + ecx*4]
mov edx, dword [ebp - 0x10]
movzx ecx, dl
shr edx, 8
movzx edx, dl
xor esi, dword [ebx + ecx*4]
movzx ecx, al
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 0x34]
xor edx, dword [eax + ecx*4]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
shr eax, 0x18
xor edx, dword [ecx + eax*4]
mov eax, dword [ebp + 0x10]
movzx ecx, al
mov eax, ebx
xor edx, dword [eax + ecx*4]
mov eax, dword [ebp + 0x14]
xor edx, dword [eax]
mov dword [ebp + 0x18], edx
mov edx, eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
xor ecx, edi
xor eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 0xc]
xor ecx, esi
add edx, 0x10
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x14], edx
cmp edx, dword [ebp - 0x48]
jne 0x457c20
mov dword [ebp - 0x30], eax
mov edi, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x18]
shr ecx, 0x18
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 8]
mov esi, ebx
movzx edx, byte [ecx + edx]
mov ecx, dword [ebp - 0x30]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + ebx]
xor edx, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + ebx]
xor edx, ecx
mov ecx, dword [ebp + 0x10]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + ebx]
xor edx, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [edi]
mov dword [ebp + 0x1c], edx
movzx ecx, byte [ecx + ebx]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp - 0x30]
shr ecx, 0x18
movzx ecx, byte [ecx + esi]
shl ecx, 8
xor dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
shl dword [ebp + 0x14], 8
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + esi]
xor dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x18]
shl dword [ebp + 0x14], 8
movzx ecx, cl
movzx ecx, byte [ecx + esi]
xor dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
xor ecx, dword [edi + 4]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
movzx edx, byte [ecx + esi]
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + esi]
xor edx, ecx
mov ecx, dword [ebp + 0x18]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + esi]
xor edx, ecx
mov ecx, dword [ebp - 0x30]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + esi]
xor edx, ecx
mov ecx, dword [ebp + 0x10]
xor edx, dword [edi + 8]
shr ecx, 0x18
mov dword [ebp - 4], edx
movzx edx, byte [ecx + esi]
mov ecx, dword [ebp + 0x18]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + esi]
xor edx, ecx
shl edx, 8
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x3c]
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + esi]
xor edx, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + esi]
mov esi, dword [ebp - 4]
xor edx, ecx
xor edx, dword [edi + 0xc]
cmp dword [ebp - 0xc], 0
je 0x457e76
cmp byte [ebp + 8], 0
mov ecx, dword [ebp + 0x1c]
je 0x457e61
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
jmp 0x457e79
xor ecx, dword [ebp - 0x4c]
xor esi, dword [ebp - 0x54]
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp - 0x50]
xor dword [ebp + 0x14], ecx
xor edx, dword [ebp - 0x58]
mov dword [ebp - 4], esi
mov edi, dword [ebp + 0x14]
lea ecx, [eax - 2]
test ecx, ecx
je 0x457f59
mov ecx, dword [ebp + 0x1c]
mov ebx, esi
mov byte [eax + 1], cl
shr ecx, 8
mov byte [eax], cl
mov ecx, dword [ebp + 0x1c]
shr ecx, 0x10
mov byte [eax - 1], cl
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x18], edi
shr dword [ebp + 0x18], 8
mov dword [ebp + 0x10], edi
shr dword [ebp + 0x10], 0x10
shr ecx, 0x18
shr edi, 0x18
shr ebx, 8
cmp byte [ebp + 8], 0
mov byte [eax - 2], cl
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x38], edi
je 0x457f0a
mov byte [eax + 5], cl
mov ecx, dword [ebp + 0x18]
mov byte [eax + 4], cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + 3], cl
mov ecx, edi
mov byte [eax + 2], cl
mov ecx, dword [ebp - 4]
mov byte [eax + 9], cl
shr ecx, 0x10
mov byte [eax + 7], cl
mov ecx, dword [ebp - 4]
shr ecx, 0x18
mov byte [eax + 6], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 0xd], dl
shr edx, 0x18
mov byte [eax + 8], bl
mov byte [eax + 0xb], cl
mov byte [eax + 0xa], dl
jmp 0x457f50
mov byte [eax - 3], cl
mov ecx, dword [ebp + 0x18]
mov byte [eax - 4], cl
mov ecx, dword [ebp + 0x10]
mov byte [eax - 5], cl
mov ecx, dword [ebp - 0x38]
mov byte [eax - 6], cl
mov ecx, dword [ebp - 4]
mov byte [eax - 7], cl
shr ecx, 0x10
mov byte [eax - 9], cl
mov ecx, dword [ebp - 4]
shr ecx, 0x18
mov byte [eax - 0xa], cl
mov ecx, edx
shr ecx, 8
mov byte [eax - 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax - 0xb], dl
shr edx, 0x18
mov byte [eax - 8], bl
mov byte [eax - 0xd], cl
mov byte [eax - 0xe], dl
add eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea ecx, [ebx - 2]
cmp ecx, dword [ebp - 0x64]
jb 0x457aa0
mov ecx, dword [ebp - 0xc]
pop esi
test ecx, ecx
je 0x457fe4
mov ebx, dword [ebp - 0x40]
sub ecx, ebx
mov edx, dword [ebp - 0x14]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
mov byte [ecx + 3], dl
shr eax, 0x10
mov byte [ecx + 1], al
shr edx, 0x18
mov byte [ecx], dl
sub ecx, ebx
mov edx, dword [ebp - 0x18]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
mov byte [ecx + 3], dl
shr eax, 0x10
mov byte [ecx + 1], al
shr edx, 0x18
mov byte [ecx], dl
sub ecx, ebx
mov edx, dword [ebp - 0x1c]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
mov byte [ecx + 3], dl
shr eax, 0x10
mov byte [ecx + 1], al
shr edx, 0x18
mov byte [ecx], dl
sub ecx, ebx
mov edx, dword [ebp - 0x20]
mov eax, edx
shr eax, 8
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 3], dl
shr edx, 0x18
mov byte [ecx + 1], al
mov byte [ecx], dl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x18