joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f9e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db76b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x511070]
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 + 0x14]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0xb0], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48fa49
mov edx, 1
mov ecx, esi
call fcn.0048a5b0
lea ecx, [ebp - 0xa8]
call fcn.0048b5c0
mov dword [ebp - 4], 0
cmp word [esi], 0
mov dword [ebp - 0x18], 0
jne 0x48fa6c
xor ecx, ecx
jmp 0x48fa80
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fa71
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xa8]
call fcn.00439160
cmp word [edi], 0
jne 0x48fa97
xor ecx, ecx
jmp 0x48faaf
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48faa0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x90]
call fcn.00439160
cmp word [ebx], 0
jne 0x48fac6
xor ecx, ecx
jmp 0x48fadf
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fad0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x78]
call fcn.00439160
mov ebx, dword [ebp - 0xac]
cmp word [ebx], 0
jne 0x48faf9
xor ecx, ecx
jmp 0x48fb0f
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fb00
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x48]
call fcn.00439160
mov ebx, dword [ebp - 0xb0]
cmp word [ebx], 0
jne 0x48fb29
xor ecx, ecx
jmp 0x48fb3f
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fb30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x30]
call fcn.00439160
mov ebx, dword [ebp - 0xb4]
cmp ebx, 0x4ed230
jne 0x48fb83
cmp word [edi], 0
jne 0x48fb63
xor ecx, ecx
push ecx
push edi
jmp 0x48fba3
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fb70
sub ecx, edx
sar ecx, 1
push ecx
push edi
jmp 0x48fba3
cmp word [ebx], 0
jne 0x48fb8d
xor ecx, ecx
jmp 0x48fba1
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48fb92
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x60]
call fcn.00439160
lea eax, [ebp - 0xa8]
push eax
call fcn.0048f810
lea ecx, [ebp - 0xa8]
mov esi, eax
call fcn.0048bb70
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.004a5d13
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x48fbf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x515c80], 0
jne 0x48fc83
push esi
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
push 0x4fb528
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004bd088
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x48fc82
push str.GetLocaleInfoEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
push esi
sbb eax, eax
add eax, 2
mov dword [0x515c80], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x515c80], 1
sete al
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret

Function at 0x48fca0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov esi, eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004a8960
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test esi, esi
je 0x48fcfe
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
je 0x48fd24
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x48fd24
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
cmp dword [ebp - 0x11c], 0xa
pop esi
jne 0x48fd4a
cmp dword [ebp - 0x118], 0
jne 0x48fd4a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x490130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x40
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.004a8960
add esp, 0xc
mov dword [ebp - 0x74], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x181
movups xmmword [ebp - 0x2c], xmm0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x490196
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push str.__s___s
push eax
call fcn.00421db0
add esp, 0x10
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov ecx, 0xa
cmp dword [ebp + 0xc], eax
cmovne ax, cx
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x49021b
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_s__cmd:_s
push 0x515488
call fcn.0048d710
add esp, 0x1c
mov dword [ebp - 0x14], 0
jmp 0x490284
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
test eax, eax
je 0x490265
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x490254
push ebx
push str.CQMTProcess::RunApp_WAIT_TIMEOUT_path_s.
push 0x515488
call fcn.0048d710
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x490265
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 1
test edi, edi
je 0x49027d
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x490284
push esi
call eax
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4902a3
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
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
Function at 0x4902c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
mov dword [ebp - 0x234], 0
push 0
push 2
mov dword [ebp - 0x238], eax
mov ebx, ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x490323
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x490335
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
cmp dword [ebp - 0x228], 0
jbe 0x49035d
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004abafd
add esp, 8
test eax, eax
je 0x49036d
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x490340
jmp 0x490385
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x234], 1
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret

Function at 0x4903b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xc], ecx
push edi
mov ebx, 1
mov dword [ebp - 8], esi
nop word [eax + eax]
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.004902c0
mov edi, dword [ebp - 4]
test eax, eax
je 0x49043d
push edi
xor ebx, ebx
push ebx
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x49043a
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 0x49043a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x49043a
push edi
push str.QMTProcess::CloseProcessByID___d
push 0x515488
call fcn.0048d4b0
add esp, 0xc
mov esi, dword [ebp - 8]
inc esi
mov dword [ebp - 8], esi
test edi, edi
je 0x49044d
mov ecx, dword [ebp - 0xc]
cmp esi, 0xa
jl 0x4903d0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4908f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db82b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x511070]
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 dword [ebp - 0x244], edx
mov edi, ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x248], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x49094b
push 0x80004005
call fcn.0041cdf0
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 dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4909a0
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 4], ebx
mov dword [edi], eax
or eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x490a28
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x490a28
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4909fa
nop dword [eax]
mov eax, dword [ebp - 0x244]
cmp dword [ebp - 0x234], eax
je 0x4909e2
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4909c0
jmp 0x4909fa
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.0041cd80
mov esi, dword [ebp - 0x240]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x490a28
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x490a50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db86b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x511070]
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 - 0x24c], 0
mov dword [ebp - 0x248], 0
call fcn.00421030
mov dword [ebp - 0x24c], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x490ae6
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x490b2f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
xor edi, edi
push esi
push dword [esi]
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00490d40
push dword [ebp - 0x24c]
call fcn.004a5d0e
add esp, 4
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.004a5d13
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004912f0
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x228]
mov dword [eax + 0x14], ecx
lea eax, [ebp - 0x240]
push eax
push esi
call edi
test eax, eax
jne 0x490b40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xa
mov esi, dword [ebp - 0x24c]
mov ecx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x490bfc
mov edx, dword [ebp - 0x244]
nop dword [eax]
cmp dword [eax + 0x10], edx
jae 0x490baa
mov eax, dword [eax + 8]
jmp 0x490bae
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x490ba0
cmp ecx, esi
je 0x490bfc
cmp edx, dword [ecx + 0x10]
jb 0x490bfc
mov eax, edi
dec edi
test eax, eax
je 0x490bfc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004912f0
mov eax, dword [ebp - 0x254]
mov ecx, ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x244]
push eax
call fcn.00490c40
jmp 0x490b82
mov edi, 1
jmp 0x490aee
Function at 0x491980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db8e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x511070]
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
cmp dword [ebx + 8], 0
jne 0x491a78
mov edi, dword [ebp + 8]
test edi, edi
je 0x491a0d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4919c3
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x491a0d
lea eax, [ecx + ecx]
mov dword [ebp - 0x14], eax
call fcn.004a6750
mov esi, esp
test esi, esi
je 0x491a0d
push 0
push 0
push dword [ebp - 0x14]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x491a0f
xor esi, esi
call fcn.0041bed0
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.00491bb0
push 2
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00491af0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [esi - 0xc]
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x491a55
call fcn.00433120
mov edi, eax
jmp 0x491a57
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491ac0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x491ac0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call esi
test eax, eax
jne 0x491aa0
call fcn.00433120
mov edi, eax
test edi, edi
js 0x491ac0
push 0
lea eax, [ebp - 0x18]
push eax
push 4
push 0x4eec9c
push dword [ebx]
call esi
test eax, eax
jne 0x491abe
call fcn.00433120
mov edi, eax
jmp 0x491ac0
xor edi, edi
not edi
shr edi, 0x1f
mov eax, edi
lea esp, [ebp - 0x28]
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.004a5d13
mov esp, ebp
pop ebp
ret 8
Function at 0x493ce0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbb10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
mov esi, dword [eax + 0x14]
mov esi, dword [esi]
cmp esi, dword [eax + 0x14]
je 0x493edf
nop dword [eax + eax]
lea ebx, [esi + 0x10]
push ebx
call fcn.004945f0
mov edi, eax
test edi, edi
je 0x493ed1
movzx ecx, word [esi + 0xa]
cmp ecx, dword [ebp + 8]
jne 0x493ed1
movzx eax, word [esi + 8]
sub eax, 0
je 0x493e0e
sub eax, 1
jne 0x493ed1
mov dword [ebp - 4], 1
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0xc], eax
je 0x493d6d
call fcn.0048a560
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x493ded
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jle 0x493ded
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_Write_key_s__subkey_s__name_s.
push 0x515488
call fcn.0048d710
add esp, 0x14
cmp dword [esi + 0x1c], 4
push dword [esi + 0x20]
jne 0x493dcd
call fcn.004b121e
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push dword [esi + 0x18]
call fcn.00440840
jmp 0x493dd8
push dword [esi + 0x18]
lea ecx, [ebp - 0x10]
call fcn.00440870
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x493de6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x493df0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x493e02
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
jmp 0x493ed1
mov eax, dword [esi + 0x18]
cmp dword [eax - 0xc], 0
jne 0x493e40
push dword [esi + 0x14]
push dword [ebx]
push str.HandleRegister_DeleteSubKeyTree_key_s__subkey_s.
push 0x515488
call fcn.0048d710
push dword [esi + 0xc]
mov edx, dword [esi + 0x14]
mov ecx, edi
call fcn.0048bfd0
add esp, 0x14
jmp 0x493ed1
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.HandleRegister_DeleteValue_key_s__subkey_s__name_s.
push 0x515488
call fcn.0048d710
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
mov ebx, dword [esi + 0x14]
mov dword [ebp - 0x14], 0
je 0x493e75
call fcn.0048a560
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x493eb8
test eax, eax
je 0x493eb3
push dword [esi + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x493eb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x493eca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov esi, dword [esi]
cmp esi, dword [eax + 0x14]
jne 0x493d20
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 0x494bd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x494c10
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
or edi, 0xffffffff
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x494c56
push str.UninstallDriver_Open_SCM_Failed
push 0x515488
call fcn.0048d710
add esp, 8
xor esi, esi
jmp 0x494d3c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x494d30
push dword [esi + 0x14]
push ecx
call fcn.00494d70
push 0x22
push str.SystemCurrentControlSetServices_
lea ecx, [ebp - 0x10]
call fcn.0041ccd0
mov eax, dword [esi + 0x14]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.0041c490
mov ebx, dword [ebp - 0x10]
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [esi + 0x34]
push dword [esi + 0x14]
push str.UninstallDriver_name_s_del_d.
push 0x515488
call fcn.0048d710
add esp, 0x10
cmp dword [esi + 0x34], 0
je 0x494d1d
call fcn.0041bed0
test eax, eax
je 0x494c06
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x10]
push eax
push dword [esi + 0xc]
call fcn.004946b0
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x494d01
mov edx, 1
mov ecx, edi
call fcn.0048a5b0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x494d1d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [ebp - 0x18]
cmp esi, dword [eax]
jne 0x494c65
or edi, 0xffffffff
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x494d58
mov ecx, dword [ebx]
push ebx
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
Function at 0x494d70
Capabilities:
Continue service
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push str.DeleteServices:_s
push 0x515488
call fcn.0048d710
add esp, 0xc
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x494e40
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
push str.Stop_Services_result:_d
push 0x515488
call fcn.0048d710
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
add esp, 0xc
push eax
push edi
call esi
push 0x1f4
mov dword [ebp - 0x1c], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
push dword [ebp - 0x1c]
push str.services_status_after_stop:_d
push 0x515488
call fcn.0048d710
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.Delete_services_result:_d
push 0x515488
call fcn.0048d710
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 8
push str.Open_Services_Failed
push 0x515488
call fcn.0048d710
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 8