Function at 0x4683f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xe0
mov ecx, dword [ebp + 0x74]
push ebx
push esi
push edi
lea eax, [ecx + 0x80]
push 0x40
mov dword [ebp + 0x5c], eax
lea esi, [ecx + 0xc0]
lea eax, [ebp - 0x74]
mov dword [ebp + 0x54], esi
push 0
push eax
call fcn.004d2520
mov ecx, dword [ebp + 0x74]
lea eax, [ebp - 0x74]
mov edi, dword [ebp + 0x7c]
add esp, 0xc
mov ebx, dword [ebp + 0x78]
mov dword [ebp + 0x58], eax
mov eax, dword [ecx + 0x100]
mov byte [ebp - 0x73], 2
test eax, eax
je 0x4684e6
mov esi, 0x40
lea edx, [ecx + 0x40]
sub esi, eax
mov dword [ebp + 0x64], edx
cmp edi, esi
cmovb esi, edi
add ecx, 0x40
push esi
add eax, ecx
push ebx
push eax
call fcn.004d0d60
mov ecx, dword [ebp + 0x74]
sub edi, esi
add ebx, esi
mov dword [ebp + 0x68], edi
add esp, 0xc
mov dword [ebp + 0x78], ebx
mov eax, dword [ecx + 0x100]
add eax, esi
and eax, 0x3f
mov dword [ecx + 0x100], eax
test eax, eax
jne 0x4684d6
lea eax, [ecx + 0xc0]
push eax
push ecx
lea eax, [ecx + 0x40]
push eax
call fcn.00468280
add esp, 0xc
mov esi, dword [ebp + 0x64]
mov edi, dword [ebp + 0x5c]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x4684a9
mov esi, dword [ebp + 0x58]
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 0x4684c3
mov edi, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x74]
test edi, edi
je 0x468623
lea esi, [ecx + 0xc0]
jmp 0x4684e9
mov dword [ebp + 0x68], edi
cmp edi, 0x3f
jbe 0x468608
lea eax, [ebp + 0xc]
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x50], eax
lea eax, [ebp - 0x34]
mov dword [ebp + 0x60], eax
lea eax, [edi - 0x40]
shr eax, 6
inc eax
mov dword [ebp + 0x64], eax
nop dword [eax + eax]
lea eax, [ebp - 0x34]
push eax
push esi
push ecx
call fcn.00467920
push 0x40
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004d0d60
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.00467920
add esp, 0x24
mov esi, 0x512b78
lea eax, [ebp + 0xc]
push eax
push esi
push eax
call fcn.00467920
lea eax, [ebp - 0x34]
push eax
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00467920
add esi, 0x40
add esp, 0x18
cmp esi, 0x512e38
jl 0x468540
lea eax, [ebp + 0xc]
push eax
push 0x512e38
push eax
call fcn.00467920
add esp, 0xc
mov ecx, 0x10
mov esi, dword [ebp + 0x50]
mov edi, dword [ebp + 0x60]
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x468584
mov ecx, 0x10
mov esi, dword [ebp + 0x78]
mov edi, dword [ebp + 0x60]
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x468597
mov ecx, 0x10
mov esi, dword [ebp + 0x60]
mov edi, dword [ebp + 0x4c]
lodsd eax, dword [esi]
xor dword [edi], eax
add edi, 4
loop 0x4685aa
mov esi, dword [ebp + 0x78]
mov edi, dword [ebp + 0x5c]
mov ecx, 0x10
xor edx, edx
shr edx, 1
lodsd eax, dword [esi]
adc dword [edi], eax
setb dl
add edi, 4
loop 0x4685bf
mov esi, dword [ebp + 0x58]
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 0x4685d9
mov edi, dword [ebp + 0x68]
add ebx, 0x40
mov ecx, dword [ebp + 0x74]
sub edi, 0x40
sub dword [ebp + 0x64], 1
mov dword [ebp + 0x78], ebx
mov dword [ebp + 0x68], edi
lea esi, [ecx + 0xc0]
jne 0x468510
mov ecx, dword [ebp + 0x74]
mov dword [ecx + 0x100], edi
test edi, edi
je 0x468623
push edi
lea eax, [ecx + 0x40]
push ebx
push eax
call fcn.004d0d60
add esp, 0xc
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x6c]
pop ebp
ret