joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f798
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1800f819
push edi
call fcn.18077023
pop ecx
mov dword [esi], eax
cmp eax, ebx
je 0x1800f819
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1800f80c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push dword [esi]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1800f80c
cmp dword [ebp - 4], ebx
je 0x1800f80c
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [esi + 4], ecx
inc eax
jmp 0x1800f81b
push dword [esi]
call fcn.180761d4
mov dword [esi + 4], ebx
mov dword [esi], ebx
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x1800f9ff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
push esi
push edi
mov dword [ebp - 8], ebx
jne 0x1800fa1d
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
call fcn.18003940
add eax, 0x10
push 0x40
mov dword [ebp - 8], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], 0x44
call fcn.18076d30
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push ebx
push dword [ebp + 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1800fa6f
mov edi, 0x400
jmp 0x1800fa72
mov dword [ebp - 4], ebx
push 0x104
lea esi, [ebp - 8]
call fcn.18003cf7
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push ebx
push dword [ebp - 4]
push edi
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
or eax, 0xffffffff
call fcn.18003bbe
cmp edi, ebx
jne 0x1800fac5
call fcn.1800d3ff
mov esi, eax
push ebx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, esi
jmp 0x1800fa18
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor esi, esi
jmp 0x1800faac
Function at 0x1800fca8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1800fd12
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esi + esi + 2]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push dword [esp + 0x10]
push eax
call fcn.180764c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
test eax, eax
jne 0x1800fd0b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret

Function at 0x1800fe4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x118], esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov edi, eax
cmp edi, esi
jge 0x1800fe9d
cmp dword [ebp - 0x118], esi
je 0x1800fe96
push dword [ebp - 0x118]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, edi
jmp 0x1800ffb3
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], esi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov edi, eax
cmp edi, esi
jge 0x1800fec8
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x1800fe82
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1800fe82
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.18076d30
mov eax, dword [ebp - 0x11c]
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push 0x8000
push dword [ebp - 0x118]
mov dword [ebp - 0x114], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov edi, eax
cmp edi, esi
jl 0x1800feb6
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x120], esi
call dword [sym.imp.SHLWAPI.dll_StrRetToStrW]
cmp eax, esi
mov dword [ebp - 0x124], eax
jge 0x1800ff6f
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x120], esi
je 0x1800ff47
push dword [ebp - 0x120]
call edi
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x1800ff57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x118], esi
je 0x1800ff67
push dword [ebp - 0x118]
call edi
mov eax, dword [ebp - 0x124]
jmp 0x1800ffb3
push dword [ebp - 0x120]
push ebx
call fcn.18003dfb
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x120], esi
je 0x1800ff91
push dword [ebp - 0x120]
call edi
mov eax, dword [ebp - 0x11c]
cmp eax, esi
je 0x1800ffa1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x118], esi
je 0x1800ffb1
push dword [ebp - 0x118]
call edi
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret
Function at 0x18010740
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], esi
call fcn.18003bdc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x180107aa
call fcn.1800d3ff
jmp 0x18010840
cmp word [ebp - 0x41c], 0
push edi
mov esi, 0x1809da58
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [ebp - 0x41c]
je 0x1801083a
mov ax, word [esi]
mov word [ebp - 0xc], ax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.18076d30
add esp, 0xc
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18010829
lea eax, [ebp - 0x214]
push eax
call fcn.18076825
mov edi, eax
push edi
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x420]
call fcn.180799ec
add esp, 0x10
test eax, eax
je 0x1801084e
push esi
call fcn.18076825
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x180107c6
mov eax, 0x8007000f
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
mov eax, dword [ebp - 0x420]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
push dword [ebp - 0x424]
call fcn.18002c13
add esp, 0x10
xor eax, eax
jmp 0x1801083f

Function at 0x18010cfd
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
lea esi, [edi + 0x38]
mov eax, esi
call fcn.18010e39
push edi
push 0x18010c43
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18010d2d
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
test eax, 0xfffffffc
jne 0x18010d34
xor al, al
jmp 0x18010dd3
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
xor bl, bl
sar eax, 2
xor edi, edi
test eax, eax
jbe 0x18010dd1
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp edi, eax
jb 0x18010d5b
call fcn.1807753a
mov eax, dword [esi + 0xc]
push 0
mov ebp, edi
push 0xf060
shl ebp, 2
add eax, ebp
push 0x112
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x18010da9
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x54], 0
je 0x18010da7
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp edi, eax
jb 0x18010d99
call fcn.1807753a
mov eax, dword [esi + 0xc]
push 1
push dword [eax + ebp]
call dword [sym.imp.USER32.dll_FlashWindow]
mov bl, 1
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
inc edi
sar eax, 2
cmp edi, eax
jb 0x18010d49
test bl, bl
je 0x18010dd1
push dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
call fcn.180109ba
test al, al
je 0x18010dd1
xor eax, eax
inc eax
jmp 0x18010dd3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x18011f24
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 4]
test eax, eax
je 0x18011f32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 4]
mov dword [esi], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x18011ec4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x18011f62
xor al, al
jmp 0x18011f72
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
ret 4

Function at 0x1801235b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x414], ecx
mov ecx, dword [ebp + 0xc]
push edi
lea esi, [ebp - 0x424]
mov edi, edx
mov dword [ebp - 0x418], ecx
call fcn.1801260a
and dword [ebp - 0x410], 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x180123b3
call fcn.1800372b
mov esi, eax
jmp 0x180124a1
push dword [ebp - 0x418]
push dword [ebp - 0x414]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x180123d6
call fcn.1800372b
jmp 0x18012498
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x414], eax
test eax, eax
je 0x180123cc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1801241c
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18012412
lea eax, [ebp - 0x410]
call fcn.18018503
mov eax, 0x8007000e
jmp 0x180124bc
push 2
push eax
call fcn.18006745
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x1801243c
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.18018551
jmp 0x18012448
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x18012458
mov esi, 0x8007000e
jmp 0x1801249a
push esi
push dword [ebp - 0x410]
push esi
push dword [ebp - 0x414]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180123cc
mov edx, dword [ebp - 0x410]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x410]
lea ecx, [ebp - 0x424]
call fcn.18012d61
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x180124ba
lea eax, [ebp - 0x410]
call fcn.18018503
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret 0xc
Function at 0x18014887
Capabilities:
Delete file

Disassembly:
push 0x10
push 0x180ab1c8
call fcn.1807a158
mov edi, ecx
mov esi, 0x180b0f00
call fcn.18041000
movzx eax, byte [edi + 0x9c]
push eax
call fcn.18051df3
pop ecx
push eax
call fcn.18011fe3
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.18052c3a
mov dword [ebp - 0x1c], ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push 4
push str.HKLMSoftwareCatalinaGroupUpdateDev_
mov eax, str.AlwaysAllowCrashUploads
call fcn.1800bd67
add esp, 0x10
cmp dword [ebp - 0x1c], ebx
jne 0x1801490f
movzx eax, byte [edi + 0x9c]
push eax
call fcn.180531b6
test al, al
je 0x1801490a
movzx eax, byte [edi + 0x9c]
push eax
call fcn.18053477
test al, al
je 0x1801490a
call fcn.180510a3
test al, al
je 0x1801490f
mov byte [ebp - 0x1c], bl
jmp 0x18014913
mov byte [ebp - 0x1c], 1
lea eax, [edi + 0xa8]
lea esi, [edi + 0x2c]
add edi, 0x28
mov ecx, dword [esi]
cmp dword [ecx - 0xc], ebx
setne cl
cmp cl, bl
je 0x18014940
push edi
mov ecx, esi
call fcn.1801af1f
pop ecx
mov ebx, eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1801494f
push eax
push edi
push dword [ebp - 0x1c]
call fcn.1801ad26
add esp, 0xc
mov ebx, eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1801abd9
mov dword [ebp - 0x20], ebx
jmp 0x1801496f
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.1807a19d
ret

Function at 0x18015bf9
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [esi + 4], 0
je 0x18015c46
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push dword [esi + 4]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x18015c44
mov eax, dword [esi]
test eax, eax
je 0x18015c44
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [esi + 8]
call edi
xor ecx, ecx
cmp eax, ebp
jae 0x18015c35
or ecx, 0xffffffff
sub ecx, ebp
add ecx, eax
cmp ecx, ebx
jae 0x18015c43
mov eax, dword [esi]
test eax, eax
jne 0x18015c1f
pop ebx
pop edi
pop ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x18015c54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.180761ba
pop ecx
mov eax, esi
ret
Function at 0x18015fe1
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.1800cc67
test al, al
jne 0x18015ffa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call fcn.18016a31
test al, al
jne 0x18015ff3
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x18016020
call fcn.1800d3ff
jmp 0x18015ff5
lea eax, [ebp - 4]
push eax
call fcn.1804029d
pop ecx
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x1801605f
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x18015ff5
lea eax, [ebp - 0xc]
push eax
push 3
push edi
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18016085
call fcn.1800d3ff
push edi
mov ebx, eax
call esi
mov edi, ebx
jmp 0x1801604b
push edi
call esi
xor edi, edi
jmp 0x1801604b

Function at 0x1801608c
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x180160b5
call fcn.1800d3ff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
call fcn.1804029d
mov eax, dword [eax]
mov dword [esp], 0x10002
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x180160f8
call fcn.1800d3ff
mov edi, eax
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x180160b0
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x18016119
call fcn.1800d3ff
mov ebx, eax
cmp ebx, 0x80070430
je 0x18016119
push edi
call esi
mov edi, ebx
jmp 0x180160ef
push edi
call esi
xor edi, edi
jmp 0x180160ef

Function at 0x18016120
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, eax
push edi
push ebx
call fcn.18016b2b
pop ecx
test al, al
je 0x1801613d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1801615a
call fcn.1800d3ff
jmp 0x18016138
lea eax, [ebp - 4]
push eax
call fcn.1804029d
mov dword [esp], 0xf01ff
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x1801619d
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x18016138
lea eax, [ebp - 0xc]
push eax
push 1
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x180161bf
call fcn.1800d3ff
push edi
mov ebx, eax
call esi
mov edi, ebx
jmp 0x18016189
push edi
call esi
xor edi, edi
jmp 0x18016189
Function at 0x18016296
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.1800cc67
test al, al
jne 0x180162af
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call fcn.18016e2c
test al, al
jne 0x180162a8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x180162d5
call fcn.1800d3ff
jmp 0x180162aa
lea eax, [ebp - 4]
push eax
call fcn.18040339
pop ecx
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x18016314
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x180162aa
lea eax, [ebp - 0xc]
push eax
push 3
push edi
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1801633a
call fcn.1800d3ff
push edi
mov ebx, eax
call esi
mov edi, ebx
jmp 0x18016300
push edi
call esi
xor edi, edi
jmp 0x18016300

Function at 0x18016341
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1801636a
call fcn.1800d3ff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
call fcn.18040339
mov eax, dword [eax]
mov dword [esp], 0x10002
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x180163ad
call fcn.1800d3ff
mov edi, eax
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x18016365
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x180163ce
call fcn.1800d3ff
mov ebx, eax
cmp ebx, 0x80070430
je 0x180163ce
push edi
call esi
mov edi, ebx
jmp 0x180163a4
push edi
call esi
xor edi, edi
jmp 0x180163a4

Function at 0x180163d5
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, eax
push edi
push ebx
call fcn.18016f26
pop ecx
test al, al
je 0x180163f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1801640f
call fcn.1800d3ff
jmp 0x180163ed
lea eax, [ebp - 4]
push eax
call fcn.18040339
mov dword [esp], 0xf01ff
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x18016452
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x180163ed
lea eax, [ebp - 0xc]
push eax
push 1
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18016474
call fcn.1800d3ff
push edi
mov ebx, eax
call esi
mov edi, ebx
jmp 0x1801643e
push edi
call esi
xor edi, edi
jmp 0x1801643e
Function at 0x1801689c
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x180168d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x180168cf
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.1804029d
pop ecx
lea eax, [ebp - 0xc]
call fcn.1801729d
mov ebx, dword [ebp - 0xc]
push esi
push esi
push str.RPCSS
push esi
push esi
push dword [ebp + 8]
push 1
push 2
push 0x10
push 0xf01ff
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, esi
jne 0x18016949
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x1801692b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.18003e1e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x180168cf
push eax
call edi
jmp 0x1801692d

Function at 0x1801694e
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.18017152
test al, al
je 0x18016969
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call fcn.18015f11
mov esi, eax
push esi
call fcn.18011ff7
pop ecx
test al, al
je 0x1801697f
mov eax, esi
jmp 0x18016964
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x180169ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x18016964
and eax, 0xffff
or eax, 0x80070000
jmp 0x18016964
lea eax, [ebp - 4]
push eax
call fcn.1804029d
pop ecx
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x180169fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x180169e3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x18016964
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push 1
push 2
push 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18016a2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x18016a2a
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push ebx
call esi
jmp 0x180169e5