Function at 0x58f980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x68cc00]
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, dword [ebp + 0xc]
mov dword [ebp - 0x50], ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
push edi
mov edi, dword [ebp + 0x18]
test edx, edx
je 0x58fc57
test ebx, ebx
jne 0x58f9da
mov eax, dword [edi]
mov ecx, edi
push str.NULL_passed_to_CFB_encryptor
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
cmp dword [esi + 0x80], 1
ja 0x58fa06
mov eax, dword [esi]
push edi
push dword [ebp - 0x3c]
mov eax, dword [eax + 0x18]
push edx
push ebx
push ecx
mov ecx, esi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x80]
mov eax, edx
xor edx, edx
div ecx
test edx, edx
je 0x58fa37
mov eax, dword [edi]
mov ecx, edi
push str.CFB_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.005af5a8
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
xor edx, edx
div ecx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x58f9c5
mov al, byte [0x68f000]
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 0x35], al
call fcn.00402f10
mov ecx, eax
mov eax, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00438680
test al, al
jne 0x58fa93
mov eax, dword [edi]
mov ecx, edi
push str.Unable_to_allocate_CFB_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.005af5a8
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
call fcn.00438b70
cmp byte [ebp - 0x35], 0
mov edi, eax
mov ecx, dword [esi + 0x80]
mov dword [ebp - 0x48], edi
je 0x58fb5e
mov eax, dword [ebp - 0x44]
add eax, 8
test ecx, ecx
je 0x58fad0
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
nop dword [eax + eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], edi
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [esi + 0x80]
xor eax, eax
test ecx, ecx
je 0x58fb22
lea ecx, [ebp - 0x24]
sub ebx, ecx
lea edx, [ebp - 0x24]
mov ecx, edi
sub ecx, edx
mov dword [ebp - 0x30], ecx
mov edi, ecx
nop
lea edx, [ebp - 0x24]
add edx, eax
mov cl, byte [ebx + edx]
xor cl, byte [edx]
mov byte [edi + edx], cl
mov byte [ebp + eax - 0x14], cl
inc eax
mov ecx, dword [esi + 0x80]
cmp eax, ecx
jb 0x58fb00
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x50]
add ebx, ecx
add edi, ecx
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], edi
jne 0x58fad0
xor edx, edx
test ecx, ecx
je 0x58fc4c
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x28]
add ecx, 8
sub ebx, ecx
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [esi + 0x80]
jb 0x58fb47
jmp 0x58fc4c
cmp ecx, 0x10
jne 0x58fbf6
mov edx, dword [ebp - 0x44]
sub ebx, edi
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov ecx, dword [ebx + edi + 4]
lea edx, [edi + 8]
xor ecx, dword [ebp - 0x20]
lea edi, [edi + 0x10]
mov eax, dword [ebp - 0x24]
xor eax, dword [ebx + edi - 0x10]
mov dword [edi - 0x10], eax
mov dword [edi - 0xc], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebx + edi - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + edi - 4]
xor eax, dword [ebp - 0x18]
sub dword [ebp - 0x40], 1
mov dword [edx], ecx
mov dword [edx + 4], eax
movups xmm0, xmmword [edi - 0x10]
mov dword [ebp - 0x48], edx
movups xmmword [ebp - 0x14], xmm0
jne 0x58fb84
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edx + 0xc], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
jmp 0x58fc4c
cmp ecx, 8
jne 0x58fc57
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
nop word [eax + eax]
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov edx, dword [ebx + 4]
lea ebx, [ebx + 8]
mov ecx, dword [ebp - 0x34]
lea edi, [edi + 8]
xor ecx, dword [ebx - 8]
xor edx, dword [ebp - 0x30]
sub dword [ebp - 0x40], 1
mov dword [edi - 8], ecx
mov dword [edi - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
jne 0x58fc10
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x3c]
call fcn.0043a980
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x14