Function at 0x4754b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
xor eax, eax
push ebp
push 0x475821
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4c406c]
call fcn.004c42f8
test al, al
je 0x4757f8
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4c406c]
call fcn.004c430c
test eax, eax
jns 0x475521
add eax, 7
sar eax, 3
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 8]
jne 0x4757f8
lea eax, [ebp - 0x40]
call fcn.004547cc
lea eax, [ebp - 0x40]
mov ecx, ebx
mov edx, edi
call fcn.004583ac
mov eax, dword [ebp - 0x40]
call fcn.0045435c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
call fcn.00454894
cmp dword [ebp - 0x30], 0
je 0x4757f8
dec dword [ebp - 0x30]
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4565dc]
call fcn.004055e8
add esp, 4
push ebx
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
call fcn.00474f34
test al, al
je 0x4757f8
mov eax, dword [ebp - 0x2c]
add eax, esi
add eax, 2
cmp eax, dword [ebp - 0x34]
jg 0x4757f8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
cmp byte [eax + edx - 1], 0xbc
jne 0x4757f8
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
dec eax
push eax
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x4565dc]
call fcn.004055e8
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x4565dc]
call fcn.004055e8
add esp, 4
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x2c]
dec ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.00402c74
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax - 1]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
call fcn.00402c74
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 0x2c]
dec ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
call fcn.00473f74
mov eax, dword [ebp - 0x34]
shl eax, 3
sub eax, dword [ebp - 0x30]
test eax, eax
jle 0x47567a
mov edx, 1
mov ecx, 8
sub ecx, edx
mov ebx, 1
shl ebx, cl
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
and ebx, ecx
jne 0x4757f8
inc edx
dec eax
jne 0x47565a
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
sub eax, 2
test eax, eax
jl 0x47569a
inc eax
xor edx, edx
mov ecx, dword [ebp - 0x1c]
mov cl, byte [ecx + edx]
mov ebx, dword [ebp - 0x18]
xor byte [ebx + edx], cl
inc edx
dec eax
jne 0x47568a
mov eax, dword [ebp - 0x34]
shl eax, 3
sub eax, dword [ebp - 0x30]
test eax, eax
jle 0x4756c2
mov edx, 1
mov ecx, 8
sub ecx, edx
mov bl, 1
shl bl, cl
not bl
mov ecx, dword [ebp - 0x18]
and byte [ecx], bl
inc edx
dec eax
jne 0x4756ac
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
sub eax, esi
sub eax, 3
test eax, eax
jl 0x4756e5
inc eax
xor edx, edx
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + edx], 0
jne 0x4757f8
inc edx
dec eax
jne 0x4756d4
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
sub eax, esi
mov edx, dword [ebp - 0x18]
cmp byte [edx + eax - 2], 1
jne 0x4757f8
push esi
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x4565dc]
call fcn.004055e8
add esp, 4
mov ebx, dword [ebp - 0x2c]
add ebx, 8
mov eax, ebx
add eax, esi
push eax
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x4565dc]
call fcn.004055e8
add esp, 4
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x2c]
sub eax, esi
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax - 1]
mov edx, dword [ebp - 0x24]
mov ecx, esi
call fcn.00402c74
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 8
call fcn.0045a0cc
mov eax, dword [ebp - 0x28]
lea edx, [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
call fcn.00402c74
test esi, esi
jle 0x475780
mov eax, dword [ebp - 0x28]
lea edx, [eax + ebx]
mov eax, dword [ebp - 0x24]
mov ecx, esi
call fcn.00402c74
push 0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4c406c]
call fcn.004c4198
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x4757d4
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [esi + 8]
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
call fcn.004c43f4
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
call fcn.004c43fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4757db
mov eax, dword [ebp - 0x38]
call fcn.004034ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475828
lea eax, [ebp - 0x3c]
call fcn.00404304
lea eax, [ebp - 0x28]
mov edx, dword [0x4565dc]
mov ecx, 6
call fcn.00404d84
ret