Function at 0x463ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1fc
call fcn.0054e110
mov eax, dword [0x6d1554]
xor eax, esp
mov dword [esp + 0x1f8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov ecx, dword [ebp + 0x1c]
mov esi, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 1
test edi, edi
jne 0x463f11
sub esp, 8
lea ecx, [edi + 6]
mov edx, 0xa2
push 0x9f
call fcn.0040d040
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
test eax, eax
js 0x463f97
push 0x48
lea eax, [esp + 0x28]
push 0
push eax
call fcn.005c88b0
add esp, 0xc
mov dword [esp + 0x20], 0
test ebx, ebx
jne 0x463f3d
xor esi, esi
jmp 0x463f50
cmp esi, 0xffffffff
jne 0x463f50
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x463f47
sub esi, ecx
push 0
push edi
push esi
mov edx, ebx
lea ecx, [esp + 0x2c]
call fcn.00476930
add esp, 0xc
test eax, eax
jne 0x463fae
lea ecx, [esp + 0x3c]
call fcn.00440b90
lea ecx, [esp + 0x54]
call fcn.00440b90
lea ecx, [esp + 0x24]
call fcn.00440b90
push 0xd0
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [fcn.005c88b0]
call eax
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x46417b
mov esi, dword [esp + 0x10]
mov edx, 1
mov ecx, dword [esp + 0x14]
mov ebx, ecx
cmp eax, ecx
jg 0x463fce
mov ebx, eax
mov eax, edx
mov byte [esp + 0xf], dl
shr eax, 0x18
lea ecx, [esp + 0xf0]
mov byte [esp + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0xd], al
mov eax, edx
shr eax, 8
lea edx, [esp + 0x20]
mov byte [esp + 0xe], al
call fcn.00476c90
test eax, eax
je 0x463f66
cmp dword [esp + 0xf0], 0
je 0x4641c6
push dword [ebp + 0xc]
lea eax, [esp + 0xf8]
push dword [esp + 0x20]
push eax
call dword [esp + 0x114]
add esp, 0xc
test eax, eax
je 0x4641c6
cmp dword [esp + 0xf0], 0
je 0x4641c6
push 4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xfc]
push eax
call dword [esp + 0x114]
add esp, 0xc
test eax, eax
je 0x4641c6
push 0
lea edx, [esp + 0x1c4]
lea ecx, [esp + 0xf4]
call fcn.00476b70
add esp, 4
test eax, eax
je 0x4641c6
lea ecx, [esp + 0xf0]
call fcn.00476d30
push ebx
lea eax, [esp + 0x1c4]
push eax
push esi
call fcn.005c7db0
mov edi, 1
add esp, 0xc
cmp dword [ebp + 0x10], edi
jle 0x46415c
nop
lea edx, [esp + 0x20]
lea ecx, [esp + 0xf0]
call fcn.00476c90
test eax, eax
je 0x463f66
cmp dword [esp + 0xf0], 0
je 0x4641c6
push dword [esp + 0x14]
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0xfc]
push eax
call dword [esp + 0x114]
add esp, 0xc
test eax, eax
je 0x4641c6
push 0
lea edx, [esp + 0x1c4]
lea ecx, [esp + 0xf4]
call fcn.00476b70
add esp, 4
test eax, eax
je 0x4641c6
lea ecx, [esp + 0xf0]
call fcn.00476d30
test ebx, ebx
jle 0x464152
mov eax, esi
mov edx, ebx
lea esi, [esp + 0x1c0]
sub esi, dword [esp + 0x10]
jmp 0x464140
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x464140
mov esi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x4640b0
mov eax, dword [ebp + 0x18]
add esi, ebx
mov edx, dword [esp + 0x18]
sub eax, ebx
inc edx
mov dword [ebp + 0x18], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
test eax, eax
jne 0x463fc2
lea ecx, [esp + 0x3c]
call fcn.00440b90
lea ecx, [esp + 0x54]
call fcn.00440b90
lea ecx, [esp + 0x24]
call fcn.00440b90
push 0xd0
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [fcn.005c88b0]
call eax
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x3c]
call fcn.00440b90
lea ecx, [esp + 0x54]
call fcn.00440b90
lea ecx, [esp + 0x24]
call fcn.00440b90
push 0xd0
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [fcn.005c88b0]
call eax
add esp, 0xc
lea ecx, [esp + 0x10c]
call fcn.00440b90
lea ecx, [esp + 0x124]
call fcn.00440b90
lea ecx, [esp + 0xf4]
call fcn.00440b90
push 0xd0
lea eax, [esp + 0xf4]
push 0
push eax
mov eax, dword [fcn.005c88b0]
call eax
mov ecx, dword [esp + 0x210]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054e0f3
mov esp, ebp
pop ebp
ret