Function at 0x45e430
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5c4
push ebx
push ebp
push edi
push 0x44
xor ebx, ebx
lea eax, [esp + 0x48]
push ebx
push eax
mov byte [0x53a028], 0
call fcn.00463870
mov ebp, dword [esp + 0x5e4]
mov edi, dword [esp + 0x5e0]
add esp, 0xc
cmp ebp, 0x100
jbe 0x45e474
mov ecx, dword [edi + 0x400]
mov dword [esp + 0x34], ecx
jmp 0x45e47c
mov dword [esp + 0x34], 0x10
mov ecx, edi
mov edx, ebp
mov eax, dword [ecx]
add dword [esp + eax*4 + 0x44], 1
lea eax, [esp + eax*4 + 0x44]
add ecx, 4
sub edx, 1
jne 0x45e480
cmp dword [esp + 0x44], ebp
jne 0x45e4b7
mov edx, dword [esp + 0x5e8]
mov eax, dword [esp + 0x5ec]
pop edi
mov dword [edx], ebx
mov dword [eax], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c4
ret
mov ecx, 1
lea esp, [esp]
cmp dword [esp + ecx*4 + 0x44], ebx
jne 0x45e4ce
add ecx, 1
cmp ecx, 0x10
jbe 0x45e4c0
push esi
mov esi, dword [esp + 0x5f0]
cmp dword [esi], ecx
mov edx, ecx
mov dword [esp + 0x10], edx
jae 0x45e4e2
mov dword [esi], ecx
mov eax, 0x10
cmp dword [esp + eax*4 + 0x48], ebx
jne 0x45e4f2
sub eax, 1
jne 0x45e4e7
cmp dword [esi], eax
mov dword [esp + 0x2c], eax
jbe 0x45e4fc
mov dword [esi], eax
mov esi, 1
shl esi, cl
cmp ecx, eax
jae 0x45e516
sub esi, dword [esp + ecx*4 + 0x48]
js 0x45e522
add ecx, 1
add esi, esi
cmp ecx, eax
jb 0x45e507
mov ecx, dword [esp + eax*4 + 0x48]
sub esi, ecx
mov dword [esp + 0x44], esi
jns 0x45e532
pop esi
pop edi
pop ebp
mov eax, 2
pop ebx
add esp, 0x5c4
ret
add ecx, esi
mov dword [esp + eax*4 + 0x48], ecx
xor ecx, ecx
sub eax, 1
mov dword [esp + 0xd4], ebx
je 0x45e563
xor esi, esi
jmp 0x45e550
add ecx, dword [esp + esi + 0x4c]
add esi, 4
sub eax, 1
mov dword [esp + esi + 0xd4], ecx
jne 0x45e550
xor esi, esi
mov eax, dword [edi]
add edi, 4
cmp eax, ebx
je 0x45e588
mov ecx, dword [esp + eax*4 + 0xd0]
lea eax, [esp + eax*4 + 0xd0]
mov dword [esp + ecx*4 + 0x154], esi
add ecx, 1
mov dword [eax], ecx
add esi, 1
cmp esi, ebp
jb 0x45e565
xor ebp, ebp
lea ecx, [esp + 0x154]
or esi, 0xffffffff
xor edi, edi
cmp edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ebp
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x3c], ebx
jg 0x45e8bf
lea eax, [edx - 1]
mov dword [esp + 0x34], eax
lea eax, [esp + edx*4 + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x14], eax
je 0x45e8a4
lea esp, [esp]
mov eax, dword [esp + esi*4 + 0x90]
sub dword [esp + 0x14], 1
add eax, ebx
cmp edx, eax
jle 0x45e75e
lea ecx, [esp + 0x114]
sub ecx, 4
mov dword [esp + 0x40], ecx
jmp 0x45e620
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x5f0]
mov ebp, eax
mov eax, dword [ecx]
sub edx, ebp
add esi, 1
cmp edx, eax
mov dword [esp + 0x30], ebp
jbe 0x45e63e
mov edx, eax
mov ebx, dword [esp + 0x10]
sub ebx, ebp
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x14]
add ecx, 1
cmp eax, ecx
jbe 0x45e685
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x14]
add ebx, 1
add eax, ecx
cmp ebx, edx
jae 0x45e685
lea esp, [esp]
mov ecx, dword [edi + 4]
add edi, 4
add eax, eax
cmp eax, ecx
jbe 0x45e685
add ebx, 1
sub eax, ecx
cmp ebx, edx
jb 0x45e670
mov eax, dword [esp + 0x38]
lea edx, [ebx + ebp]
cmp edx, eax
jbe 0x45e698
cmp ebp, eax
jae 0x45e698
mov ebx, eax
sub ebx, ebp
mov ecx, ebx
mov edi, 1
shl edi, cl
xor ecx, ecx
mov edx, 8
mov dword [esp + esi*4 + 0x90], ebx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00462aa2
mov edx, dword [esp + 0x5f0]
lea ecx, [eax + 8]
add eax, 4
add esp, 4
test esi, esi
mov dword [edx], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x5ec], eax
mov dword [eax], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + esi*4 + 0x114], ecx
je 0x45e73f
mov al, byte [esp + esi*4 + 0x8c]
mov ebp, dword [esp + 0x28]
mov byte [esp + 0x1d], al
add bl, 0x10
mov byte [esp + 0x1c], bl
mov ebx, ecx
mov ecx, edx
mov eax, 1
shl eax, cl
sub ecx, dword [esp + esi*4 + 0x8c]
mov dword [esp + esi*4 + 0xd0], ebp
mov dword [esp + 0x20], ebx
sub eax, 1
and eax, ebp
mov ebp, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + esi*4]
mov dword [ecx + eax*8], ebp
mov dword [ecx + eax*8 + 4], ebx
mov eax, dword [esp + esi*4 + 0x90]
add eax, edx
cmp dword [esp + 0x10], eax
jg 0x45e620
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x5dc]
mov dl, byte [esp + 0x10]
sub dl, bl
lea eax, [esp + eax*4 + 0x154]
cmp ecx, eax
mov byte [esp + 0x1d], dl
jb 0x45e781
mov byte [esp + 0x1c], 0x63
jmp 0x45e7ee
mov eax, dword [ecx]
cmp eax, dword [esp + 0x5e0]
jae 0x45e7a4
mov dx, word [ecx]
cmp eax, 0x100
setb al
add al, 0xf
mov byte [esp + 0x1c], al
mov word [esp + 0x20], dx
jmp 0x45e7e7
cmp dword [esp + 0x5e8], 0
je 0x45e8ee
cmp dword [esp + 0x5e4], 0
je 0x45e8ee
sub eax, dword [esp + 0x5e0]
mov edx, dword [esp + 0x5e8]
add eax, eax
mov dl, byte [eax + edx]
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x5e4]
mov ax, word [eax + edx]
mov word [esp + 0x20], ax
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, ebp
mov ecx, ebx
shr eax, cl
cmp eax, edi
jae 0x45e830
mov ecx, dword [esp + 0x3c]
lea ecx, [ecx + eax*8]
lea esp, [esp]
mov ebp, dword [esp + 0x1c]
mov dword [ecx], ebp
mov ebp, dword [esp + 0x20]
mov dword [ecx + 4], ebp
lea ebp, [edx*8]
add eax, edx
add ecx, ebp
cmp eax, edi
jb 0x45e810
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x45e848
nop
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x45e840
mov edx, 1
mov ecx, ebx
shl edx, cl
xor ebp, eax
mov dword [esp + 0x28], ebp
sub edx, 1
and edx, ebp
cmp edx, dword [esp + esi*4 + 0xd0]
je 0x45e891
jmp 0x45e870
sub ebx, dword [esp + esi*4 + 0x8c]
sub esi, 1
mov eax, 1
mov ecx, ebx
shl eax, cl
sub eax, 1
and eax, ebp
cmp eax, dword [esp + esi*4 + 0xd0]
jne 0x45e870
cmp dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
jne 0x45e5f0
add dword [esp + 0x24], 4
add dword [esp + 0x34], 1
add edx, 1
cmp edx, dword [esp + 0x2c]
mov dword [esp + 0x10], edx
jle 0x45e5d7
cmp dword [esp + 0x44], 0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x5f0]
mov dword [edx], ecx
je 0x45e8e1
mov eax, 1
cmp dword [esp + 0x2c], eax
jne 0x45e8e3
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x5c4
ret
pop esi
pop edi
pop ebp
mov byte [0x53a028], 1
xor eax, eax
pop ebx
add esp, 0x5c4
ret