Function at 0x58f1a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x58f6c6
test ebx, ebx
jne 0x58f1fd
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.005af618
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x80], 1
ja 0x58f229
mov eax, dword [edi]
push esi
push dword [ebp - 0x3c]
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.005af618
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi + 0x80]
mov eax, edx
xor edx, edx
div ecx
test edx, edx
je 0x58f25a
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.005af618
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [0x68f000]
xor edx, edx
mov byte [ebp - 0x31], al
mov eax, dword [ebp + 0x10]
div ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
call fcn.00402f80
mov ecx, eax
mov eax, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x58], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004386f0
test al, al
jne 0x58f2b2
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.005af618
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
call fcn.00438be0
cmp byte [ebp - 0x31], 0
mov esi, eax
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x60], ecx
je 0x58f5b7
mov edx, dword [ebp - 0x44]
xor eax, eax
add edx, 8
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x58f3f9
cmp ecx, 0x40
jb 0x58f3c9
lea eax, [edx - 1]
add eax, ecx
lea esi, [ebp - 0x14]
cmp esi, eax
ja 0x58f309
lea eax, [ebp + ecx - 0x15]
cmp eax, edx
jae 0x58f3c7
lea eax, [ebx - 1]
add eax, ecx
lea edi, [ebp - 0x14]
cmp edi, eax
ja 0x58f321
lea eax, [ebp + ecx - 0x15]
cmp eax, ebx
jae 0x58f3c7
mov eax, ecx
lea edi, [ebx + 0x30]
lea ecx, [ebp - 0x14]
and eax, 0xffffffc0
sub ecx, edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], ecx
lea eax, [edx + 0x10]
lea ecx, [ebp - 4]
mov esi, ebx
sub ecx, edx
sub esi, edx
mov dword [ebp - 0x64], ecx
lea ecx, [ebp + 0xc]
sub ecx, edx
mov dword [ebp - 0x48], esi
mov edx, dword [ebp - 0x54]
xor esi, esi
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x48]
movups xmm0, xmmword [edi - 0x30]
mov ebx, dword [ebp - 0x64]
lea edi, [edi + 0x40]
movups xmm1, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ebp + esi - 0x14], xmm1
add esi, 0x40
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [edi - 0x50]
movups xmmword [edx + eax - 0x40], xmm1
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmm0, xmmword [edi - 0x40]
movups xmmword [ebx + eax - 0x40], xmm1
mov ebx, dword [ebp - 0x5c]
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x40], xmm1
mov ebx, dword [ebp - 0x40]
cmp esi, dword [ebp - 0x4c]
jb 0x58f356
mov edi, dword [ebp - 0x50]
mov eax, esi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x60]
jae 0x58f3f9
jmp 0x58f3c9
xor eax, eax
lea edi, [ebp - 0x14]
sub ebx, edx
sub edi, edx
lea ecx, [edx + eax]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x28]
mov edx, dword [edi + 0x80]
sub edx, eax
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + esi - 1], al
sub edx, 1
jne 0x58f3e4
mov esi, dword [ebp - 0x38]
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x10]
push dword [edi + 0x80]
lea eax, [ebp - 0x24]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x40]
add esp, 0xc
mov ebx, dword [edi + 0x80]
add edx, ebx
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x40], edx
je 0x58f58a
mov dword [ebp - 0x48], ebx
xor edi, edi
test ebx, ebx
je 0x58f545
cmp ebx, 0x40
jb 0x58f51a
lea eax, [edx - 1]
lea esi, [ebp - 0x14]
add eax, ebx
cmp esi, eax
lea ecx, [ebp + ebx - 0x15]
mov esi, dword [ebp - 0x38]
ja 0x58f464
cmp ecx, edx
jae 0x58f51a
lea eax, [esi - 1]
lea edx, [ebp - 0x14]
add eax, ebx
cmp edx, eax
mov edx, dword [ebp - 0x40]
ja 0x58f47b
cmp ecx, esi
jae 0x58f51a
mov eax, ebx
lea ecx, [esi + 0x30]
mov ebx, esi
and eax, 0xffffffc0
sub ebx, edx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], ebx
lea eax, [edx + 0x10]
mov esi, dword [ebp - 0x54]
lea ebx, [ebp - 0x14]
sub ebx, edx
mov dword [ebp - 0x28], ebx
lea ebx, [ebp - 4]
sub ebx, edx
mov dword [ebp - 0x60], ebx
lea ebx, [ebp + 0xc]
sub ebx, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x48]
movups xmm0, xmmword [ecx - 0x30]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ebp + edi - 0x14], xmm1
add edi, 0x40
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [ebp - 0x60]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x50]
movups xmmword [eax + edx - 0x40], xmm1
movups xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax + esi - 0x40], xmm1
mov esi, dword [ebp - 0x4c]
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax + esi - 0x40], xmm1
mov esi, dword [ebp - 0x54]
cmp edi, dword [ebp - 0x5c]
jb 0x58f4b1
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x28], edi
cmp edi, ebx
jae 0x58f545
lea ecx, [edx + edi]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x14]
sub esi, edx
sub eax, edx
mov edx, ebx
sub edx, edi
mov dword [ebp - 0x28], eax
mov edi, eax
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [edi + ecx - 1], al
sub edx, 1
jne 0x58f530
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x50]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
add esi, ebx
push ecx
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x38], esi
call dword [eax + 0x10]
push dword [edi + 0x80]
lea eax, [ebp - 0x24]
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x40]
add esp, 0xc
mov ebx, dword [edi + 0x80]
add edx, ebx
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], edx
jne 0x58f436
xor edx, edx
test ebx, ebx
je 0x58f6bb
mov ecx, dword [ebp - 0x44]
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 0x58f5a0
jmp 0x58f6bb
cmp ecx, 0x10
jne 0x58f658
mov edx, dword [ebp - 0x44]
push esi
mov ecx, dword [edx + 8]
xor ecx, dword [ebx]
mov eax, dword [edx + 0xc]
xor eax, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 8]
xor ecx, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [edx + 0x14]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x10]
sub dword [ebp - 0x30], 1
je 0x58f63c
sub ebx, esi
nop word [eax + eax]
mov ecx, dword [ebx + esi + 0x10]
xor ecx, dword [esi]
mov eax, dword [ebx + esi + 0x14]
xor eax, dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + esi + 0x18]
xor ecx, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + esi + 0x1c]
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 [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x10]
sub dword [ebp - 0x30], 1
jne 0x58f600
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
jmp 0x58f6bb
cmp ecx, 8
jne 0x58f6c6
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
push esi
xor ecx, dword [edx + 8]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x10]
sub dword [ebp - 0x30], 1
je 0x58f6ad
sub ebx, esi
mov ecx, dword [ebx + esi + 8]
xor ecx, dword [esi]
mov eax, dword [ebx + esi + 0xc]
xor eax, dword [esi + 4]
add esi, 8
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [edi]
push esi
push ecx
mov ecx, edi
call dword [eax + 0x10]
sub dword [ebp - 0x30], 1
jne 0x58f685
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
push dword [ebp - 0x58]
mov ecx, dword [ebp - 0x3c]
call fcn.0043a9f0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af618
mov esp, ebp
pop ebp
ret 0x14