Function at 0x5b1830
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x44
call fcn.0045cf80
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.004a05f0
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
call fcn.005b1740
push dword [esp + 0x64]
mov edi, eax
mov dword [esp + 0x2c], edi
call fcn.004aba00
push ebx
mov dword [esp + 0x3c], eax
xor ebp, ebp
xor esi, esi
call fcn.004c15d0
push ebx
mov dword [esp + 0x50], eax
call fcn.004c15c0
add esp, 0x14
mov dword [esp + 0x44], eax
test edi, edi
je 0x5b1911
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jle 0x5b1911
mov eax, dword [esp + 0x6c]
push dword [eax]
push 0xff
push dword [esp + 0x70]
call fcn.005bbf50
push 0x660088
push dword [esp + 0x74]
lea eax, [esp + 0x74]
push eax
push esi
call fcn.0050ee90
add esp, 0x1c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x5b198f
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push esi
push 0x64
push 0x35
call fcn.004ae040
add esp, 0x18
xor edi, edi
mov eax, dword [esp + 0x6c]
push dword [eax]
push 0
push dword [esp + 0x70]
call fcn.005bbf50
add esp, 0xc
push 0x18d
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.004a6ed0
push 0x18e
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x28]
call fcn.004a6ed0
push 0x18f
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.004a6ed0
push dword [esp + 0x48]
call fcn.004bfcd0
push dword [esp + 0x40]
call fcn.004ffbd0
push 0x660088
push dword [esp + 0x60]
call fcn.0050eb00
push esi
call fcn.004bb540
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 0x5b19b8
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x68
jmp 0x5b1907
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x50], ecx
mov ebx, dword [eax]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x4c], ebx
cmp dword [eax], ebx
jae 0x5b19f5
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x13c
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x6b
jmp 0x5b1907
push dword [esp + 0x3c]
call fcn.004ffde0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5b1a2e
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x142
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0xc0100
jmp 0x5b1907
push eax
call fcn.004ffeb0
push dword [esp + 0x1c]
call fcn.004ffc60
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
call fcn.004ffc60
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x5b1a7a
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x14b
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x80003
jmp 0x5b1907
push 0x14f
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.004a7130
mov ebp, eax
mov eax, dword [esp + 0x2c]
push 0x150
add eax, eax
mov dword [esp + 0x38], ebp
push str.crypto_sm2_sm2_crypt.c
push eax
mov dword [esp + 0x60], eax
call fcn.004a7130
push 0x151
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x38], eax
call fcn.004a7130
add esp, 0x24
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x5b1e89
cmp dword [esp + 0x14], esi
je 0x5b1e89
test eax, eax
je 0x5b1e89
push dword [esp + 0x1c]
call fcn.004c0130
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x5b1b2b
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x15a
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0xc0100
push 0x35
call fcn.004ae040
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x5b1913
mov eax, dword [esp + 0x30]
push dword [esp + 0x18]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x2c]
call fcn.004c02b0
add esp, 0x14
test eax, eax
je 0x5b1e56
push dword [esp + 0x18]
push dword [esp + 0x5c]
call fcn.0049bc70
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push eax
push dword [esp + 0x30]
call fcn.004bfff0
add esp, 0x18
test eax, eax
je 0x5b1e56
push dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.004bfd00
add esp, 0x14
test eax, eax
je 0x5b1e56
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.004a73e0
add esp, 0xc
test eax, eax
js 0x5b1e23
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.004a73e0
add esp, 0xc
test eax, eax
js 0x5b1e23
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 ebx
push ebp
call fcn.004e1a30
add esp, 0x24
test eax, eax
je 0x5b1e23
xor esi, esi
test ebx, ebx
je 0x5b1d16
mov edx, dword [esp + 0x68]
cmp ebx, 0x40
jb 0x5b1ce9
lea eax, [ebp - 1]
lea ecx, [edx - 1]
add eax, ebx
add ecx, ebx
cmp edx, eax
ja 0x5b1c35
cmp ecx, ebp
jae 0x5b1ce9
lea eax, [edi - 1]
add eax, ebx
cmp edx, eax
ja 0x5b1c46
cmp ecx, edi
jae 0x5b1ce9
mov eax, ebx
and eax, 0x8000003f
jns 0x5b1c54
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, ebx
mov dword [esp + 0x1c], edx
sub dword [esp + 0x1c], ebp
sub ecx, eax
lea eax, [ebp + 0x10]
mov dword [esp + 0x44], ecx
mov ebx, edi
lea ecx, [edx + 0x20]
sub ebx, ebp
mov ebp, edi
sub ebp, edx
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x1c]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edx, dword [esp + 0x48]
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + edi]
lea ecx, [ecx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [ecx - 0x60], xmm1
movups xmm1, xmmword [ebx + 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 + edi + 0x30]
add esi, 0x40
mov edx, esi
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
cmp esi, dword [esp + 0x44]
jne 0x5b1c80
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x28]
cmp edx, ebx
je 0x5b1d16
mov edx, dword [esp + 0x68]
sub edi, ebp
lea ecx, [esi + ebp]
mov ebp, edx
mov edx, ebx
sub ebp, dword [esp + 0x28]
sub edx, esi
nop dword [eax + eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebp - 1], al
sub edx, 1
jne 0x5b1d00
mov ebp, dword [esp + 0x28]
call fcn.004bb5d0
mov esi, eax
test esi, esi
jne 0x5b1d35
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x174
jmp 0x5b1b07
push dword [esp + 0x5c]
push esi
call fcn.004baf90
add esp, 8
test eax, eax
je 0x5b1df0
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x18]
push esi
call fcn.004baff0
add esp, 0xc
test eax, eax
je 0x5b1df0
push ebx
push dword [esp + 0x6c]
push esi
call fcn.004baff0
add esp, 0xc
test eax, eax
je 0x5b1df0
push edi
push dword [esp + 0x38]
push esi
call fcn.004baff0
mov edi, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x5b1df4
push 0
push edi
push esi
call fcn.004bacb0
add esp, 0xc
test eax, eax
je 0x5b1df4
push dword [esp + 0x2c]
push dword [esp + 0x54]
push edi
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x5b1ddd
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x182
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x66
push 0x35
call fcn.004ae040
add esp, 0x18
jmp 0x5b1913
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], 1
mov dword [eax], ebx
jmp 0x5b1927
mov edi, dword [esp + 0x10]
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x17d
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x80006
push 0x35
call fcn.004ae040
add esp, 0x18
jmp 0x5b1913
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x16b
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0xc0103
push 0x35
call fcn.004ae040
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x5b1913
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x163
push str.crypto_sm2_sm2_crypt.c
call fcn.004adf90
push 0
push 0x80010
push 0x35
call fcn.004ae040
mov edi, dword [esp + 0x28]
add esp, 0x18
jmp 0x5b1913
call fcn.004ade90
push str.ossl_sm2_decrypt
push 0x154
jmp 0x5b1b07