Function at 0x420d0e
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], ebx
lea ebx, [ebp + 4]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
mov esi, dword [ebx + 4]
push esi
sub ebx, 4
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], esi
mov eax, 0x82f1aa3e
mov eax, 0xfffffff
mov edi, dword [esi]
mov esi, dword [esi + 0xc]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
shr edi, 1
and esi, eax
pop ecx
pop ecx
mov ecx, dword [0x402600]
and edi, eax
mov edx, 0x400000
mov eax, edx
add esi, edx
sub eax, ecx
mov dword [ebp - 0x18], eax
jne 0x420dc2
and dword [ebp - 4], 0
test edi, edi
jbe 0x420fb8
mov ebx, 0x3ecdcc82
mov ecx, 0xc132337e
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x6a83
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
imul ecx, ecx, 0xc132337e
ror ecx, 3
add dword [ebp - 0x24], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
mov dword [ebp - 0x20], ecx
jb 0x420d7e
jmp 0x420fb5
lea eax, [esi + edi]
mov ecx, esi
sub ecx, edx
mov edx, ecx
and edx, 0xfffff000
mov dword [ebp - 4], edx
mov edx, ecx
sub edx, dword [ebp - 4]
add ecx, edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
and edi, 0xfffff000
sub ecx, edi
mov eax, dword [0x40003c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x4000a0]
mov dword [ebp - 0x38], edi
mov edi, dword [eax + 0x4000a4]
add ecx, 0x400000
add edi, ecx
jmp 0x420e13
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jae 0x420e17
add ecx, dword [ecx + 4]
cmp ecx, edi
jne 0x420e09
and dword [ebp - 0x28], 0
cmp ecx, edi
je 0x420e4a
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jne 0x420e4a
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x420e4a
mov ebx, dword [ebp - 0x28]
movzx ebx, word [ecx + ebx*2 + 8]
and ebx, 0xfff
cmp ebx, edx
jae 0x420e4a
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], eax
jne 0x420e30
mov ebx, 0x3ecdcc82
cmp ecx, edi
je 0x420f6f
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x420f6f
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edx, 1
cmp eax, edx
jne 0x420e8d
add ecx, dword [ecx + 4]
cmp ecx, edi
je 0x420f6f
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x420f6f
and dword [ebp - 0x28], 0
jmp 0x420e62
mov edx, dword [ebp - 0x38]
cmp dword [ecx], edx
jne 0x420ea7
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x420f6f
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [ecx + eax*2 + 8], 0xf000
je 0x420e4f
mov edx, dword [ecx]
movzx eax, word [ecx + eax*2 + 8]
and dword [ebp - 4], 0
and eax, 0xfff
lea eax, [eax + edx + 0x400000]
mov dword [ebp - 8], eax
sub dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
je 0x420f1f
mov edx, 0xc132337e
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0x6a83
rol edx, 0xe
ror eax, 0xe
xor edx, eax
imul edx, edx, 0xc132337e
ror edx, 3
mov eax, edx
add dword [ebp - 0x24], eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x20], edx
jb 0x420ed8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 8], eax
movzx eax, byte [ebp + esi - 8]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, 0xc132337e
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0x6a83
rol edx, 0xe
ror eax, 0xe
xor edx, eax
imul edx, edx, 0xc132337e
ror edx, 3
add dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
inc esi
cmp esi, 4
jb 0x420f29
mov esi, dword [ebp - 0x10]
add esi, 4
jmp 0x420e4f
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], eax
je 0x420fb5
mov ecx, 0xc132337e
movzx eax, byte [edi + esi]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul ecx
add eax, edx
mov ecx, eax
imul ecx, ecx, 0x6a83
rol ecx, 0xe
ror eax, 0xe
xor ecx, eax
imul ecx, ecx, 0xc132337e
ror ecx, 3
add dword [ebp - 0x24], ecx
inc edi
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
jb 0x420f7b
mov ebx, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
and ecx, 0xfffffff
mov eax, dword [ecx + 0x400000]
xor eax, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x400004]
xor ecx, dword [ebp - 0x20]
or eax, ecx
je 0x42108d
call fcn.004a46e1
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
mov edx, 0xfffff000
and eax, edx
lea esi, [ecx + 0xfff]
and esi, edx
mov edx, 0xffff
mov dword [ebp - 0x1c], eax
mov dword [ebx + 8], 0x4b3c5b
xor eax, eax
mov edi, dword [0x51b214]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x51b214], edi
shr edi, 0x10
shl eax, 0x10
or eax, edi
shr edx, 0x10
jne 0x42100d
xor edx, edx
mov edi, 0xffff
div edi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
inc edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jmp 0x421056
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x42104e
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 0x4b3c5b
mov ecx, dword [ebp - 0x44]
mov eax, dword [eax + 4]
and eax, 0xfffffff
mov edx, ecx
mov dword [ebp - 0x40], ecx
shl edx, 0x10
add eax, 0x400000
xor edx, dword [eax]
xor edx, dword [0x528fb8]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], edx
mov eax, 0x5103f25c
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov esp, ebp
pop ebp
popfd
ret