Function at 0x4d1940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 - 0x44], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x38], edi
test edx, edx
je 0x4d1c1b
test edi, edi
jne 0x4d199a
mov eax, dword [ebx]
mov ecx, ebx
push str.NULL_passed_to_CFB_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 [esi + 0x80], 1
ja 0x4d19c6
mov eax, dword [esi]
push ebx
push dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
push edx
push edi
push ecx
mov ecx, esi
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 [esi + 0x80]
mov dword [ebp - 0x48], eax
test edx, edx
je 0x4d19f8
mov eax, dword [ebx]
mov ecx, ebx
push str.CFB_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
test eax, eax
je 0x4d1985
mov al, byte [0x6bd628]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 0x3d], al
call fcn.00401c90
mov dword [ebp - 0x50], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.00414430
test al, al
jne 0x4d1a46
mov eax, dword [ebx]
mov ecx, ebx
push str.Unable_to_allocate_CFB_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 - 0x50]
mov ecx, dword [ebp - 0x44]
call fcn.004148e0
cmp byte [ebp - 0x3d], 0
mov ebx, eax
mov dword [ebp - 0x50], ebx
je 0x4d1b29
mov eax, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x80]
add eax, 8
test ecx, ecx
je 0x4d1a80
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
nop
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x10]
xor eax, eax
cmp dword [esi + 0x80], eax
jbe 0x4d1ac9
mov ebx, edi
lea ecx, [ebp - 0x34]
sub ebx, ecx
lea edx, [ebp - 0x34]
mov ecx, dword [ebp - 0x50]
sub ecx, edx
mov dword [ebp - 8], ecx
mov edi, ecx
nop dword [eax]
lea edx, [ebp - 0x34]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, byte [edx]
mov byte [edi + edx], cl
cmp eax, dword [esi + 0x80]
jb 0x4d1ab0
mov edi, dword [ebp - 0x38]
mov ebx, dword [esi + 0x80]
xor edx, edx
add dword [ebp - 0x50], ebx
test ebx, ebx
je 0x4d1af2
lea eax, [ebp - 0x24]
mov dword [ebp - 8], edi
sub edi, eax
lea ecx, [ebp - 0x24]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, ebx
jb 0x4d1ae0
mov edi, dword [ebp - 0x38]
add edi, ebx
sub dword [ebp - 0x48], 1
mov dword [ebp - 0x38], edi
jne 0x4d1a80
xor edx, edx
cmp ebx, edx
jbe 0x4d1c10
mov ecx, dword [ebp - 0x4c]
lea edi, [ebp - 0x24]
add ecx, 8
sub edi, ecx
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [esi + 0x80]
jb 0x4d1b12
jmp 0x4d1c10
mov eax, dword [esi + 0x80]
cmp eax, 0x10
jne 0x4d1bb3
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 8], eax
nop
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [edi]
lea ebx, [ebx + 0x10]
mov eax, dword [edi + 4]
lea edi, [edi + 0x10]
xor ecx, dword [ebp - 0x24]
xor eax, dword [ebp - 0x20]
mov dword [ebx - 0x10], ecx
mov dword [ebx - 0xc], eax
mov ecx, dword [edi - 8]
mov eax, dword [edi - 4]
xor ecx, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x18]
sub dword [ebp - 0x48], 1
mov dword [ebx - 8], ecx
mov dword [ebx - 4], eax
movups xmm0, xmmword [edi - 0x10]
movups xmmword [ebp - 0x14], xmm0
jne 0x4d1b50
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
jmp 0x4d1c10
cmp eax, 8
jne 0x4d1c1b
mov ecx, dword [ebp - 0x4c]
sub ebx, edi
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
nop dword [eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [edi]
lea edi, [edi + 8]
mov eax, dword [edi - 4]
xor ecx, dword [ebp - 0x3c]
xor eax, dword [ebp - 0x38]
sub dword [ebp - 0x48], 1
mov dword [ebx + edi - 8], ecx
mov dword [ebx + edi - 4], eax
mov ecx, dword [edi - 8]
mov edx, dword [edi - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jne 0x4d1bd0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x44]
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