Function at 0x6078f10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.060ee370
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
test eax, eax
cmove eax, ecx
push ecx
mov dword [esp + 0x4c], eax
call fcn.0605ac80
add esp, 4
mov dword [esp + 8], eax
test eax, eax
js 0x6079173
push edi
mov edi, dword [esp + 0x50]
cmp edi, 0xffffffff
jne 0x6078fe4
mov edi, eax
push esi
mov esi, dword [esp + 0x40]
push dword [esi + 0x10]
call fcn.0605e380
dec eax
and eax, 7
push esi
mov dword [esp + 0x24], eax
call fcn.060613e0
mov esi, dword [esp + 0x4c]
add esp, 8
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x1c], ebx
jne 0x6078f8c
mov byte [esi], bl
inc esi
dec ecx
mov dword [esp + 0x14], ecx
cmp edi, 0xfffffffe
jne 0x607901b
mov edi, ecx
sub edi, dword [esp + 0x10]
sub edi, 2
test edi, edi
jle 0x6079050
push 0xe9
push str..crypto_rsa_rsa_pss.c
push edi
call fcn.06059000
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x607903a
push 0xec
push str..crypto_rsa_rsa_pss.c
push 0x41
push 0x94
push 4
call fcn.0605a690
add esp, 0x14
mov eax, ebx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp edi, 0xfffffffe
jne 0x6078fee
jmp 0x6078f56
jge 0x6078f56
push 0xd7
push str..crypto_rsa_rsa_pss.c
push 0x88
push 0x94
push 4
call fcn.0605a690
add esp, 0x14
mov eax, ebx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x10]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x6078f9e
push 0xe5
push str..crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x6078fcb
push edi
push ebp
call fcn.06074e20
add esp, 8
test eax, eax
jle 0x6079164
mov ecx, dword [esp + 0x14]
mov eax, ecx
sub eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
dec eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
call fcn.060565f0
push 0
push dword [esp + 0x54]
lea eax, [esp + 0x30]
push eax
call fcn.060561d0
add esp, 0x10
test eax, eax
je 0x6079164
push 8
lea eax, [esp + 0x28]
push 0x6118fc8
push eax
call fcn.06056380
add esp, 0xc
test eax, eax
je 0x6079164
push dword [esp + 0x10]
lea eax, [esp + 0x28]
push dword [esp + 0x4c]
push eax
call fcn.06056380
add esp, 0xc
test eax, eax
je 0x6079164
test edi, edi
je 0x60790d8
push edi
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.06056380
add esp, 0xc
test eax, eax
je 0x6079164
mov eax, dword [esp + 0x18]
add eax, esi
push 0
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.06056150
add esp, 0xc
test eax, eax
je 0x6079164
lea eax, [esp + 0x24]
push eax
call fcn.06056390
push dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.06078660
add esp, 0x18
test eax, eax
jne 0x6079164
mov ecx, dword [esp + 0x20]
sub ecx, edi
add ecx, esi
dec ecx
xor byte [ecx - 1], 1
test edi, edi
jle 0x607913e
xor edx, edx
test edi, edi
jle 0x607913e
mov al, byte [edx + ebp]
xor byte [ecx], al
inc edx
lea ecx, [ecx + 1]
cmp edx, edi
jl 0x6079131
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6079156
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [esp + 0x14]
mov ebx, 1
mov byte [eax + esi - 1], 0xbc
test ebp, ebp
je 0x6079171
push ebp
call fcn.06058f70
add esp, 4
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2c
ret