joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e70
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a856
mov eax, dword fs:[0]
push eax
sub esp, 0xc64
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0xc70]
call fcn.00408ec6
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x830]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
lea edx, [ebp - 0x830]
push edx
lea ecx, [ebp - 0xc70]
call fcn.00409382
mov dword [ebp - 0xc44], eax
cmp dword [ebp - 0xc44], 0
je 0x402037
lea ecx, [ebp - 0xc70]
call fcn.0040952a
mov dword [ebp - 0xc44], eax
lea ecx, [ebp - 0xc70]
call fcn.004098f5
test eax, eax
jne 0x402032
lea eax, [ebp - 0xc50]
push eax
lea ecx, [ebp - 0xc70]
call fcn.00409619
mov dword [ebp - 0xc4c], eax
mov ecx, dword [ebp - 0xc4c]
mov dword [ebp - 0xc54], ecx
mov byte [ebp - 4], 1
push 0x104
mov ecx, dword [ebp - 0xc54]
call fcn.00402440
push eax
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc50]
call fcn.004020c0
lea ecx, [ebp - 0xc70]
call fcn.00402080
test eax, eax
je 0x401fdc
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x58e608
lea edx, [ebp - 0xc40]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x58e614
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0xc40]
push edx
call fcn.00401e70
add esp, 8
jmp 0x402032
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x58e620
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s_s
lea edx, [ebp - 0xa38]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0xa38]
push eax
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x401ee0
lea ecx, [ebp - 0xc70]
call fcn.004092af
mov dword [ebp - 0xc48], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc70]
call fcn.00409077
mov eax, dword [ebp - 0xc48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x402500
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54a895
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5b0050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x3c], 0xff
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0x18]
call fcn.0040af2a
push 0
call fcn.0040b8c7
add esp, 4
push 0xc
call fcn.00402c40
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
je 0x402579
mov ecx, dword [ebp - 0x1c]
call fcn.0040c513
mov dword [ebp - 0x20], eax
jmp 0x402580
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], edx
push 0x55bd38
call fcn.004142c7
push 0x58e638
mov ecx, dword [ebp - 0x18]
call fcn.004179ba
push str.WEWIN_DRV_SETUP_MUTEX
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4025da
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00531f31
push 0
lea ecx, [ebp - 0x104]
call fcn.00402c80
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x104]
mov dword [ecx + 0x20], edx
push 0
push 0
push 0x1000
push 1
push 0
push 0x401b40
call fcn.00417cba
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x104]
call fcn.00418c46
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x402655
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x40264e
push 1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x38], eax
jmp 0x402655
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.00402680
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4039f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
call fcn.00401bb0
test eax, eax
je 0x403aa9
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0x40
push str.Windows_x64
mov edx, dword [ebp - 0x18]
add edx, 8
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x104
mov eax, dword [ebp - 0x18]
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x58eb64
mov ecx, dword [ebp - 0x18]
add ecx, 0x108
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov edx, dword [ebp - 0x18]
add edx, 0x108
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x310
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x58eb68
mov ecx, dword [ebp - 0x18]
add ecx, 0x310
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
xor edx, edx
mov word [eax], dx
push str.SysWOW64_
mov eax, dword [ebp - 0x18]
add eax, 0x310
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
jmp 0x403aee
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], 0x20
push str.Windows_NT_x86
mov edx, dword [ebp - 0x18]
add edx, 8
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x104
mov eax, dword [ebp - 0x18]
add eax, 0x108
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x58ebb0
mov ecx, dword [ebp - 0x18]
add ecx, 0x108
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x208
mov edx, dword [ebp - 0x18]
add edx, 0x518
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
mov eax, dword [ebp - 0x18]
add eax, 0x518
push eax
call fcn.00408e20
add esp, 8
mov ecx, 2
imul edx, ecx, 0
xor ecx, ecx
mov word [eax + edx], cx
mov dword [ebp - 0x14], 0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
lea esi, [ebp - 0x14]
mov eax, 1
xor ecx, ecx
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + ecx - 0x14]
mov dword [edx + 0x928], eax
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x403b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x308], ecx
mov eax, dword [0x58ebb4]
mov dword [ebp - 0x304], eax
mov ecx, dword [str.x.ini]
mov dword [ebp - 0x300], ecx
mov edx, dword [0x58ebbc]
mov dword [ebp - 0x2fc], edx
mov eax, dword [0x58ebc0]
mov dword [ebp - 0x2f8], eax
push 0xf0
push 0
lea ecx, [ebp - 0x2f4]
push ecx
call fcn.005341e0
add esp, 0xc
mov ecx, 8
mov esi, str.MakeIDP1Box.exe
lea edi, [ebp - 0x204]
rep movsd dword es:[edi], dword [esi]
push 0xe0
push 0
lea edx, [ebp - 0x1e4]
push edx
call fcn.005341e0
add esp, 0xc
mov ecx, 8
mov esi, 0x58ebe4
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
push 0xe0
push 0
lea eax, [ebp - 0xe4]
push eax
call fcn.005341e0
add esp, 0xc
mov dword [ebp - 0x30c], 0
jmp 0x403c4a
mov ecx, dword [ebp - 0x30c]
add ecx, 1
mov dword [ebp - 0x30c], ecx
cmp dword [ebp - 0x30c], 3
jge 0x403c80
mov edx, dword [ebp - 0x30c]
shl edx, 8
lea eax, [ebp + edx - 0x304]
push eax
mov ecx, dword [ebp - 0x30c]
shl ecx, 8
mov edx, dword [ebp - 0x308]
lea eax, [edx + ecx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x403c3b
mov ecx, dword [ebp - 0x308]
add ecx, 0x304
push ecx
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x403cd3
push 0x104
mov edx, dword [ebp - 0x308]
add edx, 0x304
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x58ec04
mov eax, dword [ebp - 0x308]
add eax, 0x304
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
xor ecx, ecx
mov word [eax], cx
push 0x58ec08
mov edx, dword [ebp - 0x308]
add edx, 0x304
push edx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x58ec0c
mov eax, dword [ebp - 0x308]
add eax, 0x304
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, dword [ebp - 0x308]
mov dword [ecx], 1
push 0x5be218
mov edx, dword [ebp - 0x308]
add edx, 0x304
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x403d36
mov eax, dword [ebp - 0x308]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x403d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], str..pipewwP1Pipe
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x10], eax
push 0xbb8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x403d96
xor eax, eax
jmp 0x403e06
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x403dbf
xor eax, eax
jmp 0x403e06
push 0
lea edx, [ebp - 0xc]
push edx
push 0x32
push str.exit
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403de8
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403e06
push 0x1388
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x404260
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x238], 0x58ed28
mov dword [ebp - 0x21c], 2
mov dword [ebp - 0x240], 2
mov dword [ebp - 0x23c], 0
push 0x58ed24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ecx, dword [ebp - 0x230]
add ecx, 0x304
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push str._service_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x58ed98
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x58edb8
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
cmp dword [0x5bdd04], 0x40
jne 0x40431d
mov eax, dword [ebp - 0x21c]
or eax, 0x100
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
push 0
push 0x58edd0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40434d
xor eax, eax
jmp 0x4044a1
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
add ecx, 2
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x214]
mov ax, word [edx]
mov word [ebp - 0x220], ax
add dword [ebp - 0x214], 2
cmp word [ebp - 0x220], 0
jne 0x404368
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp - 0x224]
sar ecx, 1
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push 0x58ee2c
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40448f
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x210]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404408
xor eax, eax
jmp 0x4044a1
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x218]
mov dx, word [ecx]
mov word [ebp - 0x21e], dx
add dword [ebp - 0x218], 2
cmp word [ebp - 0x21e], 0
jne 0x404423
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x228]
sar eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.wwP1Ser
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40449c
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x4044b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x24c], 0
push 0x38
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.005341e0
add esp, 0xc
mov ecx, dword [ebp - 0x210]
add ecx, 0x304
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x58edbc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov dword [ebp - 0x24c], 0x3c
mov dword [ebp - 0x248], 0x40
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], str.MakeIDP1Ser.exe
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], 5
mov dword [ebp - 0x22c], 0
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x405150
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x405182
xor eax, eax
jmp 0x405278
push 0x34
push 0x58f2ec
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4051ad
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405278
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4051da
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405278
cmp dword [ebp - 0x1c], 1
jne 0x40525f
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40520a
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x405278
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x40525f
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 4
jne 0x40525d
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x405278
jmp 0x40521b
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x405290
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
push 0x20000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4052c2
xor eax, eax
jmp 0x4053be
push 0x34
push str.Spooler
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4052ed
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4053be
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40531a
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4053be
cmp dword [ebp - 0x1c], 4
jne 0x4053a5
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x405350
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4053be
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
jne 0x4053a5
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x1c], 1
jne 0x4053a3
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x4053be
jmp 0x405361
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x4053d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x628], 0
push 0x5bde08
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp dword [0x5bdd04], 0x40
jne 0x405420
push 0x5be010
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x58f30c
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405462
mov eax, 1
jmp 0x4055af
mov dword [ebp - 0x620], 0
jmp 0x40547d
mov eax, dword [ebp - 0x620]
add eax, 1
mov dword [ebp - 0x620], eax
cmp dword [ebp - 0x620], 0x14
jge 0x4054e8
mov ecx, dword [ebp - 0x620]
push ecx
push 0x58f32c
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4054e6
mov eax, 1
jmp 0x4055af
jmp 0x40546e
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x58f348
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40552a
mov eax, 1
jmp 0x4055af
mov dword [ebp - 0x624], 0
jmp 0x405545
mov eax, dword [ebp - 0x624]
add eax, 1
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0x14
jge 0x4055ad
mov ecx, dword [ebp - 0x624]
push ecx
push 0x58f368
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4055ab
mov eax, 1
jmp 0x4055af
jmp 0x405536
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret
Function at 0x407d40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5b0050]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ecx
push 0x5bdaf4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push str.wwP1config.ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0xbb8
call fcn.00401b80
add esp, 4
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x414]
push eax
push str.busy
push str.status
push str.monitor
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.free
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x407dcf
mov eax, 1
jmp 0x407dd1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531c35
mov esp, ebp
pop ebp
ret