Function at 0x4f3470
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 - 0x40], 0x28
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], 8
mov byte [ebp - 1], 1
jb 0x4f34c8
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.00478670
add esp, 0xc
push dword [ebx + 8]
call fcn.0048f810
push eax
call fcn.00490060
add esp, 8
cmp eax, 0x2a0
jg 0x4f3596
je 0x4f3564
cmp eax, 4
je 0x4f3526
cmp eax, 0x40
jne 0x4f35ab
lea eax, [ebp - 0x218]
push eax
call fcn.004c4a30
add esp, 4
test eax, eax
jle 0x4f3c13
mov ecx, 0x14
mov dword [ebp - 0x28], 0x4f3d90
mov dword [ebp - 0xc], 0x4c4a70
lea eax, [ecx - 0xc]
jmp 0x4f3662
lea eax, [ebp - 0x218]
push eax
call fcn.00475c50
add esp, 4
test eax, eax
jle 0x4f3c13
mov ecx, 0x10
mov dword [ebp - 0x28], 0x4f3d10
mov edx, 0x30
mov dword [ebp - 0xc], 0x4742c0
mov dword [ebp - 0x40], edx
mov byte [ebp - 1], 0
lea eax, [ecx - 8]
jmp 0x4f3667
lea eax, [ebp - 0x218]
push eax
call fcn.00465cf0
add esp, 4
test eax, eax
jle 0x4f3c13
mov ecx, 0x20
mov dword [ebp - 0x28], 0x4f3e30
mov dword [ebp - 0xc], 0x465d50
lea eax, [ecx - 0x18]
jmp 0x4f3662
sub eax, 0x2a1
je 0x4f3628
sub eax, 1
je 0x4f360d
sub eax, 1
je 0x4f35de
push 0xe7
push str.........prog3rdPartyLibsopenssl_1.1_ssl_s3_cbc.c
push str.assertion_failed:_0
call fcn.00478670
mov eax, dword [ebx + 0x10]
add esp, 0xc
test eax, eax
je 0x4f3c13
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.004659a0
add esp, 4
test eax, eax
jle 0x4f3c13
mov ecx, 0x1c
mov dword [ebp - 0x28], 0x4f3e30
mov dword [ebp - 0xc], 0x465d50
lea eax, [ecx - 0x14]
jmp 0x4f3662
lea eax, [ebp - 0x218]
push eax
call fcn.004c51d0
add esp, 4
test eax, eax
jle 0x4f3c13
mov ecx, edi
jmp 0x4f3644
lea eax, [ebp - 0x218]
push eax
call fcn.004c4b80
add esp, 4
test eax, eax
jle 0x4f3c13
mov ecx, 0x30
mov eax, 0x10
mov dword [ebp - 0xc], 0x4c5280
mov edi, 0x80
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], 0x4f3f20
mov edx, 0x28
cmp byte [ebx + 0x2c], 0
mov esi, 0xd
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x34], esi
je 0x4f3683
mov esi, dword [ebx + 0x28]
add esi, 0xb
add esi, edx
mov dword [ebp - 0x34], esi
xor edx, edx
mov dword [ebp - 0x30], 0
cmp byte [ebx + 0x2c], dl
sete dl
sub esi, ecx
mov ecx, dword [ebx + 0x20]
add eax, esi
add eax, edi
dec ecx
add eax, ecx
xor ecx, ecx
lea edx, [edx*4 + 2]
mov dword [ebp - 0x38], edx
xor edx, edx
div edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 0x24], edi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
div esi
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
mov dword [ebp - 0x3c], edx
xor edx, edx
div esi
cmp byte [ebx + 0x2c], cl
mov edx, dword [ebp - 0x38]
setne cl
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
add ecx, edx
cmp eax, ecx
jbe 0x4f36f7
sub eax, edx
mov edi, eax
mov dword [ebp - 0x30], eax
imul edi, esi
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x10]
shl eax, 3
cmp byte [ebx + 0x2c], 0
mov dword [ebp - 0x20], eax
jne 0x4f37b6
lea eax, [eax + esi*8]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.00584f50
mov eax, dword [ebx + 0x28]
add esp, 0xc
cmp eax, 0x80
jbe 0x4f3746
push 0x14f
push str.........prog3rdPartyLibsopenssl_1.1_ssl_s3_cbc.c
push str.assertion_failed:_mac_secret_length___sizeof_hmac_pad_
call fcn.00478670
mov eax, dword [ebx + 0x28]
add esp, 0xc
push eax
push dword [ebx + 0x24]
lea eax, [ebp - 0x140]
push eax
call fcn.005849d0
movaps xmm2, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj]
add esp, 0xc
xor eax, eax
nop dword [eax]
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x140]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x140], xmm1
movups xmm0, xmmword [ebp + eax - 0x130]
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x130], xmm0
add eax, 0x20
cmp eax, esi
jb 0x4f3770
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0xc]
add esp, 8
cmp byte [ebp - 1], 0
je 0x4f37f8
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00584f50
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + edx - 0x54], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + edx - 0x53], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx - 0x52], al
mov byte [ebp + edx - 0x51], cl
jmp 0x4f382e
push dword [ebp - 8]
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00584f50
mov ecx, dword [ebp - 0x20]
add esp, 0xc
mov edx, dword [ebp - 8]
mov eax, ecx
shr eax, 0x18
mov byte [ebp + edx - 0x55], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + edx - 0x56], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx - 0x57], al
mov byte [ebp + edx - 0x58], cl
test edi, edi
je 0x4f3950
cmp byte [ebx + 0x2c], 0
je 0x4f38d8
mov eax, dword [ebp - 0x34]
cmp eax, esi
jbe 0x4f3c13
push dword [ebx + 0x14]
mov esi, eax
lea eax, [ebp - 0x218]
sub esi, dword [ebp - 0x14]
push eax
call dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, dword [ebx + 0x14]
push esi
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.005849d0
mov eax, dword [ebp - 0x14]
sub eax, esi
push eax
push dword [ebx + 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x298]
add eax, esi
push eax
call fcn.005849d0
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0xc]
mov esi, dword [ebp - 0x14]
xor edx, edx
mov eax, edi
add esp, 0x28
div esi
lea ecx, [eax - 1]
cmp ecx, 1
jbe 0x4f3950
mov edi, dword [ebp - 0x2c]
lea eax, [ecx - 1]
add edi, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x218]
push edi
push eax
call dword [ebp - 0xc]
add esp, 8
add edi, esi
sub dword [ebp - 0x10], 1
jne 0x4f38c0
jmp 0x4f394d
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.005849d0
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0xc]
xor edx, edx
mov eax, edi
div esi
add esp, 0x14
cmp eax, 1
jbe 0x4f3950
mov edi, dword [ebx + 0x18]
add edi, 0xfffffff3
add edi, esi
dec eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x218]
push edi
push eax
call dword [ebp - 0xc]
add esp, 8
add edi, esi
sub dword [ebp - 0x10], 1
jne 0x4f3937
mov edi, dword [ebp - 0x24]
push 0x40
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.00584f50
mov eax, dword [ebp - 0x38]
add esp, 0xc
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x30], eax
ja 0x4f3b89
mov ecx, dword [ebp - 0x3c]
mov edx, esi
mov eax, ecx
shr eax, 0x1f
mov dword [ebp - 0x38], eax
lea eax, [ecx + 1]
shr eax, 0x1f
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0x64], edx
sub eax, esi
mov esi, dword [ebp - 0x30]
mov edx, ecx
neg edx
mov dword [ebp - 0x5c], edx
lea edx, [ebp - 0x50]
add eax, edx
mov edx, dword [ebp - 0x34]
sub dword [ebx + 0x18], edx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x318]
add eax, ecx
mov dword [ebp - 0x68], eax
mov eax, esi
xor eax, dword [ebp - 0x54]
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
mov eax, esi
xor eax, dword [ebp - 0x58]
neg cl
mov dword [ebp - 0x24], ecx
xor esi, esi
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movsx eax, cl
mov dword [ebp - 0x2c], ecx
not cl
or cl, byte [ebp - 0x24]
mov byte [ebp - 0x19], cl
mov ecx, dword [ebp - 0x5c]
movd xmm0, eax
mov eax, dword [ebp - 0x60]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], eax
mov byte [ebp - 1], 0
cmp edi, edx
jae 0x4f3a27
mov eax, dword [ebx + 0x14]
mov al, byte [edi + eax]
jmp 0x4f3a36
mov eax, dword [ebx + 0x20]
add eax, edx
cmp edi, eax
jae 0x4f3a39
mov eax, dword [ebx + 0x18]
mov al, byte [eax + edi]
mov byte [ebp - 1], al
shr ecx, 0x1f
mov edx, esi
xor cl, byte [ebp - 0x38]
inc edi
shr edx, 0x1f
mov al, dl
xor al, byte [ebp - 0x38]
or cl, al
mov eax, dword [ebp - 0x24]
xor cl, dl
movzx eax, al
dec cl
movzx ecx, cl
and ecx, eax
mov eax, dword [ebp - 0x20]
dec eax
shr eax, 0x1f
xor al, byte [ebp - 0x3c]
mov dword [ebp - 8], eax
mov al, dl
xor al, byte [ebp - 0x3c]
or byte [ebp - 8], al
mov al, cl
xor byte [ebp - 8], dl
not al
mov edx, dword [ebp - 8]
and cl, 0x80
and al, byte [ebp - 1]
dec dl
and dl, byte [ebp - 0x24]
or al, cl
not dl
and dl, al
and dl, byte [ebp - 0x19]
mov dword [ebp - 8], edx
cmp esi, dword [ebp - 0x64]
jb 0x4f3aac
mov eax, dword [ebp - 0x2c]
movzx ecx, al
mov eax, dword [ebp - 0x10]
mov dl, cl
not dl
and dl, byte [ebp - 8]
mov al, byte [eax]
and al, cl
or dl, al
mov ecx, dword [ebp - 0x20]
inc esi
mov eax, dword [ebp - 0x68]
inc dword [ebp - 0x10]
mov byte [eax + ecx], dl
inc ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
cmp esi, dword [ebp - 0x14]
jb 0x4f3a17
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0xc]
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
add esp, 0x10
xor eax, eax
cmp edx, 0x20
jb 0x4f3b57
movaps xmm2, xmmword [ebp - 0xc0]
mov ecx, edx
and ecx, 0xffffffe0
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 xmm1, xmmword [ebp + eax - 0x308]
movups xmm0, xmmword [ebp + eax - 0xa0]
pand xmm1, xmm2
por xmm1, xmm0
movups xmmword [ebp + eax - 0xa0], xmm1
add eax, 0x20
cmp eax, ecx
jb 0x4f3b10
cmp eax, edx
jae 0x4f3b76
nop dword [eax + eax]
mov cl, byte [ebp + eax - 0x318]
and cl, byte [ebp - 0x2c]
or byte [ebp + eax - 0xb0], cl
inc eax
cmp eax, edx
jb 0x4f3b60
mov esi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
inc esi
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x6c]
jbe 0x4f39b8
call fcn.004894b0
mov esi, eax
test esi, esi
je 0x4f3c0a
push 0
push dword [ebx + 8]
call fcn.0048f810
add esp, 4
push eax
push esi
call fcn.00489110
add esp, 0xc
test eax, eax
jle 0x4f3c0a
cmp byte [ebx + 0x2c], 0
je 0x4f3c1e
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x140]
push edi
push 0x5c
push eax
call fcn.00584f50
push dword [ebx + 0x28]
push dword [ebx + 0x24]
push esi
call fcn.004892c0
add esp, 0x18
test eax, eax
jle 0x4f3c0a
push edi
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004892c0
add esp, 0xc
test eax, eax
jle 0x4f3c0a
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.004892c0
add esp, 0xc
test eax, eax
jg 0x4f3c92
push esi
call fcn.00489490
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm2, xmmword [0x593ec0]
xor eax, eax
mov ecx, dword [ebp - 0x14]
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x140]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x140], xmm1
movups xmm0, xmmword [ebp + eax - 0x130]
pxor xmm0, xmm2
movups xmmword [ebp + eax - 0x130], xmm0
add eax, 0x20
cmp eax, ecx
jb 0x4f3c30
push ecx
lea eax, [ebp - 0x140]
push eax
push esi
call fcn.004892c0
add esp, 0xc
test eax, eax
jle 0x4f3c0a
push dword [ebp - 0x18]
lea eax, [ebp - 0xb0]
push eax
push esi
call fcn.004892c0
add esp, 0xc
test eax, eax
jle 0x4f3c0a
lea eax, [ebp - 0x70]
push eax
push dword [ebx + 0xc]
push esi
call fcn.00489040
add esp, 0xc
test eax, eax
je 0x4f3cb2
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4f3cb2
mov eax, dword [ebp - 0x70]
mov dword [ecx], eax
push esi
call fcn.00489490
add esp, 4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret