Function at 0x5da853
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.00533435
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
call fcn.005da771
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.0053b734
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], esi
mov edi, esi
test ebx, ebx
je 0x5dab8e
test eax, eax
jle 0x5dab8e
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.00718210
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.005da756
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x5da8e0
push 0x126
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x64
jmp 0x5dab82
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x20]
cmp dword [ecx], edx
je 0x5da8fb
push 0x12b
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x5dab82
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov dword [ebp - 0x34], edx
call fcn.005512e9
mov dword [ebp - 8], eax
test eax, eax
jne 0x5da922
push 0x135
jmp 0x5dab7b
push eax
call fcn.00551347
push dword [ebp - 8]
call fcn.0055128a
push dword [ebp - 8]
mov dword [ebp - 0x28], eax
call fcn.0055128a
add esp, 0xc
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x5da956
push 0x13e
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 3
jmp 0x5dab82
push 0x142
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push ebx
call fcn.00540836
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push 0x143
add eax, eax
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push eax
mov dword [ebp - 0x30], eax
call fcn.00540836
push 0x144
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push dword [ebp - 0x20]
mov dword [ebp - 4], eax
call fcn.00540836
add esp, 0x24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x10], esi
je 0x5dab76
cmp dword [ebp - 4], esi
je 0x5dab76
test eax, eax
je 0x5dab76
push dword [ebp - 0x14]
call fcn.0056906f
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x5da9d2
push 0x14d
jmp 0x5dab7b
mov eax, dword [ebp - 0x24]
push dword [ebp - 8]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x14]
call fcn.0056916f
add esp, 0x14
test eax, eax
je 0x5dab68
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00555eb0
pop ecx
push eax
mov eax, dword [ebp - 0x1c]
push eax
push esi
push eax
push dword [ebp - 0x14]
call fcn.00569031
add esp, 0x18
test eax, eax
je 0x5dab68
push dword [ebp - 8]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00568e4a
add esp, 0x14
test eax, eax
je 0x5dab68
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x28]
call fcn.00539512
add esp, 0xc
test eax, eax
js 0x5dab5a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
push eax
push ecx
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
call fcn.00539512
add esp, 0xc
test eax, eax
js 0x5dab5a
push dword [ebp + 0xc]
push esi
push esi
push dword [ebp - 0x30]
push dword [ebp - 4]
push ebx
push dword [ebp - 0x10]
call fcn.005d9d16
add esp, 0x1c
test eax, eax
je 0x5dab5a
test ebx, ebx
je 0x5daab3
mov eax, dword [ebp - 0x10]
mov edi, ebx
mov esi, dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [ebp + 0x18]
sub esi, eax
sub edx, eax
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
sub edi, 1
jne 0x5daaa3
xor esi, esi
call fcn.0055c727
mov edi, eax
test edi, edi
jne 0x5daac8
push 0x167
jmp 0x5dab7b
push dword [ebp + 0xc]
push edi
call fcn.0055c3d9
pop ecx
pop ecx
test eax, eax
je 0x5dab4c
push dword [ebp - 0xc]
push dword [ebp - 4]
push edi
call fcn.0055c577
add esp, 0xc
test eax, eax
je 0x5dab4c
push ebx
push dword [ebp + 0x18]
push edi
call fcn.0055c577
add esp, 0xc
test eax, eax
je 0x5dab4c
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push edi
call fcn.0055c577
add esp, 0xc
test eax, eax
je 0x5dab4c
push esi
push dword [ebp - 0x18]
push edi
call fcn.0055c2c2
add esp, 0xc
test eax, eax
je 0x5dab4c
push dword [ebp - 0x20]
push dword [ebp - 0x38]
push dword [ebp - 0x18]
call fcn.005408a2
add esp, 0xc
test eax, eax
je 0x5dab42
push 0x175
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x5dab82
mov eax, dword [ebp + 0x1c]
xor esi, esi
inc esi
mov dword [eax], ebx
jmp 0x5dab9f
push 0x170
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 6
jmp 0x5dab82
push 0x15e
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x5dab82
push 0x156
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x5dab82
push 0x147
push str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.0053f640
add esp, 0x14
mov eax, dword [ebp + 0x1c]
push dword [eax]
push esi
push dword [ebp + 0x18]
call fcn.00718210
add esp, 0xc
push 0x180
mov ebx, str.d:package_cacheopenssl1.1.1g.2crypto_sm2_sm2_crypt.c
push ebx
push dword [ebp - 0x10]
call fcn.005406d7
push 0x181
push ebx
push dword [ebp - 4]
call fcn.005406d7
push 0x182
push ebx
push dword [ebp - 0x18]
call fcn.005406d7
push dword [ebp - 0x1c]
call fcn.00568e1c
push dword [ebp - 8]
call fcn.0055124e
push 0x824418
push dword [ebp - 0x24]
call fcn.0054f15f
push edi
call fcn.0055c708
add esp, 0x38
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret