Function at 0x456128
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x456131
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.0040588c
mov eax, dword [ebp - 8]
call fcn.0040588c
xor eax, eax
push ebp
push 0x4563b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.0040540c
xor edx, edx
push ebp
push 0x456375
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 0
jne 0x45618e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45637f
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x4563cc
call fcn.00405724
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0044f0cc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0044f038
xor eax, eax
push ebp
push 0x4561e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x44ef0c]
call fcn.004069fc
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4561ee
mov eax, dword [ebp - 0x18]
call fcn.0040540c
lea eax, [ebp - 0x20]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405904
mov eax, dword [ebp - 0x20]
mov edx, 0x4563d8
call fcn.00405834
je 0x456233
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00405460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45637f
lea eax, [ebp - 0xc]
mov ecx, 2
mov edx, 1
call fcn.00405944
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x456251
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x456262
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45637f
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 4]
call fcn.00455f2c
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.00405944
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x456294
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4562a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45637f
xor edi, edi
inc edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4562b4
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x456304
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 0x4562d9
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.004055f4
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.004056d8
inc esi
dec ebx
jne 0x4562bf
mov eax, dword [ebp - 0x10]
call fcn.004056cc
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.004056cc
cmp ebx, eax
jle 0x4562a7
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x456326
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x456353
mov esi, 1
lea eax, [ebp - 0xc]
call fcn.004058fc
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 0x456331
mov eax, dword [ebp - 0xc]
call fcn.00455f2c
cmp al, byte [ebp - 0x19]
jne 0x45636b
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00405460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45637f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4563bc
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00405430
lea eax, [ebp - 0x14]
mov edx, dword [0x44ef0c]
call fcn.00406a08
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405430
ret