Function at 0x5dfc40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x3c
call fcn.005f62e0
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
push edi
push ebp
mov dword [esp + 0x40], 0
mov dword [esp + 0x24], 0
call fcn.0047fb60
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.004cb840
add esp, 8
test eax, eax
jne 0x5dfcad
push esi
call fcn.004c17b0
push ebp
call fcn.004dc810
push ebp
call fcn.00523c30
add esp, 0xc
mov dword [esp + 0x14], ebx
xor esi, esi
jmp 0x5dfd54
push eax
call fcn.004deb80
add eax, 7
cdq
and edx, 7
push esi
lea ebx, [edx + eax]
sar ebx, 3
call fcn.004c17b0
push ebp
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x20], edi
call fcn.004dc810
push ebp
mov dword [esp + 0x48], eax
call fcn.00523c30
add esp, 0x10
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x5dfd52
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x5dfd52
mov eax, dword [esp + 0x64]
push dword [eax]
push 0xff
push dword [esp + 0x68]
call fcn.005f77b0
push 0x6a8e00
push dword [esp + 0x6c]
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.00514580
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x10], edi
test edi, edi
jne 0x5dfdd0
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push edi
push 0x64
push 0x35
call fcn.004c24b0
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x64]
push dword [eax]
push 0
push dword [esp + 0x68]
call fcn.005f77b0
add esp, 0xc
push 0x195
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x1c]
call fcn.004c09d0
push 0x196
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x30]
call fcn.004c09d0
push 0x197
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.004c09d0
push dword [esp + 0x4c]
call fcn.00521b50
push dword [esp + 0x48]
call fcn.00540b00
push 0x6a8e00
push edi
call fcn.005141f0
push esi
call fcn.004e3ab0
mov eax, dword [esp + 0x74]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov ecx, dword [edi + 8]
cmp dword [ecx], ebp
je 0x5dfdf9
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x139
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0x68
jmp 0x5dfd48
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x48], ecx
mov edi, dword [eax]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x44], edi
cmp dword [eax], edi
jae 0x5dfe41
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x141
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0x6b
push 0x35
call fcn.004c24b0
mov edi, dword [esp + 0x28]
jmp 0x5dfd4f
push dword [esp + 0x38]
call fcn.00540ce0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x5dfe85
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x147
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0x80003
push 0x35
call fcn.004c24b0
mov edi, dword [esp + 0x28]
jmp 0x5dfd4f
push eax
call fcn.00540d80
push dword [esp + 0x24]
call fcn.00540b90
push dword [esp + 0x28]
mov dword [esp + 0x3c], eax
call fcn.00540b90
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
jne 0x5dfebd
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x150
jmp 0x5dfe64
push 0x154
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.004c0bd0
push 0x155
mov dword [esp + 0x24], eax
lea eax, [ebx + ebx]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.004c0bd0
push 0x156
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x40], eax
call fcn.004c0bd0
add esp, 0x24
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], esi
je 0x5e035c
cmp dword [esp + 0x1c], esi
je 0x5e035c
test eax, eax
je 0x5e035c
push dword [esp + 0x24]
call fcn.00521fc0
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x5dff6b
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x15d
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0x80010
push 0x35
call fcn.004c24b0
mov edi, dword [esp + 0x28]
add esp, 0x18
mov ebx, dword [esp + 0x18]
jmp 0x5dfd54
mov eax, dword [esp + 0x10]
push dword [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x34]
call fcn.00522110
add esp, 0x14
test eax, eax
je 0x5e0348
push dword [esp + 0x20]
push dword [esp + 0x54]
call fcn.004c16d0
add esp, 4
push eax
mov eax, dword [esp + 0x30]
push eax
push 0
push eax
push dword [esp + 0x38]
call fcn.00521e70
add esp, 0x18
test eax, eax
je 0x5e0348
push dword [esp + 0x20]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.00521b80
add esp, 0x14
test eax, eax
je 0x5e0348
push ebx
push dword [esp + 0x20]
push dword [esp + 0x38]
call fcn.004de530
add esp, 0xc
test eax, eax
js 0x5e0323
mov eax, dword [esp + 0x1c]
add eax, ebx
push ebx
push eax
push dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.004de530
add esp, 0xc
test eax, eax
js 0x5e0323
push dword [esp + 0x40]
lea eax, [ebx + ebx]
push dword [esp + 0x3c]
push dword [esp + 0x5c]
push 0
push 0
push eax
push dword [esp + 0x34]
push edi
push dword [esp + 0x34]
call fcn.00526440
add esp, 0x24
test eax, eax
je 0x5e0323
push edi
push dword [esp + 0x18]
call fcn.005dfb00
add esp, 8
test eax, eax
je 0x5e0077
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x173
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0x68
jmp 0x5dff54
xor edx, edx
mov dword [esp + 0x24], ebx
test edi, edi
je 0x5e01f6
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
cmp edi, 8
jb 0x5e01d5
mov ecx, dword [esp + 0x60]
lea eax, [esi - 1]
dec ecx
add eax, edi
add ecx, edi
cmp dword [esp + 0x60], eax
ja 0x5e00b4
mov dword [esp + 0x24], ebx
cmp ecx, esi
jae 0x5e01d5
lea eax, [ebp - 1]
add eax, edi
cmp dword [esp + 0x60], eax
ja 0x5e00cb
mov dword [esp + 0x24], ebx
cmp ecx, ebp
jae 0x5e01d5
cmp edi, 0x40
jb 0x5e0183
mov eax, edi
and eax, 0x8000003f
jns 0x5e00e2
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x60]
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
add eax, 0x10
mov ebx, dword [esp + 0x40]
mov ecx, ebp
sub ecx, dword [esp + 0x14]
lea esi, [edi + 0x20]
sub edi, dword [esp + 0x14]
mov dword [esp + 0x38], edi
mov edi, ebp
sub edi, dword [esp + 0x60]
mov dword [esp + 0x34], edi
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x38]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + ebp]
lea esi, [esi + 0x40]
xorps xmm1, xmm0
movups xmmword [esi - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [esp + 0x34]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + esi - 0x40]
mov edi, dword [esp + 0x44]
xorps xmm1, xmm0
movups xmmword [esi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add edx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [esi - 0x30], xmm1
cmp edx, ebx
jne 0x5e0120
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x5e01cd
jmp 0x5e018b
mov ecx, ebp
mov dword [esp + 0x24], ebx
sub ecx, esi
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x5e0199
dec eax
or eax, 0xfffffff8
inc eax
mov ebx, dword [esp + 0x60]
mov esi, edi
sub esi, eax
mov eax, dword [esp + 0x14]
add eax, edx
sub ebx, dword [esp + 0x14]
nop dword [eax + eax]
movq xmm1, qword [ecx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [ebx + eax - 8], xmm1
cmp edx, esi
jne 0x5e01b0
cmp edx, edi
je 0x5e01f6
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x60]
lea ecx, [edx + esi]
sub ebp, esi
sub ebx, esi
mov esi, edi
sub esi, edx
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x5e01e4
call fcn.004e3b40
mov esi, eax
test esi, esi
jne 0x5e0225
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x17c
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push esi
push 0x80006
jmp 0x5dff54
push dword [esp + 0x54]
push esi
call fcn.004e34e0
add esp, 8
test eax, eax
je 0x5e02ec
mov ebx, dword [esp + 0x24]
push ebx
push dword [esp + 0x20]
push esi
call fcn.004e3540
add esp, 0xc
test eax, eax
je 0x5e02ec
push edi
push dword [esp + 0x64]
push esi
call fcn.004e3540
add esp, 0xc
test eax, eax
je 0x5e02ec
push ebx
push dword [esp + 0x34]
push esi
call fcn.004e3540
mov ebx, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x5e02f0
push 0
push ebx
push esi
call fcn.004e3120
add esp, 0xc
test eax, eax
je 0x5e02f0
push dword [esp + 0x2c]
push dword [esp + 0x4c]
push ebx
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x5e02d5
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x18a
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0x66
push 0x35
call fcn.004c24b0
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x5dfd54
mov eax, dword [esp + 0x64]
mov dword [esp + 0x3c], 1
mov dword [eax], edi
mov edi, dword [esp + 0x10]
jmp 0x5dfd68
mov ebx, dword [esp + 0x18]
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x185
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0x80006
push 0x35
call fcn.004c24b0
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x5dfd54
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x16e
push str.crypto_sm2_sm2_crypt.c
call fcn.004c23a0
push 0
push 0xc0103
jmp 0x5dff54
call fcn.004c22a0
push str.ossl_sm2_decrypt
push 0x166
jmp 0x5dff43
mov edi, dword [esp + 0x10]
mov ebx, eax
jmp 0x5dfd54