Function at 0x60e840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
test edx, edx
je 0x60eb24
test ebx, ebx
jne 0x60e89a
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_OFB_decryptor
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x80], 1
ja 0x60e8c6
mov eax, dword [edi]
push esi
push dword [ebp - 0x50]
mov eax, dword [eax + 0x1c]
push edx
push ebx
push ecx
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov eax, edx
xor edx, edx
div dword [edi + 0x80]
mov dword [ebp - 0x54], eax
test edx, edx
je 0x60e8f8
mov eax, dword [esi]
mov ecx, esi
push str.OFB_decrypt_input_not_a_multiple_of_the_cipher_block_size.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
je 0x60e885
mov al, byte [0x7da898]
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 0x45], al
call fcn.0046e290
mov ecx, eax
mov eax, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x58], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.004a2730
test al, al
jne 0x60e94a
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_OFB_decrypt_output_buffer.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x50]
call fcn.004a2c70
cmp byte [ebp - 0x45], 0
mov esi, eax
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0x18], esi
je 0x60ea28
mov eax, dword [ebp - 0x4c]
add eax, 8
test ecx, ecx
je 0x60e998
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [edi + 0x80]
mov eax, dword [ebp - 0x4c]
add eax, 8
push eax
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [edi + 0x80]
xor eax, eax
test ecx, ecx
je 0x60e9ec
mov dword [ebp - 8], ebx
lea ecx, [ebp - 0x34]
mov edx, esi
sub ebx, esi
sub edx, ecx
mov dword [ebp - 8], edx
lea esi, [ebp - 0x34]
add esi, eax
add edx, esi
movzx ecx, byte [edx + ebx]
xor cl, byte [esi]
mov byte [edx], cl
movzx ecx, byte [esi]
mov edx, dword [ebp - 8]
mov byte [ebp + eax - 0x44], cl
inc eax
mov ecx, dword [edi + 0x80]
cmp eax, ecx
jb 0x60e9c2
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x18]
add ebx, ecx
add esi, ecx
sub dword [ebp - 0x54], 1
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], esi
jne 0x60e998
xor edx, edx
test ecx, ecx
je 0x60eb19
mov ecx, dword [ebp - 0x4c]
lea esi, [ebp - 0x34]
add ecx, 8
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [edi + 0x80]
jb 0x60ea11
jmp 0x60eb19
cmp ecx, 0x10
jne 0x60eac4
mov edx, dword [ebp - 0x4c]
sub esi, ebx
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
nop word [eax + eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
lea ebx, [ebx + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, edx
xor ecx, dword [ebx - 0x10]
xor eax, dword [ebx - 0xc]
movups xmm0, xmmword [ebp - 0x14]
mov dword [ebx + esi - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + esi - 0xc], eax
mov eax, dword [ebx - 4]
xor ecx, dword [ebx - 8]
xor eax, dword [ebp - 8]
sub dword [ebp - 0x54], 1
mov dword [ebx + esi - 8], ecx
mov dword [ebx + esi - 4], eax
movups xmmword [ebp - 0x24], xmm0
jne 0x60ea60
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0x14], ecx
jmp 0x60eb19
cmp ecx, 8
jne 0x60eb24
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
lea esi, [esi + 8]
mov eax, dword [ebx + 4]
lea ebx, [ebx + 8]
xor eax, dword [ebp - 0x18]
mov ecx, edx
xor ecx, dword [ebx - 8]
sub dword [ebp - 0x54], 1
mov dword [esi - 8], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi - 4], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
jne 0x60ead8
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x50]
call fcn.004a4be0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14