Function at 0x577ee0
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, 0x358
mov eax, dword [0x6ce488]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x20], 0x100000
mov eax, dword [ebx + 8]
mov dword [ebp - 0x308], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x320], eax
mov eax, dword [ebx + 0x14]
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebx + 0x18]
push edi
mov dword [ebp - 0x2e0], eax
mov edi, 0x40
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x300], 0x28
mov dword [ebp - 0x2b8], 8
mov byte [ebp - 0x2b1], 1
jb 0x577f84
push str.data_plus_mac_plus_padding_size___1024__1024
push 0x1c7
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.00514f00
add esp, 0xc
push dword [ebp - 0x308]
call fcn.004f8b40
push eax
call fcn.004f2420
add esp, 8
cmp eax, 0x2a0
jg 0x578084
je 0x578045
cmp eax, 4
je 0x577ff6
cmp eax, 0x40
jne 0x578099
lea eax, [ebp - 0x2b0]
push eax
call fcn.0051a0a0
add esp, 4
test eax, eax
jle 0x5788eb
mov dword [ebp - 0x2dc], 0x578cd0
mov edx, 8
mov dword [ebp - 0x2bc], 0x51a0f0
mov dword [ebp - 0x2c8], 0x14
jmp 0x578169
lea eax, [ebp - 0x2b0]
push eax
call fcn.0050eed0
add esp, 4
test eax, eax
jle 0x5788eb
mov esi, 0x30
mov dword [ebp - 0x2dc], 0x578c50
mov dword [ebp - 0x2bc], 0x50ef10
mov dword [ebp - 0x2c8], 0x10
mov dword [ebp - 0x300], esi
mov byte [ebp - 0x2b1], 0
lea edx, [esi - 0x28]
jmp 0x57816e
lea eax, [ebp - 0x2b0]
push eax
call fcn.0051b8f0
add esp, 4
test eax, eax
jle 0x5788eb
mov dword [ebp - 0x2dc], 0x578d70
mov edx, 8
mov dword [ebp - 0x2bc], 0x51b950
mov dword [ebp - 0x2c8], 0x20
jmp 0x578169
sub eax, 0x2a1
je 0x57811e
sub eax, 1
je 0x5780ff
sub eax, 1
je 0x5780c3
push 0x63abb0
push 0x209
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.00514f00
add esp, 0xc
test esi, esi
je 0x5788eb
mov dword [esi], 0
jmp 0x5788eb
lea eax, [ebp - 0x2b0]
push eax
call fcn.0051b5b0
add esp, 4
test eax, eax
jle 0x5788eb
mov dword [ebp - 0x2dc], 0x578d70
mov edx, 8
mov dword [ebp - 0x2bc], 0x51b950
mov dword [ebp - 0x2c8], 0x1c
jmp 0x578169
lea eax, [ebp - 0x2b0]
push eax
call fcn.0051cf40
add esp, 4
test eax, eax
jle 0x5788eb
mov dword [ebp - 0x2c8], edi
jmp 0x57813f
lea eax, [ebp - 0x2b0]
push eax
call fcn.0051c9b0
add esp, 4
test eax, eax
jle 0x5788eb
mov dword [ebp - 0x2c8], 0x30
mov edx, 0x10
mov dword [ebp - 0x2bc], 0x51cff0
mov edi, 0x80
mov dword [ebp - 0x2b8], edx
mov dword [ebp - 0x2e4], edi
mov dword [ebp - 0x2dc], 0x578e60
mov esi, 0x28
cmp byte [ebx + 0x2c], 0
mov eax, 0xd
mov dword [ebp - 0x2fc], eax
je 0x57818d
mov eax, dword [ebx + 0x28]
add eax, 0xb
add eax, esi
mov dword [ebp - 0x2fc], eax
xor ecx, ecx
mov esi, eax
cmp byte [ebx + 0x2c], cl
sete cl
sub esi, dword [ebp - 0x2c8]
lea ecx, [ecx*4 + 2]
lea eax, [esi + edx]
mov dword [ebp - 0x2d8], ecx
mov ecx, dword [ebx + 0x20]
add eax, edi
dec ecx
xor edx, edx
add eax, ecx
xor ecx, ecx
div edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x2f4], eax
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 0x2d4], edi
mov esi, dword [ebp - 0x2e4]
mov dword [ebp - 0x2cc], eax
div esi
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x2cc]
add eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x2f8], edx
xor edx, edx
div esi
cmp byte [ebx + 0x2c], cl
mov edx, dword [ebp - 0x2d8]
setne cl
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x2f4]
add edx, ecx
mov ecx, eax
sub ecx, dword [ebp - 0x2d8]
cmp edx, eax
jae 0x57822d
mov edi, ecx
imul edi, esi
cmp edx, eax
mov dword [ebp - 0x2d4], edi
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2cc]
shl eax, 3
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x2c0], eax
jne 0x57832d
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.005feb40
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x57828f
push str.mac_secret_length___sizeof_hmac_pad_
push 0x271
push str.g:copenssl_1.0.2e_ssl_s3_cbc.c
call fcn.00514f00
mov eax, dword [ebx + 0x28]
add esp, 0xc
push eax
push dword [ebp - 0x304]
lea eax, [ebp - 0xd8]
push eax
call fcn.005fe040
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_]
add esp, 0xc
xor eax, eax
nop
movups xmm0, xmmword [ebp + eax - 0xd8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xd8], xmm1
movups xmm0, xmmword [ebp + eax - 0xc8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xc8], xmm1
movups xmm0, xmmword [ebp + eax - 0xb8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xb8], xmm0
movups xmm0, xmmword [ebp + eax - 0xa8]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xa8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x5782b0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2c0]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [ebp - 0x2cc], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [ebp - 0x2b1], 0
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x2c4], eax
je 0x57839a
mov eax, dword [ebp - 0x2b8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.005feb40
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2cc]
mov byte [ebp + eax - 0x18], cl
mov ecx, dword [ebp - 0x2e8]
mov byte [ebp + eax - 0x17], cl
mov ecx, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0x16], cl
mov ecx, dword [ebp - 0x2c0]
mov byte [ebp + eax - 0x15], cl
jmp 0x5783d9
push dword [ebp - 0x2b8]
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.005feb40
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [ebp - 0x2cc]
mov byte [ebp + eax - 0x19], cl
mov ecx, dword [ebp - 0x2e8]
mov byte [ebp + eax - 0x1a], cl
mov ecx, dword [ebp - 0x2c4]
mov byte [ebp + eax - 0x1b], cl
mov ecx, dword [ebp - 0x2c0]
mov byte [ebp + eax - 0x1c], cl
add esp, 0xc
test edi, edi
je 0x578542
cmp byte [ebx + 0x2c], 0
je 0x5784b1
mov eax, dword [ebp - 0x2fc]
cmp eax, esi
jbe 0x5788eb
push dword [ebp - 0x2ec]
sub eax, esi
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
mov eax, dword [ebp - 0x2ec]
add eax, esi
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.005fe040
mov eax, esi
sub eax, dword [ebp - 0x2c0]
push eax
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x1d8]
add eax, dword [ebp - 0x2c0]
push eax
call fcn.005fe040
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
xor edx, edx
mov eax, edi
div esi
add esp, 0x28
dec eax
cmp eax, 1
jbe 0x578542
mov edi, dword [ebp - 0x2e0]
sub edi, dword [ebp - 0x2c0]
add edi, esi
dec eax
mov dword [ebp - 0x2c4], eax
nop
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2bc]
add esp, 8
add edi, esi
sub dword [ebp - 0x2c4], 1
jne 0x578490
jmp 0x57853c
mov ecx, dword [ebp - 0x2ec]
mov eax, dword [ecx + 8]
movq xmm0, qword [ecx]
mov dword [ebp - 0x1d0], eax
mov al, byte [ecx + 0xc]
mov byte [ebp - 0x1cc], al
lea eax, [esi - 0xd]
push eax
push dword [ebp - 0x2e0]
lea eax, [ebp - 0x1cb]
movq qword [ebp - 0x1d8], xmm0
push eax
call fcn.005fe040
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x578542
lea edi, [esi - 0xd]
add edi, dword [ebp - 0x2e0]
dec eax
mov dword [ebp - 0x2c4], eax
nop dword [eax]
lea eax, [ebp - 0x2b0]
push edi
push eax
call dword [ebp - 0x2bc]
add esp, 8
add edi, esi
sub dword [ebp - 0x2c4], 1
jne 0x578520
mov edi, dword [ebp - 0x2d4]
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.005feb40
mov eax, dword [ebp - 0x2d8]
add esp, 0xc
mov edx, dword [ebp - 0x2f0]
add eax, edx
mov dword [ebp - 0x31c], eax
cmp edx, eax
ja 0x578838
mov ecx, dword [ebp - 0x2f8]
mov eax, ecx
shr eax, 0x1f
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x2d4], esi
lea eax, [ecx + 1]
mov dword [ebp - 0x2d8], ecx
neg dword [ebp - 0x2d8]
shr eax, 0x1f
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp - 0x2b8]
sub dword [ebp - 0x2d4], eax
sub eax, esi
lea eax, [ebp + eax - 0x14]
mov dword [ebp - 0x2f8], eax
lea eax, [ebp - 0x158]
add eax, ecx
mov dword [ebp - 0x318], eax
mov eax, edx
xor esi, esi
xor eax, dword [ebp - 0x30c]
lea edx, [eax - 1]
not eax
shr eax, 0x1f
shr edx, 0x1f
and dl, al
mov eax, dword [ebp - 0x2f0]
xor eax, dword [ebp - 0x310]
neg dl
mov dword [ebp - 0x2e8], edx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [ebp - 0x2f4], ecx
movd xmm0, eax
mov al, cl
not al
punpcklbw xmm0, xmm0
mov byte [ebp - 0x2ce], al
or al, dl
mov edx, dword [ebp - 0x2d8]
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov byte [ebp - 0x2cd], al
mov eax, dword [ebp - 0x2f8]
movaps xmmword [ebp - 0x350], xmm0
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2cc], eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0x2fc]
mov byte [ebp - 0x2b1], 0
cmp edi, ecx
jae 0x578669
mov eax, dword [ebp - 0x2ec]
jmp 0x57867a
mov eax, dword [ebx + 0x20]
add eax, ecx
cmp edi, eax
jae 0x578683
mov eax, dword [ebp - 0x2e0]
sub eax, ecx
mov al, byte [eax + edi]
mov byte [ebp - 0x2b1], al
mov eax, dword [ebp - 0x314]
mov ecx, esi
shr ecx, 0x1f
inc edi
shr edx, 0x1f
xor dl, al
xor al, cl
or dl, al
mov eax, dword [ebp - 0x2c0]
dec eax
xor dl, cl
shr eax, 0x1f
dec dl
xor al, byte [ebp - 0x2c4]
and dl, byte [ebp - 0x2e8]
mov dword [ebp - 0x2b8], eax
mov al, byte [ebp - 0x2c4]
xor al, cl
or byte [ebp - 0x2b8], al
mov al, dl
xor byte [ebp - 0x2b8], cl
not al
mov ecx, dword [ebp - 0x2b8]
and dl, 0x80
and al, byte [ebp - 0x2b1]
dec cl
and cl, byte [ebp - 0x2e8]
or al, dl
not cl
and cl, al
and cl, byte [ebp - 0x2cd]
mov dword [ebp - 0x2b8], ecx
cmp esi, dword [ebp - 0x2d4]
jb 0x57871d
mov eax, dword [ebp - 0x2cc]
mov cl, byte [ebp - 0x2f4]
and cl, byte [eax]
mov al, byte [ebp - 0x2ce]
and al, byte [ebp - 0x2b8]
or cl, al
mov edx, dword [ebp - 0x2c0]
inc esi
mov eax, dword [ebp - 0x318]
inc dword [ebp - 0x2cc]
mov byte [eax + edx], cl
inc edx
mov dword [ebp - 0x2c0], edx
cmp esi, dword [ebp - 0x2e4]
jb 0x578650
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2bc]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x2b0]
push eax
call dword [ebp - 0x2dc]
mov edx, dword [ebp - 0x2c8]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x5787ff
movaps xmm2, xmmword [ebp - 0x350]
mov ecx, edx
and ecx, 0xffffffc0
nop
movups xmm0, xmmword [ebp + eax - 0x58]
movups xmm1, xmmword [ebp + eax - 0x158]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x58], xmm1
movups xmm0, xmmword [ebp + eax - 0x48]
movups xmm1, xmmword [ebp + eax - 0x148]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x48], xmm1
movups xmm0, xmmword [ebp + eax - 0x38]
movups xmm1, xmmword [ebp + eax - 0x138]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x38], xmm1
movups xmm1, xmmword [ebp + eax - 0x128]
movups xmm0, xmmword [ebp + eax - 0x28]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0x28], xmm1
add eax, 0x40
cmp eax, ecx
jb 0x578790
cmp eax, edx
jae 0x578819
mov cl, byte [ebp + eax - 0x158]
and cl, byte [ebp - 0x2f4]
or byte [ebp + eax - 0x58], cl
inc eax
cmp eax, edx
jb 0x578803
mov edx, dword [ebp - 0x2f0]
inc edx
mov dword [ebp - 0x2f0], edx
cmp edx, dword [ebp - 0x31c]
jbe 0x5785c3
mov esi, dword [ebp - 0x2e4]
lea eax, [ebp - 0x340]
push eax
call fcn.004f5660
mov eax, dword [ebp - 0x308]
push 0
push dword [eax]
lea eax, [ebp - 0x340]
push eax
call fcn.004f5110
add esp, 0x10
test eax, eax
jle 0x5788dc
cmp byte [ebx + 0x2c], 0
je 0x578900
mov esi, dword [ebp - 0x300]
lea eax, [ebp - 0xd8]
push esi
push 0x5c
push eax
call fcn.005feb40
push dword [ebx + 0x28]
lea eax, [ebp - 0x340]
push dword [ebp - 0x304]
push eax
call fcn.004f52b0
add esp, 0x18
test eax, eax
jle 0x5788dc
push esi
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.004f52b0
add esp, 0xc
test eax, eax
jle 0x5788dc
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.004f52b0
add esp, 0xc
test eax, eax
jg 0x5789b0
lea eax, [ebp - 0x340]
push eax
call fcn.004f52c0
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c358e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm2, xmmword [0x66e4d0]
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0xd8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xd8], xmm1
movups xmm0, xmmword [ebp + eax - 0xc8]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xc8], xmm1
movups xmm0, xmmword [ebp + eax - 0xb8]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0xb8], xmm0
movups xmm0, xmmword [ebp + eax - 0xa8]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0xa8], xmm1
add eax, 0x40
cmp eax, esi
jb 0x578910
push esi
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.004f52b0
add esp, 0xc
test eax, eax
jle 0x5788dc
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.004f52b0
add esp, 0xc
test eax, eax
jle 0x5788dc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0x320]
lea eax, [ebp - 0x340]
push eax
call fcn.004f5030
mov ecx, dword [ebp - 0x324]
add esp, 0xc
test ecx, ecx
je 0x5789de
mov eax, dword [ebp - 0x328]
mov dword [ecx], eax
lea eax, [ebp - 0x340]
push eax
call fcn.004f52c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
call fcn.005c358e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret