Function at 0x593050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x692c00]
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 0x593576
test ebx, ebx
jne 0x5930ad
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.005b34c8
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x80], 1
ja 0x5930d9
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.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi + 0x80]
mov eax, edx
xor edx, edx
div ecx
test edx, edx
je 0x59310a
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.005b34c8
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [0x695048]
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.00402fb0
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.00438990
test al, al
jne 0x593162
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.005b34c8
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
call fcn.00438e80
cmp byte [ebp - 0x31], 0
mov esi, eax
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x60], ecx
je 0x593467
mov edx, dword [ebp - 0x44]
xor eax, eax
add edx, 8
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x5932a9
cmp ecx, 0x40
jb 0x593279
lea eax, [edx - 1]
add eax, ecx
lea esi, [ebp - 0x14]
cmp esi, eax
ja 0x5931b9
lea eax, [ebp + ecx - 0x15]
cmp eax, edx
jae 0x593277
lea eax, [ebx - 1]
add eax, ecx
lea edi, [ebp - 0x14]
cmp edi, eax
ja 0x5931d1
lea eax, [ebp + ecx - 0x15]
cmp eax, ebx
jae 0x593277
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 0x593206
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 0x5932a9
jmp 0x593279
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 0x593294
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 0x59343a
mov dword [ebp - 0x48], ebx
xor edi, edi
test ebx, ebx
je 0x5933f5
cmp ebx, 0x40
jb 0x5933ca
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 0x593314
cmp ecx, edx
jae 0x5933ca
lea eax, [esi - 1]
lea edx, [ebp - 0x14]
add eax, ebx
cmp edx, eax
mov edx, dword [ebp - 0x40]
ja 0x59332b
cmp ecx, esi
jae 0x5933ca
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 0x593361
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x28], edi
cmp edi, ebx
jae 0x5933f5
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 0x5933e0
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 0x5932e6
xor edx, edx
test ebx, ebx
je 0x59356b
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 0x593450
jmp 0x59356b
cmp ecx, 0x10
jne 0x593508
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 0x5934ec
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 0x5934b0
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 0x59356b
cmp ecx, 8
jne 0x593576
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 0x59355d
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 0x593535
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.0043ac90
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 0x14