Function at 0x10018360
Capabilities:
Create thread
Encode data using xor
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028a2b
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push esi
push edi
mov eax, dword [0x10040cf8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x10018733
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x1004118c], 1
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
jne 0x100184df
mov dword [ebp - 0x10], 0x10030fe4
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x10018417
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1001840b
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x100183f2
mov byte [eax + edi], 0
mov esi, edi
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
push 1
push 0x40
push 8
push esi
lea ecx, [ebp - 0x17c]
call fcn.100049c0
mov dword [ebp - 0x10], 0x1003100c
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 4], 0
cmp byte [ebx + 0x13], 0
je 0x1001847f
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10018479
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x10018460
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0x17c]
push esi
push eax
call fcn.10004550
push dword [ebp + 8]
lea eax, [ebp - 0x17c]
push eax
call fcn.10004550
add esp, 0x10
lea ecx, [ebp - 0x178]
call fcn.100054a0
test eax, eax
jne 0x100184c7
push eax
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x17c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x17c]
mov dword [ebp - 4], 0xffffffff
call fcn.10004fb0
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
cmp dword [0x1004119c], 1
jne 0x100186b2
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ucrtbased.dll__time64]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ucrtbased.dll__localtime64]
add esp, 8
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xcc]
push 1
push 0x40
push 8
push 0x10031030
call fcn.100049c0
mov dword [ebp - 0x10], 0x10031034
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 4], 1
cmp byte [ebx + 0x13], 0
je 0x10018572
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1001856c
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x10018553
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.10004550
push dword [ebp - 0x14]
call dword [sym.imp.ucrtbased.dll_asctime]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x10031058
add esp, 0x14
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x100185ef
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100185e9
sub esi, edi
nop dword [eax]
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x100185d0
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.10004550
push dword [ebp + 8]
lea eax, [ebp - 0xcc]
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x1003107c
add esp, 0x10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x10018661
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001865b
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x10018642
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.10004550
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.100054a0
test eax, eax
jne 0x1001869a
push eax
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0x100310b8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xcc]
call fcn.10004fb0
mov eax, dword [0x10041190]
push 0
cmp eax, 1
jne 0x100186e4
push 0
push 0
push 0x100187d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x100186f4
push 0
push 0
push 0x10018750
jmp 0x100186c7
cmp eax, 3
jne 0x10018704
push 0
push 0
push 0x10018850
jmp 0x100186c7
cmp eax, 4
jne 0x100186de
push 0
push 0
push 0x10026220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push str.CN_Scan
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x100186dc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret