Function at 0x586370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x617960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa4], eax
xor eax, eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x90], 0
push esi
push edi
test ecx, ecx
jne 0x5863de
call fcn.00523350
mov ecx, eax
mov dword [ebp - 0xac], eax
test ebx, ebx
push ecx
cmove ebx, ecx
mov dword [ebp - 0xc0], ebx
call fcn.00533610
add esp, 4
mov edi, eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x98], edi
jle 0x586a5f
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x586a5f
mov ecx, dword [ebp - 0xb8]
cmp ecx, esi
jl 0x586a44
lea eax, [edi*2 + 2]
cmp ecx, eax
jl 0x586a44
mov ebx, ecx
push 0x9e
sub ebx, edi
dec ebx
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push ebx
mov dword [ebp - 0xa0], ebx
call fcn.00504ff0
add esp, 0xc
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x586476
push 0xa0
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x41
push 0xa1
push 4
call fcn.0051b3a0
add esp, 0x14
xor esi, esi
jmp 0x5869da
push 0xa4
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push dword [ebp - 0xb8]
call fcn.00504ff0
add esp, 0xc
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x5864b8
push 0xa7
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x41
push 0xa1
push 4
call fcn.0051b3a0
add esp, 0x14
jmp 0x5869d4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xb8]
add edx, esi
add eax, ecx
mov dword [ebp - 0x94], eax
test ecx, ecx
jle 0x586506
mov edi, ecx
mov ebx, eax
mov eax, esi
lea ecx, [esi - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
dec ebx
and ecx, eax
dec ecx
mov eax, ecx
and eax, 1
sub edx, eax
sub esi, eax
and cl, byte [edx]
mov byte [ebx], cl
dec edi
jne 0x5864d3
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x94], ebx
mov ebx, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x94]
push dword [ebp - 0xc0]
push ebx
movzx eax, byte [esi]
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [esi + 1]
add eax, edi
neg ecx
push eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x44]
push edi
push eax
mov dword [ebp - 0x90], ecx
call fcn.00585e90
add esp, 0x14
test eax, eax
jne 0x5869da
xor edx, edx
test edi, edi
jle 0x58662d
cmp edi, 0x20
jb 0x58660c
lea ecx, [esi + 1]
lea eax, [ecx - 1]
lea ebx, [ebp - 0x44]
add eax, edi
cmp ebx, eax
mov ebx, dword [ebp - 0xa0]
ja 0x586580
lea eax, [ebp + edi - 0x45]
cmp eax, ecx
jae 0x58660c
mov eax, edi
and eax, 0x8000001f
jns 0x58658e
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp - 0x88], edi
mov ebx, ecx
sub dword [ebp - 0x88], eax
lea eax, [ebp - 0x44]
mov esi, eax
sub ebx, esi
add ecx, 0x10
mov dword [ebp - 0xb0], ebx
mov ebx, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xb0]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x9c]
lea ebx, [ebx]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [esi + edx]
add edx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jl 0x5865d0
mov edi, dword [ebp - 0x98]
mov esi, dword [ebp - 0x94]
cmp edx, edi
jge 0x58662d
lea eax, [ebp - 0x44]
lea ebx, [esi + 1]
sub ebx, eax
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ecx + ebx]
xor byte [ecx], al
cmp edx, edi
jl 0x586618
mov ebx, dword [ebp - 0xa0]
push dword [ebp - 0xc0]
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x44]
push edi
push eax
push ebx
push ecx
call fcn.00585e90
add esp, 0x14
test eax, eax
jne 0x5869da
xor esi, esi
test ebx, ebx
jle 0x586732
mov edx, dword [ebp - 0x8c]
cmp ebx, 0x20
jb 0x58670c
mov ecx, dword [ebp - 0xa8]
lea eax, [ecx - 1]
add eax, ebx
cmp edx, eax
ja 0x586685
lea eax, [edx - 1]
add eax, ebx
cmp eax, ecx
jae 0x58670c
mov eax, ebx
and eax, 0x8000001f
jns 0x586693
dec eax
or eax, 0xffffffe0
inc eax
mov edi, ecx
mov dword [ebp - 0x88], ebx
sub dword [ebp - 0x88], eax
sub edi, edx
add ecx, 0x10
mov dword [ebp - 0x9c], edi
mov edi, dword [ebp - 0x98]
mov eax, edx
mov ebx, dword [ebp - 0x9c]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0xb0]
lea esp, [esp]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [edx + esi]
add esi, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp esi, ecx
jl 0x5866d0
mov ebx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x8c]
cmp esi, ebx
jge 0x586732
mov edi, dword [ebp - 0xa8]
lea ecx, [esi + edx]
sub edi, edx
mov edx, ebx
sub edx, esi
nop
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x586720
mov edi, dword [ebp - 0x98]
push 0
push dword [ebp - 0xac]
lea eax, [ebp - 0x84]
push 0
push eax
push dword [ebp + 0x20]
push dword [ebp - 0xa4]
call fcn.00522ca0
add esp, 0x18
test eax, eax
je 0x5869d4
push edi
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call fcn.0051eb50
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov esi, dword [ebp - 0x98]
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
neg ecx
and edx, ecx
xor ecx, ecx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x88], ecx
cmp esi, ebx
jge 0x58680f
mov eax, dword [ebp - 0x8c]
not ecx
movzx esi, byte [edi + eax]
mov eax, esi
xor eax, 1
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and edx, eax
neg edx
and ecx, edx
mov eax, ecx
and ecx, edi
not eax
inc edi
and eax, dword [ebp - 0xbc]
or eax, ecx
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xbc], eax
or ecx, edx
mov edx, dword [ebp - 0x90]
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
mov dword [ebp - 0x88], ecx
neg eax
or eax, ecx
and edx, eax
mov dword [ebp - 0x90], edx
cmp edi, ebx
jl 0x5867a1
mov esi, dword [ebp - 0x98]
mov ecx, dword [ebp + 0xc]
mov eax, ebx
sub eax, dword [ebp - 0xbc]
mov edi, ebx
dec eax
sub edi, esi
sub ecx, eax
mov dword [ebp - 0xb4], eax
xor ecx, eax
mov dword [ebp - 0xa4], edi
xor eax, dword [ebp + 0xc]
or ecx, eax
mov eax, dword [ebp + 0xc]
xor ecx, eax
shr ecx, 0x1f
dec ecx
and ecx, dword [ebp - 0x88]
and edx, ecx
lea ecx, [edi - 1]
mov dword [ebp - 0x90], edx
mov edx, ecx
sub edx, eax
xor edx, eax
mov eax, ecx
xor eax, dword [ebp + 0xc]
or edx, eax
lea eax, [edi - 1]
xor edx, ecx
mov dword [ebp - 0xac], eax
shr edx, 0x1f
mov edi, 1
neg edx
mov ecx, edx
and eax, edx
not ecx
and ecx, dword [ebp + 0xc]
or ecx, eax
mov dword [ebp - 0xa8], ecx
cmp dword [ebp - 0xac], edi
jle 0x58691d
mov eax, dword [ebp - 0xa4]
lea edx, [esi + 1]
sub eax, dword [ebp - 0xb4]
dec eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xb0], eax
lea esp, [esp]
and eax, edi
mov esi, ebx
sub esi, edi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
dec ecx
cmp edx, esi
jge 0x586907
mov eax, dword [ebp - 0x8c]
movzx ecx, cl
add eax, edx
mov bl, cl
mov dword [ebp - 0xa4], ecx
not bl
sub esi, edx
nop
mov dl, byte [eax + edi]
lea eax, [eax + 1]
and dl, cl
mov cl, bl
and cl, byte [eax - 1]
or dl, cl
mov ecx, dword [ebp - 0xa4]
mov byte [eax - 1], dl
dec esi
jne 0x5868e0
mov ebx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xb0]
add edi, edi
cmp edi, dword [ebp - 0xac]
jl 0x5868b0
mov ecx, dword [ebp - 0xa8]
xor esi, esi
test ecx, ecx
jle 0x5869aa
mov eax, dword [ebp - 0x90]
mov ebx, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xb4]
movzx eax, al
neg edi
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x98]
inc eax
shr ebx, 0x1f
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], eax
lea ebx, [ebx]
mov ecx, esi
mov edx, edi
shr ecx, 0x1f
mov al, bl
xor al, cl
shr edx, 0x1f
xor dl, bl
inc edi
or dl, al
mov eax, dword [ebp - 0x9c]
xor dl, cl
neg dl
movzx ecx, dl
and ecx, dword [ebp - 0xa4]
mov al, byte [eax + esi]
mov edx, dword [ebp - 0xc4]
and al, cl
not cl
and cl, byte [edx + esi]
or al, cl
mov byte [edx + esi], al
inc esi
cmp esi, dword [ebp - 0xa8]
jl 0x586960
mov ebx, dword [ebp - 0xa0]
push 0x108
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.0051b3a0
mov eax, dword [ebp - 0x90]
and eax, 1
push eax
call fcn.0051b650
add esp, 0x18
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00401360
mov edi, dword [ebp - 0x8c]
add esp, 8
test edi, edi
je 0x5869fc
push ebx
push edi
call fcn.00401360
add esp, 8
push edi
call fcn.00504f70
add esp, 4
test esi, esi
je 0x586a18
push dword [ebp - 0xb8]
push esi
call fcn.00401360
add esp, 8
push esi
call fcn.00504f70
mov ecx, dword [ebp - 0x90]
add esp, 4
mov eax, ecx
not ecx
and eax, dword [ebp - 0xb4]
or eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049355b
mov esp, ebp
pop ebp
ret
push 0x99
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x79
push 0xa1
push 4
call fcn.0051b3a0
add esp, 0x14
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049355b
mov esp, ebp
pop ebp
ret