Function at 0x49bd80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x58], edi
test edx, edx
je 0x49c063
test edi, edi
jne 0x49bdda
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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x80], 1
ja 0x49be06
mov eax, dword [ebx]
push esi
push dword [ebp - 0x4c]
mov eax, dword [eax + 0x1c]
push edx
push edi
push ecx
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14
mov eax, edx
xor edx, edx
div dword [ebx + 0x80]
mov dword [ebp - 0x50], eax
test edx, edx
je 0x49be38
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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
je 0x49bdc5
mov al, byte [0x58ee62]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 0x45], al
call fcn.0040d5b0
mov dword [ebp - 0x18], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0040d230
test al, al
jne 0x49be86
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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
call fcn.0040d560
cmp byte [ebp - 0x45], 0
mov esi, eax
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x18], esi
je 0x49bf67
mov eax, dword [ebp - 0x54]
xor edx, edx
test ecx, ecx
je 0x49bed1
lea edi, [eax + 8]
lea eax, [ebp - 0x44]
sub edi, eax
lea eax, [ebp - 0x44]
add eax, edx
mov cl, byte [edi + eax]
mov byte [ebp + edx - 0x34], cl
inc edx
mov byte [eax], cl
cmp edx, dword [ebx + 0x80]
jb 0x49beb7
mov edi, dword [ebp - 0x58]
mov eax, dword [ebx]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [ebx + 0x80]
xor eax, eax
test ecx, ecx
je 0x49bf2a
mov dword [ebp - 8], edi
lea ecx, [ebp - 0x34]
mov edx, esi
sub edi, esi
sub edx, ecx
mov dword [ebp - 8], edx
nop dword [eax + eax]
lea esi, [ebp - 0x34]
add esi, eax
add edx, esi
movzx ecx, byte [edx + edi]
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 [ebx + 0x80]
cmp eax, ecx
jb 0x49bf00
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x18]
add edi, ecx
add esi, ecx
sub dword [ebp - 0x50], 1
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x18], esi
jne 0x49bed1
xor edx, edx
test ecx, ecx
je 0x49c058
mov ecx, dword [ebp - 0x54]
lea esi, [ebp - 0x34]
add ecx, 8
sub esi, ecx
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [ebx + 0x80]
jb 0x49bf50
jmp 0x49c058
cmp ecx, 0x10
jne 0x49c004
mov edx, dword [ebp - 0x54]
sub esi, edi
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 dword [eax]
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
lea edi, [edi + 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, edx
xor ecx, dword [edi - 0x10]
xor eax, dword [edi - 0xc]
movups xmm0, xmmword [ebp - 0x14]
mov dword [esi + edi - 0x10], ecx
mov dword [esi + edi - 0xc], eax
mov ecx, dword [edi - 8]
mov eax, dword [edi - 4]
xor ecx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
sub dword [ebp - 0x50], 1
mov dword [esi + edi - 8], ecx
mov dword [esi + edi - 4], eax
movups xmmword [ebp - 0x24], xmm0
jne 0x49bfa0
mov eax, dword [ebp - 0x54]
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 0x49c058
cmp ecx, 8
jne 0x49c063
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [edi]
lea esi, [esi + 8]
mov eax, dword [edi + 4]
lea edi, [edi + 8]
mov edx, dword [ebp - 0x1c]
xor ecx, edx
xor eax, dword [ebp - 0x18]
sub dword [ebp - 0x50], 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 0x49c018
mov eax, dword [ebp - 0x54]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
push dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
call fcn.0040ddd0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14