Function at 0x57ebc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x44
call fcn.0059cab0
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], 0
call fcn.00471760
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
call fcn.0057ea40
push dword [esp + 0x64]
mov edi, eax
mov dword [esp + 0x2c], edi
call fcn.00494cd0
push ebx
mov dword [esp + 0x3c], eax
xor ebp, ebp
xor esi, esi
call fcn.004a2290
push ebx
mov dword [esp + 0x50], eax
call fcn.004a2280
add esp, 0x14
mov dword [esp + 0x44], eax
test edi, edi
je 0x57eca1
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x57eca1
mov eax, dword [esp + 0x6c]
push dword [eax]
push 0xff
push dword [esp + 0x70]
call fcn.0059e1f0
push 0x636970
push dword [esp + 0x74]
lea eax, [esp + 0x74]
push eax
push esi
call fcn.004c7ea0
add esp, 0x1c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x57ed1f
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x141
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push esi
push 0x64
push 0x35
call fcn.00476f10
add esp, 0x18
xor ebx, ebx
mov eax, dword [esp + 0x6c]
push dword [eax]
push 0
push dword [esp + 0x70]
call fcn.0059e1f0
add esp, 0xc
push 0x1a4
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.00476aa0
push 0x1a5
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x28]
call fcn.00476aa0
push 0x1a6
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.00476aa0
push dword [esp + 0x48]
call fcn.00472ae0
push dword [esp + 0x40]
call fcn.00474c30
push 0x636970
push dword [esp + 0x60]
call fcn.004c7b10
push esi
call fcn.00477ae0
mov eax, dword [esp + 0x78]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ecx, dword [eax + 8]
cmp dword [ecx], ebx
je 0x57ed48
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x146
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0x68
jmp 0x57ec97
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x50], ecx
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], edi
cmp dword [eax], edi
jae 0x57ed85
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x14e
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0x6b
jmp 0x57ec97
push dword [esp + 0x3c]
call fcn.00474e40
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x57edbe
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x154
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0xc0100
jmp 0x57ec97
push eax
call fcn.00474f10
push dword [esp + 0x1c]
call fcn.00474cc0
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
call fcn.00474cc0
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x57ee0a
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x15d
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0x80003
jmp 0x57ec97
push 0x161
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.00476d00
mov ebp, eax
mov eax, dword [esp + 0x2c]
push 0x162
add eax, eax
mov dword [esp + 0x38], ebp
push str.crypto_sm2_sm2_crypt.c
push eax
mov dword [esp + 0x60], eax
call fcn.00476d00
push 0x163
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x38], eax
call fcn.00476d00
add esp, 0x24
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x57f259
cmp dword [esp + 0x14], esi
je 0x57f259
test eax, eax
je 0x57f259
push dword [esp + 0x1c]
call fcn.00472f40
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x57eebb
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x16c
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0xc0100
push 0x35
call fcn.00476f10
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x57eca3
mov eax, dword [esp + 0x30]
push dword [esp + 0x18]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x2c]
call fcn.004730c0
add esp, 0x14
test eax, eax
je 0x57f226
push dword [esp + 0x18]
push dword [esp + 0x5c]
call fcn.00471790
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push eax
push dword [esp + 0x30]
call fcn.00472e00
add esp, 0x18
test eax, eax
je 0x57f226
push dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.00472b10
add esp, 0x14
test eax, eax
je 0x57f226
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.0046f550
add esp, 0xc
test eax, eax
js 0x57f1f3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add ecx, eax
push eax
push ecx
push dword [esp + 0x40]
mov dword [esp + 0x40], ecx
call fcn.0046f550
add esp, 0xc
test eax, eax
js 0x57f1f3
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x64]
push 0
push 0
push dword [esp + 0x5c]
push dword [esp + 0x2c]
push edi
push ebp
call fcn.004e5430
add esp, 0x24
test eax, eax
je 0x57f1f3
push edi
push ebp
call fcn.0057eab0
add esp, 8
test eax, eax
je 0x57efd6
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x182
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0x68
push 0x35
call fcn.00476f10
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x57eca3
xor esi, esi
test edi, edi
je 0x57f0e6
mov edx, dword [esp + 0x68]
cmp edi, 0x40
jb 0x57f0b9
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, edi
cmp edx, eax
ja 0x57f003
cmp ecx, ebp
jae 0x57f0b9
lea eax, [ebx - 1]
add eax, edi
cmp edx, eax
ja 0x57f014
cmp ecx, ebx
jae 0x57f0b9
mov eax, edi
and eax, 0x8000003f
jns 0x57f022
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
mov dword [esp + 0x1c], edx
sub dword [esp + 0x1c], ebp
sub ecx, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x44], ecx
mov edi, ebx
lea ecx, [edx + 0x20]
sub edi, ebp
mov ebp, ebx
sub ebp, edx
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x1c]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edx, dword [esp + 0x48]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + ebx]
lea ecx, [ecx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ecx - 0x60], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm1, xmmword [edx + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [esi + ebx + 0x30]
add esi, 0x40
mov edx, esi
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp esi, dword [esp + 0x44]
jne 0x57f050
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x28]
cmp edx, edi
je 0x57f0e6
mov edx, dword [esp + 0x68]
sub ebx, ebp
lea ecx, [esi + ebp]
mov ebp, edx
mov edx, edi
sub ebp, dword [esp + 0x28]
sub edx, esi
nop dword [eax + eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub edx, 1
jne 0x57f0d0
mov ebp, dword [esp + 0x28]
call fcn.00477b70
mov esi, eax
test esi, esi
jne 0x57f105
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x18b
jmp 0x57ee97
push dword [esp + 0x5c]
push esi
call fcn.00477530
add esp, 8
test eax, eax
je 0x57f1c0
mov ebx, dword [esp + 0x20]
push ebx
push dword [esp + 0x18]
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x57f1c0
push edi
push dword [esp + 0x6c]
push esi
call fcn.00477590
add esp, 0xc
test eax, eax
je 0x57f1c0
push ebx
push dword [esp + 0x38]
push esi
call fcn.00477590
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x57f1c4
push 0
push ebx
push esi
call fcn.00477250
add esp, 0xc
test eax, eax
je 0x57f1c4
push dword [esp + 0x2c]
push dword [esp + 0x54]
push ebx
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x57f1ad
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x199
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0x66
push 0x35
call fcn.00476f10
add esp, 0x18
jmp 0x57eca3
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], 1
mov dword [eax], edi
jmp 0x57ecb7
mov ebx, dword [esp + 0x10]
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x194
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0x80006
push 0x35
call fcn.00476f10
add esp, 0x18
jmp 0x57eca3
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x17d
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0xc0103
push 0x35
call fcn.00476f10
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x57eca3
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x175
push str.crypto_sm2_sm2_crypt.c
call fcn.00476e60
push 0
push 0x80010
push 0x35
call fcn.00476f10
mov ebx, dword [esp + 0x28]
add esp, 0x18
jmp 0x57eca3
call fcn.00476d60
push str.ossl_sm2_decrypt
push 0x166
jmp 0x57ee97