Function at 0x5592a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x34
push edi
mov edi, ecx
test eax, eax
jne 0x5592b9
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x5592da
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.NULL_passed_to_CBC_encryptor
call edx
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [edi + 0x80]
cmp ecx, 1
ja 0x559304
mov ecx, dword [ebp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, edi
call edx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x14
xor edx, edx
div ecx
test edx, edx
je 0x559325
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.CBC_input_not_a_multiple_of_the_cipher_block_size.
call edx
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov cl, byte [0x8a0274]
mov byte [ebp + 0xf], cl
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ebp - 4], eax
call fcn.004033b0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, eax
lea eax, [esi + edx]
mov dword [ebp + 0x10], eax
add eax, 0x20
push eax
call fcn.00413a50
test al, al
jne 0x55936f
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Unable_to_allocate_CBC_encrypt_output_buffer.
call edx
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
push esi
call fcn.0040fc00
cmp byte [ebp + 0xf], 0
mov esi, eax
je 0x559485
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [edi + 0x80], 0
mov dword [ebp - 8], eax
mov dword [ebp + 8], esi
jbe 0x5593c2
mov edx, dword [edi + 0x80]
mov ecx, ebx
sub ecx, eax
mov dword [ebp + 0xc], ecx
lea ecx, [ebp - 0x24]
sub ecx, eax
mov dword [ebp + 0x18], edx
mov edi, edi
mov edx, dword [ebp + 0xc]
mov dl, byte [edx + eax]
xor dl, byte [eax]
inc eax
dec dword [ebp + 0x18]
mov byte [ecx + eax - 1], dl
jne 0x5593b0
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, edi
call eax
mov ecx, dword [edi + 0x80]
push ecx
lea edx, [ebp - 0x34]
push edx
push esi
call fcn.0070d6a0
mov ecx, dword [edi + 0x80]
add esp, 0xc
dec dword [ebp - 4]
lea esi, [ecx + ebx]
mov ebx, dword [ebp + 8]
je 0x55945c
test ecx, ecx
je 0x559425
sub ebx, esi
lea edx, [ebp - 0x24]
mov eax, esi
mov dword [ebp + 0xc], ebx
sub edx, esi
mov dword [ebp + 0x18], ecx
jmp 0x559413
mov ebx, dword [ebp + 0xc]
mov bl, byte [ebx + eax]
xor bl, byte [eax]
inc eax
dec dword [ebp + 0x18]
mov byte [edx + eax - 1], bl
jne 0x559410
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
add ebx, ecx
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, edi
mov dword [ebp + 8], ebx
call eax
mov ecx, dword [edi + 0x80]
push ecx
lea edx, [ebp - 0x34]
push edx
push ebx
call fcn.0070d6a0
mov ecx, dword [edi + 0x80]
add esp, 0xc
add esi, ecx
dec dword [ebp - 4]
jne 0x5593f8
xor ecx, ecx
cmp dword [edi + 0x80], ecx
jbe 0x559596
mov eax, dword [ebp - 8]
mov esi, ebx
sub esi, eax
mov dl, byte [esi + eax]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [edi + 0x80]
jb 0x559471
jmp 0x559596
mov eax, dword [edi + 0x80]
cmp eax, 0x10
jne 0x55952a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
xor ecx, dword [ebx]
mov edx, dword [eax + 0xc]
xor edx, dword [ebx + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 8]
xor ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], edx
mov edx, dword [ebx + 0xc]
xor edx, dword [eax + 0x14]
mov eax, dword [edi]
mov dword [ebp - 0xc], ecx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
add ebx, 0x10
dec dword [ebp - 4]
je 0x55950e
sub ebx, esi
mov eax, dword [ebx + esi]
xor eax, dword [esi]
mov edx, dword [ebx + esi + 8]
xor edx, dword [esi + 8]
mov ecx, dword [ebx + esi + 4]
xor ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + esi + 0xc]
xor eax, dword [esi + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [ebp - 8], eax
add esi, 0x10
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
push eax
mov ecx, edi
call edx
dec dword [ebp - 4]
jne 0x5594d2
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0x14], edx
jmp 0x559596
cmp eax, 8
jne 0x5595a2
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
xor ecx, dword [ebx]
mov edx, dword [eax + 0xc]
xor edx, dword [ebx + 4]
mov eax, dword [edi]
mov dword [ebp - 0xc], ecx
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
add ebx, 8
dec dword [ebp - 4]
je 0x559588
sub ebx, esi
nop
mov eax, dword [ebx + esi]
xor eax, dword [esi]
mov ecx, dword [ebx + esi + 4]
xor ecx, dword [esi + 4]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
add esi, 8
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
mov ecx, edi
call edx
dec dword [ebp - 4]
jne 0x559560
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.0040fe10
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14