Function at 0x51f660
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x318
cmp dword [ebx + 0x20], 0x100000
push esi
push edi
mov edi, 0x40
mov dword [ebp - 0x48], 0x28
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], 8
mov byte [ebp - 1], 1
jb 0x51f6c3
push 0xa9
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_ssl_s3_cbc.c
push str.Assertion_failed:_data_plus_mac_plus_padding_size___1024__1024
call fcn.004594a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push dword [ebx + 8]
call fcn.0044e460
push eax
call fcn.0044e650
add esp, 8
cmp eax, 0x2a0
jg 0x51f788
je 0x51f759
cmp eax, 4
je 0x51f71e
cmp eax, 0x40
jne 0x51f79d
lea eax, [ebp - 0x218]
push eax
call fcn.0044c390
add esp, 4
test eax, eax
jle 0x51fe80
mov dword [ebp - 0x30], 0x520030
mov ecx, 0x14
mov dword [ebp - 0x10], 0x44c3d0
jmp 0x51f84c
lea eax, [ebp - 0x218]
push eax
call fcn.0044d4a0
add esp, 4
test eax, eax
jle 0x51fe80
mov eax, 0x30
mov dword [ebp - 0x30], 0x51ffb0
mov dword [ebp - 0x10], 0x44d4e0
mov ecx, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 1], 0
jmp 0x51f851
lea eax, [ebp - 0x218]
push eax
call fcn.0044c840
add esp, 4
test eax, eax
jle 0x51fe80
mov dword [ebp - 0x30], 0x5200d0
mov ecx, 0x20
mov dword [ebp - 0x10], 0x44c8a0
jmp 0x51f84c
sub eax, 0x2a1
je 0x51f813
sub eax, 1
je 0x51f7f8
sub eax, 1
je 0x51f7cc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x51f7aa
mov dword [eax], 0
push 0xea
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_ssl_s3_cbc.c
push str.Assertion_failed:_0
call fcn.004594a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebp - 0x218]
push eax
call fcn.0044c4f0
add esp, 4
test eax, eax
jle 0x51fe80
mov dword [ebp - 0x30], 0x5200d0
mov ecx, 0x1c
mov dword [ebp - 0x10], 0x44c8a0
jmp 0x51f84c
lea eax, [ebp - 0x218]
push eax
call fcn.004d5510
add esp, 4
test eax, eax
jle 0x51fe80
mov ecx, edi
jmp 0x51f82f
lea eax, [ebp - 0x218]
push eax
call fcn.004d4b10
add esp, 4
test eax, eax
jle 0x51fe80
mov ecx, 0x30
mov edi, 0x80
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x4d55c0
mov dword [ebp - 0x30], 0x5201c0
mov eax, 0x28
cmp byte [ebx + 0x2c], 0
mov esi, 0xd
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x3c], esi
je 0x51f876
mov esi, dword [ebx + 0x28]
add esi, 0xb
mov dword [ebp - 0x28], 2
add esi, eax
mov dword [ebp - 0x3c], esi
jmp 0x51f886
lea eax, [edi + 0xff]
xor edx, edx
add eax, ecx
div edi
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x20]
sub esi, ecx
mov ecx, dword [ebp - 8]
dec eax
add ecx, esi
xor edx, edx
add ecx, edi
add eax, ecx
mov ecx, dword [ebx + 0x1c]
div edi
add ecx, esi
xor edx, edx
mov esi, dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x38], eax
mov eax, ecx
div esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 0x44], edx
xor edx, edx
mov dword [ebp - 0x24], edi
div esi
mov edx, dword [ebp - 0x38]
xor ecx, ecx
cmp byte [ebx + 0x2c], cl
mov dword [ebp - 0x60], eax
setne cl
add ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
mov ecx, edx
sub ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
cmp eax, edx
jae 0x51f8eb
mov edi, ecx
imul edi, esi
cmp eax, edx
mov dword [ebp - 0x24], edi
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
shl eax, 3
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x1c], eax
jne 0x51f9e7
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0053f280
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x51f949
push 0x151
push str.c:_cygwin_home_shachar_zon_new_pkg_lib_openssl_ssl_s3_cbc.c
push str.Assertion_failed:_mac_secret_length___sizeof_hmac_pad_
call fcn.004594a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push eax
push dword [ebx + 0x24]
lea eax, [ebp - 0x130]
push eax
call fcn.0053f3e0
movaps xmm2, xmmword [str.6666666666666666_]
add esp, 0xc
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x130]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x130], xmm1
movups xmm0, xmmword [ebp + eax - 0x120]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x120], xmm1
movups xmm0, xmmword [ebp + eax - 0x110]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x110], xmm0
movups xmm0, xmmword [ebp + eax - 0x100]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x100], xmm1
add eax, 0x40
cmp eax, esi
jb 0x51f970
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [ebp - 0x34], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [ebp - 1], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], eax
je 0x51fa36
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0053f280
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov byte [ebp + eax - 0x5c], cl
mov ecx, dword [ebp - 0x2c]
mov byte [ebp + eax - 0x5b], cl
mov ecx, dword [ebp - 0xc]
mov byte [ebp + eax - 0x5a], cl
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x59], cl
jmp 0x51fa63
push dword [ebp - 8]
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0053f280
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x34]
mov byte [ebp + eax - 0x5d], cl
mov ecx, dword [ebp - 0x2c]
mov byte [ebp + eax - 0x5e], cl
mov ecx, dword [ebp - 0xc]
mov byte [ebp + eax - 0x5f], cl
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x60], cl
add esp, 0xc
test edi, edi
je 0x51fb89
cmp byte [ebx + 0x2c], 0
je 0x51fb10
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jbe 0x51fe80
push dword [ebx + 0x14]
mov esi, eax
lea eax, [ebp - 0x218]
sub esi, dword [ebp - 0x14]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, dword [ebx + 0x14]
push esi
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.0053f3e0
mov eax, dword [ebp - 0x14]
sub eax, esi
push eax
push dword [ebx + 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x298]
add eax, esi
push eax
call fcn.0053f3e0
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
xor edx, edx
mov eax, edi
add esp, 0x28
div esi
lea ecx, [eax - 1]
cmp ecx, 1
jbe 0x51fb89
mov edi, dword [ebp - 0x38]
lea eax, [ecx - 1]
add edi, dword [ebx + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x218]
push edi
push eax
call dword [ebp - 0x10]
add esp, 8
add edi, esi
sub dword [ebp - 0xc], 1
jne 0x51faf8
jmp 0x51fb86
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [ebp - 0x290], eax
mov al, byte [ecx + 0xc]
mov byte [ebp - 0x28c], al
lea eax, [esi - 0xd]
push eax
push dword [ebx + 0x18]
lea eax, [ebp - 0x28b]
movq qword [ebp - 0x298], xmm0
push eax
call fcn.0053f3e0
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x10]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x51fb89
mov edi, dword [ebx + 0x18]
add edi, 0xfffffff3
add edi, esi
dec eax
mov dword [ebp - 0xc], eax
nop
lea eax, [ebp - 0x218]
push edi
push eax
call dword [ebp - 0x10]
add esp, 8
add edi, esi
sub dword [ebp - 0xc], 1
jne 0x51fb70
mov edi, dword [ebp - 0x24]
push 0x40
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.0053f280
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov edx, dword [ebp - 0x40]
add eax, edx
mov dword [ebp - 0x6c], eax
cmp edx, eax
ja 0x51fdf6
mov ecx, dword [ebp - 0x44]
mov eax, ecx
shr eax, 0x1f
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x24], esi
lea eax, [ecx + 1]
mov dword [ebp - 0x28], ecx
neg dword [ebp - 0x28]
shr eax, 0x1f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 0x24], eax
sub eax, esi
lea eax, [ebp + eax - 0x58]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x18]
sub eax, dword [ebp - 0x3c]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 0x318]
add eax, ecx
mov dword [ebp - 0x68], eax
nop
mov eax, edx
xor esi, esi
xor eax, dword [ebp - 0x5c]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x60]
neg dl
mov dword [ebp - 0x2c], edx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [ebp - 0x38], ecx
movd xmm0, eax
mov al, cl
not al
punpcklbw xmm0, xmm0
mov byte [ebp - 0x1e], al
or al, dl
mov edx, dword [ebp - 0x28]
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x44]
movaps xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 1], 0
cmp edi, eax
jae 0x51fc67
mov eax, dword [ebx + 0x14]
mov al, byte [edi + eax]
jmp 0x51fc74
add eax, dword [ebx + 0x20]
cmp edi, eax
jae 0x51fc77
mov eax, dword [ebx + 0x18]
mov al, byte [eax + edi]
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x64]
mov ecx, esi
shr ecx, 0x1f
inc edi
shr edx, 0x1f
xor dl, al
xor al, cl
or dl, al
mov eax, dword [ebp - 0x1c]
dec eax
xor dl, cl
shr eax, 0x1f
dec dl
xor al, byte [ebp - 0xc]
and dl, byte [ebp - 0x2c]
mov dword [ebp - 8], eax
mov al, byte [ebp - 0xc]
xor al, cl
or byte [ebp - 8], al
mov al, dl
xor byte [ebp - 8], cl
not al
mov ecx, dword [ebp - 8]
and dl, 0x80
and al, byte [ebp - 1]
dec cl
and cl, byte [ebp - 0x2c]
or al, dl
not cl
and cl, al
and cl, byte [ebp - 0x1d]
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 0x24]
jb 0x51fcdb
mov edx, dword [ebp - 0x34]
mov cl, byte [ebp - 0x1e]
mov al, byte [ebp - 0x38]
and cl, byte [ebp - 8]
and al, byte [edx]
or cl, al
mov edx, dword [ebp - 0x1c]
inc esi
mov eax, dword [ebp - 0x68]
inc dword [ebp - 0x34]
mov byte [eax + edx], cl
inc edx
mov dword [ebp - 0x1c], edx
cmp esi, dword [ebp - 0x14]
jb 0x51fc54
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x10]
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x51fdc5
movaps xmm2, xmmword [ebp - 0x140]
mov ecx, edx
and ecx, 0xffffffc0
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0xb0]
movups xmm1, xmmword [ebp + eax - 0x318]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0xb0], xmm1
movups xmm0, xmmword [ebp + eax - 0xa0]
movups xmm1, xmmword [ebp + eax - 0x308]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0xa0], xmm1
movups xmm0, xmmword [ebp + eax - 0x90]
movups xmm1, xmmword [ebp + eax - 0x2f8]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x90], xmm1
movups xmm1, xmmword [ebp + eax - 0x2e8]
movups xmm0, xmmword [ebp + eax - 0x80]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x80], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x51fd40
cmp eax, edx
jae 0x51fde6
nop dword [eax]
mov cl, byte [ebp + eax - 0x318]
and cl, byte [ebp - 0x38]
or byte [ebp + eax - 0xb0], cl
inc eax
cmp eax, edx
jb 0x51fdd0
mov edx, dword [ebp - 0x40]
inc edx
mov dword [ebp - 0x40], edx
cmp edx, dword [ebp - 0x6c]
jbe 0x51fbf0
call fcn.00462bb0
mov esi, eax
test esi, esi
je 0x51fe77
push 0
push dword [ebx + 8]
call fcn.0044e460
add esp, 4
push eax
push esi
call fcn.004626c0
add esp, 0xc
test eax, eax
jle 0x51fe77
cmp byte [ebx + 0x2c], 0
je 0x51fe8b
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x130]
push edi
push 0x5c
push eax
call fcn.0053f280
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push esi
call fcn.00462860
add esp, 0x18
test eax, eax
jle 0x51fe77
push edi
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00462860
add esp, 0xc
test eax, eax
jle 0x51fe77
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.00462860
add esp, 0xc
test eax, eax
jg 0x51ff37
push esi
call fcn.00462b90
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm2, xmmword [str.jjjjjjjjjjjjjjjj_]
xor ecx, ecx
mov eax, dword [ebp - 0x14]
nop word [eax + eax]
movups xmm0, xmmword [ebp + ecx - 0x130]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x130], xmm1
movups xmm0, xmmword [ebp + ecx - 0x120]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x120], xmm1
movups xmm0, xmmword [ebp + ecx - 0x110]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x110], xmm1
movups xmm0, xmmword [ebp + ecx - 0x100]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x100], xmm1
add ecx, 0x40
cmp ecx, eax
jb 0x51fea0
push eax
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00462860
add esp, 0xc
test eax, eax
jle 0x51fe77
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.00462860
add esp, 0xc
test eax, eax
jle 0x51fe77
lea eax, [ebp - 0x70]
push eax
push dword [ebx + 0xc]
push esi
call fcn.00462560
add esp, 0xc
test eax, eax
je 0x51ff57
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x51ff57
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
push esi
call fcn.00462b90
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret