Function at 0x497100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x58be1c]
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, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x30], ecx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], edi
test edx, edx
je 0x497646
test edi, edi
jne 0x49715d
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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x80], 1
ja 0x497189
mov eax, dword [ebx]
push esi
push dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
push edx
push edi
push ecx
mov ecx, ebx
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14
mov eax, edx
xor edx, edx
div dword [ebx + 0x80]
mov dword [ebp - 0x34], eax
test edx, edx
je 0x4971bb
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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [0x58ee62]
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 0x35], al
call fcn.0040d5b0
mov dword [ebp - 0x40], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0040d230
test al, al
jne 0x497205
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.004a4dea
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
call fcn.0040d560
cmp byte [ebp - 0x35], 0
mov esi, eax
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x28], ecx
je 0x497537
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
lea edi, [eax + 8]
mov dword [ebp - 0x50], edi
test ecx, ecx
je 0x497378
cmp ecx, 0x40
jb 0x497331
add eax, 7
mov dword [ebp - 0x30], 0
lea esi, [ebp - 0x14]
add eax, ecx
cmp esi, eax
lea edx, [ebp + ecx - 0x15]
mov esi, dword [ebp - 0x40]
ja 0x49726b
cmp edx, edi
jae 0x497331
mov edx, dword [ebp - 0x4c]
lea ebx, [ebp - 0x14]
lea eax, [edx - 1]
add eax, ecx
cmp ebx, eax
mov ebx, dword [ebp - 0x44]
ja 0x497289
lea eax, [ebp + ecx - 0x15]
cmp eax, edx
jae 0x497334
mov eax, ecx
mov ebx, edx
sub ebx, edi
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
sub ecx, edi
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x60], ecx
sub ebx, edi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x58], ebx
and eax, 0xffffffc0
mov esi, dword [ebp - 0x58]
lea ebx, [ebp - 4]
sub ebx, edi
mov dword [ebp - 0x48], eax
sub ecx, edi
mov dword [ebp - 0x5c], ebx
mov eax, edi
mov dword [ebp - 0x64], ecx
mov edi, dword [ebp - 0x30]
xor ebx, ebx
mov ecx, dword [ebp - 0x5c]
movups xmm1, xmmword [edi + eax]
mov edi, dword [ebp - 0x60]
lea eax, [eax + 0x40]
movups xmm0, xmmword [eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [esi + eax - 0x40], xmm1
movups xmm1, xmmword [edx + ebx + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ecx + eax - 0x40], xmm1
movups xmm1, xmmword [edx + ebx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [ebp - 0x64]
movups xmm1, xmmword [edx + ebx + 0x30]
add ebx, 0x40
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [ebp - 0x30]
cmp ebx, dword [ebp - 0x48]
jb 0x4972c5
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x44]
jmp 0x497334
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
cmp eax, ecx
jae 0x497378
sub edx, edi
lea ecx, [edi + eax]
mov dword [ebp - 0x28], edx
lea edx, [ebp - 0x14]
sub edx, edi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x48], edx
mov edx, dword [ebx + 0x80]
mov ebx, dword [ebp - 0x48]
sub edx, eax
nop dword [eax]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edx, 1
jne 0x497360
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x50]
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
push dword [ebx + 0x80]
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004a8910
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
mov edx, dword [ebx + 0x80]
add ecx, edx
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x30], ecx
je 0x49750f
mov dword [ebp - 0x40], edx
xor edi, edi
test edx, edx
je 0x4974c5
cmp edx, 0x40
jb 0x497498
lea eax, [ecx - 1]
lea ebx, [ebp - 0x14]
add eax, edx
cmp ebx, eax
mov ebx, dword [ebp - 0x44]
ja 0x4973e3
lea eax, [ebp + edx - 0x15]
cmp eax, ecx
jae 0x497498
lea eax, [esi - 1]
lea ecx, [ebp - 0x14]
add eax, edx
cmp ecx, eax
mov ecx, dword [ebp - 0x30]
ja 0x4973fe
lea eax, [ebp + edx - 0x15]
cmp eax, esi
jae 0x497498
mov eax, edx
mov ebx, esi
lea edx, [ebp - 4]
sub ebx, ecx
sub edx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x64], edx
lea ebx, [ebp - 0x14]
lea edx, [ebp + 0xc]
sub ebx, ecx
sub edx, ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x60], edx
and eax, 0xffffffc0
lea edx, [ebp + 0x1c]
mov dword [ebp - 0x58], eax
sub edx, ecx
mov eax, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x5c], edx
mov edx, ebx
movups xmm0, xmmword [eax]
mov ebx, dword [ebp - 0x64]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + edx - 0x40], xmm1
movups xmm1, xmmword [esi + edi + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [eax + ebx - 0x40], xmm1
mov ebx, dword [ebp - 0x60]
movups xmm1, xmmword [esi + edi + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [eax + ebx - 0x40], xmm1
mov ebx, dword [ebp - 0x5c]
movups xmm1, xmmword [esi + edi + 0x30]
add edi, 0x40
pxor xmm1, xmm0
movups xmmword [eax + ebx - 0x40], xmm1
mov ebx, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x58]
jb 0x497434
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
cmp edi, edx
jae 0x4974c5
mov ebx, esi
lea eax, [ebp - 0x14]
sub eax, dword [ebp - 0x30]
add ecx, edi
sub ebx, dword [ebp - 0x30]
sub edx, edi
mov dword [ebp - 0x28], eax
mov edi, eax
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + edi - 1], al
sub edx, 1
jne 0x4974b0
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebx]
lea ecx, [ebp - 0x24]
add esi, dword [ebx + 0x80]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
push dword [ebx + 0x80]
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004a8910
mov eax, dword [ebx + 0x80]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov edx, eax
add ecx, eax
mov dword [ebp - 0x40], eax
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x30], ecx
jne 0x4973b5
mov edi, dword [ebp - 0x50]
jmp 0x497511
mov eax, edx
xor edx, edx
test eax, eax
je 0x49763b
sub esi, edi
nop dword [eax]
mov al, byte [esi + edi]
lea edi, [edi + 1]
mov byte [edi - 1], al
inc edx
cmp edx, dword [ebx + 0x80]
jb 0x497520
jmp 0x49763b
cmp ecx, 0x10
jne 0x4975d8
mov edx, dword [ebp - 0x30]
push esi
mov ecx, dword [edx + 8]
xor ecx, dword [edi]
mov eax, dword [edx + 0xc]
xor eax, dword [edi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 8]
xor ecx, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
xor eax, dword [edx + 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]
sub dword [ebp - 0x34], 1
je 0x4975bc
sub edi, esi
nop word [eax + eax]
mov ecx, dword [edi + esi + 0x10]
xor ecx, dword [esi]
mov eax, dword [edi + esi + 0x14]
xor eax, dword [esi + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + esi + 0x18]
xor ecx, dword [esi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 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 [ebx]
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x10]
sub dword [ebp - 0x34], 1
jne 0x497580
mov ecx, dword [ebp - 0x30]
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 0x49763b
cmp ecx, 8
jne 0x497646
mov edx, dword [ebp - 0x30]
mov ecx, dword [edi]
mov eax, dword [edi + 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 [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
sub dword [ebp - 0x34], 1
je 0x49762d
sub edi, esi
mov ecx, dword [edi + esi + 8]
xor ecx, dword [esi]
mov eax, dword [edi + 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 [ebx]
push esi
push ecx
mov ecx, ebx
call dword [eax + 0x10]
sub dword [ebp - 0x34], 1
jne 0x497605
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi]
mov dword [ecx + 8], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0xc], eax
push dword [ebp - 0x54]
mov ecx, dword [ebp - 0x3c]
call fcn.0040ddd0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4dea
mov esp, ebp
pop ebp
ret 0x14