Function at 0x5275f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.00538850
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
push edi
xor edi, edi
push eax
mov dword [esp + 0x40], edi
xor ebx, ebx
call fcn.00455450
mov esi, eax
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
call fcn.00526fb0
mov ecx, dword [esp + 0x50]
push ecx
mov ebp, eax
call fcn.00455370
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebx
test ebp, ebp
je 0x527978
test eax, eax
jle 0x527978
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
mov ecx, dword [esp + 0x54]
push eax
push 0xff
push ecx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x5c]
push 0x5a3148
push edx
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.0047a3f0
add esp, 0x1c
mov dword [esp + 0x24], eax
test eax, eax
jne 0x527696
push 0x126
push str.crypto_sm2_sm2_crypt.c
push 0x64
jmp 0x52796c
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x1c]
cmp dword [ecx], edx
je 0x5276b2
push 0x12b
push str.crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x52796c
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], edx
call fcn.004c3380
mov ebx, eax
test ebx, ebx
jne 0x5276de
push 0x135
jmp 0x527965
push ebx
call fcn.004c3470
push ebx
call fcn.004c3500
push ebx
mov dword [esp + 0x34], eax
call fcn.004c3500
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x527710
push 0x13e
push str.crypto_sm2_sm2_crypt.c
push 3
jmp 0x52796c
mov eax, dword [esp + 0x10]
push 0x142
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.00440780
push 0x143
mov edi, eax
lea eax, [ebp + ebp]
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.00440780
mov ecx, dword [esp + 0x34]
push 0x144
push str.crypto_sm2_sm2_crypt.c
push ecx
mov dword [esp + 0x38], eax
call fcn.00440780
add esp, 0x24
mov dword [esp + 0x20], eax
test edi, edi
je 0x527960
cmp dword [esp + 0x14], 0
je 0x527960
test eax, eax
je 0x527960
push esi
call fcn.00483730
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x52778f
push 0x14d
jmp 0x527965
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push ebx
push edx
push ecx
push eax
push esi
call fcn.004848d0
add esp, 0x14
test eax, eax
je 0x527952
mov edx, dword [esp + 0x44]
push ebx
push edx
call fcn.00476a00
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
push 0
push eax
push esi
call fcn.00483f70
add esp, 0x18
test eax, eax
je 0x527952
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ebx
push eax
push ecx
push edx
push esi
call fcn.00484990
add esp, 0x14
test eax, eax
je 0x527952
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
push ebp
push esi
push eax
call fcn.00495030
add esp, 0xc
test eax, eax
js 0x527944
mov ecx, dword [esp + 0x2c]
lea eax, [esi + ebp]
push ebp
push eax
push ecx
mov dword [esp + 0x34], eax
call fcn.00495030
add esp, 0xc
test eax, eax
js 0x527944
mov edx, dword [esp + 0x48]
push edx
push 0
push 0
lea eax, [ebp + ebp]
push eax
push esi
mov esi, dword [esp + 0x24]
push esi
push edi
call fcn.0052ba70
add esp, 0x1c
test eax, eax
je 0x527944
test esi, esi
je 0x527880
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
sub ecx, edi
mov eax, edi
sub esi, edi
mov dword [esp + 0x2c], edx
mov edi, edi
mov dl, byte [ecx + eax]
xor dl, byte [eax]
inc eax
dec dword [esp + 0x2c]
mov byte [esi + eax - 1], dl
jne 0x527870
call fcn.00465dd0
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
jne 0x527899
push 0x167
jmp 0x527965
mov eax, dword [esp + 0x48]
push eax
push esi
call fcn.00466340
add esp, 8
test eax, eax
je 0x527936
mov ecx, dword [esp + 0x14]
push ebp
push ecx
push esi
call fcn.00465fc0
add esp, 0xc
test eax, eax
je 0x527936
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x54]
push edx
push eax
push esi
call fcn.00465fc0
add esp, 0xc
test eax, eax
je 0x527936
mov ecx, dword [esp + 0x28]
push ebp
push ecx
push esi
call fcn.00465fc0
add esp, 0xc
test eax, eax
je 0x527936
mov ebp, dword [esp + 0x20]
push 0
push ebp
push esi
call fcn.00466360
add esp, 0xc
test eax, eax
je 0x527936
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
push edx
push eax
push ebp
call fcn.00454690
add esp, 0xc
test eax, eax
je 0x527925
push 0x175
push str.crypto_sm2_sm2_crypt.c
push 0x66
jmp 0x52796c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
mov ebp, 1
mov dword [ecx], edx
jmp 0x527996
push 0x170
push str.crypto_sm2_sm2_crypt.c
push 6
jmp 0x52796c
push 0x15e
push str.crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x52796c
push 0x156
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x52796c
push 0x147
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.0043a8e0
add esp, 0x14
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [esp + 0x54]
push ecx
push 0
push edx
call sub.MSVCR100.dll_memset
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x48]
add esp, 0xc
push 0x180
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.004407f0
mov eax, dword [esp + 0x20]
push 0x181
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.004407f0
mov ecx, dword [esp + 0x38]
push 0x182
push str.crypto_sm2_sm2_crypt.c
push ecx
call fcn.004407f0
mov edx, dword [esp + 0x3c]
push edx
call fcn.004837f0
push ebx
call fcn.004c3430
mov eax, dword [esp + 0x50]
push 0x5a3148
push eax
call fcn.0047bc30
push esi
call fcn.00465df0
add esp, 0x38
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x30
ret