Function at 0x46f220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de98e
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xa4]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
mov dword [ebp - 0xa8], 0
call fcn.0046d500
add esp, 4
mov esi, eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 4], 0
push eax
call fcn.0046f960
push esi
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004689e0
add esp, 4
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x46f2b2
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.00417280
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x46f2e9
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.00417280
push 1
push 0x503018
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00420800
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
push 2
push 0x4f8c18
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00420800
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0046d290
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0x10
jb 0x46f375
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00417280
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x46f3a0
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00417280
push 0x20
push 0x40
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00465eb0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 7
push eax
mov edx, 0x503018
lea ecx, [ebp - 0x74]
call fcn.0042fc00
add esp, 4
mov esi, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
push 1
push 0x503018
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00420800
push esi
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0046d290
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0x10
jb 0x46f425
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00417280
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x46f44c
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00417280
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
cmp eax, 0x10
jb 0x46f477
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00417280
push dword [ebp - 0x18]
call fcn.00493d46
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0xa
xor edx, edx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x46f4b8
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, edx
cmovae ecx, dword [ebp - 0x28]
and eax, 0xf
mov al, byte [eax + 0x50307c]
xor al, byte [ecx + edx]
mov byte [edx + esi], al
inc edx
mov eax, dword [ebp - 0x18]
cmp edx, eax
jb 0x46f494
add eax, esi
lea ecx, [ebp - 0x74]
push eax
mov edx, esi
call fcn.0042fc60
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x44]
push 1
push 0x50301c
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00420800
push edi
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
mov ecx, ebx
call fcn.004689e0
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0x10
jb 0x46f516
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00417280
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x46f53d
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00417280
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
test esi, esi
je 0x46f55c
push esi
call fcn.004938d1
add esp, 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x46f571
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00417280
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret 0xc