Function at 0x45bde0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x45bde9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058a0
mov eax, dword [ebp - 8]
call fcn.004058a0
xor eax, eax
push ebp
push 0x45c06d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.00405420
xor edx, edx
push ebp
push 0x45c02d
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 0
jne 0x45be46
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c037
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x45c084
call fcn.00405738
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004549f0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0045495c
xor eax, eax
push ebp
push 0x45be9c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x454830]
call fcn.00406a10
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bea6
mov eax, dword [ebp - 0x18]
call fcn.00405420
lea eax, [ebp - 0x20]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405918
mov eax, dword [ebp - 0x20]
mov edx, 0x45c090
call fcn.00405848
je 0x45beeb
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00405474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c037
lea eax, [ebp - 0xc]
mov ecx, 2
mov edx, 1
call fcn.00405958
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bf09
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45bf1a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c037
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 4]
call fcn.0045bbe4
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.00405958
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bf4c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45bf5d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c037
xor edi, edi
inc edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x45bf6c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x45bfbc
mov esi, 1
movzx eax, byte [ebp - 0x19]
movzx edx, byte [ebp - 0x1a]
add eax, edx
lea edx, [edi + edi*2]
and edx, 0x80000007
jns 0x45bf91
dec edx
or edx, 0xfffffff8
inc edx
add eax, edx
mov ecx, 0xff
cdq
idiv ecx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
xor edx, eax
lea eax, [ebp - 0x24]
call fcn.00405608
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.004056ec
inc esi
dec ebx
jne 0x45bf77
mov eax, dword [ebp - 0x10]
call fcn.004056e0
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.004056e0
cmp ebx, eax
jle 0x45bf5f
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bfde
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x45c00b
mov esi, 1
lea eax, [ebp - 0xc]
call fcn.00405910
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi - 1]
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx + esi - 1]
xor dl, cl
mov byte [eax + esi - 1], dl
inc esi
dec ebx
jne 0x45bfe9
mov eax, dword [ebp - 0xc]
call fcn.0045bbe4
cmp al, byte [ebp - 0x19]
jne 0x45c023
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00405474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c037
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c074
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00405444
lea eax, [ebp - 0x14]
mov edx, dword [0x454830]
call fcn.00406a1c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405444
ret