joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18012875
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov eax, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x30], eax
mov edi, ebx
mov dword [ebp - 4], edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaUserGetInfo]
test eax, eax
jne 0x180129f9
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x18012a03
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push eax
push 1
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x180128d9
call fcn.18012e6f
mov ebx, eax
jmp 0x180129ec
mov eax, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x180129e4
mov ecx, ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x28], ebx
push edx
push 7
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x18012924
call fcn.18012e6f
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x180129b7
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp - 0xc]
push 5
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], edi
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x1801295e
call fcn.18012e6f
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x180129b7
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x180129a3
cmp word [eax], bx
je 0x180129a3
test edi, edi
je 0x180129a3
cmp word [edi], bx
je 0x180129a3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.18149243
pop ecx
pop ecx
test eax, eax
jne 0x1801299b
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.18149243
pop ecx
pop ecx
test eax, eax
je 0x180129d4
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18012957
push edi
mov dword [ebp - 4], 0x80004005
call esi
push dword [ebp - 0x20]
call esi
mov edi, 0x80004005
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
inc eax
add ecx, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
cmp eax, dword [ebp - 0x1c]
jae 0x180129e4
mov eax, dword [ebp - 0xc]
jmp 0x180128f7
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x180129e6
mov ebx, edi
push dword [ebp - 0x34]
call esi
pop esi
push dword [ebp - 0x38]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, ebx
jmp 0x18012a03
jle 0x18012a03
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x18012c45
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18012cab
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret

Function at 0x18012ead
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18012f1c
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x18012ef8
push ebx
push edi
push eax
call fcn.1813f840
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x18012f13
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x18012f1f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov eax, edx
mov dword [esp + 0x1c], eax
push esi
push edi
cmp eax, 0xffffffff
jne 0x18012f40
mov eax, 0x80070057
jmp 0x180130dc
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.18006e45
add eax, 0x10
mov dword [esp + 0x38], 0x44
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.1813efc0
and dword [esp + 0x2c], 0
lea edi, [esp + 0x34]
xor eax, eax
xor ebx, ebx
stosd dword es:[edi], eax
xor esi, esi
add esp, 0xc
mov dword [esp + 0x10], esi
inc ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [ebp + 0xc], esi
je 0x18012fe2
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.18010ae4
mov ebx, eax
test ebx, ebx
jns 0x18012fb1
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x180130b8
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [esp + 0x68], 0x100
call esi
mov edi, dword [esp + 0xc]
push 0xfffffffffffffff4
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
call esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], ebx
xor eax, eax
push eax
push dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x18013012
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
jmp 0x1801301c
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, 0x104
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edx
or ebx, ecx
jge 0x18013043
push edx
lea ecx, [esp + 0x1c]
call fcn.18006e9e
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
xor ecx, ecx
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x34]
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.18006aeb
test ebx, ebx
jne 0x18013080
call fcn.18012e6f
mov ebx, eax
jmp 0x180130b0
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1801309b
push dword [esp + 0x28]
call ebx
jmp 0x180130a1
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x180130ae
mov eax, esi
xor esi, esi
mov dword [ecx], eax
xor ebx, ebx
push 0
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x180130c3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180130ce
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18004595
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x180139be
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x420], eax
mov ecx, eax
call fcn.18006b3a
mov ax, word [0x18177bcc]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.1813efc0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x18013a26
call fcn.18012e6f
jmp 0x18013ad1
mov eax, dword [0x1819cef4]
mov dword [ebp - 0xc], eax
mov ax, word [0x1819cef8]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x18013aca
movzx ecx, ax
mov ax, word [0x18177bcc]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.1813efc0
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18013ab3
lea eax, [ebp - 0x41c]
push eax
call fcn.18142f23
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1814ac1a
add esp, 0x10
test eax, eax
je 0x18013ade
push esi
call fcn.18142f23
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x18013a4f
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1819cefc
push dword [ebp - 0x420]
call fcn.1800f195
add esp, 0x10
xor eax, eax
jmp 0x18013acf
Function at 0x180145f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x414], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x18014662
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x18014662
call fcn.18004582
mov esi, eax
jmp 0x1801473a
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18014685
call fcn.18004582
jmp 0x1801472d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1801467b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x180146ae
mov esi, 0x8007000e
jmp 0x1801472f
push 2
pop ecx
mul ecx
test edx, edx
ja 0x18014766
jb 0x180146c6
cmp eax, 0xffffffff
ja 0x18014766
cmp eax, 0x400
jbe 0x180146db
push eax
lea ecx, [ebp - 0x410]
call fcn.18019c32
jmp 0x180146e7
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x180146a4
push esi
push dword [ebp - 0x410]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1801467b
mov eax, dword [ebp - 0x410]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x420]
push dword [ebp - 0x410]
call fcn.18015162
mov esi, eax
test edi, edi
je 0x1801473a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18014753
lea ecx, [ebp - 0x410]
call fcn.180192b8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret 0x10
push 0x80070216
call fcn.180043fb
int3
Function at 0x180163fd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ecx + 0x94]
cmp dword [esi], 0
jne 0x1801645d
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
inc edi
test eax, eax
je 0x1801645a
jmp 0x18016454
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
cmp edx, eax
jae 0x1801644b
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x1801645a
cmp dword [esi + 4], 0
jg 0x1801642a
xchg dword [esi], edi
pop edi
pop esi
leave
ret
Function at 0x18017c4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.180ad5bd
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x18017c6f
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 0xc]
call fcn.18006a90
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push 0x20019
push esi
mov dword [ebp - 0x1c], 0x1819c048
mov dword [ebp - 0x14], 0x200
call fcn.18011817
mov ebx, eax
mov ecx, ebx
call fcn.18013d98
test ebx, ebx
js 0x18017dd4
lea ecx, [ebp - 0x1c]
call fcn.180124d6
test eax, eax
je 0x18017dcf
push str.Clients
lea ecx, [ebp - 0x1c]
call fcn.1801185e
test al, al
je 0x18017dcf
push str.ClientState
lea ecx, [ebp - 0x1c]
call fcn.1801185e
test al, al
je 0x18017dcf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
push eax
push eax
push eax
push eax
push str.version
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x18017dcf
push eax
push eax
push eax
push eax
push str.path
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x18017dcf
call fcn.18003f31
push eax
lea ecx, [ebp - 4]
call fcn.18006dc8
lea eax, [ebp - 4]
push eax
push str.version
lea ecx, [ebp - 0x1c]
call fcn.18011cc0
mov ebx, eax
mov ecx, ebx
call fcn.18013d98
test ebx, ebx
js 0x18017dc2
call fcn.180ad5bd
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
jne 0x18017d5e
mov eax, str.HKCUSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
push eax
lea ecx, [ebp - 0x10]
call fcn.18006a90
call fcn.18003f31
push eax
lea ecx, [ebp - 8]
call fcn.18006dc8
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
mov edx, 0x1819d2a0
mov ecx, edi
call fcn.180135cd
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.18013d98
mov esi, dword [ebp - 8]
test ebx, ebx
js 0x18017daf
push esi
lea ecx, [ebp - 4]
call fcn.1800c2a7
test eax, eax
je 0x18017dad
mov ebx, 0xa043090b
jmp 0x18017daf
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.18004595
lea ecx, [edi - 0x10]
call fcn.18004595
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
jmp 0x18017dd4
mov ebx, 0x80070003
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1819c048
call fcn.18011673
lea ecx, [esi - 0x10]
call fcn.18004595
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18017ede
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push esi
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18018002
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x18017f21
test eax, eax
jle 0x18017f1b
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x18018002
lea edi, [ebx + 0x90]
mov ecx, dword [edi]
test ecx, ecx
je 0x18017f34
mov dword [edi], esi
call fcn.180191f0
lea ecx, [ebp - 0x18]
call fcn.1800f04c
call fcn.18003f31
push eax
lea ecx, [ebp - 8]
call fcn.18006dc8
push dword [ebx + 0xc]
lea eax, [ebp - 8]
push 0x1819d834
push eax
call fcn.1800f195
add esp, 0xc
lea ecx, [ebp - 4]
push str.CommandLineMode
call fcn.18006a90
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.1801a9da
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
je 0x18017f92
push dword [esi + 0x10]
lea ecx, [ebp - 4]
call fcn.1800c2a7
test eax, eax
jns 0x18017fad
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.1801aa17
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x14]
call fcn.18006a38
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
mov cl, byte [ebx + 0x88]
lea edx, [ebp - 0x18]
push edi
call fcn.180aabcc
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004595
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.1800f0ea
push 0x18
push dword [ebp - 0x18]
call fcn.1800a5b4
pop ecx
pop ecx
mov eax, esi
jmp 0x18018005
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18018b9e
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.18010f7b
test al, al
je 0x18018c35
call fcn.180194a4
test al, al
jne 0x18018c35
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18018bdb
call fcn.18012e6f
mov ebx, eax
jmp 0x18018c31
lea ecx, [ebp - 4]
call fcn.1804acf5
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18018c0d
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18018c14
call fcn.18012e6f
mov ebx, eax
test esi, esi
je 0x18018c1f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18018c37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18018eb4
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.18010f7b
test al, al
je 0x18018f4b
call fcn.180197ec
test al, al
jne 0x18018f4b
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18018ef1
call fcn.18012e6f
mov ebx, eax
jmp 0x18018f47
lea ecx, [ebp - 4]
call fcn.1804ac55
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18018f23
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18018f2a
call fcn.18012e6f
mov ebx, eax
test esi, esi
je 0x18018f35
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18018f4d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18019576
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 8], eax
call fcn.18019cc7
test al, al
je 0x18019594
xor eax, eax
jmp 0x18019641
call fcn.18018d6b
mov esi, eax
mov ecx, esi
call fcn.18013d98
test esi, esi
jns 0x180195ad
mov eax, esi
jmp 0x18019641
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x180195d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801963f
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801963f
lea ecx, [ebp - 4]
call fcn.1804acf5
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1801960d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push 1
push 3
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18019622
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18019622
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1801962d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180198be
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 8], eax
call fcn.18019e53
test al, al
je 0x180198dc
xor eax, eax
jmp 0x18019989
call fcn.18019081
mov esi, eax
mov ecx, esi
call fcn.18013d98
test esi, esi
jns 0x180198f5
mov eax, esi
jmp 0x18019989
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18019921
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18019987
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18019987
lea ecx, [ebp - 4]
call fcn.1804ac55
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18019955
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1801996a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801996a
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x18019975
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801998e
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x180199c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18019a33
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18019a33
lea ecx, [ebp - 4]
call fcn.1804ac55
lea ecx, [ebp - 8]
call fcn.18019de3
push ebx
push ebx
push str.RPCSS
push ebx
push ebx
push edi
mov edi, dword [ebp - 8]
push 1
push 2
push 0x10
push 0xf01ff
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x18019a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18019a19
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18019a19
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [edi - 0x10]
call fcn.18004595
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret