Function at 0x101be8a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.101ebae0
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], 0
call fcn.10017640
mov ebp, eax
mov dword [esp + 0x24], 0
push ebp
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 0
call fcn.101be7b0
push dword [esp + 0x5c]
mov edi, eax
mov dword [esp + 0x30], edi
call fcn.10017bd0
push ebx
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x24], 0
call fcn.10046420
push ebx
mov dword [esp + 0x4c], eax
call fcn.10046410
add esp, 0x14
mov dword [esp + 0x40], eax
test edi, edi
je 0x101be985
mov ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x101be985
mov eax, dword [esp + 0x64]
push dword [eax]
push 0xff
push dword [esp + 0x68]
call fcn.101eec70
push 0x10277fa0
push dword [esp + 0x6c]
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.1008fbd0
add esp, 0x1c
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x101bea06
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push esi
push 0x64
push 0x35
call fcn.10027670
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x64]
push dword [eax]
push 0
push dword [esp + 0x68]
call fcn.101eec70
add esp, 0xc
push 0x18b
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x1c]
call fcn.1002a880
push 0x18c
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x2c]
call fcn.1002a880
push 0x18d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.1002a880
push dword [esp + 0x44]
call fcn.10044b10
push dword [esp + 0x44]
call fcn.100a4500
push 0x10277fa0
push dword [esp + 0x5c]
call fcn.1008f840
push esi
call fcn.10024f40
mov eax, dword [esp + 0x74]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [eax + 8]
cmp dword [ecx], ebx
je 0x101bea2f
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x68
jmp 0x101be97b
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x48], ecx
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], edi
cmp dword [eax], edi
jae 0x101bea6c
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x13c
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x6b
jmp 0x101be97b
push dword [esp + 0x38]
call fcn.100a46e0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x101beaa5
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x142
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x80003
jmp 0x101be97b
push eax
call fcn.100a4780
push dword [esp + 0x20]
call fcn.100a4590
push dword [esp + 0x24]
mov dword [esp + 0x3c], eax
call fcn.100a4590
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
jne 0x101beadd
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x14b
jmp 0x101bea8f
push 0x14f
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.1002aa80
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
push 0x150
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.1002aa80
push 0x151
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x48]
mov dword [esp + 0x3c], eax
call fcn.1002aa80
add esp, 0x24
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], esi
je 0x101bef34
cmp dword [esp + 0x18], esi
je 0x101bef34
test eax, eax
je 0x101bef34
push ebp
call fcn.10044f70
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x101beb87
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x158
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x80010
push 0x35
call fcn.10027670
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x101be987
mov eax, dword [esp + 0x2c]
push dword [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
push ecx
push ebp
call fcn.100450c0
add esp, 0x14
test eax, eax
je 0x101bef20
push dword [esp + 0x1c]
push dword [esp + 0x54]
call fcn.10016080
add esp, 4
push eax
mov eax, dword [esp + 0x28]
push eax
push 0
push eax
push ebp
call fcn.10044e30
add esp, 0x18
test eax, eax
je 0x101bef20
push dword [esp + 0x1c]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x2c]
push ebp
call fcn.10044b40
add esp, 0x14
test eax, eax
je 0x101bef20
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x38]
call fcn.10039720
add esp, 0xc
test eax, eax
js 0x101beeed
mov eax, dword [esp + 0x18]
add eax, ebp
push ebp
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.10039720
add esp, 0xc
test eax, eax
js 0x101beeed
push dword [esp + 0x40]
lea eax, [ebp*2]
mov ebp, dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x5c]
push 0
push 0
push eax
push dword [esp + 0x30]
push edi
push ebp
call fcn.100c6df0
add esp, 0x24
test eax, eax
je 0x101beeed
xor edx, edx
test edi, edi
je 0x101bedc2
mov esi, dword [esp + 0x60]
cmp edi, 8
jb 0x101bed99
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x101bec8d
cmp ecx, ebp
jae 0x101bed99
lea eax, [ebx - 1]
add eax, edi
cmp esi, eax
ja 0x101bec9e
cmp ecx, ebx
jae 0x101bed99
cmp edi, 0x40
jb 0x101bed48
mov eax, edi
and eax, 0x8000003f
jns 0x101becb5
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, dword [esp + 0x60]
mov esi, edi
mov edi, ebx
sub esi, eax
sub edi, ebp
lea eax, [ebp + 0x10]
mov dword [esp + 0x40], edi
add ecx, 0x20
mov edi, dword [esp + 0x60]
sub edi, ebp
mov ebp, ebx
sub ebp, dword [esp + 0x60]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x38], edi
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x38]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + ebx]
lea ecx, [ecx + 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [esp + 0x34]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx + edi - 0x40]
mov edi, dword [esp + 0x44]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edx + 0x30]
add edx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp edx, esi
jne 0x101bece3
mov ebp, dword [esp + 0x14]
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x101bed91
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x101bed56
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, edi
mov esi, ebx
sub ecx, eax
sub esi, ebp
lea eax, [edx + ebp]
mov ebp, dword [esp + 0x60]
sub ebp, dword [esp + 0x14]
nop dword [eax]
movq xmm1, qword [eax + esi]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax + ebp - 8], xmm1
cmp edx, ecx
jne 0x101bed70
mov ebp, dword [esp + 0x14]
cmp edx, edi
je 0x101bedc2
mov esi, dword [esp + 0x60]
sub ebx, ebp
lea ecx, [edx + ebp]
mov ebp, esi
mov esi, edi
sub ebp, dword [esp + 0x14]
sub esi, edx
nop dword [eax + eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub esi, 1
jne 0x101bedb0
call fcn.10024fd0
mov esi, eax
test esi, esi
jne 0x101bedff
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x172
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push esi
push 0x80006
push 0x35
call fcn.10027670
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x101be987
push dword [esp + 0x54]
push esi
call fcn.10024790
add esp, 8
test eax, eax
je 0x101beeba
mov ebx, dword [esp + 0x24]
push ebx
push dword [esp + 0x1c]
push esi
call fcn.100247f0
add esp, 0xc
test eax, eax
je 0x101beeba
push edi
push dword [esp + 0x64]
push esi
call fcn.100247f0
add esp, 0xc
test eax, eax
je 0x101beeba
push ebx
push dword [esp + 0x34]
push esi
call fcn.100247f0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x101beebe
push 0
push ebx
push esi
call fcn.100243d0
add esp, 0xc
test eax, eax
je 0x101beebe
push dword [esp + 0x28]
push dword [esp + 0x4c]
push ebx
call fcn.10089b30
add esp, 0xc
test eax, eax
je 0x101beea7
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x180
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x66
push 0x35
call fcn.10027670
add esp, 0x18
jmp 0x101be987
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], 1
mov dword [eax], edi
jmp 0x101be99b
mov ebx, dword [esp + 0x10]
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x17b
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0x80006
push 0x35
call fcn.10027670
add esp, 0x18
jmp 0x101be987
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x169
push str.crypto_sm2_sm2_crypt.c
call fcn.10027560
push 0
push 0xc0103
push 0x35
call fcn.10027670
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x101be987
call fcn.10027460
push str.ossl_sm2_decrypt
push 0x161
jmp 0x101beb63
mov ebx, eax
jmp 0x101be987