Function at 0x5978b0
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 - 8], 8
mov esi, 0x28
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x48], esi
mov byte [ebp - 1], 1
jb 0x597909
push 0xa9
push str.........prog3rdPartyLibsopenssl_1.1_ssl_s3_cbc.c
push str.assertion_failed:_data_plus_mac_plus_padding_size___1024__1024
call fcn.005af0a0
add esp, 0xc
push dword [ebx + 8]
call fcn.004ff7a0
push eax
call fcn.00493890
add esp, 8
cmp eax, 0x2a0
jg 0x5979e5
je 0x5979af
cmp eax, 4
je 0x59796f
cmp eax, 0x40
jne 0x5979fa
lea eax, [ebp - 0x218]
push eax
call fcn.005a58b0
add esp, 4
test eax, eax
jle 0x5980d0
mov dword [ebp - 0x2c], 0x598290
mov ecx, 8
mov dword [ebp - 0x10], 0x5aee40
mov dword [ebp - 0x18], 0x14
jmp 0x597ab8
lea eax, [ebp - 0x218]
push eax
call fcn.0050d590
add esp, 4
test eax, eax
jle 0x5980d0
mov esi, 0x30
mov dword [ebp - 0x2c], 0x598210
mov dword [ebp - 0x10], 0x50d5d0
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 0x48], esi
mov byte [ebp - 1], 0
lea ecx, [esi - 0x28]
jmp 0x597ab8
lea eax, [ebp - 0x218]
push eax
call fcn.005af800
add esp, 4
test eax, eax
jle 0x5980d0
mov dword [ebp - 0x2c], 0x598330
mov ecx, 8
mov dword [ebp - 0x10], 0x5af860
mov dword [ebp - 0x18], 0x20
jmp 0x597ab8
sub eax, 0x2a1
je 0x597a7c
sub eax, 1
je 0x597a60
sub eax, 1
je 0x597a2d
push 0xe7
push str.........prog3rdPartyLibsopenssl_1.1_ssl_s3_cbc.c
push str.assertion_failed:_0
call fcn.005af0a0
mov eax, dword [ebx + 0x10]
add esp, 0xc
test eax, eax
je 0x5980d0
mov dword [eax], 0
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.005af4b0
add esp, 4
test eax, eax
jle 0x5980d0
mov dword [ebp - 0x2c], 0x598330
mov ecx, 8
mov dword [ebp - 0x10], 0x5af860
mov dword [ebp - 0x18], 0x1c
jmp 0x597ab8
lea eax, [ebp - 0x218]
push eax
call fcn.005aff40
add esp, 4
test eax, eax
jle 0x5980d0
mov dword [ebp - 0x18], edi
jmp 0x597a9a
lea eax, [ebp - 0x218]
push eax
call fcn.005af980
add esp, 4
test eax, eax
jle 0x5980d0
mov dword [ebp - 0x18], 0x30
mov ecx, 0x10
mov dword [ebp - 0x10], 0x5afff0
mov edi, 0x80
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], 0x598420
cmp byte [ebx + 0x2c], 0
mov edx, 0xd
mov dword [ebp - 0x3c], edx
je 0x597ad1
mov edx, dword [ebx + 0x28]
add edx, 0xb
add edx, esi
mov dword [ebp - 0x3c], edx
xor eax, eax
mov esi, edx
cmp byte [ebx + 0x2c], al
sete al
sub esi, dword [ebp - 0x18]
xor edx, edx
lea eax, [eax*4 + 2]
mov dword [ebp - 0x38], eax
lea eax, [esi + ecx]
mov ecx, dword [ebx + 0x20]
add eax, edi
dec ecx
add eax, ecx
xor ecx, ecx
div edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 0x28], edi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
div esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x44], edx
xor edx, edx
div esi
cmp byte [ebx + 0x2c], cl
mov edx, dword [ebp - 0x38]
setne cl
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x34]
add ecx, edx
mov dword [ebp - 0xc], ecx
cmp eax, ecx
mov ecx, eax
jbe 0x597b46
sub ecx, edx
mov edi, ecx
imul edi, esi
mov dword [ebp - 0x28], edi
jmp 0x597b48
sub ecx, edx
cmp dword [ebp - 0xc], eax
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
shl eax, 3
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x20], eax
jne 0x597c34
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.005d6d60
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x597ba1
push 0x14f
push str.........prog3rdPartyLibsopenssl_1.1_ssl_s3_cbc.c
push str.assertion_failed:_mac_secret_length___sizeof_hmac_pad_
call fcn.005af0a0
mov eax, dword [ebx + 0x28]
add esp, 0xc
push eax
push dword [ebx + 0x24]
lea eax, [ebp - 0x130]
push eax
call fcn.005d67e0
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj_s_04d__02d__02d]
add esp, 0xc
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x130]
movaps xmm1, xmm2
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x130], xmm0
movups xmm0, xmmword [ebp + eax - 0x120]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x120], xmm1
movups xmm0, xmmword [ebp + eax - 0x110]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x110], xmm1
movups xmm0, xmmword [ebp + eax - 0x100]
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x100], xmm0
add eax, 0x40
cmp eax, esi
jb 0x597bc0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
add esp, 8
mov ecx, eax
shr ecx, 0x18
mov dword [ebp - 0x1c], ecx
mov ecx, eax
shr ecx, 0x10
shr eax, 8
cmp byte [ebp - 1], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0xc], eax
je 0x597c83
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.005d6d60
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x5c], cl
mov ecx, dword [ebp - 0x30]
mov byte [ebp + eax - 0x5b], cl
mov ecx, dword [ebp - 0xc]
mov byte [ebp + eax - 0x5a], cl
mov ecx, dword [ebp - 0x20]
mov byte [ebp + eax - 0x59], cl
jmp 0x597cb0
push dword [ebp - 8]
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.005d6d60
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x5d], cl
mov ecx, dword [ebp - 0x30]
mov byte [ebp + eax - 0x5e], cl
mov ecx, dword [ebp - 0xc]
mov byte [ebp + eax - 0x5f], cl
mov ecx, dword [ebp - 0x20]
mov byte [ebp + eax - 0x60], cl
add esp, 0xc
test edi, edi
je 0x597dd9
cmp byte [ebx + 0x2c], 0
je 0x597d5d
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jbe 0x5980d0
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.005d67e0
mov eax, dword [ebp - 0x14]
sub eax, esi
push eax
push dword [ebx + 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x298]
add eax, esi
push eax
call fcn.005d67e0
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 0x597dd9
mov edi, dword [ebp - 0x34]
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 0x597d45
jmp 0x597dd6
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.005d67e0
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 0x597dd9
mov edi, dword [ebx + 0x18]
add edi, 0xfffffff3
add edi, esi
dec eax
mov dword [ebp - 0xc], eax
nop dword [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 0x597dc0
mov edi, dword [ebp - 0x28]
push 0x40
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.005d6d60
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov edx, dword [ebp - 0x40]
add eax, edx
mov dword [ebp - 0x6c], eax
cmp edx, eax
ja 0x598046
mov ecx, dword [ebp - 0x44]
mov eax, ecx
shr eax, 0x1f
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x20], esi
lea eax, [ecx + 1]
mov dword [ebp - 0x28], ecx
neg dword [ebp - 0x28]
shr eax, 0x1f
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
sub dword [ebp - 0x20], 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 - 0xc], edx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [ebp - 0x34], ecx
movd xmm0, eax
mov al, cl
not al
punpcklbw xmm0, xmm0
mov byte [ebp - 0x22], al
or al, dl
mov edx, dword [ebp - 0x28]
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x44]
movaps xmmword [ebp - 0x140], xmm0
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 1], 0
cmp edi, eax
jae 0x597eb7
mov eax, dword [ebx + 0x14]
mov al, byte [edi + eax]
jmp 0x597ec4
add eax, dword [ebx + 0x20]
cmp edi, eax
jae 0x597ec7
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 - 0x30]
dec eax
xor dl, cl
shr eax, 0x1f
dec dl
xor al, byte [ebp - 0x38]
and dl, byte [ebp - 0xc]
mov dword [ebp - 8], eax
mov al, cl
xor al, byte [ebp - 0x38]
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 - 0xc]
or al, dl
not cl
and cl, al
and cl, byte [ebp - 0x21]
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 0x20]
jb 0x597f2b
mov edx, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x22]
mov al, byte [ebp - 0x34]
and cl, byte [ebp - 8]
and al, byte [edx]
or cl, al
mov edx, dword [ebp - 0x30]
inc esi
mov eax, dword [ebp - 0x68]
inc dword [ebp - 0x1c]
mov byte [eax + edx], cl
inc edx
mov dword [ebp - 0x30], edx
cmp esi, dword [ebp - 0x14]
jb 0x597ea4
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 - 0x2c]
mov edx, dword [ebp - 0x18]
add esp, 0x10
xor eax, eax
cmp edx, 0x40
jb 0x598015
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 0x597f90
cmp eax, edx
jae 0x598036
nop dword [eax]
mov cl, byte [ebp + eax - 0x318]
and cl, byte [ebp - 0x34]
or byte [ebp + eax - 0xb0], cl
inc eax
cmp eax, edx
jb 0x598020
mov edx, dword [ebp - 0x40]
inc edx
mov dword [ebp - 0x40], edx
cmp edx, dword [ebp - 0x6c]
jbe 0x597e40
call fcn.004fb500
mov esi, eax
test esi, esi
je 0x5980c7
push 0
push dword [ebx + 8]
call fcn.004ff7a0
add esp, 4
push eax
push esi
call fcn.004fb010
add esp, 0xc
test eax, eax
jle 0x5980c7
cmp byte [ebx + 0x2c], 0
je 0x5980db
mov edi, dword [ebp - 0x48]
lea eax, [ebp - 0x130]
push edi
push 0x5c
push eax
call fcn.005d6d60
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push esi
call fcn.004fb1c0
add esp, 0x18
test eax, eax
jle 0x5980c7
push edi
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.004fb1c0
add esp, 0xc
test eax, eax
jle 0x5980c7
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.004fb1c0
add esp, 0xc
test eax, eax
jg 0x598187
push esi
call fcn.004fb4e0
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm2, xmmword [0x607e20]
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 0x5980f0
push eax
lea eax, [ebp - 0x130]
push eax
push esi
call fcn.004fb1c0
add esp, 0xc
test eax, eax
jle 0x5980c7
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.004fb1c0
add esp, 0xc
test eax, eax
jle 0x5980c7
lea eax, [ebp - 0x70]
push eax
push dword [ebx + 0xc]
push esi
call fcn.004faef0
add esp, 0xc
test eax, eax
je 0x5981a7
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x5981a7
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
push esi
call fcn.004fb4e0
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret