Function at 0x7169d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ecx, dword [esp + 0x24]
mov dword [esp], 0
cmp dword [esp + 0x20], 0
sete dl
test ecx, ecx
sete dh
xor eax, eax
or dh, dl
jne 0x716caa
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp byte [eax], 0x68
jne 0x716a21
cmp byte [eax + 1], 0x65
mov edx, 0
jne 0x716a23
xor ebx, ebx
cmp byte [eax + 2], 0x78
sete bl
lea edx, [ebx + ebx*2]
jmp 0x716a23
xor edx, edx
add eax, edx
push eax
push ecx
call fcn.005e15f0
add esp, 8
mov esi, eax
test ebp, ebp
je 0x716a3f
xor eax, eax
test esi, esi
setne al
mov dword [ebp], eax
test esi, esi
je 0x716c9d
mov edi, dword [esp + 0x2c]
mov edx, dword [esi + 4]
lea ecx, [edx - 1]
cmp ecx, 2
jb 0x716a86
cmp edx, 4
je 0x716a9f
xor eax, eax
cmp edx, 5
jne 0x716bf3
test ebx, ebx
je 0x716b2b
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
test al, 1
jne 0x716b34
shr eax, 1
jmp 0x716bf3
mov eax, esp
test ebx, ebx
je 0x716ac8
push edi
push eax
call fcn.006ad280
add esp, 8
test eax, eax
jne 0x716ada
jmp 0x716c9d
test ebx, ebx
je 0x716b1c
call fcn.005b7120
push str.prepare_from_text
push 0x6f
push str.crypto_params_from_text.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x80106
jmp 0x716bd8
push edi
push eax
call fcn.006ad5c0
add esp, 8
test eax, eax
je 0x716c9d
mov ecx, dword [esp]
test ecx, ecx
je 0x716c9d
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x716b5c
push ecx
call fcn.0058ad20
add esp, 4
test eax, eax
je 0x716b56
call fcn.005b7120
push str.prepare_from_text
push 0x3b
push str.crypto_params_from_text.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x7a
jmp 0x716bd8
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
inc eax
jmp 0x716bf3
mov eax, dword [esp + 0x30]
jmp 0x716bf3
call fcn.005b7120
push str.prepare_from_text
push 0x79
push str.crypto_params_from_text.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x67
jmp 0x716bd8
mov eax, dword [esi + 4]
mov ecx, dword [esp]
cmp eax, 1
jne 0x716b87
push ecx
call fcn.0058ad20
add esp, 4
mov ecx, dword [esp]
test eax, eax
je 0x716b87
push 1
push ecx
call fcn.0058f630
add esp, 8
test eax, eax
je 0x716c9d
mov ecx, dword [esp]
push ecx
call fcn.00589790
add esp, 4
mov ebp, eax
mov edx, dword [esi + 4]
mov edi, dword [esi + 0xc]
xor edx, 1
and eax, 7
lea ecx, [ebp + 8]
or eax, edx
cmovne ecx, ebp
test edi, edi
je 0x716be7
mov eax, edi
lea edx, [edi*8]
cmp ecx, edx
mov edi, dword [esp + 0x2c]
jbe 0x716bf3
call fcn.005b7120
push str.prepare_from_text
push 0x65
push str.crypto_params_from_text.c
call fcn.005b7220
add esp, 0xc
push 0
push 0x74
push 0xf
call fcn.005b7310
add esp, 0xc
jmp 0x716c9d
add ecx, 7
shr ecx, 3
mov eax, ecx
mov edi, dword [esp + 0x2c]
cmp eax, 1
mov ecx, eax
adc ecx, 0
push 0xdb
push str.crypto_params_from_text.c
push ecx
mov ebp, eax
call fcn.005dca40
add esp, 0xc
test eax, eax
je 0x716c9d
test ebp, ebp
je 0x716cb2
mov dword [esp + 4], ebp
mov ecx, dword [esi + 4]
lea edx, [ecx - 1]
cmp edx, 2
jb 0x716cb9
cmp ecx, 4
mov edx, dword [esp + 4]
je 0x716d39
cmp ecx, 5
jne 0x716d31
test ebx, ebx
je 0x716d4d
mov dword [esp + 8], 0
lea ecx, [esp + 8]
push 0x3a
push edi
push ecx
push edx
push eax
mov ebx, eax
mov ebp, edx
call fcn.005de960
add esp, 0x14
mov ecx, eax
mov eax, ebx
test ecx, ecx
jne 0x716dab
push dword [esp]
mov esi, eax
call fcn.005899b0
add esp, 4
push 0xe2
push str.crypto_params_from_text.c
push esi
call fcn.005dcbc0
add esp, 0xc
jmp 0x716ca8
push dword [esp]
call fcn.005899b0
add esp, 4
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebp, ebp
jmp 0x716dab
mov ebp, dword [esp]
push dword [esp + 4]
mov ebx, eax
push eax
push ebp
call fcn.0058a530
add esp, 0xc
cmp dword [esi + 4], 1
jne 0x716d35
push ebp
call fcn.0058ad20
add esp, 4
test eax, eax
je 0x716d35
mov ebp, dword [esp + 4]
mov edx, ebp
mov eax, ebx
cmp ebp, 8
jb 0x716d9d
xor ecx, ecx
cmp ebp, 0x20
mov edx, ebp
jb 0x716d65
mov ecx, edx
and ecx, 0xffffffe0
xor edx, edx
pcmpeqd xmm0, xmm0
movdqu xmm1, xmmword [eax + edx]
movdqu xmm2, xmmword [eax + edx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [eax + edx], xmm1
movdqu xmmword [eax + edx + 0x10], xmm2
add edx, 0x20
cmp ecx, edx
jne 0x716d04
mov edx, dword [esp + 4]
cmp edx, ecx
jne 0x716d60
mov ebp, edx
jmp 0x716dab
mov eax, ebx
jmp 0x716da7
push edx
push edi
push eax
mov ebx, eax
mov ebp, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strncpy
mov eax, ebx
add esp, 0xc
dec ebp
jmp 0x716dab
push edx
push edi
push eax
mov ebx, eax
mov ebp, edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov eax, ebx
add esp, 0xc
jmp 0x716dab
test dl, 0x18
je 0x716d96
mov ebp, edx
and ebp, 0xfffffff8
and edx, 7
mov ebx, eax
mov edi, ebp
add ebx, ebp
pcmpeqd xmm0, xmm0
movq xmm1, qword [eax + ecx]
pxor xmm1, xmm0
movq qword [eax + ecx], xmm1
add ecx, 8
cmp edi, ecx
jne 0x716d77
mov ebp, dword [esp + 4]
cmp ebp, edi
jne 0x716d9d
jmp 0x716dab
mov ebx, eax
add ebx, ecx
and edx, 0x1f
xor ecx, ecx
not byte [ebx + ecx]
inc ecx
cmp edx, ecx
jne 0x716d9f
mov ebp, dword [esp + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov esi, dword [esp + 0x20]
mov dword [esi + 4], edx
mov dword [esi], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 0xffffffff
push dword [esp]
call fcn.005899b0
add esp, 4
mov eax, 1
jmp 0x716caa