Function at 0x679190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40
call fcn.006bfd90
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
call fcn.005a0d50
xor edi, edi
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], edi
call fcn.00679080
push dword [ebp + 0xc]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.005ec720
add esp, 0xc
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x679237
test eax, eax
jle 0x679237
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0xff
push dword [ebp + 0x18]
call fcn.006c2360
push 0x7ade08
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push eax
push esi
call fcn.00607700
mov edi, eax
add esp, 0x1c
mov dword [ebp - 4], edi
test edi, edi
jne 0x6792ad
push 0x11d
push str.crypto_sm2_sm2_crypt.c
push 0x64
push 0x66
push 0x35
call fcn.005e4620
add esp, 0x14
xor ebx, ebx
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 0
push dword [ebp + 0x18]
call fcn.006c2360
add esp, 0xc
push 0x17b
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0xc]
call fcn.005d3c50
push 0x17c
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x10]
call fcn.005d3c50
push 0x17d
push str.crypto_sm2_sm2_crypt.c
push ebx
call fcn.005d3c50
push dword [ebp - 0x20]
call fcn.00604130
push dword [ebp - 0x14]
call fcn.0061e300
push 0x7ade08
push edi
call fcn.00607340
push esi
call fcn.005dc730
mov eax, dword [ebp - 0x34]
add esp, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 8]
mov eax, dword [ebp - 0x28]
cmp dword [ecx], eax
je 0x6792c8
push 0x122
push str.crypto_sm2_sm2_crypt.c
push 0x68
jmp 0x67922b
mov eax, dword [edi + 0xc]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x40], ecx
mov edi, dword [eax]
mov ebx, dword [eax + 8]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], edi
cmp dword [eax], edi
jae 0x679300
push 0x12a
push str.crypto_sm2_sm2_crypt.c
push 0x6b
push 0x66
push 0x35
call fcn.005e4620
mov edi, dword [ebp - 4]
jmp 0x679234
call fcn.0061e3b0
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x679329
push pe_nt_image_headers32
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.005e4620
mov edi, dword [ebp - 4]
jmp 0x679234
push eax
call fcn.0061e440
push dword [ebp - 0x14]
call fcn.0061e340
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call fcn.0061e340
add esp, 0xc
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x679369
push 0x139
push str.crypto_sm2_sm2_crypt.c
push 3
push 0x66
push 0x35
call fcn.005e4620
mov edi, dword [ebp - 4]
jmp 0x679234
push 0x13d
push str.crypto_sm2_sm2_crypt.c
push edi
call fcn.005d3f10
mov ecx, dword [ebp - 0x18]
push 0x13e
mov dword [ebp - 0xc], eax
push str.crypto_sm2_sm2_crypt.c
lea eax, [ecx + ecx]
push eax
call fcn.005d3f10
push 0x13f
push str.crypto_sm2_sm2_crypt.c
push dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.005d3f10
add esp, 0x24
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], esi
je 0x6796a0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x6796a0
test eax, eax
je 0x6796a0
push dword [ebp - 0x1c]
call fcn.00604420
mov ecx, eax
add esp, 4
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x679400
push 0x148
push str.crypto_sm2_sm2_crypt.c
push 0x41
push 0x66
push 0x35
call fcn.005e4620
mov edi, dword [ebp - 4]
add esp, 0x14
mov ebx, dword [ebp - 8]
jmp 0x679239
mov eax, dword [ebp - 4]
push dword [ebp - 0x14]
push dword [eax + 4]
push dword [eax]
push ecx
push dword [ebp - 0x1c]
call fcn.00604560
add esp, 0x14
test eax, eax
je 0x67968f
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.005d4c30
add esp, 4
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
push eax
push dword [ebp - 0x1c]
call fcn.006043d0
add esp, 0x18
test eax, eax
je 0x67968f
push dword [ebp - 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.00604160
add esp, 0x14
test eax, eax
je 0x67968f
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.005f9160
add esp, 0xc
test eax, eax
js 0x67967e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add ecx, eax
push eax
push ecx
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
call fcn.005f9160
add esp, 0xc
test eax, eax
js 0x67967e
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
push 0
push 0
lea eax, [ecx + ecx]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp - 0xc]
call fcn.00678500
add esp, 0x1c
test eax, eax
je 0x67967e
xor esi, esi
test edi, edi
je 0x6795a2
mov edx, dword [ebp - 0xc]
cmp edi, 0x20
jb 0x679574
mov ecx, dword [ebp + 0x18]
lea eax, [edx - 1]
dec ecx
add eax, edi
add ecx, edi
cmp dword [ebp + 0x18], eax
ja 0x6794f3
cmp ecx, edx
jae 0x679574
lea eax, [ebx - 1]
add eax, edi
cmp dword [ebp + 0x18], eax
ja 0x679501
cmp ecx, ebx
jae 0x679574
mov eax, edi
and eax, 0x8000001f
jns 0x67950f
dec eax
or eax, 0xffffffe0
inc eax
mov ecx, dword [ebp + 0x18]
mov edx, edi
sub edx, eax
mov edi, ebx
mov eax, dword [ebp - 0xc]
add ecx, 0x10
sub edi, eax
mov dword [ebp - 0x30], edi
mov edi, dword [ebp + 0x18]
sub edi, eax
mov dword [ebp - 0x2c], edi
mov edi, ebx
sub edi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edi
movups xmm0, xmmword [eax]
mov edi, dword [ebp - 0x2c]
add esi, 0x20
lea eax, [eax + 0x20]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [edi + eax - 0x20], xmm1
mov edi, dword [ebp - 0x1c]
movups xmm0, xmmword [eax - 0x10]
movups xmm1, xmmword [edi + ecx - 0x20]
mov edi, dword [ebp - 0x38]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, edx
jne 0x679536
mov ebx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
cmp esi, edi
je 0x6795a2
sub ebx, edx
lea ecx, [esi + edx]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp + 0x18]
sub ebx, edx
mov edx, edi
sub edx, esi
mov esi, dword [ebp - 0x24]
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ecx + ebx - 1], al
sub edx, 1
jne 0x679590
call fcn.005dc750
mov esi, eax
test esi, esi
jne 0x6795b7
push 0x162
jmp 0x6793e2
push dword [ebp + 0xc]
push esi
call fcn.005dc390
add esp, 8
test eax, eax
je 0x67965b
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
push esi
call fcn.005dc540
add esp, 0xc
test eax, eax
je 0x67965b
push edi
push dword [ebp + 0x18]
push esi
call fcn.005dc540
add esp, 0xc
test eax, eax
je 0x67965b
push ebx
push dword [ebp - 0x3c]
push esi
call fcn.005dc540
mov ebx, dword [ebp - 8]
add esp, 0xc
test eax, eax
je 0x67965e
push 0
push ebx
push esi
call fcn.005dc250
add esp, 0xc
test eax, eax
je 0x67965e
push dword [ebp - 0x28]
push dword [ebp - 0x40]
push ebx
call fcn.00402a10
add esp, 0xc
test eax, eax
je 0x679647
push 0x170
push str.crypto_sm2_sm2_crypt.c
push 0x66
push 0x66
push 0x35
call fcn.005e4620
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x679239
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [eax], edi
mov edi, dword [ebp - 4]
jmp 0x67924b
mov ebx, dword [ebp - 8]
push 0x16b
push str.crypto_sm2_sm2_crypt.c
push 6
push 0x66
push 0x35
call fcn.005e4620
mov edi, dword [ebp - 4]
add esp, 0x14
jmp 0x679239
push 0x159
push str.crypto_sm2_sm2_crypt.c
push 0x44
jmp 0x6793e9
push 0x151
push str.crypto_sm2_sm2_crypt.c
push 0x10
jmp 0x6793e9
push 0x142
jmp 0x6793e2