Function at 0x594020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x629960]
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 0x594066
call fcn.005313c0
mov ecx, eax
mov dword [ebp - 0x50], eax
test esi, esi
push ecx
cmove esi, ecx
mov dword [ebp - 0x64], esi
call fcn.00541650
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 0x5940b6
push 0x3a
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x6e
push 0xa0
push 4
call fcn.00529440
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
inc eax
cmp edi, eax
jge 0x5940e6
push 0x40
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x78
push 0xa0
push 4
call fcn.00529440
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
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.00530cf0
add esp, 0x18
test eax, eax
je 0x59434a
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x48]
dec eax
push eax
lea eax, [ebx + esi]
push 0
push eax
call fcn.004a3440
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.004aca30
mov ebx, dword [ebp - 0x4c]
push esi
push ebx
call fcn.00529b00
add esp, 0x20
test eax, eax
jle 0x59434a
push 0x55
sub edi, esi
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push edi
call fcn.00513040
add esp, 0xc
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x59419d
push 0x57
push str.F:Gitcurllookaside_opensslcrypto_rsa_rsa_oaep.c
push 0x41
push 0xa0
push 4
call fcn.00529440
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x64]
push esi
push ebx
push edi
push eax
call fcn.00593eb0
add esp, 0x14
test eax, eax
js 0x59433f
xor ebx, ebx
test edi, edi
jle 0x594265
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
cmp edi, 0x20
jb 0x594247
lea eax, [edx - 1]
add eax, edi
cmp ecx, eax
ja 0x5941db
lea eax, [ecx - 1]
add eax, edi
cmp eax, edx
jae 0x594247
mov eax, edi
and eax, 0x8000001f
jns 0x5941e9
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 0x594210
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 0x594210
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x54]
cmp ebx, edi
jge 0x594265
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 0x594256
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.00593eb0
add esp, 0x14
test eax, eax
js 0x59433f
xor edx, edx
test esi, esi
jle 0x59431e
mov ebx, dword [ebp - 0x4c]
cmp esi, 0x20
jb 0x594304
lea ecx, [ebx - 1]
lea eax, [ebp + esi - 0x45]
add ecx, esi
cmp ebx, eax
ja 0x5942a7
lea eax, [ebp - 0x44]
cmp ecx, eax
jae 0x594304
mov eax, esi
and eax, 0x8000001f
jns 0x5942b5
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 0x5942d0
mov ebx, dword [ebp - 0x4c]
cmp edx, esi
jge 0x59431e
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 0x594312
push dword [ebp - 0x48]
call fcn.00512fc0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x48]
call fcn.00512fc0
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a16e5
mov esp, ebp
pop ebp
ret