Function at 0x4d10c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
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 - 0x48], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x4d142a
test esi, esi
jne 0x4d111a
mov eax, dword [ebx]
mov ecx, ebx
push str.NULL_passed_to_CBC_decryptor
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 0x4d1146
mov eax, dword [edi]
push ebx
push dword [ebp - 0x48]
mov eax, dword [eax + 0x1c]
push edx
push esi
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 - 0x38], eax
test edx, edx
je 0x4d1178
mov eax, dword [ebx]
mov ecx, ebx
push str.CBC_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.005ebe04
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [0x6bd628]
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 0x3d], al
call fcn.00401c90
mov dword [ebp - 0x3c], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00414430
test al, al
jne 0x4d11c2
mov eax, dword [ebx]
mov ecx, ebx
push str.Unable_to_allocate_CBC_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.005ebe04
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
call fcn.004148e0
cmp byte [ebp - 0x3d], 0
mov ebx, eax
mov dword [ebp - 8], ebx
je 0x4d12f7
push dword [edi + 0x80]
lea eax, [ebp - 0x34]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x14]
xor edx, edx
cmp dword [edi + 0x80], edx
jbe 0x4d123c
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x24]
add esi, 8
lea ecx, [ebp - 0x24]
sub esi, eax
mov eax, ebx
sub eax, ecx
mov ebx, eax
nop dword [eax]
lea ecx, [ebp - 0x24]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, dword [edi + 0x80]
jb 0x4d1220
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 8]
mov eax, dword [edi + 0x80]
lea edx, [eax + ebx]
mov ebx, dword [ebp - 0x38]
lea ecx, [eax + esi]
mov dword [ebp - 0x4c], edx
sub ebx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ebx
je 0x4d12c5
nop dword [eax]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x14]
xor edx, edx
cmp dword [edi + 0x80], edx
jbe 0x4d12aa
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
sub esi, eax
sub ebx, eax
lea ecx, [ebp - 0x24]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, dword [edi + 0x80]
jb 0x4d1291
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
mov eax, dword [edi + 0x80]
add ecx, eax
add dword [ebp - 0x4c], eax
sub ebx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ebx
jne 0x4d1260
xor edx, edx
cmp dword [edi + 0x80], edx
jbe 0x4d141f
mov ecx, dword [ebp - 0x44]
add ecx, 8
sub esi, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [edi + 0x80]
jb 0x4d12e0
jmp 0x4d141f
mov eax, dword [edi + 0x80]
cmp eax, 0x10
jne 0x4d13a6
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x14]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
xor ecx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
xor ecx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
mov dword [ebx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
je 0x4d138d
mov eax, dword [edi]
lea edx, [ebp - 0x14]
push edx
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [esi]
lea ebx, [ebx + 0x10]
mov eax, dword [esi + 4]
xor ecx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov dword [ebx - 0x10], ecx
mov dword [ebx - 0xc], eax
mov ecx, dword [esi + 8]
xor ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0xc]
xor eax, dword [ebp - 8]
mov dword [ebx - 8], ecx
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
add ecx, 0x10
mov dword [ebx - 4], eax
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
jne 0x4d1347
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [esi + 4]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 8]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [edx + 0x14], eax
jmp 0x4d141f
cmp eax, 8
jne 0x4d142a
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x14]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
xor ecx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
mov dword [ebx], ecx
lea ecx, [esi + 8]
mov dword [ebx + 4], eax
add ebx, 8
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
je 0x4d1414
nop word [eax + eax]
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push edx
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [esi]
lea ebx, [ebx + 8]
xor ecx, dword [ebp - 0xc]
mov eax, dword [esi + 4]
xor eax, dword [ebp - 8]
mov dword [ebx - 8], ecx
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
add ecx, 8
mov dword [ebx - 4], eax
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
jne 0x4d13e0
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov dword [edx + 8], eax
mov eax, dword [esi + 4]
mov dword [edx + 0xc], eax
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
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