Function at 0x421745
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
push esi
sub ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], esi
mov eax, 0xe46a9b28
mov eax, 0xfffffff
mov edi, dword [esi + 0xc]
mov esi, dword [esi]
mov edx, 0x400000
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
shr esi, 2
pop ecx
and esi, eax
pop ecx
mov ecx, dword [0x402600]
and edi, eax
add esi, edx
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x18], eax
jne 0x4217f8
and dword [ebp - 4], 0
test edi, edi
jbe 0x4219e8
mov ebx, 0x6e36be2f
mov ecx, 0x91c941d1
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, 0x6be2
rol ecx, 1
ror eax, 1
xor ecx, eax
imul ecx, ecx, 0x91c941d1
ror ecx, 2
add dword [ebp - 0x24], ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
mov dword [ebp - 0x20], ecx
jb 0x4217b6
jmp 0x4219e5
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]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x40003c]
add ecx, edi
mov edi, ecx
and edi, 0xfffff000
sub ecx, edi
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x4000a0]
add ecx, 0x400000
mov dword [ebp - 0x38], edi
mov edi, dword [eax + 0x4000a4]
add edi, ecx
jmp 0x421849
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jae 0x42184d
add ecx, dword [ecx + 4]
cmp ecx, edi
jne 0x42183f
and dword [ebp - 0x28], 0
cmp ecx, edi
je 0x421880
mov eax, dword [ebp - 4]
cmp dword [ecx], eax
jne 0x421880
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x421880
mov ebx, dword [ebp - 0x28]
movzx ebx, word [ecx + ebx*2 + 8]
and ebx, 0xfff
cmp ebx, edx
jae 0x421880
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], eax
jne 0x421866
mov ebx, 0x6e36be2f
cmp ecx, edi
je 0x4219a1
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x4219a1
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x28]
shr edx, 1
cmp eax, edx
jne 0x4218c3
add ecx, dword [ecx + 4]
cmp ecx, edi
je 0x4219a1
mov eax, dword [ebp - 0x38]
cmp dword [ecx], eax
ja 0x4219a1
and dword [ebp - 0x28], 0
jmp 0x421898
mov edx, dword [ebp - 0x38]
cmp dword [ecx], edx
jne 0x4218dd
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x34]
jae 0x4219a1
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x28]
test word [ecx + eax*2 + 8], 0xf000
je 0x421885
movzx eax, word [ecx + eax*2 + 8]
mov edx, dword [ecx]
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 0x421953
mov edx, 0x91c941d1
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, 0x6be2
rol edx, 1
ror eax, 1
xor edx, eax
imul edx, edx, 0x91c941d1
ror edx, 2
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 0x42190e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
xor esi, esi
mov edx, 0x91c941d1
movzx eax, byte [ebp + esi - 8]
sub eax, ebx
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mul edx
add eax, edx
mov edx, eax
imul edx, edx, 0x6be2
rol edx, 1
ror eax, 1
xor edx, eax
imul edx, edx, 0x91c941d1
ror edx, 2
add dword [ebp - 0x24], edx
inc esi
cmp esi, 4
mov dword [ebp - 0x20], edx
jb 0x42195d
mov esi, dword [ebp - 0x10]
add esi, 4
jmp 0x421885
xor edi, edi
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], eax
je 0x4219e5
mov ecx, 0x91c941d1
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, 0x6be2
rol ecx, 1
ror eax, 1
xor ecx, eax
imul ecx, ecx, 0x91c941d1
ror ecx, 2
add dword [ebp - 0x24], ecx
inc edi
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
jb 0x4219ad
mov ebx, dword [ebp - 0xc]
add dword [ebx + 8], 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
and ecx, 0xfffffff
mov eax, dword [ecx + 0x400000]
mov ecx, dword [ecx + 0x400004]
xor eax, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x20]
or eax, ecx
je 0x421abd
call fcn.004a46e1
mov edx, 0xfffff000
lea ecx, [ebx + 0xc]
and ecx, 0xfffffffc
lea esi, [ecx + 0xfff]
and eax, edx
mov dword [ebp - 0x1c], eax
mov dword [ebx + 8], 0x4b3c5b
and esi, edx
xor eax, eax
mov edx, 0xffff
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 0x421a3d
mov edi, 0xffff
xor edx, edx
div edi
inc edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x1c], 0
jmp 0x421a86
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x421a7e
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], 0x4b3c5b
mov eax, dword [eax + 8]
and eax, 0xfffffff
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
mov edx, ecx
shl edx, 0x10
add eax, 0x400000
xor edx, dword [eax]
xor edx, dword [0x51b2a8]
xor edx, ecx
and dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], edx
mov eax, 0x83e8759c
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
popfd
ret