Function at 0x6f2550
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.0053e710
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x54]
push edi
push ebp
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
call fcn.0054a4d0
xor edi, edi
mov dword [esp + 0x28], eax
push eax
mov dword [esp + 0x30], 0
xor ebx, ebx
mov dword [esp + 0x24], edi
call fcn.0054b0a0
add esp, 8
test eax, eax
jne 0x6f25bd
push esi
call fcn.00559780
push ebp
call fcn.00555020
push ebp
call fcn.005c1ec0
add esp, 0xc
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x6f2664
push eax
call fcn.005a2830
add eax, 7
cdq
and edx, 7
push esi
lea ebx, [edx + eax]
sar ebx, 3
call fcn.00559780
push ebp
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x24], edi
call fcn.00555020
push ebp
mov dword [esp + 0x48], eax
call fcn.005c1ec0
add esp, 0x10
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x6f2662
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x6f2662
mov eax, dword [esp + 0x68]
push dword [eax]
push 0xff
push dword [esp + 0x6c]
call fcn.006fba50
push 0x78cc38
push dword [esp + 0x70]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.00594ab0
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x10], edi
test edi, edi
jne 0x6f26e0
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x122
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push edi
push 0x64
push 0x35
call fcn.0054cea0
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x68]
push dword [eax]
push 0
push dword [esp + 0x6c]
call fcn.006fba50
add esp, 0xc
push 0x17e
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x20]
call fcn.0054c6e0
push 0x17f
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.0054c6e0
push 0x180
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.0054c6e0
push dword [esp + 0x4c]
call fcn.005c0190
push dword [esp + 0x48]
call fcn.006098d0
push 0x78cc38
push edi
call fcn.00594600
push esi
call fcn.0055de20
mov eax, dword [esp + 0x74]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [edi + 8]
cmp dword [ecx], ebp
je 0x6f2709
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x127
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push 0
push 0x68
jmp 0x6f2658
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x4c], ecx
mov edi, dword [eax]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], edi
cmp dword [eax], edi
jae 0x6f2751
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push 0
push 0x6b
push 0x35
call fcn.0054cea0
mov edi, dword [esp + 0x28]
jmp 0x6f265f
push dword [esp + 0x38]
call fcn.00609820
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x6f2795
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x135
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push 0
push 0x80003
push 0x35
call fcn.0054cea0
mov edi, dword [esp + 0x28]
jmp 0x6f265f
push eax
call fcn.00609960
push dword [esp + 0x24]
call fcn.00609a40
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
call fcn.00609a40
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
jne 0x6f27cd
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x13e
jmp 0x6f2774
push 0x142
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.0054c7a0
push 0x143
mov dword [esp + 0x28], eax
lea eax, [ebx + ebx]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.0054c7a0
push 0x144
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x40], eax
call fcn.0054c7a0
add esp, 0x24
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], esi
je 0x6f2c3c
cmp dword [esp + 0x1c], esi
je 0x6f2c3c
test eax, eax
je 0x6f2c3c
push dword [esp + 0x24]
call fcn.005c00d0
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x6f287b
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x14b
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push 0
push 0x80010
push 0x35
call fcn.0054cea0
mov edi, dword [esp + 0x28]
add esp, 0x18
mov ebx, dword [esp + 0x14]
jmp 0x6f2664
mov eax, dword [esp + 0x10]
push dword [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x34]
call fcn.005c0410
add esp, 0x14
test eax, eax
je 0x6f2c28
push dword [esp + 0x20]
push dword [esp + 0x58]
call fcn.00545180
add esp, 4
push eax
mov eax, dword [esp + 0x30]
push eax
push 0
push eax
push dword [esp + 0x38]
call fcn.005c0a90
add esp, 0x18
test eax, eax
je 0x6f2c28
push dword [esp + 0x20]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.005c0570
add esp, 0x14
test eax, eax
je 0x6f2c28
push ebx
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.005a2b80
add esp, 0xc
test eax, eax
js 0x6f2c03
mov eax, dword [esp + 0x1c]
add eax, ebx
push ebx
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x54], eax
call fcn.005a2b80
add esp, 0xc
test eax, eax
js 0x6f2c03
push dword [esp + 0x40]
lea eax, [ebx + ebx]
push dword [esp + 0x3c]
push dword [esp + 0x60]
push 0
push 0
push eax
push dword [esp + 0x34]
push edi
push dword [esp + 0x38]
call fcn.0067b500
add esp, 0x24
test eax, eax
je 0x6f2c03
xor edx, edx
mov dword [esp + 0x24], ebx
test edi, edi
je 0x6f2ad6
mov dword [esp + 0x24], ebx
cmp edi, 8
jb 0x6f2ab1
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
dec ecx
add ecx, edi
lea eax, [esi - 1]
add eax, edi
cmp dword [esp + 0x64], eax
ja 0x6f2991
mov dword [esp + 0x24], ebx
cmp ecx, esi
jae 0x6f2ab1
lea eax, [ebp - 1]
add eax, edi
cmp dword [esp + 0x64], eax
ja 0x6f29a8
mov dword [esp + 0x24], ebx
cmp ecx, ebp
jae 0x6f2ab1
cmp edi, 0x40
jb 0x6f2a67
mov eax, edi
and eax, 0x8000003f
jns 0x6f29bf
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
mov dword [esp + 0x24], ebx
sub ecx, eax
mov edi, ebp
sub edi, esi
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x64]
lea eax, [esi + 0x10]
mov ebx, dword [esp + 0x40]
add ecx, 0x20
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x64]
sub edi, esi
mov esi, ebp
sub esi, dword [esp + 0x64]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], edi
nop dword [eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x34]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + ebp]
lea ecx, [ecx + 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [esp + 0x30]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + ecx - 0x40]
mov edi, dword [esp + 0x44]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add edx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp edx, ebx
jne 0x6f2a00
mov esi, dword [esp + 0x18]
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x6f2aad
jmp 0x6f2a6b
mov dword [esp + 0x24], ebx
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x6f2a79
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [esp + 0x64]
mov ecx, edi
sub ecx, eax
lea eax, [edx + esi]
mov esi, ebp
sub esi, dword [esp + 0x18]
sub ebx, dword [esp + 0x18]
nop
movq xmm1, qword [esi + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [ebx + eax - 8], xmm1
cmp edx, ecx
jne 0x6f2a90
cmp edx, edi
je 0x6f2ad6
mov eax, dword [esp + 0x18]
mov esi, edi
mov ebx, dword [esp + 0x64]
sub ebp, eax
sub ebx, eax
sub esi, edx
lea ecx, [edx + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x6f2ac4
call fcn.0055ddf0
mov esi, eax
test esi, esi
jne 0x6f2b05
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x165
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push esi
push 0x80006
jmp 0x6f2864
push dword [esp + 0x58]
push esi
call fcn.0055e800
add esp, 8
test eax, eax
je 0x6f2bcc
mov ebx, dword [esp + 0x24]
push ebx
push dword [esp + 0x20]
push esi
call fcn.0055e2e0
add esp, 0xc
test eax, eax
je 0x6f2bcc
push edi
push dword [esp + 0x68]
push esi
call fcn.0055e2e0
add esp, 0xc
test eax, eax
je 0x6f2bcc
push ebx
push dword [esp + 0x4c]
push esi
call fcn.0055e2e0
mov ebx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x6f2bd0
push 0
push ebx
push esi
call fcn.0055e820
add esp, 0xc
test eax, eax
je 0x6f2bd0
push dword [esp + 0x2c]
push dword [esp + 0x50]
push ebx
call fcn.004e6590
add esp, 0xc
test eax, eax
je 0x6f2bb5
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x173
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push 0
push 0x66
push 0x35
call fcn.0054cea0
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x6f2664
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], 1
mov dword [eax], edi
mov edi, dword [esp + 0x10]
jmp 0x6f2678
mov ebx, dword [esp + 0x14]
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x16e
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push 0
push 0x80006
push 0x35
call fcn.0054cea0
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x6f2664
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x15c
push str.crypto_sm2_sm2_crypt.c
call fcn.0054cd90
push 0
push 0xc0103
jmp 0x6f2864
call fcn.0054cc90
push str.ossl_sm2_decrypt
push 0x154
jmp 0x6f2853
mov edi, dword [esp + 0x10]
mov ebx, eax
jmp 0x6f2664