Function at 0x58ed90
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 - 0x48], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
test edx, edx
je 0x58f10e
test esi, esi
jne 0x58edea
mov eax, dword [ebx]
mov ecx, ebx
push str.NULL_passed_to_CBC_decryptor
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 [edi + 0x80], 1
ja 0x58ee16
mov eax, dword [edi]
push ebx
push dword [ebp - 0x48]
mov eax, dword [eax + 0x1c]
push edx
push esi
push ecx
mov ecx, edi
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 [edi + 0x80]
mov eax, edx
xor edx, edx
div ecx
test edx, edx
je 0x58ee68
mov eax, dword [ebx]
mov ecx, ebx
push str.CBC_decrypt_input_not_a_multiple_of_the_cipher_block_size.
call dword [eax + 0x14]
push dword [ebp + 0x10]
mov ecx, ebx
push str.inputLen
call fcn.00448c10
push dword [edi + 0x80]
mov ecx, ebx
push str.cipherBlockSize
call fcn.00448c10
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 al, byte [0x68f000]
xor edx, edx
mov byte [ebp - 0x3d], al
mov eax, dword [ebp + 0x10]
div ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x38], eax
call fcn.00402f10
mov ecx, eax
mov eax, dword [ebp + 0x10]
add eax, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], eax
lea ecx, [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00438680
test al, al
jne 0x58eec0
mov eax, dword [ebx]
mov ecx, ebx
push str.Unable_to_allocate_CBC_decrypt_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 - 0x3c]
mov ecx, dword [ebp - 0x48]
call fcn.00438b70
cmp byte [ebp - 0x3d], 0
mov ebx, eax
mov ecx, dword [edi + 0x80]
mov dword [ebp - 8], ebx
je 0x58efe7
push ecx
lea eax, [ebp - 0x34]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi + 0x80]
xor edx, edx
test eax, eax
je 0x58ef3e
mov esi, dword [ebp - 0x44]
lea eax, [ebp - 0x24]
add esi, 8
lea ecx, [ebp - 0x24]
sub esi, eax
mov eax, ebx
sub eax, ecx
mov ebx, eax
nop dword [eax]
lea ecx, [ebp - 0x24]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
mov eax, dword [edi + 0x80]
cmp edx, eax
jb 0x58ef20
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 8]
lea edx, [eax + ebx]
mov ebx, dword [ebp - 0x38]
lea ecx, [eax + esi]
mov dword [ebp - 0x4c], edx
sub ebx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ebx
je 0x58efb8
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi + 0x80]
xor edx, edx
test eax, eax
je 0x58efa3
mov ebx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
sub esi, eax
sub ebx, eax
lea ecx, [ebp - 0x24]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [ebx + ecx], al
mov eax, dword [edi + 0x80]
cmp edx, eax
jb 0x58ef88
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
add dword [ebp - 0x4c], eax
add ecx, eax
sub ebx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ebx
jne 0x58ef55
xor edx, edx
test eax, eax
je 0x58f103
mov ecx, dword [ebp - 0x44]
add ecx, 8
sub esi, ecx
nop word [eax + eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
cmp edx, dword [edi + 0x80]
jb 0x58efd0
jmp 0x58f103
cmp ecx, 0x10
jne 0x58f090
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x14]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
xor eax, dword [ebp - 0x10]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], eax
xor ecx, dword [edx + 0x10]
mov eax, dword [ebp - 8]
xor eax, dword [edx + 0x14]
mov dword [ebx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
je 0x58f077
mov eax, dword [edi]
lea edx, [ebp - 0x14]
push edx
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [esi + 4]
lea ebx, [ebx + 0x10]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [esi]
xor eax, dword [ebp - 0x10]
mov dword [ebx - 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx - 0xc], eax
xor ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
xor eax, dword [ebp - 8]
mov dword [ebx - 8], ecx
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
add ecx, 0x10
mov dword [ebx - 4], eax
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
jne 0x58f031
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
jmp 0x58f103
cmp ecx, 8
jne 0x58f10e
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x14]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
xor ecx, dword [edx + 8]
xor eax, dword [ebp - 8]
mov dword [ebx], ecx
lea ecx, [esi + 8]
mov dword [ebx + 4], eax
add ebx, 8
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
je 0x58f0f8
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push edx
push ecx
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
lea ebx, [ebx + 8]
xor ecx, dword [esi]
mov eax, dword [esi + 4]
xor eax, dword [ebp - 8]
mov dword [ebx - 8], ecx
mov ecx, dword [ebp - 0x3c]
mov esi, ecx
add ecx, 8
mov dword [ebx - 4], eax
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
jne 0x58f0c4
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x48]
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