Function at 0x4d6030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x6baac0]
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, dword [ebp + 0xc]
mov dword [ebp - 0x58], ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
test edx, edx
je 0x4d6313
test ebx, ebx
jne 0x4d608a
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_OFB_encryptor
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x80], 1
ja 0x4d60b6
mov eax, dword [edi]
push esi
push dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
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.005ebe04
mov esp, ebp
pop ebp
ret 0x14
mov eax, edx
xor edx, edx
div dword [edi + 0x80]
mov dword [ebp - 0x50], eax
test edx, edx
je 0x4d60e8
mov eax, dword [esi]
mov ecx, esi
push str.OFB_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.005ebe04
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
je 0x4d6075
mov al, byte [0x6bd628]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 0x45], al
call fcn.00401c90
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.00414430
test al, al
jne 0x4d6136
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_OFB_encrypt_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.005ebe04
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
call fcn.004148e0
cmp byte [ebp - 0x45], 0
mov esi, eax
mov dword [ebp - 0x18], esi
je 0x4d6217
mov eax, dword [ebp - 0x54]
xor edx, edx
cmp dword [edi + 0x80], edx
jbe 0x4d6180
lea ebx, [eax + 8]
lea eax, [ebp - 0x44]
sub ebx, eax
lea eax, [ebp - 0x44]
add eax, edx
mov cl, byte [ebx + eax]
mov byte [ebp + edx - 0x34], cl
inc edx
mov byte [eax], cl
cmp edx, dword [edi + 0x80]
jb 0x4d6165
mov ebx, dword [ebp - 0x58]
nop
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, edi
call dword [eax + 0x10]
xor eax, eax
cmp dword [edi + 0x80], eax
jbe 0x4d61d1
mov dword [ebp - 8], ebx
lea edx, [ebp - 0x34]
mov ecx, esi
sub ebx, esi
sub ecx, edx
mov dword [ebp - 8], ecx
lea esi, [ebp - 0x34]
add esi, eax
lea edx, [ecx + esi]
movzx ecx, byte [edx + ebx]
xor cl, byte [esi]
mov byte [edx], cl
movzx ecx, byte [esi]
mov byte [ebp + eax - 0x44], cl
inc eax
mov ecx, dword [ebp - 8]
cmp eax, dword [edi + 0x80]
jb 0x4d61a8
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x18]
mov eax, dword [edi + 0x80]
add ebx, eax
add esi, eax
mov dword [ebp - 0x58], ebx
sub dword [ebp - 0x50], 1
mov dword [ebp - 0x18], esi
jne 0x4d6180
xor edx, edx
test eax, eax
jbe 0x4d6308
mov ecx, dword [ebp - 0x54]
lea esi, [ebp - 0x34]
add ecx, 8
sub esi, ecx
nop dword [eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [edi + 0x80]
jb 0x4d6200
jmp 0x4d6308
mov eax, dword [edi + 0x80]
cmp eax, 0x10
jne 0x4d62b4
mov edx, dword [ebp - 0x54]
sub esi, ebx
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
nop
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 [esi + ebx - 0x10], ecx
mov dword [esi + ebx - 0xc], eax
mov ecx, dword [ebx - 8]
mov eax, dword [ebx - 4]
xor ecx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
sub dword [ebp - 0x50], 1
mov dword [esi + ebx - 8], ecx
mov dword [esi + ebx - 4], eax
movups xmmword [ebp - 0x24], xmm0
jne 0x4d6250
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 0x4d6308
cmp eax, 8
jne 0x4d6313
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 [edi]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [ebx]
lea ebx, [ebx + 8]
mov eax, dword [ebx - 4]
lea esi, [esi + 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 0x4d62c8
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.00415c90
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ebe04
mov esp, ebp
pop ebp
ret 0x14