Function at 0x58c8f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40
call fcn.0059eec0
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x24], 0
call fcn.0045ff70
push eax
mov dword [esp + 0x2c], eax
xor ebp, ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
call fcn.0058c770
push dword [esp + 0x60]
mov edi, eax
mov dword [esp + 0x28], edi
call fcn.00480a60
push ebx
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x28], ebp
call fcn.0045fdf0
push ebx
mov dword [esp + 0x50], eax
call fcn.00475da0
add esp, 0x14
mov dword [esp + 0x44], eax
test edi, edi
je 0x58c9cd
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x58c9cd
mov eax, dword [esp + 0x68]
push dword [eax]
push 0xff
push dword [esp + 0x6c]
call fcn.005b6630
push 0x6543c8
push dword [esp + 0x70]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.004b1d10
add esp, 0x1c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x58ca4b
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x141
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push esi
push 0x64
push 0x35
call fcn.00471e60
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x68]
push dword [eax]
push 0
push dword [esp + 0x6c]
call fcn.005b6630
add esp, 0xc
push 0x1a2
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x20]
call fcn.0046d600
push 0x1a3
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.0046d600
push 0x1a4
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.0046d600
push dword [esp + 0x4c]
call fcn.00497b10
push dword [esp + 0x48]
call fcn.00486c30
push 0x6543c8
push dword [esp + 0x60]
call fcn.004b1960
push esi
call fcn.00492570
mov eax, dword [esp + 0x78]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [eax + 8]
cmp dword [ecx], ebx
je 0x58ca74
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x146
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0x68
jmp 0x58c9c3
mov eax, dword [eax + 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 + 0x48], edi
cmp dword [eax], edi
jae 0x58cabd
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x14e
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0x6b
push 0x35
call fcn.00471e60
add esp, 0x18
xor ebp, ebp
jmp 0x58c9cd
push dword [esp + 0x3c]
call fcn.00486e10
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x58cb04
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x154
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0x80003
push 0x35
call fcn.00471e60
add esp, 0x18
xor ebp, ebp
jmp 0x58c9cd
push ebx
call fcn.00486eb0
push ebx
call fcn.00486cc0
push ebx
mov dword [esp + 0x40], eax
call fcn.00486cc0
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x58cb36
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x15d
jmp 0x58cae2
push 0x161
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.0046d800
mov ecx, dword [esp + 0x28]
mov ebx, eax
push 0x162
push str.crypto_sm2_sm2_crypt.c
mov dword [esp + 0x2c], ebx
lea eax, [ecx + ecx]
push eax
call fcn.0046d800
push 0x163
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x34], eax
call fcn.0046d800
add esp, 0x24
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x58cfb9
cmp dword [esp + 0x10], esi
je 0x58cfb9
test eax, eax
je 0x58cfb9
push dword [esp + 0x24]
call fcn.00497f70
mov ecx, eax
add esp, 4
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x58cbe8
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x16a
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0x80010
push 0x35
call fcn.00471e60
mov ebp, dword [esp + 0x28]
add esp, 0x18
mov ebx, dword [esp + 0x14]
jmp 0x58c9cf
mov eax, dword [esp + 0x30]
push dword [esp + 0x20]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x34]
call fcn.004980c0
add esp, 0x14
test eax, eax
je 0x58cfa5
push dword [esp + 0x20]
push dword [esp + 0x58]
call fcn.0045ff30
add esp, 4
push eax
mov eax, dword [esp + 0x30]
push eax
push 0
push eax
push dword [esp + 0x38]
call fcn.00497e30
add esp, 0x18
test eax, eax
je 0x58cfa5
push dword [esp + 0x20]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.00497b40
add esp, 0x14
test eax, eax
je 0x58cfa5
push dword [esp + 0x1c]
push dword [esp + 0x14]
push dword [esp + 0x3c]
call fcn.00461f10
add esp, 0xc
test eax, eax
js 0x58cf80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
add ecx, eax
push ecx
push dword [esp + 0x40]
call fcn.00461f10
add esp, 0xc
test eax, eax
js 0x58cf80
push dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
push dword [esp + 0x40]
push dword [esp + 0x60]
lea eax, [ecx + ecx]
push 0
push 0
push eax
push dword [esp + 0x28]
push edi
push ebx
call fcn.004f85f0
add esp, 0x24
test eax, eax
je 0x58cf80
push edi
push ebx
call fcn.0058c7e0
add esp, 8
test eax, eax
je 0x58ccf5
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x180
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0x68
jmp 0x58cbd1
xor edx, edx
test edi, edi
je 0x58ce62
mov esi, dword [esp + 0x64]
cmp edi, 8
jb 0x58ce39
lea eax, [ebx - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, edi
cmp esi, eax
ja 0x58cd22
cmp ecx, ebx
jae 0x58ce39
lea eax, [ebp - 1]
add eax, edi
cmp esi, eax
ja 0x58cd33
cmp ecx, ebp
jae 0x58ce39
cmp edi, 0x40
jb 0x58cde5
mov eax, edi
and eax, 0x8000003f
jns 0x58cd4a
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, dword [esp + 0x64]
mov esi, edi
mov edi, ebp
sub esi, eax
sub edi, ebx
lea eax, [ebx + 0x10]
mov dword [esp + 0x44], edi
add ecx, 0x20
mov edi, dword [esp + 0x64]
sub edi, ebx
mov ebx, ebp
sub ebx, dword [esp + 0x64]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x3c], edi
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [esp + 0x3c]
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 [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [esp + 0x38]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx + edi - 0x40]
mov edi, dword [esp + 0x48]
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, esi
jne 0x58cd80
mov ebx, dword [esp + 0x18]
mov eax, edi
and al, 0x3f
cmp al, 8
jb 0x58ce31
mov eax, edi
and eax, reloc.WS2_32.dll_getsockopt
jns 0x58cdf3
dec eax
or eax, 0xfffffff8
inc eax
mov ecx, edi
mov esi, ebp
sub ecx, eax
sub esi, ebx
lea eax, [edx + ebx]
mov ebx, dword [esp + 0x64]
sub ebx, dword [esp + 0x18]
nop word [eax + eax]
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 0x58ce10
mov ebx, dword [esp + 0x18]
cmp edx, edi
je 0x58ce62
mov esi, dword [esp + 0x64]
sub ebp, ebx
lea ecx, [edx + ebx]
mov ebx, esi
mov esi, edi
sub ebx, dword [esp + 0x18]
sub esi, edx
nop dword [eax + 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 0x58ce50
call fcn.00492600
mov esi, eax
test esi, esi
jne 0x58ce91
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x189
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push esi
push 0x80006
jmp 0x58cbd1
push dword [esp + 0x58]
push esi
call fcn.00491f70
mov ebp, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x58cf4d
mov ebx, dword [esp + 0x1c]
push ebx
push ebp
push esi
call fcn.00491fd0
add esp, 0xc
test eax, eax
je 0x58cf4d
push edi
push dword [esp + 0x68]
push esi
call fcn.00491fd0
add esp, 0xc
test eax, eax
je 0x58cf4d
push ebx
lea eax, [ebx + ebp]
push eax
push esi
call fcn.00491fd0
mov ebx, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x58cf51
push 0
push ebx
push esi
call fcn.00491bb0
add esp, 0xc
test eax, eax
je 0x58cf51
push dword [esp + 0x2c]
push dword [esp + 0x50]
push ebx
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x58cf3a
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x197
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0x66
push 0x35
call fcn.00471e60
add esp, 0x18
jmp 0x58c9cf
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], 1
mov dword [eax], edi
jmp 0x58c9e3
mov ebx, dword [esp + 0x14]
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x192
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0x80006
push 0x35
call fcn.00471e60
add esp, 0x18
jmp 0x58c9cf
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x17b
push str.crypto_sm2_sm2_crypt.c
call fcn.00471d50
push 0
push 0xc0103
jmp 0x58cbd1
call fcn.00471c50
push str.ossl_sm2_decrypt
push 0x173
jmp 0x58cbc0
mov ebp, dword [esp + 0x10]
mov ebx, eax
jmp 0x58c9cf