Function at 0x46b820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], ecx
test esi, esi
je 0x46bcd1
cmp dword [ebp + 0xc], 0
jne 0x46b87f
mov eax, dword [ebx]
mov ecx, ebx
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
xor edx, edx
mov eax, esi
div dword [edi + 0x80]
mov dword [ebp - 0x30], eax
test edx, edx
je 0x46b8b1
mov eax, dword [ebx]
mov ecx, ebx
push str.AES_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
cmp byte [0x58ee62], 0
je 0x46bbfa
push dword [ebp - 0x48]
lea esi, [ecx + 8]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.0040d510
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
jne 0x46b8fa
mov ecx, dword [ebp - 0x28]
push str.Unable_to_allocate_CBC_encrypt_output_buffer.
mov eax, dword [ecx]
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 edx, dword [edi + 0x80]
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], ecx
test edx, edx
je 0x46ba3d
cmp edx, 0x40
jb 0x46ba0d
mov eax, dword [ebp - 0x34]
lea ebx, [ebp - 0x14]
add eax, 7
mov dword [ebp - 0x28], ecx
add eax, edx
cmp ebx, eax
mov ebx, dword [ebp - 0x38]
ja 0x46b93a
lea eax, [ebp + edx - 0x15]
cmp eax, esi
jae 0x46ba0d
mov ecx, dword [ebp + 0xc]
lea edi, [ebp - 0x14]
lea eax, [ecx - 1]
add eax, edx
cmp edi, eax
mov edi, dword [ebp - 0x2c]
ja 0x46b958
lea eax, [ebp + edx - 0x15]
cmp eax, ecx
jae 0x46ba0b
mov eax, edx
lea ebx, [ebp - 4]
mov edi, ecx
lea edx, [ebp + 0xc]
sub edi, esi
sub edx, esi
mov dword [ebp - 0x34], edi
sub ebx, esi
mov dword [ebp - 0x54], edx
lea edi, [ebp - 0x14]
sub edi, esi
mov dword [ebp - 0x50], ebx
and eax, 0xffffffc0
mov dword [ebp - 0x4c], edi
mov ebx, edi
lea edx, [ebp + 0x1c]
sub edx, esi
mov dword [ebp - 0x5c], eax
add ecx, 0x20
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x50]
mov eax, esi
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x28], ecx
xor ecx, ecx
mov edi, dword [ebp - 0x28]
nop dword [eax]
movups xmm1, xmmword [esi + eax]
mov esi, dword [ebp - 0x54]
lea eax, [eax + 0x40]
movups xmm0, xmmword [eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
movups xmm1, xmmword [edi + ecx - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx + eax - 0x40], xmm1
movups xmm1, xmmword [edi + ecx]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [esi + eax - 0x40], xmm1
mov esi, dword [ebp - 0x58]
movups xmm1, xmmword [edi + ecx + 0x10]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [esi + eax - 0x40], xmm1
mov esi, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x5c]
jb 0x46b9a0
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
jmp 0x46ba0d
xor ecx, ecx
cmp ecx, edx
jae 0x46ba3d
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
sub eax, esi
add ecx, esi
sub edi, esi
mov dword [ebp - 0x3c], eax
sub edx, dword [ebp - 0x28]
mov esi, eax
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + esi - 1], al
sub edx, 1
jne 0x46ba25
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x2c]
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 ebx
call fcn.004a8910
mov ecx, dword [edi + 0x80]
add esp, 0xc
mov edi, dword [ebp + 0xc]
add edi, ecx
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x28], edi
je 0x46bbd4
mov esi, dword [ebp - 0x2c]
mov edx, ecx
mov dword [ebp - 0x38], edx
nop
xor ecx, ecx
test edx, edx
je 0x46bb8f
cmp edx, 0x40
jb 0x46bb64
lea eax, [edi - 1]
lea esi, [ebp - 0x14]
add eax, edx
cmp esi, eax
mov esi, dword [ebp - 0x2c]
ja 0x46baae
lea eax, [ebp + edx - 0x15]
cmp eax, edi
jae 0x46bb64
lea eax, [ebx - 1]
lea edi, [ebp - 0x14]
add eax, edx
cmp edi, eax
mov edi, dword [ebp - 0x28]
ja 0x46bac9
lea eax, [ebp + edx - 0x15]
cmp eax, ebx
jae 0x46bb64
mov eax, edx
mov esi, ebx
lea edx, [ebp - 4]
sub esi, edi
sub edx, edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x58], edx
lea esi, [ebp - 0x14]
lea edx, [ebp + 0xc]
sub esi, edi
sub edx, edi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], edx
and eax, 0xffffffc0
lea edx, [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
sub edx, edi
mov eax, edi
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x50], edx
mov edx, esi
nop
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0x58]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + edx - 0x40], xmm1
movups xmm1, xmmword [ebx + ecx + 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [eax + esi - 0x40], xmm1
mov esi, dword [ebp - 0x54]
movups xmm1, xmmword [ebx + ecx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [eax + esi - 0x40], xmm1
mov esi, dword [ebp - 0x50]
movups xmm1, xmmword [ebx + ecx + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [eax + esi - 0x40], xmm1
mov esi, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x4c]
jb 0x46bb00
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x28]
cmp ecx, edx
jae 0x46bb8f
mov esi, ebx
lea eax, [edi + ecx]
sub esi, edi
lea edi, [ebp - 0x14]
sub edi, dword [ebp - 0x28]
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + edi - 1], cl
sub edx, 1
jne 0x46bb77
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
add ebx, dword [esi + 0x80]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x10]
push dword [esi + 0x80]
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.004a8910
mov ecx, dword [esi + 0x80]
add esp, 0xc
add edi, ecx
mov edx, ecx
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x38], edx
jne 0x46ba80
mov esi, dword [ebp - 0x44]
xor edx, edx
test ecx, ecx
je 0x46bcc6
mov ecx, dword [ebp - 0x2c]
sub ebx, esi
mov al, byte [ebx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
inc edx
cmp edx, dword [ecx + 0x80]
jb 0x46bbe3
jmp 0x46bcc6
mov ecx, dword [ebp - 0x40]
push esi
call fcn.0040d510
mov esi, eax
test esi, esi
jne 0x46bc2a
mov eax, dword [ebx]
mov ecx, ebx
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
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
push esi
mov ecx, dword [ebx]
xor ecx, dword [edx + 8]
mov eax, dword [ebx + 4]
xor eax, dword [edx + 0xc]
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 0x46bcac
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]
mov dword [ebp - 0x10], eax
xor ecx, dword [esi + 8]
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 0x46bc70
mov ecx, dword [ebp - 0x34]
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
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
call fcn.0040b630
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