Function at 0x594d70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x48
call fcn.0047a3d0
push ebx
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
push ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], 0
call fcn.0047da40
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
call fcn.00594c80
push dword [esp + 0x68]
mov edi, eax
mov dword [esp + 0x2c], edi
call fcn.00494e50
push ebp
mov dword [esp + 0x3c], eax
xor ebx, ebx
xor esi, esi
call fcn.0049e740
push ebp
mov dword [esp + 0x50], eax
call fcn.0049e730
add esp, 0x14
mov dword [esp + 0x44], eax
test edi, edi
je 0x594e51
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x594e51
mov eax, dword [esp + 0x70]
push dword [eax]
push 0xff
push dword [esp + 0x74]
call fcn.0059f880
push 0x646dc8
push dword [esp + 0x78]
lea eax, [esp + 0x78]
push eax
push esi
call fcn.004bfd90
add esp, 0x1c
mov dword [esp + 0x30], eax
test eax, eax
jne 0x594ecf
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x12f
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push esi
push 0x64
push 0x35
call fcn.00486ec0
add esp, 0x18
xor ebp, ebp
mov eax, dword [esp + 0x70]
push dword [eax]
push 0
push dword [esp + 0x74]
call fcn.0059f880
add esp, 0xc
push 0x18d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.00486820
push 0x18e
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x28]
call fcn.00486820
push 0x18f
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.00486820
push dword [esp + 0x48]
call fcn.004a4bc0
push dword [esp + 0x40]
call fcn.0048acd0
push 0x646dc8
push dword [esp + 0x60]
call fcn.004bfa00
push esi
call fcn.0047ee60
mov eax, dword [esp + 0x78]
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov ecx, dword [eax + 8]
cmp dword [ecx], ebp
je 0x594ef8
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x134
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0x68
jmp 0x594e47
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x54], ecx
mov edi, dword [eax]
mov ebp, dword [eax + 8]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], edi
cmp dword [eax], edi
jae 0x594f39
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x13c
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0x6b
jmp 0x594e47
push dword [esp + 0x3c]
call fcn.0048aef0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x594f72
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x142
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0xc0100
jmp 0x594e47
push eax
call fcn.0048afc0
push dword [esp + 0x1c]
call fcn.0048ad60
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
call fcn.0048ad60
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x594fbe
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x14b
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0x80003
jmp 0x594e47
push 0x14f
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.00486a30
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 0x150
add eax, eax
mov dword [esp + 0x38], ebx
push str.crypto_sm2_sm2_crypt.c
push eax
mov dword [esp + 0x60], eax
call fcn.00486a30
push 0x151
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x38], eax
call fcn.00486a30
add esp, 0x24
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x5953d9
cmp dword [esp + 0x14], esi
je 0x5953d9
test eax, eax
je 0x5953d9
push dword [esp + 0x1c]
call fcn.004a5020
mov ecx, eax
add esp, 4
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x59506f
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x15a
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0xc0100
push 0x35
call fcn.00486ec0
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x594e53
mov eax, dword [esp + 0x30]
push dword [esp + 0x18]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [esp + 0x2c]
call fcn.004a51a0
add esp, 0x14
test eax, eax
je 0x5953a6
push dword [esp + 0x18]
push dword [esp + 0x60]
call fcn.0047b980
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push eax
push dword [esp + 0x30]
call fcn.004a4ee0
add esp, 0x18
test eax, eax
je 0x5953a6
push dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.004a4bf0
add esp, 0x14
test eax, eax
je 0x5953a6
push dword [esp + 0x20]
push dword [esp + 0x18]
push dword [esp + 0x3c]
call fcn.00489b70
add esp, 0xc
test eax, eax
js 0x595373
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add ecx, eax
push eax
push ecx
push dword [esp + 0x40]
mov dword [esp + 0x28], ecx
call fcn.00489b70
add esp, 0xc
test eax, eax
js 0x595373
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x68]
push 0
push 0
push dword [esp + 0x5c]
push dword [esp + 0x2c]
push edi
push ebx
call fcn.004f31c0
add esp, 0x24
test eax, eax
je 0x595373
xor esi, esi
test edi, edi
je 0x595266
mov edx, dword [esp + 0x6c]
cmp edi, 0x40
jb 0x595236
lea eax, [ebx - 1]
lea ecx, [edx - 1]
add eax, edi
add ecx, edi
cmp edx, eax
ja 0x595179
cmp ecx, ebx
jae 0x595236
lea eax, [ebp - 1]
add eax, edi
cmp edx, eax
ja 0x59518a
cmp ecx, ebp
jae 0x595236
mov eax, edi
and eax, 0x8000003f
jns 0x595198
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, edi
mov edi, dword [esp + 0x6c]
sub ecx, eax
sub edi, ebx
mov dword [esp + 0x34], ecx
mov eax, ebx
lea ecx, [edx + 0x10]
mov edx, ebp
sub edx, ebx
mov ebx, ebp
sub ebx, dword [esp + 0x6c]
mov dword [esp + 0x48], edx
lea edx, [ebp + 0x30]
mov dword [esp + 0x3c], ebx
mov ebx, edi
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x48]
nop
movups xmm0, xmmword [eax]
mov edi, dword [esp + 0x38]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
lea ecx, [ecx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [ebx + eax - 0x40], xmm1
movups xmm1, xmmword [ecx + ebp - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [ecx - 0x40], xmm1
movups xmm1, xmmword [edi + esi - 0x10]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [edi + esi]
mov edi, dword [esp + 0x4c]
add esi, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, dword [esp + 0x34]
jne 0x5951d0
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
cmp esi, edi
je 0x595266
sub ebp, ebx
lea ecx, [esi + ebx]
mov ebx, edx
mov edx, edi
sub ebx, dword [esp + 0x28]
sub edx, esi
nop dword [eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub edx, 1
jne 0x595250
mov ebx, dword [esp + 0x28]
call fcn.0047eef0
mov esi, eax
test esi, esi
jne 0x595285
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x174
jmp 0x59504b
push dword [esp + 0x60]
push esi
call fcn.0047e9d0
add esp, 8
test eax, eax
je 0x595340
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x18]
push esi
call fcn.0047ea30
add esp, 0xc
test eax, eax
je 0x595340
push edi
push dword [esp + 0x70]
push esi
call fcn.0047ea30
add esp, 0xc
test eax, eax
je 0x595340
push ebp
push dword [esp + 0x20]
push esi
call fcn.0047ea30
mov ebp, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x595344
push 0
push ebp
push esi
call fcn.0047e6f0
add esp, 0xc
test eax, eax
je 0x595344
push dword [esp + 0x2c]
push dword [esp + 0x58]
push ebp
call fcn.004ea350
add esp, 0xc
test eax, eax
je 0x59532d
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x182
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0x66
push 0x35
call fcn.00486ec0
add esp, 0x18
jmp 0x594e53
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], 1
mov dword [eax], edi
jmp 0x594e67
mov ebp, dword [esp + 0x10]
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x17d
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0x80006
push 0x35
call fcn.00486ec0
add esp, 0x18
jmp 0x594e53
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x16b
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0xc0103
push 0x35
call fcn.00486ec0
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x594e53
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x163
push str.crypto_sm2_sm2_crypt.c
call fcn.00486e10
push 0
push 0x80010
push 0x35
call fcn.00486ec0
mov ebp, dword [esp + 0x28]
add esp, 0x18
jmp 0x594e53
call fcn.00486d10
push str.ossl_sm2_decrypt
push 0x154
jmp 0x59504b