Function at 0x535360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x38
push edi
mov edi, ecx
test eax, eax
jne 0x535379
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x53539a
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.NULL_passed_to_CFB_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 0x5353c4
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 0x5353e5
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.CFB_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 dword [ebp - 8], eax
test eax, eax
je 0x5353db
mov al, byte [0x68782a]
mov ecx, dword [ebp + 0x14]
push esi
mov byte [ebp - 1], al
call fcn.004078c0
mov ecx, dword [ebp + 0x10]
mov esi, eax
lea eax, [esi + ecx]
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
add eax, 0x20
push eax
call fcn.00420200
test al, al
jne 0x535432
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Unable_to_allocate_CFB_encrypt_output_buffer.
call eax
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.0041b720
cmp byte [ebp - 1], 0
mov esi, eax
mov eax, dword [edi + 0x80]
je 0x53550d
mov ecx, dword [ebp + 8]
mov edx, ebx
add ecx, 8
mov ebx, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], edx
mov dword [ebp + 0x18], ebx
test eax, eax
je 0x535472
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov ecx, edi
call edx
xor eax, eax
cmp dword [edi + 0x80], eax
jbe 0x5354c5
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edx, ecx
sub esi, ecx
sub ebx, edx
mov dword [ebp + 0xc], ebx
lea esp, [esp]
movzx ebx, byte [ebp + eax - 0x28]
lea ecx, [ebp + eax - 0x28]
movzx edx, byte [esi + ecx]
xor edx, ebx
mov ebx, dword [ebp + 0xc]
mov byte [ebx + ecx], dl
mov byte [ebp + eax - 0x38], dl
inc eax
cmp eax, dword [edi + 0x80]
jb 0x5354a0
mov ebx, dword [ebp + 0x18]
mov eax, dword [edi + 0x80]
add dword [ebp + 8], eax
add ebx, eax
dec dword [ebp - 8]
mov dword [ebp + 0x18], ebx
jne 0x535472
sub ebx, eax
xor ecx, ecx
test eax, eax
je 0x5354f6
mov eax, dword [ebp - 0xc]
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 0x5354e7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.0041b930
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 0x10
jne 0x5355bb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x24], edx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
sub ebx, esi
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
mov ecx, edi
call eax
mov ecx, dword [ebx + esi]
mov edx, dword [ebx + esi + 4]
xor ecx, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [ebx + esi + 8]
mov ecx, dword [ebx + esi + 0xc]
xor eax, dword [ebp - 0x10]
xor ecx, dword [ebp - 0xc]
mov edx, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28], edx
mov edx, dword [esi + 0xc]
add esi, 0x10
dec dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
jne 0x535533
mov ecx, dword [esi - 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi - 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [esi - 8]
mov dword [eax + 0x10], ecx
mov edx, dword [esi - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041b930
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 8
jne 0x535621
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
nop
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
mov ecx, edi
call eax
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
xor ecx, dword [ebp - 0x20]
xor edx, dword [ebp - 0x1c]
mov dword [esi], ecx
mov eax, ecx
mov dword [esi + 4], edx
mov ecx, edx
add ebx, 8
add esi, 8
dec dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jne 0x5355d0
mov edx, dword [esi - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov ecx, dword [esi - 4]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x14]
push edx
call fcn.0041b930
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 0x14