Function at 0x58da50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
xor ebx, ebx
test eax, eax
push ecx
cmove eax, ecx
mov dword [ebp + 0x18], eax
call fcn.00533610
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
js 0x58dd06
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 0xffffffff
jne 0x58db12
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.00506670
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.00537a00
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x10], ebx
jne 0x58dabc
mov byte [esi], bl
inc esi
dec ecx
mov dword [ebp - 8], ecx
cmp edi, 0xfffffffe
jne 0x58db49
mov edi, ecx
sub edi, dword [ebp - 4]
sub edi, 2
test edi, edi
jle 0x58db7c
push 0xe9
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push edi
call fcn.00504ff0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x58db67
push 0xec
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x41
push 0x9e
push 4
call fcn.0051b3a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xfffffffe
jne 0x58db1c
jmp 0x58da8d
jge 0x58da8d
push 0xd7
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x88
push 0x9e
push 4
call fcn.0051b3a0
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
add eax, 2
add eax, edi
cmp ecx, eax
jge 0x58dacd
push 0xe5
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_pss.c
push 0x6e
jmp 0x58dafa
push edi
push ebx
call fcn.0051ba80
add esp, 8
test eax, eax
jle 0x58dcea
mov ecx, dword [ebp - 8]
mov eax, ecx
sub eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
dec eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00523230
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.00522e10
add esp, 0x10
test eax, eax
je 0x58dcea
push 8
lea eax, [ebp - 0x2c]
push 0x5f7e58
push eax
call fcn.00522fc0
add esp, 0xc
test eax, eax
je 0x58dcea
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x10]
push eax
call fcn.00522fc0
add esp, 0xc
test eax, eax
je 0x58dcea
test edi, edi
je 0x58dbf9
push edi
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.00522fc0
add esp, 0xc
test eax, eax
je 0x58dcea
mov eax, dword [ebp - 0xc]
add eax, esi
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00522d60
add esp, 0xc
test eax, eax
je 0x58dcea
lea eax, [ebp - 0x2c]
push eax
call fcn.00522fd0
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
push dword [ebp - 4]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.00585e90
add esp, 0x18
test eax, eax
jne 0x58dcea
mov ecx, dword [ebp - 0x14]
sub ecx, edi
add ecx, esi
xor byte [ecx - 2], 1
dec ecx
test edi, edi
jle 0x58dcc4
xor edx, edx
cmp edi, 0x20
jb 0x58dcb2
lea eax, [ebx - 1]
add eax, edi
cmp ecx, eax
ja 0x58dc66
lea eax, [ecx - 1]
add eax, edi
cmp eax, ebx
jae 0x58dcb2
mov eax, edi
and eax, 0x8000001f
jns 0x58dc74
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp + 0x18], edi
sub dword [ebp + 0x18], eax
lea eax, [ebx + 0x10]
lea ecx, [ecx]
movdqu xmm0, xmmword [ecx]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [eax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [ecx], xmm1
movdqu xmm1, xmmword [eax - 0x20]
movdqu xmm0, xmmword [ecx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [ecx + 0x10], xmm1
add ecx, 0x20
cmp edx, dword [ebp + 0x18]
jl 0x58dc80
cmp edx, edi
jge 0x58dcc4
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x58dcb6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x58dcdb
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 8]
mov byte [eax + esi - 1], 0xbc
mov esi, 1
jmp 0x58dcec
xor esi, esi
test ebx, ebx
je 0x58db40
push ebx
call fcn.00504f70
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret