joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458884
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.004777af
mov edi, eax
test edi, edi
pop ecx
je 0x4588d1
push dword [ebp - 4]
push 0
push edi
call fcn.00478160
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x4588d7
push edi
call fcn.0047a324
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x45889a
test esi, esi
jne 0x45891e
test edi, edi
mov esi, edi
je 0x458929
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0047db56
add esp, 0xc
test eax, eax
jne 0x458903
mov esi, dword [esi]
test esi, esi
jne 0x4588e1
jmp 0x45891e
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.0047c580
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x458929
push edi
call fcn.0047a324
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x458dff
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 0x458e69
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 0x458e65
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x458e62
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 0x4592a4
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x4592b5
mov eax, 0x13a
pop ecx
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4592c7
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.004582c0
add esp, 0xc
test eax, eax
je 0x4592e2
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.00458150
test eax, eax
pop ecx
pop ecx
jne 0x4592de
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.00457ed1
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffec7
pop ecx
add eax, 0x139
pop ecx
ret
Function at 0x45931a
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 0x459390
lea eax, [ebp - 0x10]
push eax
push 0x4be9cc
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x459390
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 0x459390
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, 1
jne 0x459390
inc ebx
cmp dword [ebp - 4], edi
je 0x45939e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x459470
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push edi
mov esi, eax
push 0xffffffffffffffff
call fcn.004575b8
mov eax, dword [esi]
xor edi, edi
cmp eax, edi
je 0x459495
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 0x4575db
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 0x459d3c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a9e0f
call fcn.004a80c4
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.004564a3
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.00405f43
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 0x45b19e
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [eax + 8]
push esi
xor esi, esi
inc esi
cmp ecx, esi
jne 0x45b20d
mov eax, dword [eax + 0xc]
cmp eax, esi
jne 0x45b1ba
push edi
call fcn.0045b35c
mov eax, esi
pop esi
ret
cmp eax, 0x64
jne 0x45b1d7
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 0x45b1b6
cmp eax, 0x65
jne 0x45b1f6
push 7
push esi
call fcn.0045a76e
push eax
call fcn.0045a1f0
push 2
pop ecx
mov eax, edi
call fcn.0042fc2c
jmp 0x45b1b6
cmp eax, 0x66
jne 0x45b20d
push 8
push esi
call fcn.0045a76e
push eax
call fcn.0045a1f0
push 3
jmp 0x45b1ec
and dword [edi + 0x504], 0
xor eax, eax
pop esi
ret
Function at 0x45c3cd
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4ace08
call fcn.004a80c4
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.00478160
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.0040611b
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040611b
push 0x2e
lea esi, [ebp - 0x10]
call fcn.004071fb
cmp eax, 0xffffffff
je 0x45c482
mov ecx, eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004071bf
mov edi, esi
mov byte [ebp - 4], 1
call fcn.00405e52
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405d7c
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.0045c0cd
test eax, eax
jne 0x45c4df
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
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 0x45c51a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov eax, ebx
jmp 0x45c4ce
push ebx
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
je 0x45c582
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.00408c8d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
cmp esi, ebx
je 0x45c578
cmp dword [ebp - 0x14], edi
jne 0x45c578
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x45c560
fld qword [ebp - 0x20]
fstp qword [eax]
mov esi, dword [ebp + 0xc]
mov eax, edi
call fcn.0040a22f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x45c500
mov edx, dword [ebp + 0xc]
xor eax, eax
call fcn.00408cb3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x45c500
Function at 0x45ed02
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4a9dd8
call fcn.004a80c4
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.00405a15
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 0x46268f
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 0x462790
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x4626b7
mov ecx, esi
call fcn.004655bb
mov eax, ebx
jmp 0x462799
cmp eax, 2
jne 0x4626c9
push 6
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4626b0
cmp eax, 0x65
jne 0x4626d7
mov eax, esi
call fcn.00465c3b
jmp 0x4626b0
cmp eax, 0x6c
jne 0x4626e3
call fcn.00465cf5
jmp 0x4626b0
cmp eax, 0x66
jne 0x4626fb
xor eax, eax
cmp dword [esi + 0x510], eax
sete al
push eax
call fcn.00466711
jmp 0x4626b0
cmp eax, 0x191
jne 0x46270c
push ebx
mov edi, esi
call fcn.00466050
jmp 0x4626b0
cmp eax, 0x96
jne 0x462735
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.00465522
jmp 0x4626b0
cmp eax, 0x1f5
jne 0x46274a
xor ecx, ecx
mov eax, esi
call fcn.0042fc2c
jmp 0x4626b0
cmp eax, 0x3e9
jne 0x46276c
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 0x4626b0
cmp eax, 0x3ea
jne 0x46277f
push ebx
xor eax, eax
push eax
push eax
push str.https:__youhua.imeitools.com_master_privacy_about.html
jmp 0x46275b
cmp eax, 0x68
jne 0x462790
mov ebx, esi
call fcn.00466460
xor eax, eax
inc eax
jmp 0x462799
and dword [esi + 0x54c], 0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x462a4c
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 0x462ac3
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 0x462ac3
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 [0x4c1268]
fcomp qword [0x4c1260]
fnstsw ax
test ah, 1
jne 0x462ac3
inc esi
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x46353d
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ad1da
call fcn.004a80c4
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 0x4be878
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00407174
push 0x40
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00478160
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 0x4635e0
cmp dword [ebp - 0x14], esi
je 0x4635da
cmp ebx, esi
je 0x4635da
mov dword [ebx], eax
jmp 0x4635e0
push eax
call edi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x20], esi
je 0x4635ed
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x463609
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4ab0ba
call fcn.004a80c4
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.00478160
mov esi, dword [ebp + 8]
mov edi, 0x4da2a0
add esp, 0xc
mov ecx, edi
call fcn.00405f43
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.00405f00
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x46368b
lea edi, [ebp - 0x10]
call fcn.0040627d
lea eax, [ebp - 0x1c]
push 0x4be464
push eax
lea ecx, [ebp - 0x10]
call fcn.00409aa6
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00405e52
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405d7c
mov esi, dword [ebp - 0x14]
push esi
push 0x208
lea eax, [ebp - 0x224]
push eax
push 0x4b94e0
push str.TryNo
push 0x4be3a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4636f1
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call fcn.0040611b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405d7c
lea eax, [esi - 0x10]
call fcn.00405d7c
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 0x46385d
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 0x463882
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4638ab
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 0x4638ae
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 0x4638e6
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 0x4638a9
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 0x463924
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46391c
cmp dword [ebp - 0x1c], 1
je 0x463924
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
jmp 0x4638f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x46389e
Function at 0x463f3a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x544], 0
jne 0x463f76
push esi
lea esi, [ebp - 4]
call fcn.00463f7e
push dword [eax]
push 2
push 0x4b9ca0
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.00405d7c
pop esi
mov eax, dword [edi + 0x544]
leave
ret

Function at 0x4643a5
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ad1f4
call fcn.004a80c4
push ecx
push ecx
and dword [ebp - 0x10], 0
push ebx
push esi
and dword [ebp - 4], 0
call fcn.004742ce
lea esi, [ebp - 0x14]
call fcn.00474319
mov eax, dword [eax]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
call fcn.0045637e
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405d7c
test bl, bl
jne 0x46443f
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.004061e8
test eax, eax
mov esi, dword [ebp - 0x14]
je 0x464437
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464437
mov eax, dword [ebp + 8]
mov dword [eax + 0x950], 1
lea eax, [esi - 0x10]
call fcn.00405d7c
cmp dword [ebp - 0x10], 0
je 0x46444e
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 0x46445e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ad1f4
call fcn.004a80c4
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.004742ce
lea esi, [ebp - 0x14]
call fcn.00474319
mov eax, dword [eax]
push 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebp - 0x10]
call fcn.0045637e
mov ebx, eax
mov eax, dword [ebp - 0x14]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00405d7c
test bl, bl
je 0x4644b4
cmp dword [ebp - 0x10], edi
jmp 0x4645be
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.004061e8
test eax, eax
mov esi, dword [ebp - 0x14]
je 0x4645b2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4645b2
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x53c]
lea eax, [ebp - 0x14]
call fcn.00405e52
xor edi, edi
inc edi
mov eax, ebx
mov dword [ebx + 0x950], edi
call fcn.00466ec0
test eax, eax
je 0x464539
lea eax, [esi - 0x10]
call fcn.00405d7c
cmp dword [ebp - 0x10], 0
je 0x464532
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4645cc
push 0
push 2
call fcn.0045a76e
push eax
call fcn.0045a1f0
push 3
mov ecx, ebx
call fcn.00467624
cmp eax, edi
jne 0x464565
push edi
push 2
call fcn.0045a76e
push eax
call fcn.0045a1f0
jmp 0x46451b
push 2
pop ecx
cmp eax, ecx
jne 0x46456f
push ecx
jmp 0x464575
test eax, eax
jne 0x464581
push 3
push ecx
call fcn.0045a76e
push eax
call fcn.0045a1f0
call fcn.0045a76e
xor edi, edi
push edi
push edi
push dword [ebx + 0x950]
push 3
push eax
call fcn.00459db4
lea eax, [esi - 0x10]
call fcn.00405d7c
cmp dword [ebp - 0x10], edi
je 0x4645ae
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4645cc
lea eax, [esi - 0x10]
call fcn.00405d7c
cmp dword [ebp - 0x10], 0
je 0x4645c9
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
Function at 0x464c3d
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4ad027
call fcn.004a80c4
sub esp, 0x1c
mov eax, dword [0x4da2a0]
push ebx
push esi
push edi
mov ecx, 0x4da2a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._x_
lea eax, [ebp - 0x14]
call fcn.00407174
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.004649d7
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040683b
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov esi, dword [ebp + 8]
lea edi, [esi + 0x570]
mov dword [ebp - 0x10], edi
call fcn.00405e52
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405d7c
add esi, 0x550
call fcn.00473246
test eax, eax
je 0x464dcc
cmp dword [esi + 8], 0x100000
jb 0x464dcc
call fcn.004732f5
test eax, eax
jne 0x464cff
mov ebx, esi
call fcn.0047334d
test eax, eax
je 0x464dcc
push dword [edi]
mov ecx, esi
push 0
call fcn.004730a8
lea eax, [ebp - 0x18]
push 0x4b95bc
push eax
mov ecx, edi
call fcn.00409aa6
lea ecx, [ebp - 0x1c]
push 0x4db368
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040683b
add esp, 0x10
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.004742ce
pop ecx
mov ecx, eax
call fcn.0047434b
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00405d7c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405d7c
push dword [edi]
lea eax, [ebp - 0x28]
push eax
call fcn.00463609
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov esi, dword [eax]
call fcn.004742ce
mov ebx, dword [eax + 0x14]
call fcn.004742ce
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
call fcn.004742ce
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
call fcn.004742ce
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.004742ce
mov eax, dword [eax + 4]
push esi
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.0045a76e
mov ecx, dword [ebp - 0x24]
call fcn.0045a299
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405d7c
call fcn.00470ced
mov ecx, edi
mov edx, eax
call fcn.00470d2f
mov ebx, dword [ebp + 8]
call fcn.00466dae
mov edi, ebx
push edi
call fcn.00466edc
call fcn.0046427d
push edi
call fcn.00464a9d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push str._res
push eax
call fcn.00409aa6
pop ecx
pop ecx
mov byte [ebp - 4], 6
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x464e33
push dword [ebp + 8]
call fcn.0040ec07
push eax
call fcn.0040611b
call fcn.0040f165
mov ebx, eax
call fcn.0040f190
call fcn.00461fc4
call fcn.00462308
call fcn.00462492
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405d7c
push edi
call fcn.0046696e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405d7c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4