Function at 0x5595b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x34
push esi
mov esi, ecx
test eax, eax
jne 0x5595c9
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x5595ea
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.NULL_passed_to_CBC_decryptor
call edx
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x80]
cmp ecx, 1
ja 0x559614
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x1c]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
mov ecx, esi
call edx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x14
xor edx, edx
div ecx
test edx, edx
je 0x559635
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.CBC_decrypt_input_not_a_multiple_of_the_cipher_block_size.
call edx
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov cl, byte [0x8a0274]
mov byte [ebp + 0xf], cl
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
call fcn.004033b0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, eax
lea eax, [edi + edx]
mov dword [ebp + 0x10], eax
add eax, 0x20
push eax
call fcn.00413a50
test al, al
jne 0x55967f
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Unable_to_allocate_CBC_decrypt_output_buffer.
call edx
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
push edi
call fcn.0040fc00
cmp byte [ebp + 0xf], 0
mov edi, eax
je 0x5597b9
mov ecx, dword [esi + 0x80]
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x34]
add eax, 8
push ebx
push edx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
call fcn.0070d6a0
mov eax, dword [esi]
mov eax, dword [eax + 0x14]
add esp, 0xc
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, esi
call eax
xor eax, eax
mov dword [ebp + 8], eax
cmp dword [esi + 0x80], eax
jbe 0x5596ff
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x24]
sub ecx, edx
mov dword [ebp + 0x18], ecx
mov ecx, edi
sub ecx, edx
mov edx, dword [ebp + 0x18]
lea eax, [ebp + eax - 0x24]
mov dl, byte [edx + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [esi + 0x80]
jb 0x5596e1
mov eax, dword [esi + 0x80]
add ebx, eax
add eax, edi
dec dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x18], ebx
mov dword [ebp + 8], eax
je 0x559784
mov eax, dword [esi + 0x80]
lea ecx, [ecx]
push eax
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.0070d6a0
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 0x80]
xor ecx, ecx
test eax, eax
je 0x55976f
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x24]
sub edi, eax
sub edx, eax
lea eax, [ebp + ecx - 0x24]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
mov byte [edx + eax], bl
mov eax, dword [esi + 0x80]
cmp ecx, eax
jb 0x559755
mov ebx, dword [ebp + 0x18]
mov ecx, dword [esi + 0x80]
add dword [ebp + 8], ecx
mov edi, ebx
add ebx, ecx
dec dword [ebp - 4]
mov dword [ebp + 0x18], ebx
jne 0x559720
xor ecx, ecx
cmp dword [esi + 0x80], ecx
jbe 0x5597a2
mov eax, dword [ebp - 8]
sub edi, eax
mov dl, byte [edi + eax]
mov byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esi + 0x80]
jb 0x559793
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.0040fe10
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi + 0x80]
cmp eax, 0x10
jne 0x559887
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x14]
push eax
push ebx
mov ecx, esi
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor ecx, dword [ebp - 0x14]
xor edx, dword [ebp - 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor ecx, dword [ebp - 0xc]
xor edx, dword [ebp - 8]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
lea ecx, [ebx + 0x10]
add edi, 0x10
dec dword [ebp - 4]
mov dword [ebp + 0x18], ecx
je 0x559859
lea ebx, [ebx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
xor eax, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, dword [ebx + 0xc]
xor eax, dword [ebp - 8]
mov edx, dword [ebx + 8]
xor edx, dword [ebp - 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 8], edx
mov ebx, eax
add eax, 0x10
add edi, 0x10
dec dword [ebp - 4]
mov dword [ebp + 0x18], eax
jne 0x559810
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040fe10
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 8
jne 0x55990e
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0xc]
push eax
push ebx
mov ecx, esi
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
xor ecx, dword [ebp - 0xc]
xor edx, dword [ebp - 8]
mov dword [edi], ecx
mov dword [edi + 4], edx
lea ecx, [ebx + 8]
add edi, 8
dec dword [ebp - 4]
mov dword [ebp + 0x18], ecx
je 0x5598f7
mov ecx, dword [ebp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x14]
lea eax, [ebp - 0xc]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [ebx]
xor eax, dword [ebp - 0xc]
mov ecx, dword [ebx + 4]
xor ecx, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 4], ecx
mov ebx, eax
add eax, 8
add edi, 8
dec dword [ebp - 4]
mov dword [ebp + 0x18], eax
jne 0x5598c0
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x14]
push edx
call fcn.0040fe10
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14