joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40419b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4041d2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4041ce
jmp 0x4041c0
cmp esi, eax
jae 0x4041d2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4041c0
cmp esi, eax
jb 0x4041d9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565290
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [esi], edi
je 0x40634e
cmp ebx, edi
je 0x40634e
cmp dword [ebp + 8], edi
je 0x40634e
lea ecx, [ebp - 0x18]
lea eax, [esi + 4]
push ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
call fcn.00406480
test eax, eax
je 0x4062c1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x18]
push ecx
push edi
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 4], edi
mov eax, dword [esi]
push edi
push ebx
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406319
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00448ab7
mov ecx, dword [esi]
add esp, 4
lea edx, [ebp - 0x18]
push edx
mov edi, eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406330
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push ebx
mov dword [edx], edi
call fcn.004067b0
mov dword [eax], edi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x14], 0x80010080
jmp 0x406319
mov eax, 0x80010001
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [edi + 4]
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, 8
jne 0x407093
mov eax, dword [ebp + 8]
mov ebx, dword [edi + 8]
push eax
lea ecx, [edi + 0x20]
push ecx
mov dword [ebp - 8], ebx
call fcn.00407150
add esp, 8
test al, al
jne 0x407141
cmp dword [edi + 0x18], esi
jbe 0x407141
add ebx, 4
mov eax, dword [ebx]
test eax, eax
je 0x407040
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
push eax
push ecx
call fcn.0053d3bf
add esp, 8
test eax, eax
je 0x40704a
inc esi
add ebx, 0x78
cmp esi, dword [edi + 0x18]
jb 0x407013
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404160
mov ecx, dword [ebp - 8]
mov eax, esi
shl eax, 4
sub eax, esi
mov edx, dword [ecx + eax*8 + 0x14]
test edx, edx
jne 0x407060
xor eax, eax
jmp 0x407074
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407065
sub eax, ebx
sar eax, 1
mov ecx, dword [ebp + 0xc]
push eax
push edx
call fcn.00405470
mov dword [edi + 0x1c], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x40713e
mov edx, dword [ebp + 8]
mov ebx, dword [edi + 0x24]
push edx
lea eax, [edi + 0x3c]
push eax
mov dword [ebp - 8], ebx
call fcn.00407150
add esp, 8
test al, al
jne 0x407141
cmp dword [edi + 0x34], esi
jbe 0x407141
add ebx, 4
mov eax, dword [ebx]
test eax, eax
je 0x407040
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push eax
push ecx
call fcn.0053d3bf
add esp, 8
test eax, eax
je 0x4070f7
inc esi
add ebx, 0x18
cmp esi, dword [edi + 0x34]
jb 0x4070c6
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 8]
lea edx, [esi + esi*2]
mov edx, dword [eax + edx*8 + 0x14]
test edx, edx
jne 0x407109
xor eax, eax
jmp 0x40711f
mov eax, edx
lea ebx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407110
sub eax, ebx
sar eax, 1
mov ecx, dword [ebp + 0xc]
push eax
push edx
call fcn.00405470
mov dword [edi + 0x38], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4114f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov ebx, ecx
push 0
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x411593
lea ecx, [ebp - 0x20c]
push 0x5c
push ecx
call fcn.0053dda2
add esp, 8
push 0x5960a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5958c8
lea edx, [ebp - 0x20c]
push edx
call ebx
push str.DebugSettings.ini
lea eax, [ebp - 0x20c]
push eax
call ebx
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0x5988ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
mov ecx, ebx
call fcn.00404f00
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x412420
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566ec6
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x264], eax
xor ecx, ecx
push edi
mov eax, 0x5988ec
lea esi, [ebp - 0x234]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x254], 1
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
call fcn.00403030
mov dword [ebp - 4], edi
mov edx, dword [ebx + 0x14]
cmp edx, dword [ebx + 0x18]
lea edi, [ebx + 0x14]
jne 0x4125f9
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4125a3
lea ecx, [ebp - 0x218]
push 0x5c
push ecx
call fcn.0053dda2
add esp, 8
push 0x5960a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5958c8
lea edx, [ebp - 0x218]
push edx
call esi
push str.DebugSettings.ini
lea eax, [ebp - 0x218]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0xfffe
push 8
push eax
mov dword [ebp - 0x260], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x25c], esi
test esi, esi
je 0x4125a3
lea ecx, [ebp - 0x218]
push ecx
push 0x7fff
push esi
push str.Non_Display_Message
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [esi], 0
mov ebx, esi
je 0x41258d
mov eax, ebx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412550
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x234]
call fcn.00403030
mov ecx, esi
call fcn.0040b6d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 + 2], 0
lea ebx, [ebx + eax*2 + 2]
jne 0x412548
mov esi, dword [ebp - 0x25c]
mov edx, dword [ebp - 0x260]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x258]
xor eax, eax
mov word [ebp - 0x250], ax
push 7
mov eax, str.MSG_END
lea esi, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
call fcn.00403030
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040b6d0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x23c], 8
jb 0x4125f9
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00448ac2
add esp, 4
mov edi, dword [edi]
cmp edi, dword [ebx + 0x18]
je 0x41264e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0
push edi
or eax, 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00402e40
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41262c
lea eax, [ebp - 0x234]
mov edx, dword [ebp - 0x264]
push edx
push eax
call esi
test eax, eax
je 0x412644
add edi, 0x1c
cmp edi, dword [ebx + 0x18]
jne 0x412606
jmp 0x41264e
mov dword [ebp - 0x254], 0
cmp dword [ebp - 0x220], 8
jb 0x412666
mov eax, dword [ebp - 0x234]
push eax
call fcn.00448ac2
add esp, 4
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret 4
Function at 0x4139a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.PrinterDriverData
xor eax, eax
push edi
push str.SystemCurrentControlSetControlPrintPrinters
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], al
lea eax, [ebp - 0x624]
xor esi, esi
push str._s_s_s
push eax
mov dword [ebp - 0x628], esi
mov dword [ebp - 0x62c], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x630]
push ecx
push 0x20019
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x624]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x413ab7
lea eax, [ebp - 0x628]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x413b60
mov edx, dword [ebp - 0x628]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20019
push eax
push edi
push edx
call esi
test eax, eax
je 0x413a6e
mov eax, dword [ebp - 0x628]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x62c]
lea ecx, [ebp - 0x630]
push ecx
push 0x20019
push 0
push str.PrinterDriverData
push edx
call esi
test eax, eax
je 0x413ab7
mov eax, dword [ebp - 0x62c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x628]
push ecx
call esi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x634]
push edx
mov edx, dword [ebp - 0x630]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x638]
push ecx
push 0
push str.PrinterID
push edx
mov dword [ebp - 0x634], 4
mov dword [ebp - 0x638], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x413b3d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x630]
mov cl, byte [ebp - 8]
mov dword [ebx], eax
push edx
mov byte [ebx + 4], cl
call esi
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x413b1c
push eax
call esi
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x413b29
push eax
call esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x630]
push eax
call esi
mov eax, dword [ebp - 0x62c]
test eax, eax
je 0x413b53
push eax
call esi
mov eax, dword [ebp - 0x628]
test eax, eax
je 0x413b60
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x415af0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x40]
push str.Tool_GetSpoolerServiceStatus
push eax
call fcn.00401190
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.0044b52d
mov ecx, dword [eax + 4]
call fcn.0044b937
xor edi, edi
push 0xf003f
push edi
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x415bd5
push 4
push str.SPOOLER
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x415bbb
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ecx, [ecx]
lea ecx, [ebp - 0x2c]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 1
je 0x415ba9
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jb 0x415b80
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x38]
jmp 0x415bcb
mov edx, dword [ebp - 0x28]
push edi
mov dword [ebp - 0x30], edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x38]
jmp 0x415bcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x415bcb
mov dword [ebp - 0x30], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x30]
push edi
push str.return___08x
lea eax, [ebp - 0x40]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x31]
mov byte [ebp - 4], 0
call fcn.0040dcb0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x416720
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56383b
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x42c]
push str.VDCUDeleteService
push eax
call fcn.00401190
add esp, 0xc
push 0x44
lea ecx, [ebp - 0x490]
push ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.00541d20
add esp, 0xc
xor eax, eax
push 0x208
lea edx, [ebp - 0x218]
push ebx
push edx
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x438], eax
call fcn.00541d20
add esp, 0xc
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
mov dword [ebp - 0x424], ebx
call fcn.00541d20
add esp, 0xc
push str.SOFTWARECanonVDCSETUP
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x424]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x420]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41683c
lea edx, [ebp - 0x434]
push edx
mov edx, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x448]
push ecx
push ebx
push str.Path
push edx
mov dword [ebp - 0x434], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41686c
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.return___08x
lea ecx, [ebp - 0x42c]
push 2
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x416945
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5958c8
lea ecx, [ebp - 0x218]
xor eax, eax
push ecx
mov dword [ebp - 0x490], 0x44
mov dword [ebp - 0x464], 1
mov word [ebp - 0x460], ax
call esi
push str.AuVdc.exe
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x444]
push eax
lea ecx, [ebp - 0x490]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.__remove
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp - 0x444]
mov edi, eax
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x430], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x416917
lea ecx, [ebp - 0x430]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call ebx
push edi
push str.return___08x
lea edx, [ebp - 0x42c]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x416970
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5637fb
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x138]
push str.Tool_VDCServiceStopAndStart
push eax
call fcn.00401190
add esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push ecx
push str.bVdcCtrl___d__bDebug___d
lea edx, [ebp - 0x138]
push 1
push edx
mov dword [ebp - 4], ebx
call fcn.00401410
xor eax, eax
add esp, 0x14
push pe_nt_image_headers32
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00541d20
add esp, 0xc
push 0x20000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebx
jne 0x416a57
push ebx
push str.return___08x
push 2
lea ecx, [ebp - 0x138]
push ecx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
xor eax, eax
jmp 0x416b5c
push 0xf01ff
push str.Canon_NetSpot_Suite_Service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
jne 0x416a86
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
push str.return___08x
push 2
lea edx, [ebp - 0x138]
push edx
jmp 0x416a36
cmp dword [ebp + 8], ebx
je 0x416abc
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x416b20
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push ebx
push str.return___08x
push 2
lea eax, [ebp - 0x138]
push eax
jmp 0x416a36
lea ecx, [ebp - 0x130]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x416aef
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0
push str.return___08x
push 2
lea edx, [ebp - 0x138]
push edx
jmp 0x416a36
cmp dword [ebp - 0x12c], 1
je 0x416b25
lea eax, [ebp - 0x130]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, 1
je 0x416b20
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0
jmp 0x416a28
mov ebx, 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push ebx
push str.return___08x
lea edx, [ebp - 0x138]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret
Function at 0x416ee0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5637bb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1068
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x1064], eax
push esi
push edi
mov eax, dword [0x5c0490]
xor eax, esp
push eax
lea eax, [esp + 0x1078]
mov dword fs:[0], eax
push 0
lea eax, [esp + 0x10]
push str.ServiceStopFromCmdLine
push eax
call fcn.00401190
add esp, 0xc
push str.SPOOLER
push str.lpszService___s
lea ecx, [esp + 0x14]
push 1
push ecx
mov dword [esp + 0x1090], 0
call fcn.00401410
push 0x400
lea edx, [esp + 0x80]
push 0
push edx
call fcn.00541d20
add esp, 0x1c
push 0x400
lea eax, [esp + 0x470]
push 0
push eax
call fcn.00541d20
add esp, 0xc
push 0x200
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.cmd.exe
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x474]
push 0x594b70
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00541d20
add esp, 0x1c
push str.SPOOLER
push str._C_net_stop___s___Y
lea ecx, [esp + 0x874]
xor eax, eax
push 0x400
push ecx
mov dword [esp + 0x34], 0x44
mov word [esp + 0x64], ax
mov dword [esp + 0x60], 1
call fcn.0053ca82
add esp, 0x10
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88c]
push ecx
lea edx, [esp + 0x490]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x417082
mov eax, dword [esp + 0x14]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call edi
push str.SPOOLER
push str.SPOOLER
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417082
call fcn.0044b52d
mov eax, dword [eax + 4]
mov dword [eax + 0x870], 1
push esi
push str.return___08x
lea eax, [esp + 0x14]
push 2
push eax
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x1080], 0xffffffff
call fcn.00401370
mov eax, esi
mov ecx, dword [esp + 0x1078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret