joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4908e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x234], eax
mov dword [eax], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x490937
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x490950
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x228], ebx
jbe 0x49096c
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e3717
add esp, 8
test eax, eax
je 0x49097f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x490950
jmp 0x490992
mov ecx, dword [ebp - 0x234]
mov ebx, 1
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x4909b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 1
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], 0
nop
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x490a45
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x490a3e
nop dword [eax + eax]
cmp dword [ebp - 0x228], 0
jbe 0x490a2d
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e3717
add esp, 8
test eax, eax
je 0x490a58
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x490a10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor ebx, ebx
push ebx
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x490ab9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1f4
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x490ab9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x490ab9
push edi
push str.QMTProcess::CloseProcessByID___d
push 0x550bb8
call fcn.0048d900
add esp, 0xc
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
test edi, edi
je 0x490a45
mov edi, dword [ebp - 0x238]
cmp eax, 0xa
jl 0x4909e0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x490fc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x228
mov dword [ebp - 0x234], eax
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004dfec0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x49107c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x491075
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0x228]
cmp ecx, edi
je 0x49105c
test ecx, ecx
je 0x49105c
cmp ecx, 4
je 0x49105c
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004e3717
add esp, 8
test eax, eax
je 0x49106f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x491030
jmp 0x491074
mov ebx, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x491090
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5103b0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x550144]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x491204
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
push 0
push 2
mov dword [ebp - 4], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x491123
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x491159
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
push esi
call fcn.0048d310
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4911e6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4911e6
mov ebx, dword [ebp + 0xc]
nop dword [eax]
cmp dword [ebp - 0x234], ebx
je 0x49117b
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x491160
jmp 0x4911ac
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491184
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.0044f580
mov esi, dword [ebp - 0x240]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
push esi
call fcn.0048d310
mov ebx, dword [ebp - 0x244]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4911e6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
int3
Function at 0x491210
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5103f0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x550144]
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 ebx, dword [ebp + 8]
push 0x18
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
call fcn.004de0ba
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x248], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x240], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4912b8
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4912e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x248]
call fcn.004914a0
mov eax, esi
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.004de0fd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x248]
call fcn.004913c0
mov ecx, dword [ebp - 0x224]
mov dword [eax], ecx
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4912e3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xa
nop word [eax + eax]
mov esi, dword [ebp - 0x248]
mov ecx, esi
mov edx, dword [ebp - 0x240]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x49134b
cmp dword [eax + 0x10], edx
jae 0x491341
mov eax, dword [eax + 8]
jmp 0x491345
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x491337
cmp byte [ecx + 0xd], 0
jne 0x49139c
cmp edx, dword [ecx + 0x10]
jb 0x49139c
cmp ecx, esi
je 0x49139c
mov eax, edi
dec edi
test eax, eax
je 0x49139c
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x248]
call fcn.004913c0
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x240], ecx
cmp eax, dword [ebx + 8]
je 0x49138b
mov dword [eax], ecx
add dword [ebx + 4], 4
jmp 0x491320
lea ecx, [ebp - 0x240]
push ecx
push eax
mov ecx, ebx
call fcn.0047e2b0
jmp 0x491320
mov esi, 1
jmp 0x4912ba
Function at 0x491c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51045d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x550144]
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 ebx, ecx
mov dword [ebp - 0x18], ebx
cmp dword [ebx + 8], 0
jne 0x491df4
mov edi, dword [ebp + 8]
test edi, edi
je 0x491d0d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491cc6
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x491d0d
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.004de5f0
mov esi, esp
test esi, esi
je 0x491d0d
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x491d0f
xor esi, esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.00491e70
mov dword [ebp - 4], 0
mov eax, 0x5369e4
mov esi, dword [ebp - 0x14]
sub eax, esi
push 2
push 0x5369e4
mov dword [ebp - 0x1c], eax
mov edi, dword [esi - 0xc]
call fcn.004e33b6
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
mov dword [ebp - 0x20], edx
add esp, 8
cmp ecx, edi
jl 0x491e64
lea ebx, [edi + edx]
test ebx, ebx
js 0x491e64
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x491d80
push ebx
lea ecx, [ebp - 0x14]
call fcn.0046d9b0
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x491d8b
add eax, esi
jmp 0x491d90
mov eax, 0x5369e4
push edx
push eax
push edx
lea eax, [edi + esi]
push eax
call fcn.0046dae0
lea edi, [esi - 0x10]
add esp, 0x10
cmp ebx, dword [edi + 8]
jg 0x491e64
push 0
mov dword [edi + 4], ebx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov byte [ebx + esi], 0
push dword [edi + 4]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491dd4
call fcn.00471640
mov esi, eax
jmp 0x491dd6
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x491e3c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x491e3c
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x18]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x491e1c
call fcn.00471640
mov esi, eax
test esi, esi
js 0x491e3c
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x538680
push dword [ebx]
call edi
test eax, eax
jne 0x491e3a
call fcn.00471640
mov esi, eax
jmp 0x491e3c
xor esi, esi
not esi
shr esi, 0x1f
mov eax, esi
lea esp, [ebp - 0x30]
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.004de0fd
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00450260
int3
Function at 0x4925f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510530
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x550144]
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 + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0xb0], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492658
push 1
push esi
call fcn.00487970
add esp, 8
lea ecx, [ebp - 0xa4]
call fcn.004894b0
mov eax, dword [ebp + 0x1c]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492675
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa4]
call fcn.0044a770
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492696
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x8c]
call fcn.0044a770
mov esi, dword [ebp - 0xa8]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4926c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x74]
call fcn.0044a770
mov esi, dword [ebp - 0xac]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4926e4
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.0044a770
mov esi, dword [ebp - 0xb0]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492710
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a770
cmp ebx, 0x53637c
jne 0x492749
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492736
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x492761
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492750
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0044a770
lea eax, [ebp - 0xa4]
push eax
call fcn.004922b0
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.00489cd0
mov eax, esi
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.004de0fd
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x492da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
push esi
xor esi, esi
test edx, edx
je 0x492de6
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x492db3
sub eax, ebx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
pop ebx
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x496120
Capabilities:
Create service
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51095d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x550144]
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
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x496300
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
push 0xf003f
push 0
mov dword [ebp - 4], 0
push 0
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4962be
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x4962b5
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
lea edi, [esi + 0x14]
push edi
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.00495b30
test eax, eax
je 0x496295
push dword [esi + 0x24]
push dword [edi]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x496225
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [esi + 0x20]
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [esi + 0x1c]
xor edx, edx
push edx
push edx
cmp dword [eax - 0xc], edx
push edx
push ecx
push edx
cmove eax, edx
push eax
push dword [ebp - 0x34]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x496264
mov ecx, dword [esi + 0x20]
xor eax, eax
cmp dword [ecx - 0xc], eax
cmove ecx, eax
mov eax, dword [esi + 0x1c]
xor edx, edx
push edx
push edx
cmp dword [eax - 0xc], edx
push ecx
push edx
cmove eax, edx
push eax
push dword [ebp - 0x34]
push dword [esi + 0x30]
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x18]
push dword [esi + 0x14]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
je 0x496280
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esi + 0x14]
push str.InstallDriver_suc_name_s.
jmp 0x496288
push dword [esi + 0x14]
push str.InstallDriver_error_s.
push 0x550bb8
call fcn.0048d900
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x496197
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4962e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.004de0fd
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00450260
int3
Function at 0x496310
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5109a5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x4964bc
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x496390
push str.UninstallDriver_Open_SCM_Failed
push 0x550bb8
call fcn.0048d900
add esp, 8
xor esi, esi
jmp 0x49648a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x49647e
push dword [esi + 0x14]
lea ebx, [esi + 0x14]
push ecx
call fcn.004964d0
push 0x22
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x10]
call fcn.0044f580
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0048c830
mov edi, dword [ebp - 0x10]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esi + 0x34]
push dword [ebx]
push str.UninstallDriver_name_s_del_d.
push 0x550bb8
call fcn.0048d900
add esp, 0x10
cmp dword [esi + 0x34], 0
je 0x49646a
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x4964bc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [esi + 0x10]
mov byte [ebp - 4], 1
push eax
push dword [esi + 0xc]
call fcn.00495b30
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x496438
push 1
push edi
call fcn.00487970
add esp, 8
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x496456
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov esi, eax
mov edi, dword [ebp - 0x10]
cmp eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
jmp 0x496399
mov ecx, dword [ebp + 8]
or ebx, 0xffffffff
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
jmp 0x496399
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4964a6
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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
push 0x80004005
call fcn.00450260
int3
Function at 0x4964d0
Capabilities:
Continue service
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x550144]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push str.DeleteServices:_s
push 0x550bb8
call fcn.0048d900
add esp, 0xc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4965aa
lea eax, [esp + 8]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
push str.Stop_Services_result:_d
push 0x550bb8
call fcn.0048d900
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x14]
add esp, 0xc
push eax
push edi
call esi
push 0x1f4
mov dword [esp + 0x10], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
push edi
call esi
push dword [esp + 0xc]
push str.services_status_after_stop:_d
push 0x550bb8
call fcn.0048d900
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.Delete_services_result:_d
push 0x550bb8
call fcn.0048d900
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 8
push str.Open_Services_Failed
push 0x550bb8
call fcn.0048d900
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 8