Function at 0x5b98b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x38], 0
call fcn.00520ac0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 8], eax
call fcn.0055b0e0
mov edi, eax
push edi
call fcn.005332f0
push esi
mov dword [ebp - 0x3c], eax
call fcn.004e2350
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00533790
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 8], ebx
je 0x5b9d83
test eax, eax
jle 0x5b9d83
push edi
call fcn.005b92f0
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x5b993a
push 0x93
jmp 0x5b9d88
push edi
call fcn.005498b0
push edi
mov dword [ebp - 0x10], eax
call fcn.005498b0
add esp, 8
mov dword [ebp - 0x14], eax
call fcn.00558340
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], ebx
je 0x5b9d69
cmp dword [ebp - 0x14], ebx
je 0x5b9d69
test esi, esi
je 0x5b9d69
push esi
call fcn.005583b0
push esi
call fcn.005582d0
push esi
mov dword [ebp - 0x1c], eax
call fcn.005582d0
push esi
mov dword [ebp - 0x2c], eax
call fcn.005582d0
push esi
mov dword [ebp - 0x24], eax
call fcn.005582d0
push esi
mov dword [ebp - 0x30], eax
call fcn.005582d0
add esp, 0x18
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x5b99ca
push 0xa7
push str.....crypto_sm2_sm2_crypt.c
push 3
push 0x67
push 0x35
call fcn.005288a0
add esp, 0x14
jmp 0x5b9d9d
mov eax, dword [ebp - 0x20]
push 0xab
add eax, eax
push str.....crypto_sm2_sm2_crypt.c
push eax
mov dword [ebp - 0x44], eax
call fcn.0051a0a0
push 0xac
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x34]
mov dword [ebp - 4], eax
call fcn.0051a0a0
add esp, 0x18
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], ebx
je 0x5b9d62
test eax, eax
je 0x5b9d62
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.005e1780
push dword [ebp - 0x3c]
push dword [ebp - 0x1c]
call fcn.00577500
add esp, 0x14
test eax, eax
jne 0x5b9a4c
push 0xb6
push str.....crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.005288a0
add esp, 0x14
jmp 0x5b9d9d
push esi
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push edi
call fcn.00549860
add esp, 0x18
test eax, eax
je 0x5b9d48
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x10]
push edi
call fcn.005495f0
add esp, 0x14
test eax, eax
je 0x5b9d48
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x40]
push 0
push dword [ebp - 0x14]
push edi
call fcn.00549860
add esp, 0x18
test eax, eax
je 0x5b9d48
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push edi
call fcn.005495f0
add esp, 0x14
test eax, eax
je 0x5b9d48
mov edi, dword [ebp - 0x20]
push edi
push dword [ebp - 4]
push dword [ebp - 0x24]
call fcn.0051cc40
add esp, 0xc
test eax, eax
js 0x5b9d2e
mov eax, dword [ebp - 4]
add eax, edi
push edi
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
call fcn.0051cc40
add esp, 0xc
test eax, eax
js 0x5b9d2e
mov edi, dword [ebp + 0x14]
push 0xc8
push str.....crypto_sm2_sm2_crypt.c
push edi
call fcn.0051a0a0
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x5b9b1b
push 0xca
jmp 0x5b9d6e
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp - 0x44]
push dword [ebp - 4]
push edi
push ebx
call fcn.005b8750
add esp, 0x1c
test eax, eax
jne 0x5b9b53
push 0xd1
push str.....crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.005288a0
add esp, 0x14
jmp 0x5b9d9d
xor edx, edx
test edi, edi
je 0x5b9be1
mov esi, dword [ebp + 0x10]
cmp edi, 0x20
jb 0x5b9bc0
lea eax, [esi - 1]
lea ecx, [edi - 1]
add eax, edi
add ecx, ebx
cmp ebx, eax
ja 0x5b9b77
cmp ecx, esi
jae 0x5b9bc0
mov ecx, edi
sub esi, ebx
mov edi, dword [ebp + 0x10]
and ecx, 0xffffffe0
add edi, 0x10
mov eax, ebx
mov dword [ebp - 0x44], edi
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x44]
nop
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + edx]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jne 0x5b9b90
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
cmp edx, edi
je 0x5b9be1
lea ecx, [edx + ebx]
mov ebx, esi
sub ebx, dword [ebp - 0x1c]
mov esi, edi
sub esi, edx
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x5b9bd0
mov ebx, dword [ebp - 0x1c]
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
push esi
call fcn.005206e0
add esp, 8
test eax, eax
je 0x5b9d11
mov esi, dword [ebp - 0x20]
push esi
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005208b0
add esp, 0xc
test eax, eax
je 0x5b9d11
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call fcn.005208b0
add esp, 0xc
test eax, eax
je 0x5b9d11
push esi
push dword [ebp - 0x40]
mov esi, dword [ebp - 8]
push esi
call fcn.005208b0
add esp, 0xc
test eax, eax
je 0x5b9d11
push 0
push dword [ebp - 0x18]
push esi
call fcn.005205a0
add esp, 0xc
test eax, eax
je 0x5b9d11
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
call fcn.0054bcb0
mov dword [ebp - 0x4c], eax
call fcn.0054bcb0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
test ecx, ecx
je 0x5b9cf1
test eax, eax
je 0x5b9cf1
push dword [ebp - 0x34]
push dword [ebp - 0x18]
push ecx
call fcn.00565910
add esp, 0xc
test eax, eax
je 0x5b9cd1
push edi
push ebx
push dword [ebp - 0x48]
call fcn.00565910
add esp, 0xc
test eax, eax
je 0x5b9cd1
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.005b9370
add esp, 8
test eax, eax
jns 0x5b9cbd
push 0xf3
jmp 0x5b9cd6
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x38], 1
mov dword [ecx], eax
jmp 0x5b9d9d
push 0xec
push str.....crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.005288a0
mov esi, dword [ebp - 0xc]
add esp, 0x14
jmp 0x5b9d9d
push 0xe7
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.005288a0
mov esi, dword [ebp - 0xc]
add esp, 0x14
jmp 0x5b9d9d
push 0xdd
push str.....crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.005288a0
mov esi, dword [ebp - 0xc]
add esp, 0x14
jmp 0x5b9d9d
push 0xc4
push str.....crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.005288a0
add esp, 0x14
jmp 0x5b9d9d
push 0xbe
push str.....crypto_sm2_sm2_crypt.c
push 0x10
push 0x67
push 0x35
call fcn.005288a0
add esp, 0x14
jmp 0x5b9d9d
push 0xaf
jmp 0x5b9d6e
push 0x9b
push str.....crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.005288a0
add esp, 0x14
jmp 0x5b9d9d
push 0x8d
push str.....crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.005288a0
add esp, 0x14
xor esi, esi
push dword [ebp - 0x48]
call fcn.0054bc30
push dword [ebp - 0x4c]
call fcn.0054bc30
push 0xfd
push str.....crypto_sm2_sm2_crypt.c
push ebx
call fcn.00519f90
push 0xfe
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 4]
call fcn.00519f90
push 0xff
push str.....crypto_sm2_sm2_crypt.c
push dword [ebp - 0x18]
call fcn.00519f90
push dword [ebp - 8]
call fcn.00520aa0
push esi
call fcn.005582a0
push dword [ebp - 0x10]
call fcn.005495c0
push dword [ebp - 0x14]
call fcn.005495c0
mov eax, dword [ebp - 0x38]
add esp, 0x3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret