joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490860
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 0x4908b7
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4908d0
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.004de51d
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x228], ebx
jbe 0x4908ec
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e3b37
add esp, 8
test eax, eax
je 0x4908ff
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4908d0
jmp 0x490912
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.004de51d
mov esp, ebp
pop ebp
ret

Function at 0x490930
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 0x4909c5
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4909be
nop dword [eax + eax]
cmp dword [ebp - 0x228], 0
jbe 0x4909ad
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e3b37
add esp, 8
test eax, eax
je 0x4909d8
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x490990
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.004de51d
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 0x490a39
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 0x490a39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x490a39
push edi
push str.QMTProcess::CloseProcessByID___d
push 0x550bb8
call fcn.0048d880
add esp, 0xc
mov eax, dword [ebp - 0x234]
inc eax
mov dword [ebp - 0x234], eax
test edi, edi
je 0x4909c5
mov edi, dword [ebp - 0x238]
cmp eax, 0xa
jl 0x490960
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x490f40
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.004e02e0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x490ffc
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x490ff5
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 0x490fdc
test ecx, ecx
je 0x490fdc
cmp ecx, 4
je 0x490fdc
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call fcn.004e3b37
add esp, 8
test eax, eax
je 0x490fef
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x490fb0
jmp 0x490ff4
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.004de51d
mov esp, ebp
pop ebp
ret
Function at 0x491010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5107d0
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 0x491184
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 0x4910a3
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4910d9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
push esi
call fcn.0048d290
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 0x491166
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x491166
mov ebx, dword [ebp + 0xc]
nop dword [eax]
cmp dword [ebp - 0x234], ebx
je 0x4910fb
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4910e0
jmp 0x49112c
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491104
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.0048d290
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 0x491166
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.004de51d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
int3
Function at 0x491190
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510810
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.004de4da
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 0x491238
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x491263
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ecx, [ebp - 0x248]
call fcn.00491420
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.004de51d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x248]
call fcn.00491340
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 0x491263
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 0x4912cb
cmp dword [eax + 0x10], edx
jae 0x4912c1
mov eax, dword [eax + 8]
jmp 0x4912c5
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4912b7
cmp byte [ecx + 0xd], 0
jne 0x49131c
cmp edx, dword [ecx + 0x10]
jb 0x49131c
cmp ecx, esi
je 0x49131c
mov eax, edi
dec edi
test eax, eax
je 0x49131c
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x248]
call fcn.00491340
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x240], ecx
cmp eax, dword [ebx + 8]
je 0x49130b
mov dword [eax], ecx
add dword [ebx + 4], 4
jmp 0x4912a0
lea ecx, [ebp - 0x240]
push ecx
push eax
mov ecx, ebx
call fcn.0047e250
jmp 0x4912a0
mov esi, 1
jmp 0x49123a
Function at 0x491bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51087d
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 0x491d44
mov edi, dword [ebp + 8]
test edi, edi
je 0x491c5d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491c16
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x491c5d
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.004dea10
mov esi, esp
test esi, esi
je 0x491c5d
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 0x491c5f
xor esi, esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.00491dc0
mov dword [ebp - 4], 0
mov eax, 0x536bd4
mov esi, dword [ebp - 0x14]
sub eax, esi
push 2
push 0x536bd4
mov dword [ebp - 0x1c], eax
mov edi, dword [esi - 0xc]
call fcn.004e37d6
mov edx, eax
mov ecx, SysReAllocString
sub ecx, edx
mov dword [ebp - 0x20], edx
add esp, 8
cmp ecx, edi
jl 0x491db4
lea ebx, [edi + edx]
test ebx, ebx
js 0x491db4
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x491cd0
push ebx
lea ecx, [ebp - 0x14]
call fcn.0046d940
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
ja 0x491cdb
add eax, esi
jmp 0x491ce0
mov eax, 0x536bd4
push edx
push eax
push edx
lea eax, [edi + esi]
push eax
call fcn.0046da70
lea edi, [esi - 0x10]
add esp, 0x10
cmp ebx, dword [edi + 8]
jg 0x491db4
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 0x491d24
call fcn.004715d0
mov esi, eax
jmp 0x491d26
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x491d8c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x491d8c
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 0x491d6c
call fcn.004715d0
mov esi, eax
test esi, esi
js 0x491d8c
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x538878
push dword [ebx]
call edi
test eax, eax
jne 0x491d8a
call fcn.004715d0
mov esi, eax
jmp 0x491d8c
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.004de51d
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00450260
int3
Function at 0x492540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510950
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 0x4925a8
push 1
push esi
call fcn.00487920
add esp, 8
lea ecx, [ebp - 0xa4]
call fcn.00489440
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 0x4925c5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa4]
call fcn.0044a760
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4925e6
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x8c]
call fcn.0044a760
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 0x492610
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x74]
call fcn.0044a760
mov esi, dword [ebp - 0xac]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492634
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.0044a760
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 0x492660
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0044a760
cmp ebx, 0x53656c
jne 0x492699
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x492686
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x4926b1
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4926a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x5c]
call fcn.0044a760
lea eax, [ebp - 0xa4]
push eax
call fcn.00492200
lea ecx, [ebp - 0xa4]
mov esi, eax
call fcn.00489c60
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.004de51d
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x492cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx]
push esi
xor esi, esi
test edx, edx
je 0x492d36
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x492d03
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 0x496070
Capabilities:
Create service
Modify service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510d7d
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 0x496250
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 0x49620e
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov esi, dword [esi]
cmp esi, dword [eax]
je 0x496205
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.00495a80
test eax, eax
je 0x4961e5
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 0x496175
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 0x4961b4
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 0x4961d0
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 0x4961d8
push dword [esi + 0x14]
push str.InstallDriver_error_s.
push 0x550bb8
call fcn.0048d880
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x4960e7
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 0x496230
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.004de51d
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00450260
int3
Function at 0x496260
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510dc5
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 0x49640c
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 0x4962e0
push str.UninstallDriver_Open_SCM_Failed
push 0x550bb8
call fcn.0048d880
add esp, 8
xor esi, esi
jmp 0x4963da
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x4963ce
push dword [esi + 0x14]
lea ebx, [esi + 0x14]
push ecx
call fcn.00496420
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.0048c7b0
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.0048d880
add esp, 0x10
cmp dword [esi + 0x34], 0
je 0x4963ba
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x49640c
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.00495a80
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x496388
push 1
push edi
call fcn.00487920
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 0x4963a6
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 0x4962e9
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 0x4962e9
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 0x4963f6
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 0x496420
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.0048d880
add esp, 0xc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x4964fa
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.0048d880
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.0048d880
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.Delete_services_result:_d
push 0x550bb8
call fcn.0048d880
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.004de51d
mov esp, ebp
pop ebp
ret 8
push str.Open_Services_Failed
push 0x550bb8
call fcn.0048d880
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.004de51d
mov esp, ebp
pop ebp
ret 8