Function at 0x612bf0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640a0d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x717f80]
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 dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
push 0x6d1a88
push edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], eax
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
call fcn.004b2490
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x14]
cdq
and edx, 7
mov dword [ebp - 4], 0
lea ebx, [edx + eax]
sar ebx, 3
call fcn.004a2ca0
lea ecx, [esi + 0x14]
mov dword [ebp - 0x54], eax
call fcn.0046e290
cmp eax, ebx
jae 0x612c88
mov eax, dword [edi]
mov ecx, edi
push str.Not_enough_key_material_for_twofish.
call dword [eax + 0x14]
xor bl, bl
jmp 0x6131c5
mov eax, ebx
cdq
and edx, 7
lea edi, [edx + eax]
sar edi, 3
mov dword [ebp - 0x60], edi
test ebx, ebx
jle 0x612cab
push ebx
push dword [ebp - 0x54]
lea eax, [ebp - 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test edi, edi
jle 0x612d41
lea esi, [ebp - 0x1e]
lea eax, [ebp - 0x3a]
nop dword [eax]
movzx ecx, byte [eax + 1]
lea esi, [esi + 4]
movzx edx, byte [eax - 1]
lea eax, [eax + 8]
mov ebx, dword [ecx*4 + 0x6d1688]
xor ebx, dword [edx*4 + 0x6d0e88]
movzx ecx, byte [eax - 0xa]
xor ebx, dword [ecx*4 + 0x6d0a88]
movzx ecx, byte [eax - 0xb]
xor ebx, dword [ecx*4 + 0x6d0688]
movzx ecx, byte [eax - 0xc]
xor ebx, dword [ecx*4 + 0x6d0288]
movzx ecx, byte [eax - 0xd]
xor ebx, dword [ecx*4 + 0x6cfe88]
movzx ecx, byte [eax - 0xe]
xor ebx, dword [ecx*4 + 0x6cfa88]
movzx ecx, byte [eax - 8]
xor ebx, dword [ecx*4 + 0x6d1288]
mov ecx, ebx
mov byte [esi - 6], bl
shr ecx, 0x18
mov byte [esi - 3], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi - 4], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi - 5], cl
sub edi, 1
jne 0x612cc0
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
add eax, 0x108c
xor ebx, ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x54], ebx
push 0
push edi
lea eax, [ebp - 0x40]
add bl, bl
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 0x44], bl
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 0x43], bl
push eax
mov byte [ebp - 0x42], bl
mov byte [ebp - 0x41], bl
call fcn.00613770
movzx esi, byte [ebp - 0x55]
inc bl
movzx eax, byte [ebp - 0x56]
shl esi, 8
or esi, eax
mov byte [ebp - 0x44], bl
mov eax, dword [ebp - 0x58]
movzx ecx, ah
shl esi, 8
or esi, ecx
movzx eax, al
push 1
shl esi, 8
or esi, eax
mov byte [ebp - 0x43], bl
push edi
lea eax, [ebp - 0x40]
mov byte [ebp - 0x42], bl
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 0x41], bl
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00613770
movzx edx, byte [ebp - 0x55]
add esp, 0x28
movzx eax, byte [ebp - 0x56]
shl edx, 8
or edx, eax
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
inc ebx
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
or edx, eax
mov dword [ebp - 0x54], ebx
mov ecx, edx
shl edx, 8
shr ecx, 0x18
or ecx, edx
mov edx, dword [ebp - 0x60]
lea eax, [ecx + esi]
mov dword [edx - 4], eax
lea ecx, [esi + ecx*2]
mov eax, ecx
shr ecx, 0x17
shl eax, 9
or eax, ecx
mov dword [edx], eax
add edx, 8
mov dword [ebp - 0x60], edx
cmp ebx, 0x14
jl 0x612d51
xor eax, eax
mov dword [ebp - 0x54], eax
cmp edi, 2
jne 0x612f0b
mov edi, dword [ebp - 0x5c]
mov dh, byte [ebp - 0x20]
lea esi, [edi + 0x488]
nop word [eax + eax]
movzx eax, al
lea esi, [esi + 4]
movzx ecx, dh
mov dl, byte [eax + 0x6ce888]
mov bl, byte [eax + 0x6ce988]
movzx eax, dl
xor ecx, eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce988]
mov eax, dword [eax*4 + 0x6cea88]
mov dword [esi - 0x404], eax
mov eax, dword [ebp - 0x1f]
movzx ecx, al
movzx eax, bl
xor ecx, eax
mov eax, dword [ebp - 0x1b]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce888]
mov eax, dword [eax*4 + 0x6cee88]
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x1e]
movzx ecx, al
movzx eax, dl
xor ecx, eax
mov eax, dword [ebp - 0x1a]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce988]
mov eax, dword [eax*4 + 0x6cf288]
mov dword [esi + 0x3fc], eax
mov eax, dword [ebp - 0x1d]
movzx ecx, al
movzx eax, bl
xor ecx, eax
mov eax, dword [ebp - 0x19]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce888]
mov eax, dword [eax*4 + 0x6cf688]
mov dword [esi + 0x7fc], eax
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, 0x100
jl 0x612e30
jmp 0x613189
cmp edi, 3
mov edi, dword [ebp - 0x5c]
lea esi, [edi + 0x488]
jne 0x613037
mov dh, byte [ebp - 0x20]
movzx eax, al
lea esi, [esi + 4]
movzx ecx, dh
mov dl, byte [eax + 0x6ce988]
mov bl, byte [eax + 0x6ce888]
movzx eax, dl
xor ecx, eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
mov eax, dword [ebp - 0x18]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce988]
mov eax, dword [eax*4 + 0x6cea88]
mov dword [esi - 0x404], eax
mov eax, dword [ebp - 0x1f]
movzx ecx, al
movzx eax, dl
xor ecx, eax
mov eax, dword [ebp - 0x1b]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
mov eax, dword [ebp - 0x17]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce888]
mov eax, dword [eax*4 + 0x6cee88]
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x1e]
movzx ecx, al
movzx eax, bl
xor ecx, eax
mov eax, dword [ebp - 0x1a]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
mov eax, dword [ebp - 0x16]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce988]
mov eax, dword [eax*4 + 0x6cf288]
mov dword [esi + 0x3fc], eax
mov eax, dword [ebp - 0x1d]
movzx ecx, al
movzx eax, bl
xor ecx, eax
mov eax, dword [ebp - 0x19]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
mov eax, dword [ebp - 0x15]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce888]
mov eax, dword [eax*4 + 0x6cf688]
mov dword [esi + 0x7fc], eax
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, 0x100
jl 0x612f20
jmp 0x613189
mov dh, byte [ebp - 0x11]
mov bh, byte [ebp - 0x12]
nop dword [eax]
movzx eax, al
lea esi, [esi + 4]
movzx ecx, byte [ebp - 0x20]
mov bl, byte [eax + 0x6ce988]
mov dl, byte [eax + 0x6ce888]
movzx eax, bl
xor ecx, eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
mov eax, dword [ebp - 0x18]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
mov eax, dword [ebp - 0x14]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce988]
mov eax, dword [eax*4 + 0x6cea88]
mov dword [esi - 0x404], eax
mov eax, dword [ebp - 0x1f]
movzx ecx, al
movzx eax, dl
xor ecx, eax
mov eax, dword [ebp - 0x1b]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
mov eax, dword [ebp - 0x17]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
mov eax, dword [ebp - 0x14]
movzx eax, ah
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce888]
mov eax, dword [eax*4 + 0x6cee88]
mov dword [esi - 4], eax
mov eax, dword [ebp - 0x1e]
movzx ecx, al
movzx eax, dl
xor ecx, eax
mov eax, dword [ebp - 0x1a]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
mov eax, dword [ebp - 0x16]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
movzx eax, bh
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce988]
mov eax, dword [eax*4 + 0x6cf288]
mov dword [esi + 0x3fc], eax
mov eax, dword [ebp - 0x1d]
movzx ecx, al
movzx eax, bl
xor ecx, eax
mov eax, dword [ebp - 0x19]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce888]
xor ecx, eax
mov eax, dword [ebp - 0x15]
movzx eax, al
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
movzx eax, dh
movzx ecx, byte [ecx + 0x6ce988]
xor ecx, eax
movzx eax, byte [ecx + 0x6ce888]
mov eax, dword [eax*4 + 0x6cf688]
mov dword [esi + 0x7fc], eax
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, 0x100
jl 0x613040
mov ebx, dword [ebp - 0x64]
test ebx, ebx
je 0x6131c3
mov esi, dword [ebp - 0x68]
mov eax, dword [esi + 8]
cmp eax, 3
je 0x6131a0
cmp eax, 4
jne 0x6131c3
push dword [edi + 0x80]
lea ecx, [esi + 0x34]
call fcn.0046e290
push eax
lea ecx, [esi + 0x34]
call fcn.004a2ca0
push eax
lea ecx, [ebx + 0x484]
call fcn.0060e750
mov bl, 1
lea ecx, [ebp - 0x50]
call fcn.004b2630
mov al, bl
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.00622073
mov esp, ebp
pop ebp
ret 0x10