Function at 0x5129c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, ecx
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], 0
push esi
test eax, eax
mov dword [ebp - 4], ebx
push edi
cmovne edx, eax
push ecx
mov dword [ebp - 0x1c], edx
call fcn.0044e690
mov edi, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp + 0x18], eax
test eax, eax
js 0x512c84
cmp edi, 0xffffffff
jne 0x512a5c
mov edi, eax
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.004a1220
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.0048ebc0
mov esi, dword [ebp + 0xc]
add esp, 8
mov edx, eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], ebx
jne 0x512a32
mov byte [esi], bl
inc esi
dec edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0x18]
lea eax, [ecx + 2]
cmp edx, eax
jge 0x512a90
push 0xba
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x6e
push 0x98
push 4
call fcn.004576a0
add esp, 0x14
jmp 0x512c84
cmp edi, 0xfffffffe
jne 0x512a68
mov edi, 0xfffffffd
jmp 0x512a03
cmp edi, 0xfffffffd
jge 0x512a03
push 0xae
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x88
push 0x98
push 4
call fcn.004576a0
add esp, 0x14
jmp 0x512c84
mov eax, edx
sub eax, ecx
mov dword [ebp - 0xc], eax
lea ecx, [eax - 2]
cmp edi, 0xfffffffd
jne 0x512ade
mov edi, ecx
test edi, edi
jle 0x512b01
push 0xc5
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push edi
call fcn.00457bc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x512aec
push 0xc8
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x41
push 0x98
push 4
call fcn.004576a0
add esp, 0x14
jmp 0x512c84
cmp edi, ecx
jle 0x512aa1
push 0xc1
jmp 0x512a41
push edi
push ebx
call fcn.0044ca30
add esp, 8
test eax, eax
jle 0x512c84
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 8], eax
call fcn.00462c30
mov dword [ebp - 4], eax
test eax, eax
je 0x512c84
push 0
push dword [ebp + 0x14]
push eax
call fcn.00462740
add esp, 0xc
test eax, eax
je 0x512c84
push 8
push 0x5ce190
push dword [ebp - 4]
call fcn.004628e0
add esp, 0xc
test eax, eax
je 0x512c84
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.004628e0
add esp, 0xc
test eax, eax
je 0x512c84
test edi, edi
je 0x512b77
push edi
push ebx
push dword [ebp - 4]
call fcn.004628e0
add esp, 0xc
test eax, eax
je 0x512c84
mov eax, dword [ebp - 8]
push 0
add eax, esi
push eax
push dword [ebp - 4]
call fcn.004626a0
add esp, 0xc
test eax, eax
je 0x512c84
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x18]
lea eax, [ecx + esi]
push eax
push ecx
push esi
call fcn.004fd230
add esp, 0x14
test eax, eax
jne 0x512c84
mov eax, dword [ebp - 0xc]
lea ecx, [esi - 2]
sub eax, edi
add ecx, eax
mov dword [ebp + 0x18], ecx
xor byte [ecx], 1
inc ecx
mov dword [ebp - 0x1c], ecx
test edi, edi
jle 0x512c5e
xor edx, edx
cmp edi, 0x40
jb 0x512c4b
lea eax, [edi - 1]
add eax, ebx
cmp ecx, eax
ja 0x512be6
mov eax, dword [ebp + 0x18]
add eax, edi
cmp eax, ebx
jae 0x512c4b
mov eax, edi
and eax, 0x8000003f
jns 0x512bf4
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp + 0x18], edi
sub dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
nop dword [eax]
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ebx + edx]
pxor xmm1, xmm0
movups xmmword [ecx], xmm1
movups xmm0, xmmword [ecx + 0x10]
movups xmm1, xmmword [ebx + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx + 0x10], xmm1
movups xmm0, xmmword [ecx + 0x20]
movups xmm1, xmmword [ebx + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm1
movups xmm0, xmmword [ecx + 0x30]
movups xmm1, xmmword [ebx + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx + 0x30], xmm1
add ecx, 0x40
cmp edx, eax
jl 0x512c00
cmp edx, edi
jge 0x512c5e
nop
mov al, byte [edx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, edi
jl 0x512c50
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x512c75
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [esi], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
mov byte [eax + esi - 1], 0xbc
push dword [ebp - 4]
call fcn.00462c10
push 0xf7
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push edi
push ebx
call fcn.00457cd0
mov eax, dword [ebp - 0x18]
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret