Function at 0x586000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
dec edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x50], ecx
test ecx, ecx
jne 0x586046
call fcn.00523350
mov ecx, eax
mov dword [ebp - 0x50], eax
test esi, esi
push ecx
cmove esi, ecx
mov dword [ebp - 0x64], esi
call fcn.00533610
mov esi, eax
mov ecx, edi
add esp, 4
mov dword [ebp - 0x5c], esi
lea eax, [esi + esi]
sub ecx, eax
mov dword [ebp - 0x60], ecx
dec ecx
cmp ebx, ecx
jle 0x586096
push 0x3a
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x6e
push 0xa0
push 4
call fcn.0051b3a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
inc eax
cmp edi, eax
jge 0x5860c6
push 0x40
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x78
push 0xa0
push 4
call fcn.0051b3a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x4c]
push 0
push dword [ebp - 0x50]
lea ebx, [ecx + 1]
mov byte [ecx], 0
push 0
add ebx, esi
lea eax, [ecx + 1]
push ebx
push dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x68]
mov dword [ebp - 0x54], ebx
call fcn.00522ca0
add esp, 0x18
test eax, eax
je 0x58632a
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x48]
dec eax
push eax
lea eax, [ebx + esi]
push 0
push eax
call fcn.00495000
mov ecx, dword [ebp - 0x48]
mov eax, ebx
sub eax, ecx
sub eax, esi
push ecx
push dword [ebp - 0x58]
add eax, edi
push eax
mov byte [eax - 1], 1
call fcn.0049dad0
mov ebx, dword [ebp - 0x4c]
push esi
push ebx
call fcn.0051ba80
add esp, 0x20
test eax, eax
jle 0x58632a
push 0x55
sub edi, esi
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push edi
call fcn.00504ff0
add esp, 0xc
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x58617d
push 0x57
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x41
push 0xa0
push 4
call fcn.0051b3a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x64]
push esi
push ebx
push edi
push eax
call fcn.00585e90
add esp, 0x14
test eax, eax
js 0x58631f
xor ebx, ebx
test edi, edi
jle 0x586245
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
cmp edi, 0x20
jb 0x586227
lea eax, [edx - 1]
add eax, edi
cmp ecx, eax
ja 0x5861bb
lea eax, [ecx - 1]
add eax, edi
cmp eax, edx
jae 0x586227
mov eax, edi
and eax, 0x8000001f
jns 0x5861c9
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp - 0x50], edi
mov esi, edx
sub dword [ebp - 0x50], eax
sub esi, ecx
mov dword [ebp - 0x58], esi
mov eax, ecx
lea esi, [edx + 0x10]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], esi
mov esi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
jmp 0x5861f0
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [ecx + ebx]
add ebx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ebx, dword [ebp - 0x50]
jl 0x5861f0
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
cmp ebx, edi
jge 0x586245
mov esi, edx
add ecx, ebx
sub esi, dword [ebp - 0x54]
mov edx, edi
sub edx, ebx
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x586236
mov esi, dword [ebp - 0x5c]
push dword [ebp - 0x64]
lea eax, [ebp - 0x44]
push edi
push dword [ebp - 0x54]
push esi
push eax
call fcn.00585e90
add esp, 0x14
test eax, eax
js 0x58631f
xor edx, edx
test esi, esi
jle 0x5862fe
mov ebx, dword [ebp - 0x4c]
cmp esi, 0x20
jb 0x5862e4
lea ecx, [ebx - 1]
lea eax, [ebp + esi - 0x45]
add ecx, esi
cmp ebx, eax
ja 0x586287
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x5862e4
mov eax, esi
and eax, 0x8000001f
jns 0x586295
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, esi
lea edi, [ebp - 0x44]
sub ecx, eax
lea esi, [ebp - 0x34]
sub edi, ebx
mov eax, ebx
sub esi, ebx
mov dword [ebp - 0x58], esi
mov esi, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x58]
mov edi, edi
movdqu xmm0, xmmword [eax]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x5862b0
mov ebx, dword [ebp - 0x4c]
cmp edx, esi
jge 0x5862fe
lea edi, [ebp - 0x44]
sub edi, ebx
lea ecx, [edx + ebx]
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x5862f2
push dword [ebp - 0x48]
call fcn.00504f70
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x48]
call fcn.00504f70
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret