Function at 0x10017024
Capabilities:
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file
Terminate process

Disassembly:
push ebp
sub esp, 0x560
lea ebp, [esp - 4]
mov eax, dword [0x1007ef24]
xor eax, ebp
mov dword [ebp + 0x560], eax
push 0x6c
mov eax, 0x1005fe87
call fcn.10042986
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xffffffffffffffff
mov ecx, 0x10081474
call fcn.10019a53
xor ebx, ebx
push 0x3f
lea eax, [ebp + 0x521]
push ebx
push eax
mov byte [ebp + 0x520], bl
call fcn.10042a90
lea edi, [ebp + 0x520]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10017080
mov esi, 0x10066dec
movsw word es:[edi], word [esi]
lea edi, [ebp + 0x520]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10017096
mov esi, 0x10066de8
movsw word es:[edi], word [esi]
lea edi, [ebp + 0x520]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100170ac
mov esi, 0x10066de4
movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x520]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100170c1
mov esi, str._wnd
lea eax, [ebp + 0x520]
movsd dword es:[edi], dword [esi]
push eax
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1001710a
mov ecx, 0x10081474
call fcn.10019a72
cmp byte [0x10081063], bl
je 0x1001717c
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1ff
lea eax, [ebp + 0x301]
push ebx
push eax
mov byte [ebp + 0x300], bl
call fcn.10042a90
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017172
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x300]
push eax
push ebx
push ebx
push str.Path
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x18]
je 0x1001719f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x10081474
call fcn.10019a72
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x560]
xor ecx, ebp
call fcn.10042977
add ebp, 0x564
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0x300], bl
je 0x10017172
lea eax, [ebp + 0x300]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100171b6
sub eax, edx
cmp byte [ebp + eax + 0x2ff], 0x3b
jne 0x100171e2
lea eax, [ebp + 0x300]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100171d2
sub eax, edx
mov byte [ebp + eax + 0x2ff], bl
lea edi, [ebp + 0x300]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100171e9
mov esi, str.iexplore.exe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x300]
push 0x10063f1c
push eax
movsw word es:[edi], word [esi]
call fcn.100435d9
cmp eax, ebx
pop ecx
pop ecx
je 0x1001721b
push eax
call fcn.1004338d
pop ecx
jmp 0x10017266
push 0x200
lea eax, [ebp + 0x300]
push ebx
push eax
call fcn.10042a90
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp + 0x300]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp byte [ebp + 0x300], bl
je 0x10017172
lea edi, [ebp + 0x300]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10017254
push 8
pop ecx
mov esi, str.Internet_ExplorerIEXPLORE.EXE
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.10042a90
xor edi, edi
inc edi
add esp, 0xc
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], edi
mov word [ebp - 0x46], bx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x48], bx
call fcn.10028d6c
push eax
lea ecx, [ebp - 0x10]
call fcn.10004f84
mov esi, 0xff
push esi
lea eax, [ebp + 0x201]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp + 0x200], bl
call fcn.10042a90
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push str.Softwaregameplayer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [ebp - 0x14], ebx
je 0x1001730f
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x200]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.10042a90
add esp, 0xc
push ebx
push 0x25
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xor esi, esi
cmp byte [ebp], bl
je 0x100173c7
lea edi, [ebp]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10017341
mov esi, str.hardpolMyIEData_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10017359
mov esi, str.main.ini
movsd dword es:[edi], dword [esi]
lea eax, [ebp]
push eax
push ebx
movsd dword es:[edi], dword [esi]
push str.FLAG16
push str.SYSTEM
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x500], bl
lea edi, [ebp + 0x501]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
inc esi
push esi
stosb byte es:[edi], al
lea eax, [ebp + 0x500]
push 0x10065b4c
push eax
call fcn.100436a6
add esp, 0xc
lea eax, [ebp]
push eax
lea eax, [ebp + 0x500]
push eax
push str.FLAG16
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp byte [ebp + 0x200], bl
push esi
je 0x100173f6
lea eax, [ebp + 0x200]
push eax
push 0x10081064
lea eax, [ebp + 0x300]
push eax
lea eax, [ebp - 0x10]
push str.__s___http:__www.010com.cn_count_s.html_d_scount_u_
push eax
call fcn.10017011
add esp, 0x18
jmp 0x10017413
push 0x10081064
lea eax, [ebp + 0x300]
push eax
lea eax, [ebp - 0x10]
push str.__s___http:__www.010com.cn_count_s.html_d0count_u_
push eax
call fcn.10017011
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.10004f6a
push eax
call fcn.10010abd
pop ecx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
mov esi, eax
call edi
mov ecx, 0x10081474
call fcn.10019a72
cmp esi, ebx
je 0x1001748a
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
jmp 0x1001747c
cmp ebx, 0x320
jg 0x1001748a
push 5
inc ebx
call edi
lea eax, [ebp + 0x520]
push eax
push eax
call esi
test eax, eax
je 0x1001746f
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10004cba
jmp 0x1001717c