Function at 0x46d0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x1e8
push edi
mov edi, dword [ebp + 0x68]
test edi, edi
jne 0x46d0cf
push 0x108
call fcn.00473980
mov edi, eax
add esp, 4
mov dword [ebp + 0x68], edi
test edi, edi
jne 0x46d0cf
pop edi
lea esp, [ebp + 0x60]
pop ebp
ret
push ebx
push esi
push 0x108
push 0
push edi
call fcn.004d2520
push 0x40
push 0x517228
push edi
call fcn.004d0d60
mov eax, dword [ebp + 0x7c]
lea esi, [edi + 0xc0]
mov ebx, dword [ebp + 0x6c]
mov dword [edi + 0x104], eax
lea eax, [edi + 0x80]
push 0x40
mov dword [ebp + 0x44], eax
lea eax, [ebp - 0x80]
push 0
push eax
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x54], esi
call fcn.004d2520
mov edx, dword [edi + 0x100]
lea eax, [ebp - 0x80]
add esp, 0x24
mov dword [ebp + 0x40], eax
mov byte [ebp - 0x7f], 2
test edx, edx
je 0x46d457
mov esi, dword [ebp + 0x70]
lea eax, [edi + 0x40]
mov dword [ebp + 0x5c], eax
mov eax, 0x40
sub eax, edx
cmp esi, eax
cmovae esi, eax
lea eax, [edx + 0x40]
push esi
add eax, edi
push ebx
push eax
call fcn.004d0d60
mov eax, dword [edi + 0x100]
add ebx, esi
mov ecx, dword [ebp + 0x70]
add eax, esi
and eax, 0x3f
mov dword [ebp + 0x58], ebx
sub ecx, esi
mov dword [edi + 0x100], eax
add esp, 0xc
mov dword [ebp + 0x70], ecx
test eax, eax
jne 0x46d1c9
lea eax, [edi + 0xc0]
push eax
lea eax, [edi + 0x40]
push edi
push eax
call fcn.0046cf20
add esp, 0xc
mov esi, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x44]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x46d19c
mov esi, dword [ebp + 0x40]
mov edi, dword [ebp + 0x54]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x46d1b6
mov edi, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x70]
test ecx, ecx
je 0x46d310
lea esi, [edi + 0xc0]
cmp ecx, 0x3f
jbe 0x46d2f8
lea eax, [ebp - 0x40]
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x4c], eax
lea eax, [ebp]
mov dword [ebp + 0x50], eax
lea eax, [ecx - 0x40]
shr eax, 6
inc eax
mov dword [ebp + 0x5c], eax
nop dword [eax]
lea eax, [ebp]
push eax
push esi
push edi
call fcn.0046c5c0
push 0x40
lea eax, [ebp]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004d0d60
lea eax, [ebp]
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0046c5c0
add esp, 0x24
mov esi, 0x517268
lea eax, [ebp - 0x40]
push eax
push esi
push eax
call fcn.0046c5c0
lea eax, [ebp]
push eax
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046c5c0
add esi, 0x40
add esp, 0x18
cmp esi, 0x517528
jl 0x46d230
lea eax, [ebp - 0x40]
push eax
push 0x517528
push eax
call fcn.0046c5c0
add esp, 0xc
mov ecx, 0x10
mov esi, dword [ebp + 0x4c]
mov edi, dword [ebp + 0x50]
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x46d274
mov ecx, 0x10
mov esi, dword [ebp + 0x58]
mov edi, dword [ebp + 0x50]
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x46d287
mov ecx, 0x10
mov esi, dword [ebp + 0x50]
mov edi, dword [ebp + 0x48]
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x46d29a
mov esi, dword [ebp + 0x58]
mov edi, dword [ebp + 0x44]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x46d2af
mov esi, dword [ebp + 0x40]
mov edi, dword [ebp + 0x54]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x46d2c9
mov ecx, dword [ebp + 0x70]
add ebx, 0x40
mov edi, dword [ebp + 0x68]
sub ecx, 0x40
sub dword [ebp + 0x5c], 1
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x70], ecx
lea esi, [edi + 0xc0]
jne 0x46d200
mov dword [edi + 0x100], ecx
test ecx, ecx
je 0x46d310
push ecx
lea eax, [edi + 0x40]
push ebx
push eax
call fcn.004d0d60
add esp, 0xc
lea eax, [ebp - 0x108]
mov dword [ebp + 0x4c], eax
lea eax, [ebp - 0x148]
mov dword [ebp + 0x48], eax
lea eax, [ebp - 0xc8]
push 0x40
mov dword [ebp + 0x54], eax
lea eax, [ebp]
push 0
push eax
call fcn.004d2520
lea eax, [ebp]
push 0x108
mov dword [ebp + 0x5c], eax
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.004d0d60
mov eax, 0x40
sub eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x148]
add eax, dword [ebp - 0x88]
push 0
push eax
call fcn.004d2520
mov eax, dword [ebp - 0x88]
mov byte [ebp + eax - 0x148], 1
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0046cf20
add esp, 0x30
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x4c]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x46d3a8
mov ecx, dword [ebp - 0x88]
mov al, cl
shl al, 3
mov byte [ebp], al
lea eax, [ecx*8]
shr eax, 8
mov byte [ebp + 1], al
mov esi, dword [ebp + 0x5c]
mov edi, dword [ebp + 0x54]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x46d3dd
push 0
lea eax, [ebp - 0x188]
mov dword [ebp - 0x88], 0
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0046cf20
push 0
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0046cf20
push 0x40
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004d0d60
mov edx, 0x20
lea eax, [ebp - 0x60]
cmp dword [ebp + 0x78], edx
cmovb edx, dword [ebp + 0x78]
push edx
push eax
push dword [ebp + 0x74]
call fcn.004d0d60
mov eax, dword [ebp + 0x68]
add esp, 0x30
pop esi
pop ebx
pop edi
lea esp, [ebp + 0x60]
pop ebp
ret
mov ecx, dword [ebp + 0x70]
jmp 0x46d1d7