Function at 0x503920
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c
call fcn.00488be0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x3c], 0
call fcn.004cc860
mov esi, dword [esp + 0x60]
push esi
mov dword [esp + 0x20], eax
call fcn.004be620
mov edi, eax
push edi
call fcn.004be410
push esi
mov dword [esp + 0x4c], eax
call fcn.004be5a0
push dword [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], ebx
call fcn.004beb70
add esp, 0x10
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
cmp dword [esp + 0x1c], ebx
je 0x503ed0
test eax, eax
jle 0x503ed0
push edi
call fcn.00503270
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
jne 0x5039ba
push 0x93
jmp 0x503ed5
push edi
call fcn.004dcd00
push edi
mov dword [esp + 0x28], eax
call fcn.004dcd00
add esp, 8
mov ebp, eax
mov dword [esp + 0x24], ebp
call fcn.004cef30
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x20], ebx
je 0x503eb9
test ebp, ebp
je 0x503eb9
test esi, esi
je 0x503eb9
push esi
call fcn.004cf020
push esi
call fcn.004cede0
push esi
mov ebp, eax
call fcn.004cede0
push esi
mov dword [esp + 0x40], eax
call fcn.004cede0
push esi
mov dword [esp + 0x40], eax
call fcn.004cede0
push esi
mov dword [esp + 0x4c], eax
call fcn.004cede0
add esp, 0x18
mov dword [esp + 0x48], eax
test eax, eax
jne 0x503a4f
push 0xa7
push str.crypto_sm2_sm2_crypt.c
push 3
push 0x67
push 0x35
call fcn.004bdd70
jmp 0x503ee7
mov eax, dword [esp + 0x28]
push 0xab
add eax, eax
push str.crypto_sm2_sm2_crypt.c
push eax
call fcn.004c8b60
push 0xac
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x4c]
mov dword [esp + 0x30], eax
call fcn.004c8b60
add esp, 0x18
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], ebx
je 0x503e9b
test eax, eax
je 0x503e9b
mov eax, dword [esp + 0x74]
push dword [eax]
push 0
push dword [esp + 0x78]
call fcn.00492cb0
push dword [esp + 0x4c]
push ebp
call fcn.004db7e0
add esp, 0x14
test eax, eax
jne 0x503ad8
push 0xb6
push str.crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.004bdd70
mov ebp, dword [esp + 0x24]
add esp, 0x14
jmp 0x503eec
push esi
push 0
push 0
push ebp
push dword [esp + 0x30]
push edi
call fcn.004dccb0
add esp, 0x18
test eax, eax
je 0x503e7d
push esi
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x2c]
push edi
call fcn.004dc9e0
add esp, 0x14
test eax, eax
je 0x503e7d
push esi
push ebp
push dword [esp + 0x4c]
push 0
push dword [esp + 0x34]
push edi
call fcn.004dccb0
add esp, 0x18
test eax, eax
je 0x503e7d
mov ebp, dword [esp + 0x48]
push esi
push ebp
push dword [esp + 0x34]
push dword [esp + 0x30]
push edi
call fcn.004dc9e0
add esp, 0x14
test eax, eax
je 0x503e7d
mov edi, dword [esp + 0x28]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x34]
call fcn.004c6cf0
add esp, 0xc
test eax, eax
js 0x503e73
mov eax, dword [esp + 0x18]
add eax, edi
push edi
push eax
push ebp
mov dword [esp + 0x4c], eax
call fcn.004c6cf0
add esp, 0xc
test eax, eax
js 0x503e73
mov esi, dword [esp + 0x6c]
push 0xc8
push str.crypto_sm2_sm2_crypt.c
push esi
call fcn.004c8b60
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x503bc9
push 0xca
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.004bdd70
mov esi, dword [esp + 0x28]
add esp, 0x14
mov ebp, dword [esp + 0x10]
jmp 0x503eec
push dword [esp + 0x64]
lea eax, [edi + edi]
push 0
push 0
push eax
push dword [esp + 0x28]
push esi
push ebx
call fcn.00502650
add esp, 0x1c
test eax, eax
jne 0x503c0c
push 0xd1
push str.crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.004bdd70
mov esi, dword [esp + 0x28]
add esp, 0x14
mov ebp, dword [esp + 0x10]
jmp 0x503eec
xor edx, edx
test esi, esi
je 0x503cfe
mov ebp, dword [esp + 0x68]
cmp esi, 8
jb 0x503ce2
lea eax, [ebp - 1]
lea ecx, [esi - 1]
add eax, esi
add ecx, ebx
cmp ebx, eax
ja 0x503c39
cmp ecx, ebp
jae 0x503ce2
cmp esi, 0x40
jb 0x503cb6
mov eax, esi
lea ecx, [ebp + 0x30]
and eax, 0x3f
mov edi, esi
mov esi, ebp
mov dword [esp + 0x44], eax
sub edi, eax
sub esi, ebx
mov dword [esp + 0x48], esi
lea eax, [ebx + 0x10]
mov esi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x48]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + ebp - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, edi
jne 0x503c61
cmp dword [esp + 0x44], 8
mov ebp, dword [esp + 0x68]
jb 0x503cde
mov ecx, esi
lea eax, [edx + ebx]
mov edi, ebp
and ecx, 0xfffffff8
sub edi, ebx
movq xmm1, qword [edi + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jne 0x503cc2
cmp edx, esi
je 0x503d02
mov edi, esi
lea ecx, [edx + ebx]
sub ebp, ebx
sub edi, edx
nop dword [eax + eax]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x503cf0
mov ebp, dword [esp + 0x68]
push dword [esp + 0x64]
mov edi, dword [esp + 0x20]
push edi
call fcn.004cc4e0
add esp, 8
test eax, eax
je 0x503e51
mov edi, dword [esp + 0x28]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x24]
call fcn.004cc6b0
add esp, 0xc
test eax, eax
je 0x503e51
push esi
push ebp
push dword [esp + 0x24]
call fcn.004cc6b0
add esp, 0xc
test eax, eax
je 0x503e51
push edi
push dword [esp + 0x44]
mov edi, dword [esp + 0x24]
push edi
call fcn.004cc6b0
mov ebp, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x503e55
push 0
push ebp
push edi
call fcn.004cc350
add esp, 0xc
test eax, eax
je 0x503e55
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
call fcn.004f25c0
mov dword [esp + 0x54], eax
call fcn.004f25c0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], eax
test ecx, ecx
je 0x503e30
test eax, eax
je 0x503e30
push dword [esp + 0x38]
push ebp
push ecx
call fcn.004f34a0
add esp, 0xc
test eax, eax
je 0x503e0f
push esi
push ebx
push dword [esp + 0x60]
call fcn.004f34a0
add esp, 0xc
test eax, eax
je 0x503e0f
push 0x5c9758
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.005002c0
add esp, 0xc
test eax, eax
jns 0x503df8
push 0xf3
jmp 0x503e14
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x3c], 1
mov dword [ecx], eax
jmp 0x503eec
push 0xec
push str.crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.004bdd70
mov esi, dword [esp + 0x28]
add esp, 0x14
jmp 0x503eec
push 0xe7
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.004bdd70
mov esi, dword [esp + 0x28]
add esp, 0x14
jmp 0x503eec
mov ebp, dword [esp + 0x10]
push 0xdd
push str.crypto_sm2_sm2_crypt.c
push 6
push 0x67
push 0x35
call fcn.004bdd70
mov esi, dword [esp + 0x28]
add esp, 0x14
jmp 0x503eec
push 0xc4
jmp 0x503abc
push 0xbe
push str.crypto_sm2_sm2_crypt.c
push 0x10
push 0x67
push 0x35
call fcn.004bdd70
mov ebp, dword [esp + 0x24]
add esp, 0x14
jmp 0x503eec
push 0xaf
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.004bdd70
mov ebp, dword [esp + 0x24]
add esp, 0x14
jmp 0x503eec
push 0x9b
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x67
push 0x35
call fcn.004bdd70
jmp 0x503ee7
push 0x8d
push str.crypto_sm2_sm2_crypt.c
push 0x44
push 0x67
push 0x35
call fcn.004bdd70
xor esi, esi
add esp, 0x14
xor ebp, ebp
push dword [esp + 0x58]
call fcn.004f24b0
push dword [esp + 0x58]
call fcn.004f24b0
push 0xfd
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.004c88f0
push 0xfe
push str.crypto_sm2_sm2_crypt.c
push dword [esp + 0x34]
call fcn.004c88f0
push 0xff
push str.crypto_sm2_sm2_crypt.c
push ebp
call fcn.004c88f0
push dword [esp + 0x48]
call fcn.004cc840
push esi
call fcn.004ced50
push dword [esp + 0x54]
call fcn.004dc9b0
push dword [esp + 0x5c]
call fcn.004dc9b0
mov eax, dword [esp + 0x78]
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret