Function at 0x51de70
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 0x51ded3
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.00457cb0
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.0044cc60
push eax
call fcn.0044ce50
add esp, 8
cmp eax, 0x2a0
jg 0x51df98
je 0x51df69
cmp eax, 4
je 0x51df2e
cmp eax, 0x40
jne 0x51dfad
lea eax, [ebp - 0x218]
push eax
call fcn.0044ab90
add esp, 4
test eax, eax
jle 0x51e690
mov dword [ebp - 0x30], 0x51e840
mov ecx, 0x14
mov dword [ebp - 0x10], 0x44abd0
jmp 0x51e05c
lea eax, [ebp - 0x218]
push eax
call fcn.0044bca0
add esp, 4
test eax, eax
jle 0x51e690
mov eax, 0x30
mov dword [ebp - 0x30], 0x51e7c0
mov dword [ebp - 0x10], 0x44bce0
mov ecx, 0x10
mov dword [ebp - 0x48], eax
mov byte [ebp - 1], 0
jmp 0x51e061
lea eax, [ebp - 0x218]
push eax
call fcn.0044b040
add esp, 4
test eax, eax
jle 0x51e690
mov dword [ebp - 0x30], 0x51e8e0
mov ecx, 0x20
mov dword [ebp - 0x10], 0x44b0a0
jmp 0x51e05c
sub eax, 0x2a1
je 0x51e023
sub eax, 1
je 0x51e008
sub eax, 1
je 0x51dfdc
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x51dfba
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.00457cb0
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.0044acf0
add esp, 4
test eax, eax
jle 0x51e690
mov dword [ebp - 0x30], 0x51e8e0
mov ecx, 0x1c
mov dword [ebp - 0x10], 0x44b0a0
jmp 0x51e05c
lea eax, [ebp - 0x218]
push eax
call fcn.004d3d20
add esp, 4
test eax, eax
jle 0x51e690
mov ecx, edi
jmp 0x51e03f
lea eax, [ebp - 0x218]
push eax
call fcn.004d3320
add esp, 4
test eax, eax
jle 0x51e690
mov ecx, 0x30
mov edi, 0x80
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x4d3dd0
mov dword [ebp - 0x30], 0x51e9d0
mov eax, 0x28
cmp byte [ebx + 0x2c], 0
mov esi, 0xd
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x3c], esi
je 0x51e086
mov esi, dword [ebx + 0x28]
add esi, 0xb
mov dword [ebp - 0x28], 2
add esi, eax
mov dword [ebp - 0x3c], esi
jmp 0x51e096
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 0x51e0fb
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 0x51e1f7
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0053daa0
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x51e159
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.00457cb0
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.0053dc00
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 0x51e180
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 0x51e246
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0053daa0
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 0x51e273
push dword [ebp - 8]
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0053daa0
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 0x51e399
cmp byte [ebx + 0x2c], 0
je 0x51e320
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jbe 0x51e690
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.0053dc00
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.0053dc00
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 0x51e399
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 0x51e308
jmp 0x51e396
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.0053dc00
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 0x51e399
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 0x51e380
mov edi, dword [ebp - 0x24]
push 0x40
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.0053daa0
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 0x51e606
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 0x51e477
mov eax, dword [ebx + 0x14]
mov al, byte [edi + eax]
jmp 0x51e484
add eax, dword [ebx + 0x20]
cmp edi, eax
jae 0x51e487
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 0x51e4eb
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 0x51e464
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 0x51e5d5
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 0x51e550
cmp eax, edx
jae 0x51e5f6
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 0x51e5e0
mov edx, dword [ebp - 0x40]
inc edx
mov dword [ebp - 0x40], edx
cmp edx, dword [ebp - 0x6c]
jbe 0x51e400
call fcn.004613c0
mov esi, eax
test esi, esi
je 0x51e687
push 0
push dword [ebx + 8]
call fcn.0044cc60
add esp, 4
push eax
push esi
call fcn.00460ed0
add esp, 0xc
test eax, eax
jle 0x51e687
cmp byte [ebx + 0x2c], 0
je 0x51e69b
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x130]
push edi
push 0x5c
push eax
call fcn.0053daa0
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push esi
call fcn.00461070
add esp, 0x18
test eax, eax
jle 0x51e687
push edi
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00461070
add esp, 0xc
test eax, eax
jle 0x51e687
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.00461070
add esp, 0xc
test eax, eax
jg 0x51e747
push esi
call fcn.004613a0
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 0x51e6b0
push eax
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.00461070
add esp, 0xc
test eax, eax
jle 0x51e687
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.00461070
add esp, 0xc
test eax, eax
jle 0x51e687
lea eax, [ebp - 0x70]
push eax
push dword [ebx + 0xc]
push esi
call fcn.00460d70
add esp, 0xc
test eax, eax
je 0x51e767
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x51e767
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
push esi
call fcn.004613a0
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret