Function at 0x46dbcc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x44]
add al, 0xfc
sub al, 4
setb al
mov byte [ebp - 9], al
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
add dword [ebp - 4], 0x200
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x12
call fcn.00403490
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x46dc29
mov dword [ebp - 0x10], 8
lea edx, [ebp - 0x2a]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00402c98
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov al, byte [eax + 0x44]
sub al, 1
je 0x46dc4b
sub al, 4
jne 0x46dc8f
mov al, byte [ebp - 0x2a]
xor al, byte [ebp - 0x28]
xor al, 0x81
mov byte [ebp - 0x25], al
mov al, byte [ebp - 0x2a]
xor al, byte [ebp - 0x27]
xor al, byte [ebp - 0x26]
xor al, 0x42
mov byte [ebp - 0x24], al
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x28]
xor al, byte [ebp - 0x26]
xor al, 0x24
mov byte [ebp - 0x23], al
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x27]
xor al, 0x18
mov byte [ebp - 0x22], al
lea edx, [ebp - 0x21]
lea eax, [ebp - 0x2a]
mov ecx, 9
call fcn.00402c98
jmp 0x46dcf9
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 8
jle 0x46dcc7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
sub eax, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 8
jle 0x46dcb1
mov dword [ebp - 0x10], 8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, 8
lea edx, [ebp - 0x21]
mov ecx, dword [ebp - 0x10]
call fcn.00402c98
jmp 0x46dcd7
lea edx, [ebp - 0x21]
lea eax, [ebp - 0x2a]
mov ecx, 9
call fcn.00402c98
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x2a]
xor byte [ebp - 0x22], al
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x21]
xor byte [ebp - 0x19], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x46dcdc
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x21]
mov ecx, 8
call fcn.00402c98
add dword [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x10], eax
push ebp
mov eax, dword [ebp - 0x10]
mov al, byte [ebp + eax - 0x2a]
call fcn.0046dbbc
pop ecx
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x2a], al
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 9
jne 0x46dd12
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
test eax, eax
jle 0x46de70
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 1
xor eax, eax
mov dword [ebp - 0x14], eax
push ebp
mov eax, dword [ebp - 0x14]
mov al, byte [ebp + eax - 0x2a]
call fcn.0046dbc4
pop ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x2a], al
push ebp
mov eax, dword [ebp - 0x14]
mov al, byte [ebp + eax - 0x21]
call fcn.0046dbc4
pop ecx
mov edx, dword [ebp - 0x14]
mov byte [ebp + edx - 0x21], al
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 9
jne 0x46dd50
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x46ddc3
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, dword [ebp - 0x14]
dec eax
mov ecx, 9
cdq
idiv ecx
mov al, byte [ebp + edx - 0x2a]
mov edx, dword [ebp - 0x10]
add edx, edx
lea edx, [edx + edx*8]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 1]
mov ecx, dword [ebp - 8]
add al, byte [ecx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x46dde8
mov eax, dword [ebp - 0x10]
add eax, eax
lea eax, [eax + eax*8]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
add al, byte [ebp + edx - 0x2a]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 8
jne 0x46dd88
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 9], 0
je 0x46de33
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, dword [ebp - 0x14]
mov ecx, 9
cdq
idiv ecx
mov al, byte [ebp + edx - 0x21]
mov edx, dword [ebp - 0x10]
add edx, edx
lea edx, [edx + edx*8]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + edx + 0xa]
mov ecx, dword [ebp - 8]
add al, byte [ecx + edx]
mov edx, dword [ebp - 4]
mov byte [edx], al
jmp 0x46de58
mov eax, dword [ebp - 0x10]
add eax, eax
lea eax, [eax + eax*8]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
movzx eax, byte [edx + eax + 0xa]
mov edx, dword [ebp - 8]
mov al, byte [edx + eax]
mov edx, dword [ebp - 0x14]
add al, byte [ebp + edx - 0x21]
mov edx, dword [ebp - 4]
mov byte [edx], al
inc dword [ebp - 4]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 8
jne 0x46ddf9
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x46dd4b
lea eax, [ebp - 0x2a]
xor ecx, ecx
mov edx, 0x12
call fcn.00403490
mov esp, ebp
pop ebp
ret