Function at 0x511430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call fcn.004613c0
mov dword [ebp - 8], eax
test eax, eax
je 0x511813
mov eax, dword [ebp + 0x14]
test eax, eax
mov edx, dword [ebp + 0x10]
mov ecx, edx
push edi
cmovne ecx, eax
push edx
mov dword [ebp - 0x10], ecx
call fcn.0044ce10
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
js 0x511812
push ebx
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0xffffffff
jne 0x5114d7
mov ebx, edi
mov dword [ebp + 0x1c], ebx
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.0049f9b0
dec eax
and eax, 7
push esi
mov dword [ebp - 0x20], eax
call fcn.0048d350
mov esi, dword [ebp - 0x20]
mov edx, eax
mov ecx, esi
mov eax, 0xff
shl eax, cl
add esp, 8
mov ecx, dword [ebp + 0x18]
test byte [ecx], al
je 0x5114f9
push 0x46
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x85
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
jmp 0x511810
cmp ebx, 0xfffffffd
jge 0x511489
push 0x3f
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x88
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
jmp 0x511811
test esi, esi
jne 0x5114fe
dec edx
mov eax, ecx
test esi, esi
lea ecx, [eax + 1]
cmovne ecx, eax
lea eax, [edi + 2]
mov dword [ebp - 0x18], ecx
cmp edx, eax
jge 0x511516
push 0x4e
jmp 0x51154f
mov esi, edx
sub esi, edi
lea eax, [esi - 2]
cmp ebx, 0xfffffffd
jne 0x511549
mov dword [ebp + 0x1c], eax
cmp byte [ecx + edx - 1], 0xbc
je 0x511567
push 0x58
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x86
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
jmp 0x511810
cmp ebx, eax
jle 0x511525
push 0x54
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x6d
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
jmp 0x511810
dec esi
push 0x5d
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push esi
mov dword [ebp - 0xc], esi
lea ebx, [ecx + esi]
call fcn.00456350
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x51159f
push 0x5f
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x41
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
jmp 0x511810
push dword [ebp - 0x10]
push edi
push ebx
push esi
push eax
call fcn.004fb9a0
add esp, 0x14
test eax, eax
js 0x511810
xor ecx, ecx
mov dword [ebp - 0x10], ecx
test esi, esi
jle 0x511696
mov edx, dword [ebp - 4]
cmp esi, 0x40
jb 0x51167a
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ecx - 1]
add eax, esi
cmp edx, eax
ja 0x5115ed
lea eax, [edx - 1]
add eax, esi
cmp eax, ecx
jae 0x511678
mov eax, esi
and eax, 0x8000003f
jns 0x5115fb
dec eax
or eax, 0xffffffc0
inc eax
mov edi, esi
sub edi, eax
mov eax, edx
mov dword [ebp - 0x28], edi
mov edi, ecx
sub edi, edx
add ecx, 0x20
mov dword [ebp - 0x24], edi
mov esi, edi
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov edi, dword [ebp - 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x40]
movups xmm1, xmmword [eax + esi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + ecx - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [edi + ecx]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [edi + ecx + 0x10]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, dword [ebp - 0x28]
jl 0x511620
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
jmp 0x51167a
xor ecx, ecx
cmp ecx, esi
jge 0x511696
mov edi, dword [ebp - 0x18]
add ecx, edx
sub edi, edx
sub esi, dword [ebp - 0x10]
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x511688
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5116b2
mov ecx, 8
mov edx, 0xff
sub ecx, eax
mov eax, dword [ebp - 4]
sar edx, cl
and byte [eax], dl
jmp 0x5116b5
mov eax, dword [ebp - 4]
mov cl, byte [eax]
xor esi, esi
test cl, cl
mov ecx, dword [ebp - 0xc]
jne 0x5116ce
lea edx, [ecx - 1]
cmp esi, edx
jge 0x5116ce
inc esi
cmp byte [esi + eax], 0
je 0x5116c3
mov al, byte [esi + eax]
inc esi
cmp al, 1
je 0x5116f3
push 0x6a
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x87
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
jmp 0x511810
mov eax, dword [ebp + 0x1c]
sub ecx, esi
mov dword [ebp - 0xc], ecx
cmp eax, 0xfffffffe
je 0x511721
cmp ecx, eax
je 0x511721
push 0x6e
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x88
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
jmp 0x511810
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.00460ed0
add esp, 0xc
test eax, eax
je 0x511810
push 8
push 0x5caba0
push dword [ebp - 8]
call fcn.00461070
add esp, 0xc
test eax, eax
je 0x511810
push edi
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.00461070
add esp, 0xc
test eax, eax
je 0x511810
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x51178b
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [ebp - 8]
call fcn.00461070
add esp, 0xc
test eax, eax
je 0x511810
push 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 8]
call fcn.00460e30
add esp, 0xc
test eax, eax
je 0x511810
lea ecx, [ebp - 0x68]
sub edi, 4
jb 0x5117b9
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x5117be
add ecx, 4
add ebx, 4
sub edi, 4
jae 0x5117a8
cmp edi, 0xfffffffc
je 0x511809
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x5117eb
cmp edi, 0xfffffffd
je 0x511809
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x5117eb
cmp edi, 0xfffffffe
je 0x511809
mov al, byte [ecx + 2]
cmp al, byte [ebx + 2]
jne 0x5117eb
cmp edi, 0xffffffff
je 0x511809
mov al, byte [ecx + 3]
cmp al, byte [ebx + 3]
je 0x511809
push 0x7c
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push 0x68
push 0x7e
push 4
call fcn.00455e30
add esp, 0x14
mov dword [ebp - 0x14], 0
jmp 0x511810
mov dword [ebp - 0x14], 1
pop esi
pop ebx
pop edi
push 0x83
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_crypto_rsa_rsa_pss.c
push dword [ebp - 4]
call fcn.00456390
push dword [ebp - 8]
call fcn.004613a0
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov esp, ebp
pop ebp
ret