Function at 0x4d1440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
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, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], ecx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x58], edi
test edx, edx
je 0x4d1920
test ecx, ecx
jne 0x4d149d
mov eax, dword [esi]
mov ecx, esi
push str.NULL_passed_to_CBC_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 [ebx + 0x80], 1
ja 0x4d14c9
mov eax, dword [ebx]
push esi
push dword [ebp - 0x4c]
mov eax, dword [eax + 0x18]
push edx
push ecx
push edi
mov ecx, ebx
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 [ebx + 0x80]
mov dword [ebp - 0x40], eax
test edx, edx
je 0x4d14fb
mov eax, dword [esi]
mov ecx, esi
push str.CBC_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 - 0x4c]
mov byte [ebp - 0x45], al
call fcn.00401c90
mov dword [ebp - 0x44], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00414430
test al, al
jne 0x4d1545
mov eax, dword [esi]
mov ecx, esi
push str.Unable_to_allocate_CBC_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 - 0x44]
mov ecx, dword [ebp - 0x4c]
call fcn.004148e0
cmp byte [ebp - 0x45], 0
mov esi, eax
mov dword [ebp - 0x54], esi
je 0x4d17fa
mov edx, dword [ebx + 0x80]
add edi, 8
xor ecx, ecx
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x4d1668
cmp edx, 0x20
jb 0x4d1632
lea eax, [ebp + edx - 0x29]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x28]
lea eax, [edi - 1]
add eax, edx
cmp ecx, eax
mov ecx, 0
ja 0x4d15a8
lea eax, [ebp + edx - 0x29]
cmp eax, edi
jae 0x4d1632
mov eax, dword [ebp - 0x3c]
lea esi, [ebp - 0x28]
dec eax
add eax, edx
cmp esi, eax
mov esi, dword [ebp - 0x54]
ja 0x4d15c0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x5c], eax
jae 0x4d1635
mov ebx, dword [ebp - 0x3c]
mov eax, edx
mov esi, ebx
lea edx, [ebp - 0x18]
sub esi, edi
and eax, 0xffffffe0
mov dword [ebp - 0x5c], esi
lea esi, [ebp - 0x28]
sub esi, edi
mov dword [ebp - 0x60], eax
sub edx, edi
mov eax, edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], edx
lea edx, [ebx + 0x10]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x68], edx
mov edx, esi
nop
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0x68]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [edx + eax - 0x20], xmm1
movups xmm1, xmmword [esi + ecx]
mov esi, dword [ebp - 0x6c]
add ecx, 0x20
pxor xmm1, xmm0
movups xmmword [esi + eax - 0x20], xmm1
mov esi, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x60]
jb 0x4d15f0
mov edi, dword [ebp - 0x58]
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, edx
jae 0x4d1668
mov esi, eax
add ecx, edi
lea eax, [ebp - 0x28]
sub esi, edi
sub eax, edi
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov ebx, eax
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edx, 1
jne 0x4d1650
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
push dword [ebx + 0x80]
lea eax, [ebp - 0x38]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov edx, dword [ebx + 0x80]
add ecx, edx
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], ecx
je 0x4d17d3
xor edi, edi
test edx, edx
je 0x4d178e
cmp edx, 0x20
jb 0x4d175e
lea eax, [ecx - 1]
lea ebx, [ebp - 0x28]
add eax, edx
cmp ebx, eax
mov ebx, dword [ebp - 0x50]
ja 0x4d16d3
lea eax, [ebp + edx - 0x29]
cmp eax, ecx
jae 0x4d175e
lea eax, [esi - 1]
lea ecx, [ebp - 0x28]
add eax, edx
cmp ecx, eax
mov ecx, dword [ebp - 0x3c]
ja 0x4d16ea
lea eax, [ebp + edx - 0x29]
cmp eax, esi
jae 0x4d175e
mov eax, edx
mov ebx, esi
and eax, 0xffffffe0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x3c]
sub ebx, eax
neg eax
mov dword [ebp - 0x6c], ebx
add edx, eax
mov dword [ebp - 0x68], edx
lea edx, [ebp - 0x18]
add eax, edx
mov edx, ebx
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x60]
nop dword [eax]
movups xmm0, xmmword [ecx]
mov ebx, dword [ebp - 0x5c]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edx + ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [esi + ecx - 0x20], xmm1
movups xmm1, xmmword [ebx + edi]
mov ebx, dword [ebp - 8]
add edi, 0x20
movups xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [ebx + ecx - 0x20], xmm1
mov ebx, dword [ebp - 0x50]
cmp edi, eax
jb 0x4d1720
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
cmp edi, edx
jae 0x4d178e
mov ebx, esi
lea eax, [ebp - 0x28]
sub eax, dword [ebp - 0x3c]
add ecx, edi
sub ebx, dword [ebp - 0x3c]
sub edx, edi
mov dword [ebp - 8], eax
mov edi, eax
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edi + ecx - 1], al
sub edx, 1
jne 0x4d1776
mov ebx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebx]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
add esi, edx
push ecx
mov ecx, ebx
mov dword [ebp - 0x54], esi
call dword [eax + 0x10]
push dword [ebx + 0x80]
lea eax, [ebp - 0x38]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
mov edx, dword [ebx + 0x80]
add ecx, edx
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], ecx
jne 0x4d16a5
mov edi, dword [ebp - 0x58]
xor edx, edx
cmp dword [ebx + 0x80], edx
jbe 0x4d1915
sub esi, edi
mov al, byte [esi + edi]
lea edi, [edi + 1]
mov byte [edi - 1], al
inc edx
cmp edx, dword [ebx + 0x80]
jb 0x4d17e3
jmp 0x4d1915
mov eax, dword [ebx + 0x80]
cmp eax, 0x10
jne 0x4d18a7
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
push esi
xor ecx, dword [edx]
xor eax, dword [edx + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 8]
xor ecx, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0xc]
xor eax, dword [edi + 0x14]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov edi, dword [ebp - 0x3c]
add edi, 0x10
sub dword [ebp - 0x40], 1
je 0x4d188b
sub edi, esi
nop dword [eax]
mov ecx, dword [edi + esi]
xor ecx, dword [esi]
mov eax, dword [edi + esi + 4]
xor eax, dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + esi + 8]
xor ecx, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + esi + 0xc]
xor eax, dword [esi + 0xc]
add esi, 0x10
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x10]
sub dword [ebp - 0x40], 1
jne 0x4d1850
mov ecx, dword [ebp - 0x58]
mov eax, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x14], eax
jmp 0x4d1915
cmp eax, 8
jne 0x4d1920
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
push esi
xor ecx, dword [edx]
xor eax, dword [edx + 4]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov edi, dword [ebp - 0x3c]
add edi, 8
sub dword [ebp - 0x40], 1
je 0x4d1907
sub edi, esi
nop word [eax + eax]
mov ecx, dword [edi + esi]
xor ecx, dword [esi]
mov eax, dword [edi + esi + 4]
xor eax, dword [esi + 4]
add esi, 8
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x10]
sub dword [ebp - 0x40], 1
jne 0x4d18e0
mov ecx, dword [ebp - 0x58]
mov eax, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0xc], eax
push dword [ebp - 0x64]
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