Function at 0x464680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1fc
call fcn.0055d6e0
mov eax, dword [0x6f36d4]
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 0x4646f1
sub esp, 8
lea ecx, [edi + 6]
mov edx, 0xa2
push 0x9f
call fcn.0040d810
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov dword [esp + 0x14], eax
test eax, eax
js 0x464777
push 0x48
lea eax, [esp + 0x28]
push 0
push eax
call fcn.005d9d70
add esp, 0xc
mov dword [esp + 0x20], 0
test ebx, ebx
jne 0x46471d
xor esi, esi
jmp 0x464730
cmp esi, 0xffffffff
jne 0x464730
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x464727
sub esi, ecx
push 0
push edi
push esi
mov edx, ebx
lea ecx, [esp + 0x2c]
call fcn.00477120
add esp, 0xc
test eax, eax
jne 0x46478e
lea ecx, [esp + 0x3c]
call fcn.00441370
lea ecx, [esp + 0x54]
call fcn.00441370
lea ecx, [esp + 0x24]
call fcn.00441370
push 0xd0
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [fcn.005d9d70]
call eax
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x46495b
mov esi, dword [esp + 0x10]
mov edx, 1
mov ecx, dword [esp + 0x14]
mov ebx, ecx
cmp eax, ecx
jg 0x4647ae
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.00477480
test eax, eax
je 0x464746
cmp dword [esp + 0xf0], 0
je 0x4649a6
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 0x4649a6
cmp dword [esp + 0xf0], 0
je 0x4649a6
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 0x4649a6
push 0
lea edx, [esp + 0x1c4]
lea ecx, [esp + 0xf4]
call fcn.00477360
add esp, 4
test eax, eax
je 0x4649a6
lea ecx, [esp + 0xf0]
call fcn.00477520
push ebx
lea eax, [esp + 0x1c4]
push eax
push esi
call fcn.005d9270
mov edi, 1
add esp, 0xc
cmp dword [ebp + 0x10], edi
jle 0x46493c
nop
lea edx, [esp + 0x20]
lea ecx, [esp + 0xf0]
call fcn.00477480
test eax, eax
je 0x464746
cmp dword [esp + 0xf0], 0
je 0x4649a6
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 0x4649a6
push 0
lea edx, [esp + 0x1c4]
lea ecx, [esp + 0xf4]
call fcn.00477360
add esp, 4
test eax, eax
je 0x4649a6
lea ecx, [esp + 0xf0]
call fcn.00477520
test ebx, ebx
jle 0x464932
mov eax, esi
mov edx, ebx
lea esi, [esp + 0x1c0]
sub esi, dword [esp + 0x10]
jmp 0x464920
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x464920
mov esi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x464890
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 0x4647a2
lea ecx, [esp + 0x3c]
call fcn.00441370
lea ecx, [esp + 0x54]
call fcn.00441370
lea ecx, [esp + 0x24]
call fcn.00441370
push 0xd0
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [fcn.005d9d70]
call eax
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x3c]
call fcn.00441370
lea ecx, [esp + 0x54]
call fcn.00441370
lea ecx, [esp + 0x24]
call fcn.00441370
push 0xd0
lea eax, [esp + 0x24]
push 0
push eax
mov eax, dword [fcn.005d9d70]
call eax
add esp, 0xc
lea ecx, [esp + 0x10c]
call fcn.00441370
lea ecx, [esp + 0x124]
call fcn.00441370
lea ecx, [esp + 0xf4]
call fcn.00441370
push 0xd0
lea eax, [esp + 0xf4]
push 0
push eax
mov eax, dword [fcn.005d9d70]
call eax
mov ecx, dword [esp + 0x210]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055d6c3
mov esp, ebp
pop ebp
ret