joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4585df
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x4aa266
call fcn.004a8254
sub esp, 0x184
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x458600
xor eax, eax
jmp 0x4587b3
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x4be9a0
call fcn.00407037
push 0x110
lea eax, [ebp - 0x18c]
push ebx
push eax
call fcn.00478300
add esp, 0x18
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x458665
cmp dword [ebp - 0x18c], 6
jne 0x458665
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x458679
call fcn.0040a8db
jmp 0x45867e
call fcn.0040a88b
cmp eax, ebx
jne 0x458797
push 0x40
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.00478300
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.0040a946
add esp, 0x10
test al, al
jne 0x4586e3
cmp dword [ebp - 0x10], ebx
je 0x4586d9
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040aac0
pop ecx
push str.userenv.dll
mov dword [ebp - 0x70], str.Winsta0Default
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x458742
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x458742
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x45873f
mov dword [ebp - 0x14], 0x430
jmp 0x458742
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x458772
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x458780
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x458789
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
je 0x458797
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
je 0x4587a5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x458b2a
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], 0x288
push dword [ebp - 4]
call fcn.0047794d
mov edi, eax
test edi, edi
pop ecx
je 0x458b77
push dword [ebp - 4]
push 0
push edi
call fcn.00478300
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x458b7d
push edi
call fcn.0047a4c4
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x458b40
test esi, esi
jne 0x458bc4
test edi, edi
mov esi, edi
je 0x458bcf
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0047dca6
add esp, 0xc
test eax, eax
jne 0x458ba9
mov esi, dword [esi]
test esi, esi
jne 0x458b87
jmp 0x458bc4
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.0047c6d0
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x458bcf
push edi
call fcn.0047a4c4
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4590a5
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 6
pop ecx
xor esi, esi
push 1
push esi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
push esi
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, esi
je 0x45910f
push ebx
push 0x14
push str.wmsvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x45910b
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x459108
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov dword [ebp - 4], 1
push ebx
call esi
push edi
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x4594ad
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x4594be
mov eax, 0x13a
pop ecx
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4594d0
mov eax, 0x13b
pop ecx
ret
push dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.004585df
add esp, 0xc
test eax, eax
je 0x4594eb
xor eax, eax
pop ecx
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.0045846f
test eax, eax
pop ecx
pop ecx
jne 0x4594e7
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00458150
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffec7
pop ecx
add eax, 0x139
pop ecx
ret
Function at 0x459523
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x459599
lea eax, [ebp - 0x10]
push eax
push 0x4beaf4
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x459599
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x459599
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, 1
jne 0x459599
inc ebx
cmp dword [ebp - 4], edi
je 0x4595a7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x459679
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push edi
mov esi, eax
push 0xffffffffffffffff
call fcn.004577b6
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x45969e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, dword [esp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x4577d9
push edi
push edi
mov dword [esi + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi], eax
pop edi
pop esi
mov eax, ecx
ret 4

Function at 0x459f45
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a9e9f
call fcn.004a8254
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebx + 4]
push eax
mov dword [ebx], vtable.CSinglerReport.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
mov dword [ebp - 4], esi
or dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x24], esi
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
lea edi, [ebx + 0x34]
call fcn.004566a1
lea eax, [ebx + 0x94]
mov byte [ebp - 4], 2
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
lea esi, [ebx + 0xbc]
mov ecx, 0x4da2a0
call fcn.00405ea3
and dword [ebx + 0x1c], 0
and dword [ebx + 0x20], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x45b367
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [eax + 8]
push esi
xor esi, esi
inc esi
cmp ecx, esi
jne 0x45b3d6
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x45b383
push edi
call fcn.0045b525
mov eax, esi
pop esi
ret
cmp eax, 0x64
jne 0x45b3a0
push esi
xor eax, eax
push eax
push eax
push str.https:__youhua.imeitools.com_master_privacy_about.html
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x45b37f
cmp eax, 0x65
jne 0x45b3bf
push 7
push esi
call fcn.0045a977
push eax
call fcn.0045a3f9
push 2
pop ecx
mov eax, edi
call fcn.0042fd64
jmp 0x45b37f
cmp eax, 0x66
jne 0x45b3d6
push 8
push esi
call fcn.0045a977
push eax
call fcn.0045a3f9
push 3
jmp 0x45b3b5
and dword [edi + 0x504], 0
xor eax, eax
pop esi
ret
Function at 0x45c596
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4acfff
call fcn.004a8254
sub esp, 0x21c
mov eax, dword [0x4da2a0]
push ebx
push esi
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x226]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x228], bx
call fcn.00478300
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040607b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040607b
push 0x2e
lea esi, [ebp - 0x10]
call fcn.004070be
cmp eax, 0xffffffff
je 0x45c64b
mov ecx, eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.00407082
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00405db2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
fld1
lea eax, [ebp - 0x10]
fstp qword [ebp - 0x20]
push eax
call fcn.0045c296
test eax, eax
jne 0x45c6a8
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x45c6e3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov eax, ebx
jmp 0x45c697
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x45c74b
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [edi + 0xa]
push eax
mov dword [ebp - 0x14], ebx
call fcn.00408ac1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x45c741
cmp dword [ebp - 0x14], edi
jne 0x45c741
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x45c729
fld qword [ebp - 0x20]
fstp qword [eax]
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.0040a06e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x45c6c9
mov edx, dword [ebp + 0xc]
xor eax, eax
call fcn.00408ae7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x45c6c9
Function at 0x45eeb0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a9e68
call fcn.004a8254
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
fld1
fstp qword [esi + 0x10]
mov dword [esi], vtable.CBkPngSkin.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov eax, vtable.CBkBitmap.0
mov dword [esi + 0x48], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov byte [ebp - 4], 2
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
call fcn.00475afe
lea ecx, [esi + 0x80]
mov dword [ecx], eax
mov byte [eax + 0x15], 1
mov eax, dword [ecx]
mov dword [eax + 4], eax
mov eax, dword [ecx]
mov dword [eax], eax
mov ecx, dword [ecx]
mov dword [ecx + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x84], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x462849
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov ecx, dword [eax + 8]
inc ebx
cmp ecx, ebx
push edi
jne 0x46294a
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x462871
mov ecx, esi
call fcn.0046556c
mov eax, ebx
jmp 0x462953
cmp eax, 2
jne 0x462883
push 6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x46286a
cmp eax, 0x65
jne 0x462891
mov eax, esi
call fcn.00465bec
jmp 0x46286a
cmp eax, 0x6c
jne 0x46289d
call fcn.00465cb0
jmp 0x46286a
cmp eax, 0x66
jne 0x4628b5
xor eax, eax
cmp dword [esi + 0x510], eax
sete al
push eax
call fcn.004666d6
jmp 0x46286a
cmp eax, 0x191
jne 0x4628c6
push ebx
mov edi, esi
call fcn.0046600b
jmp 0x46286a
cmp eax, 0x96
jne 0x4628ef
push dword [esi + 0x53c]
push dword [esi + 0x514]
call dword [sym.imp.USER32.dll_SetWindowTextW]
xor eax, eax
push eax
push eax
mov eax, esi
call fcn.004654d3
jmp 0x46286a
cmp eax, 0x1f5
jne 0x462904
xor ecx, ecx
mov eax, esi
call fcn.0042fd64
jmp 0x46286a
cmp eax, 0x3e9
jne 0x462926
push ebx
xor eax, eax
push eax
push eax
push str.https:__youhua.imeitools.com_master_license.html
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x46286a
cmp eax, 0x3ea
jne 0x462939
push ebx
xor eax, eax
push eax
push eax
push str.https:__youhua.imeitools.com_master_privacy_about.html
jmp 0x462915
cmp eax, 0x68
jne 0x46294a
mov ebx, esi
call fcn.00466425
xor eax, eax
inc eax
jmp 0x462953
and dword [esi + 0x54c], 0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x462c06
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x462c7d
xor eax, eax
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x462c7d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
fild qword [ebp - 0x14]
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x4c1298]
fcomp qword [0x4c1290]
fnstsw ax
test ah, 1
jne 0x462c7d
inc esi
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4636f7
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4aa2dd
call fcn.004a8254
sub esp, 0x5c
mov eax, dword [0x4da2a0]
push esi
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str._stop__uninstall
push dword [ebp + 8]
xor esi, esi
push 0x4be9a0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00407037
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00478300
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x68], 0x44
push esi
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], si
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x46379a
cmp dword [ebp - 0x14], esi
je 0x463794
cmp ebx, esi
je 0x463794
mov dword [ebx], eax
jmp 0x46379a
push eax
call edi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], esi
je 0x4637a7
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4637c3
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4ab296
call fcn.004a8254
sub esp, 0x218
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x222]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov word [ebp - 0x224], bx
call fcn.00478300
mov esi, dword [ebp + 8]
mov edi, 0x4da2a0
add esp, 0xc
mov ecx, edi
call fcn.00405ea3
mov dword [ebp - 4], ebx
mov eax, dword [0x4da2a0]
xor esi, esi
inc esi
mov ecx, edi
mov dword [ebp - 0x18], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call fcn.00405e60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x463845
lea edi, [ebp - 0x10]
call fcn.004061dd
lea eax, [ebp - 0x1c]
push 0x4be58c
push eax
lea ecx, [ebp - 0x10]
call fcn.004098e5
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00405db2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405cd2
mov esi, dword [ebp - 0x14]
push esi
push 0x208
lea eax, [ebp - 0x224]
push eax
push 0x4b94e0
push str.TryNo
push 0x4be4cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4638ab
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call fcn.0040607b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405cd2
lea eax, [esi - 0x10]
call fcn.00405cd2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x463a17
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x40000000
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x463a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x463a65
push ebx
push edi
push 0x24
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x463a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x463aa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
jmp 0x463a63
push 6
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
rep stosd dword es:[edi], eax
xor edi, edi
cmp edi, dword [ebp + 0xc]
jge 0x463ade
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x463ad6
cmp dword [ebp - 0x1c], 1
je 0x463ade
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
jmp 0x463aaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x463a58
Function at 0x463e9b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x544], 0
jne 0x463ed7
push esi
lea esi, [ebp - 4]
call fcn.00463edf
push dword [eax]
push 2
push 0x4b9cd0
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x544], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405cd2
pop esi
mov eax, dword [edi + 0x544]
leave
ret

Function at 0x464306
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a9b4c
call fcn.004a8254
push ecx
push ecx
and dword [ebp - 0x10], 0
push ebx
push esi
and dword [ebp - 4], 0
call fcn.0047426a
lea esi, [ebp - 0x14]
call fcn.004742b5
mov eax, dword [eax]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
call fcn.0045657c
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405cd2
test bl, bl
jne 0x4643a0
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x4b94a4
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.00406148
test eax, eax
mov esi, dword [ebp - 0x14]
je 0x464398
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464398
mov eax, dword [ebp + 8]
mov dword [eax + 0x950], 1
lea eax, [esi - 0x10]
call fcn.00405cd2
cmp dword [ebp - 0x10], 0
je 0x4643af
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4643bf
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a9b4c
call fcn.004a8254
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.0047426a
lea esi, [ebp - 0x14]
call fcn.004742b5
mov eax, dword [eax]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
call fcn.0045657c
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405cd2
test bl, bl
je 0x464415
cmp dword [ebp - 0x10], edi
jmp 0x46451f
mov eax, dword [0x4da2a0]
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x4b94a4
lea ebx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406148
test eax, eax
mov esi, dword [ebp - 0x14]
je 0x464513
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464513
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x53c]
lea eax, [ebp - 0x14]
call fcn.00405db2
xor edi, edi
inc edi
mov eax, ebx
mov dword [ebx + 0x950], edi
call fcn.00466eb4
test eax, eax
je 0x46449a
lea eax, [esi - 0x10]
call fcn.00405cd2
cmp dword [ebp - 0x10], 0
je 0x464493
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x46452d
push 0
push 2
call fcn.0045a977
push eax
call fcn.0045a3f9
push 3
mov ecx, ebx
call fcn.00467618
cmp eax, edi
jne 0x4644c6
push edi
push 2
call fcn.0045a977
push eax
call fcn.0045a3f9
jmp 0x46447c
push 2
pop ecx
cmp eax, ecx
jne 0x4644d0
push ecx
jmp 0x4644d6
test eax, eax
jne 0x4644e2
push 3
push ecx
call fcn.0045a977
push eax
call fcn.0045a3f9
call fcn.0045a977
xor edi, edi
push edi
push edi
push dword [ebx + 0x950]
push 3
push eax
call fcn.00459fbd
lea eax, [esi - 0x10]
call fcn.00405cd2
cmp dword [ebp - 0x10], edi
je 0x46450f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x46452d
lea eax, [esi - 0x10]
call fcn.00405cd2
cmp dword [ebp - 0x10], 0
je 0x46452a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4