Function at 0x467650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd0
call fcn.005e38a0
mov eax, dword [0x6c6e10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [eax + 0x60]
mov ebx, dword [edi + 0xc8]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + 0x10]
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xc8], ecx
cmp ecx, eax
jne 0x467a56
push esi
lea esi, [ebp - 0xa4]
neg esi
and esi, 0xf
lea esi, [ebp + esi - 0xa4]
lea eax, [edi + 0x20]
lea ecx, [esi + 0x40]
lea edx, [esi + 0x30]
push eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xb8], edx
mov dword [eax], 0
push edi
cmp ebx, 0x40
ja 0x46784f
push 0x80
push 0x6761f0
push esi
mov dword [ebp - 0xcc], 0x80
call fcn.0059e140
push esi
lea esi, [edi + 0xd0]
call fcn.004aca80
mov edx, dword [edi + 0x94]
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
mov dword [edi + 0x70], ecx
mov dword [eax], edx
mov edx, dword [edi + 0x98]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x9c]
mov dword [eax + 8], edx
mov edx, dword [edi + 0xa0]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc4]
add esp, 0x18
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], ecx
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], ecx
cmp dword [eax + 8], ecx
je 0x4677b9
xor eax, eax
mov dword [ebp - 0xb4], eax
cmp ebx, ecx
jbe 0x467819
mov esi, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xa8]
sub edx, esi
sub ecx, esi
mov eax, esi
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], ebx
movzx ebx, byte [eax]
movzx ecx, byte [edx + eax]
xor ecx, ebx
mov ebx, dword [ebp - 0xc0]
mov byte [eax], cl
mov byte [ebx + eax], cl
inc eax
dec dword [ebp - 0xb0]
jne 0x467792
mov eax, dword [ebp - 0xb4]
xor ecx, ecx
jmp 0x46781f
mov dword [ebp - 0xb4], ecx
cmp ebx, ecx
jbe 0x467817
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 0xb0]
sub edx, ecx
sub ecx, eax
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb4], ebx
jmp 0x4677f6
mov ecx, dword [ebp - 0xc0]
mov bl, byte [eax]
lea esi, [eax + ecx]
mov cl, byte [esi + edx]
xor bl, cl
mov byte [eax], cl
inc eax
dec dword [ebp - 0xbc]
mov byte [esi], bl
jne 0x4677f0
mov eax, dword [ebp - 0xb4]
xor ecx, ecx
jmp 0x467819
mov eax, ecx
mov esi, dword [ebp - 0xb0]
add dword [ebp - 0xac], eax
add dword [ebp - 0xa8], eax
mov ebx, eax
neg ebx
and ebx, 0xf
push ebx
push ecx
add eax, esi
push eax
call fcn.005dd9b0
add ebx, dword [ebp - 0xb4]
add esp, 0xc
add esi, ebx
lea eax, [ebx + 0x10]
jmp 0x46795a
push 0x40
push 0x6761f0
push esi
mov dword [ebp - 0xcc], 0x40
call fcn.0059e140
push esi
lea esi, [edi + 0xd0]
call fcn.004aca80
lea edx, [edi + 0x94]
push 0x10
push edx
lea esi, [edi + 0xd0]
mov dword [edi + 0x20], 1
mov dword [edi + 0x70], 0
call fcn.004acb50
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xb8], eax
xor eax, eax
add esp, 0x20
mov dword [edi + 0xa8], 0xd
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], ebx
mov dword [edi + 0xb4], eax
mov dword [ebp - 0xbc], eax
cmp dword [ecx + 8], eax
je 0x4678fa
mov edx, dword [ebp - 0xac]
mov esi, dword [ebp - 0xa8]
lea eax, [edi + 0x20]
push eax
push edi
push ebx
push edx
push esi
call fcn.0059e140
push ebx
push esi
lea esi, [edi + 0xd0]
call fcn.004acb50
jmp 0x467926
mov eax, dword [ebp - 0xac]
push ebx
push eax
lea esi, [edi + 0xd0]
call fcn.004acb50
mov ecx, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
lea eax, [edi + 0x20]
push eax
push edi
push ebx
push ecx
push edx
call fcn.0059e140
add dword [ebp - 0xac], ebx
add dword [ebp - 0xa8], ebx
neg ebx
add esp, 0x1c
and ebx, 0xf
push ebx
push 0x6761f0
lea esi, [edi + 0xd0]
call fcn.004acb50
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb0]
add esp, 8
mov ecx, dword [edi + 0xa8]
mov dword [esi], ecx
mov edx, dword [edi + 0xac]
mov dword [esi + 4], edx
mov ecx, dword [edi + 0xb0]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xb4]
add eax, 0x10
push eax
mov eax, dword [ebp - 0xb8]
mov dword [esi + 0xc], edx
push eax
lea esi, [edi + 0xd0]
call fcn.004acb50
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd0]
push ecx
push edx
call fcn.00587a20
mov ebx, dword [ebp - 0xc4]
add esp, 0x10
cmp dword [ebx + 8], 0
lea eax, [edi + 0x84]
jne 0x4679c1
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004acc10
add esp, 4
mov dword [edi + 0xc8], 0xffffffff
cmp dword [ebx + 8], 0
pop esi
je 0x467a1a
mov ecx, dword [edi + 0x84]
mov eax, dword [ebp - 0xa8]
mov dword [eax], ecx
mov edx, dword [edi + 0x88]
mov dword [eax + 4], edx
mov ecx, dword [edi + 0x8c]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x90]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb8]
push 0x10
push eax
push ecx
call fcn.00587a90
add esp, 0xc
test eax, eax
je 0x467a04
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xa8]
lea edx, [ecx - 0x10]
push edx
sub eax, ecx
add eax, 0x10
push 0
push eax
call fcn.005dd9b0
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.005dcf8a
mov esp, ebp
pop ebp
ret