Function at 0x602710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x40
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x38], 0
mov eax, dword [ebp + 0x10]
test edi, edi
je 0x60281c
test edx, edx
je 0x60281c
movzx ebx, byte [eax]
sub ebx, 0x68
jne 0x602752
movzx ebx, byte [eax + 1]
sub ebx, 0x65
je 0x602880
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.004d5e10
mov ecx, dword [ebp + 0x1c]
mov esi, eax
test ecx, ecx
je 0x602773
xor eax, eax
mov ecx, dword [ebp + 0x1c]
test esi, esi
setne al
mov dword [ecx], eax
test esi, esi
je 0x602810
mov eax, dword [esi + 4]
cmp eax, 4
je 0x6028f8
ja 0x602830
sub eax, 1
cmp eax, 1
ja 0x602898
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
test ebx, ebx
jne 0x6029d0
call fcn.00587230
mov edx, dword [esp + 0x38]
test eax, eax
je 0x602814
test edx, edx
je 0x602814
mov eax, dword [esi + 4]
cmp eax, 2
je 0x602ab8
cmp eax, 1
je 0x602a98
mov dword [esp], edx
call fcn.0045a620
cmp dword [esi + 4], 1
jne 0x6027eb
lea edx, [eax + 8]
test al, 7
cmove eax, edx
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0x18], ecx
test ecx, ecx
jne 0x602b20
add eax, 7
mov edx, 1
shr eax, 3
mov dword [ebp + 0x18], eax
cmovne edx, eax
jmp 0x60284b
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call fcn.0045a830
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 5
jne 0x602898
test ebx, ebx
je 0x6029e0
mov edx, dword [ebp + 0x18]
test edx, edx
mov edx, 1
cmovne edx, dword [ebp + 0x18]
mov dword [esp], edx
mov dword [esp + 8], 0xde
mov dword [esp + 4], str..._crypto_params_from_text.c
call fcn.004ce500
mov edx, eax
test eax, eax
je 0x602ad8
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x38]
test eax, eax
jne 0x60293a
jmp 0x6028c9
movzx ebx, byte [eax + 2]
lea ecx, [eax + 3]
sub ebx, 0x78
cmove eax, ecx
jmp 0x602752
mov dword [esp + 8], 0xde
mov dword [esp + 4], str..._crypto_params_from_text.c
mov dword [esp], 1
call fcn.004ce500
mov edx, eax
test eax, eax
je 0x602ad8
mov dword [ebp + 0x18], 0
mov ecx, dword [esp + 0x38]
movdqu xmm0, xmmword [esi]
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x10], 0xffffffff
movups xmmword [edi], xmm0
mov dword [edi + 0xc], eax
mov dword [edi + 8], edx
mov dword [esp], ecx
call fcn.0045a830
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x602b78
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 1
mov dword [ebp + 0x18], eax
mov dword [esp + 8], 0xde
mov dword [esp + 4], str..._crypto_params_from_text.c
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.004ce500
mov ecx, dword [esp + 0x38]
mov edx, eax
test eax, eax
je 0x602ad8
mov eax, dword [esi + 4]
cmp eax, 4
je 0x602bc0
jbe 0x602a50
cmp eax, 5
jne 0x6028c9
test ebx, ebx
jne 0x602bf0
mov dword [esp + 0x10], 0x3a
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x2c], edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x3c], 0
call fcn.004d1350
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
test eax, eax
jne 0x6028c9
mov dword [esp], ecx
call fcn.0045a830
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], 0xe7
mov dword [esp + 4], str..._crypto_params_from_text.c
mov dword [esp], edx
call fcn.004ce2f0
jmp 0x60281c
call fcn.00587630
jmp 0x6027b4
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, 1
mov ecx, eax
shr ecx, 1
mov dword [ebp + 0x18], ecx
cmovne edx, ecx
test al, 1
je 0x60284b
call fcn.0049b030
mov dword [esp + 8], str.prepare_from_text
mov dword [esp + 4], 0x7c
mov dword [esp], str..._crypto_params_from_text.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x67
mov dword [esp], 0xf
call fcn.0049b230
mov edx, dword [esp + 0x38]
jmp 0x602814
sub eax, 1
cmp eax, 1
ja 0x6028c9
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
call fcn.0045b880
cmp dword [esi + 4], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
je 0x602c3c
mov ecx, dword [esp + 0x38]
jmp 0x6028c9
mov dword [esp], edx
call fcn.0045c110
test eax, eax
jne 0x602c17
mov edx, dword [esp + 0x38]
jmp 0x6027d5
mov dword [esp], edx
call fcn.0045c110
test eax, eax
jne 0x602d3b
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x38]
jmp 0x6027cc
call fcn.0049b030
mov dword [esp + 8], str.OSSL_PARAM_allocate_from_text
mov dword [esp + 4], 0xdf
mov dword [esp], str..._crypto_params_from_text.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0100
mov dword [esp], 0xf
call fcn.0049b230
mov edx, dword [esp + 0x38]
jmp 0x602814
lea edx, [ecx*8]
cmp edx, eax
jae 0x602911
call fcn.0049b030
mov dword [esp + 8], str.prepare_from_text
mov dword [esp + 4], 0x68
mov dword [esp], str..._crypto_params_from_text.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x74
mov dword [esp], 0xf
call fcn.0049b230
mov edx, dword [esp + 0x38]
jmp 0x602814
call fcn.0049b030
mov dword [esp + 8], str.prepare_from_text
mov dword [esp + 4], 0x72
mov dword [esp], str..._crypto_params_from_text.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80106
mov dword [esp], 0xf
call fcn.0049b230
mov edx, dword [esp + 0x38]
jmp 0x602814
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
sub dword [ebp + 0x18], 1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
jmp 0x6028c9
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
jmp 0x6028c9
mov eax, dword [esp + 0x38]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.00462c30
mov edx, dword [esp + 0x38]
test eax, eax
jne 0x6027d5
jmp 0x602814
mov dword [esp], ecx
mov dword [esp + 0x2c], edx
call fcn.0045c110
mov edx, dword [esp + 0x2c]
test eax, eax
je 0x602a89
mov eax, dword [ebp + 0x18]
sub eax, 1
mov dword [esp + 0x2c], eax
cmp eax, 0xe
jbe 0x602d81
mov eax, dword [ebp + 0x18]
xor ecx, ecx
pcmpeqd xmm1, xmm1
lea ebx, [eax - 0x10]
mov eax, edx
shr ebx, 4
add ebx, 1
lea esi, cs:[esi]
movdqu xmm0, xmmword [eax]
add ecx, 1
add eax, 0x10
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp ecx, ebx
jb 0x602c80
shl ebx, 4
sub dword [esp + 0x2c], ebx
lea eax, [edx + ebx]
cmp ebx, dword [ebp + 0x18]
je 0x602a89
mov ecx, dword [ebp + 0x18]
sub ecx, ebx
mov dword [esp + 0x28], ecx
sub ecx, 1
cmp ecx, 2
jbe 0x602d19
add ebx, edx
mov ecx, dword [esp + 0x28]
pcmpeqd xmm0, xmm0
movd xmm1, dword [ebx]
shr ecx, 2
pxor xmm0, xmm1
movd dword [ebx], xmm0
cmp ecx, 1
je 0x602d01
movd xmm1, dword [ebx + 4]
pcmpeqd xmm0, xmm0
pxor xmm0, xmm1
movd dword [ebx + 4], xmm0
cmp ecx, 2
je 0x602d01
movd xmm1, dword [ebx + 8]
pcmpeqd xmm0, xmm0
pxor xmm0, xmm1
movd dword [ebx + 8], xmm0
mov ebx, dword [esp + 0x28]
mov ecx, ebx
and ecx, 0xfffffffc
sub dword [esp + 0x2c], ecx
add eax, ecx
and ebx, 3
je 0x602a89
mov ecx, dword [esp + 0x2c]
not byte [eax]
test ecx, ecx
je 0x602a89
not byte [eax + 1]
cmp ecx, 1
je 0x602a89
not byte [eax + 2]
jmp 0x602a89
call fcn.0049b030
mov dword [esp + 8], str.prepare_from_text
mov dword [esp + 4], 0x3e
mov dword [esp], str..._crypto_params_from_text.c
call fcn.0049b150
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7a
mov dword [esp], 0xf
call fcn.0049b230
mov edx, dword [esp + 0x38]
jmp 0x602814
mov eax, edx
xor ebx, ebx
jmp 0x602ca9