joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428446
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x438130]
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 dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 0x430], eax
call fcn.00402950
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.004195b0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40b3ea
cmp word [ebp - 0x220], 0
lea edi, [ebp - 0x220]
mov eax, dword [0x42bb58]
mov dword [ebp - 0x18], eax
mov ax, word [0x42bb5c]
mov word [ebp - 0x14], ax
je 0x40b3e2
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
jmp 0x40b350
mov ax, word [edi]
mov word [ebp - 0x18], ax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.004195b0
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call ebx
test eax, eax
je 0x40b3ea
lea esi, [ebp - 0x428]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b394
sub esi, ecx
lea eax, [ebp - 0x428]
sar esi, 1
push esi
push eax
mov eax, dword [ebp - 0x42c]
push dword [eax]
call fcn.00419b22
add esp, 0xc
test eax, eax
je 0x40b408
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b3c4
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], cx
jne 0x40b350
push 0xf
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
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.00419146
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004024b0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x42c], eax
cmp dword [eax - 4], 1
lea ecx, [ebp - 0x42c]
mov edi, dword [eax - 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x43c], ecx
mov dword [ebp - 0x434], edi
jle 0x40b453
push edi
call fcn.004033f0
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x438], eax
lea eax, [eax + esi*2]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
push str._s_s
push dword [ebp - 0x430]
call fcn.00403470
add esp, 0x10
mov byte [ebp - 4], 0
cmp edi, 0xffffffff
jne 0x40b495
mov eax, dword [ebp - 0x42c]
push dword [eax - 8]
push eax
call fcn.00418ba4
add esp, 8
mov edi, eax
test edi, edi
js 0x40b4e1
mov ecx, dword [ebp - 0x42c]
cmp edi, dword [ecx - 8]
jg 0x40b4e1
mov dword [ecx - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
mov word [eax + edi*2], cx
or ecx, 0xffffffff
mov edx, dword [ebp - 0x42c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b4da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x40b3ec
push 0x80070057
call fcn.00402180
int3
Function at 0x40b700
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 8], eax
push edi
cmp dword [eax + 4], esi
jle 0x40b77a
xor edi, edi
mov eax, dword [eax]
lea ecx, [edi + 4]
add ecx, eax
mov dword [ebp - 4], ecx
je 0x40b76e
mov ebx, dword [ebp + 8]
add ebx, 4
je 0x40b76e
cmp byte [eax + edi + 0x48], 0
je 0x40b76e
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x40b76e
mov eax, dword [ebp + 8]
cmp byte [eax + 0x48], 0
je 0x40b76e
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x40b76e
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
jne 0x40b786
mov eax, dword [ebp - 8]
inc esi
add edi, 0x60
cmp esi, dword [eax + 4]
jl 0x40b717
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c9c0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4285f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x40ca1e
xor bl, bl
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00403740
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ca3a
push 0x80004005
call fcn.00402180
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x208
or ecx, edx
mov byte [ebp - 4], 1
jge 0x40ca70
push 0x208
lea ecx, [ebp - 0x10]
call fcn.004041f0
mov eax, dword [ebp - 0x10]
push 0x208
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
mov eax, dword [ebp - 0x10]
sete bl
push dword [eax - 8]
push eax
call fcn.00418ba4
mov edx, eax
add esp, 8
test edx, edx
js 0x40caff
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x40caff
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edx*2], cx
test bl, bl
je 0x40cab2
xor bl, bl
jmp 0x40cac3
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0040b2a0
add esp, 8
mov bl, al
mov edi, dword [ebp - 0x10]
or edx, 0xffffffff
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cae4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402180
int3
Function at 0x40f2d0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa14
mov eax, dword [0x438130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov ebx, ecx
mov dword [ebp - 0xa14], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40f33b
push 1
lea ecx, [ebx + 0x40]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40f32b
push eax
mov dword [ebp - 0xa14], 1
call esi
push edi
call esi
cmp dword [ebp - 0xa14], 0
jne 0x40f485
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40f3f6
cmp eax, 0x104
je 0x40f3f6
mov ecx, 0x22
mov word [ebp - 0x210], cx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x40f49b
xor ecx, ecx
push 0xf003f
push ecx
push ecx
mov word [ebp + eax - 0x210], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40f409
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.0040e5d0
add esp, 0xc
test eax, eax
jne 0x40f3e1
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.00418afd
push eax
call fcn.00401e70
add esp, 0x10
push 0
lea eax, [ebx + 0x40]
push eax
lea eax, [ebp - 0xa10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419146
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
add ebx, 0x40
push eax
push 1
push 3
push 0x10
push 0xf01ff
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x40f47f
push edi
call esi
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.0040e5d0
add esp, 0xc
test eax, eax
jne 0x40f477
push str.Could_not_start_service
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.00418afd
push eax
call fcn.00401e70
add esp, 0x10
push 0
push ebx
jmp 0x40f3e7
push eax
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419146
mov esp, ebp
pop ebp
ret
call fcn.0041a3e5
int3
Function at 0x40f500
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x438130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push pe_nt_image_headers32
push eax
call fcn.00418d75
xor eax, eax
add esp, 0x14
cmp dword [esi + 0x260], 0
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x40f55b
push eax
call fcn.0041a5eb
add esp, 4
lea eax, [esi + 0x40]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40f590
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00419146
mov esp, ebp
pop ebp
ret

Function at 0x40f5a0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42878c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x438130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ecx + 0x40]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
jne 0x40f655
mov eax, dword [0x43a9c4]
test al, 1
jne 0x40f60c
or eax, 1
mov dword [0x43a9c4], eax
mov ecx, 0x43a990
mov dword [ebp - 4], esi
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x40f6e9
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x14]
push str.Service:_failed_to_RegisterEventSource_name_s__0x_x_
push eax
call fcn.00407b90
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x18]
push 0
push edi
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x40f6e2
mov eax, dword [0x43a9c4]
test al, 1
jne 0x40f6ad
or eax, 1
mov dword [0x43a9c4], eax
mov ecx, 0x43a990
mov dword [ebp - 4], 1
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x40f6e2
mov dword [ebp - 0x1c], eax
push edi
movzx eax, bx
push eax
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0xfffffffe
push str.Service:_failed_to_ReportEvent_type_d_category_d_message_d
push eax
call fcn.00407b90
add esp, 0x14
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4102a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
call fcn.00411ab0
test eax, eax
jne 0x4102be
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], str.APPID
push eax
push 1
push 0x65
push dword [0x43a900]
mov dword [ebp - 0xc], 0x42c720
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00411fc0
test eax, eax
js 0x4103dd
push ebx
push edi
push 0x20006
push str.AppID
push SysReAllocStringLen
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004093f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
test eax, eax
je 0x410340
push eax
call fcn.0040e5b0
add esp, 4
mov esi, eax
jmp 0x4103d2
push 0
push 0
push 0x2001f
push 0
push 0
push 0x42c720
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00402870
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x410384
push eax
call fcn.0040e5b0
add esp, 4
mov esi, eax
jmp 0x4103bd
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], 0
je 0x4103bb
push 1
lea eax, [esi + 0x40]
push eax
push str.LocalService
lea ecx, [ebp - 0xc]
call fcn.00405330
mov ecx, esi
call fcn.0040f2d0
test eax, eax
jne 0x4103bb
mov esi, 0x80004005
jmp 0x4103bd
xor esi, esi
test edi, edi
je 0x4103cc
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x4103d2
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4103d9
push ebx
call edi
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4103f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
call fcn.004102a0
test eax, eax
js 0x4104f0
push ebx
push esi
push edi
push 0x20006
push str.AppID
push SysReAllocStringLen
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004093f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
test eax, eax
je 0x410452
push eax
call fcn.0040e5b0
add esp, 4
mov esi, eax
jmp 0x4104e4
push 0
push 0
push 0x2001f
push 0
push 0
push 0x42c720
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00402870
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x410496
push eax
call fcn.0040e5b0
add esp, 4
mov esi, eax
jmp 0x4104cf
push str.ServiceParameters
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], 0
je 0x4104cd
push 1
push str._ComService
push str.ServiceParameters
lea ecx, [ebp - 0xc]
call fcn.00405330
test eax, eax
je 0x4104cd
push eax
call fcn.0040e5b0
add esp, 4
mov esi, eax
jmp 0x4104cf
xor esi, esi
test edi, edi
je 0x4104de
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x4104e4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4104eb
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4106d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4287f6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x438130]
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 eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x41077c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41077c
call fcn.00401f80
mov esi, eax
jmp 0x41086c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41079f
call fcn.00401f80
jmp 0x41085f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x4107bd
call fcn.00401f80
jmp 0x41085f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4107de
mov esi, 0x8007000e
jmp 0x410861
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040e190
jmp 0x410808
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41081f
mov esi, 0x8007000e
jmp 0x410861
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41083f
call fcn.00401f80
jmp 0x41085f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00410500
mov esi, eax
test edi, edi
je 0x41086c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x410890
lea ecx, [ebp - 0x418]
call fcn.0040f030
jmp 0x410890
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 - 0x14]
xor ecx, ebp
call fcn.00419146
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4114d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4114e9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4114f5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4114f0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x411950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4119cd
mov eax, dword [0x43a9c4]
test al, 1
jne 0x411996
or eax, 1
mov ecx, 0x43a990
mov dword [0x43a9c4], eax
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x4119c6
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Service:_failed_to_create_shutdown_event__0x_x_
push eax
call fcn.00407b90
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x40f760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x411a4e
mov ecx, dword [0x43a9c4]
test cl, 1
jne 0x411a15
or ecx, 1
mov dword [0x43a9c4], ecx
mov ecx, 0x43a990
call fcn.004077e0
push 0x429090
call fcn.00418853
add esp, 4
mov ecx, 0x43a990
call fcn.00408c40
test eax, eax
je 0x411a45
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Service:_failed_to_create_shutdown_monitor_thread__0x_x_
push eax
call fcn.00407b90
add esp, 0xc
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411db0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00411ab0
test eax, eax
jne 0x411dc8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x20006
push str.AppID
push SysReAllocStringLen
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004093f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
test eax, eax
je 0x411e11
push eax
call fcn.0040e5b0
add esp, 4
mov esi, eax
jmp 0x411e75
push 0x20006
push 0x42c720
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.004093f0
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x411e4b
push eax
call fcn.0040e5b0
add esp, 4
jmp 0x411e5e
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.00411f80
mov esi, eax
test edi, edi
je 0x411e6f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x411e75
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x411e7c
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411e90
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x20006
push str.AppID
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x10]
push SysReAllocStringLen
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004093f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x411ef6
push eax
call fcn.0040e5b0
mov edi, dword [ebp - 0x10]
add esp, 4
mov ebx, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x411eed
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push 0x20006
push 0x42c720
push edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004093f0
test eax, eax
je 0x411f33
push eax
call fcn.0040e5b0
mov esi, dword [ebp - 0x1c]
add esp, 4
jmp 0x411f5c
mov esi, dword [ebp - 0x1c]
push str.ServiceParameters
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x411f4b
push esi
call ebx
xor esi, esi
test edi, edi
je 0x411f54
push edi
call ebx
xor edi, edi
mov ecx, dword [ebp - 4]
call fcn.00411db0
mov ebx, eax
test esi, esi
je 0x411ee0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x411ee6