joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18013824
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 0x180139a8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x180139b2
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 0x18013888
call fcn.18013e1e
mov ebx, eax
jmp 0x1801399b
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 0x18013993
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 0x180138d3
call fcn.18013e1e
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x18013966
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 0x1801390d
call fcn.18013e1e
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x18013966
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x18013952
cmp word [eax], bx
je 0x18013952
test edi, edi
je 0x18013952
cmp word [edi], bx
je 0x18013952
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.18152c93
pop ecx
pop ecx
test eax, eax
jne 0x1801394a
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.18152c93
pop ecx
pop ecx
test eax, eax
je 0x18013983
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18013906
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 0x18013993
mov eax, dword [ebp - 0xc]
jmp 0x180138a6
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x18013995
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 0x180139b2
jle 0x180139b2
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x18013bf4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181ce008]
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 0x18013c5a
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.18145efd
leave
ret

Function at 0x18013e5c
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 0x18013ecb
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 0x18013ea7
push ebx
push edi
push eax
call fcn.18149290
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 0x18013ec2
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 0x18013ece
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 0x18013eef
mov eax, 0x80070057
jmp 0x1801408b
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.180071f9
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.18148a10
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 0x18013f91
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.18010bcd
mov ebx, eax
test ebx, ebx
jns 0x18013f60
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x18014067
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 0x18013fc1
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
jmp 0x18013fcb
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 0x18013ff2
push edx
lea ecx, [esp + 0x1c]
call fcn.18007252
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.18006e9f
test ebx, ebx
jne 0x1801402f
call fcn.18013e1e
mov ebx, eax
jmp 0x1801405f
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1801404a
push dword [esp + 0x28]
call ebx
jmp 0x18014050
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1801405d
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 0x18014072
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1801407d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1801487e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181ce008]
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.18006eee
mov ax, word [0x18181c4c]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.18148a10
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x180148e6
call fcn.18013e1e
jmp 0x18014991
mov eax, dword [0x181aab80]
mov dword [ebp - 0xc], eax
mov ax, word [0x181aab84]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x1801498a
movzx ecx, ax
mov ax, word [0x18181c4c]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.18148a10
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 0x18014973
lea eax, [ebp - 0x41c]
push eax
call fcn.1814c973
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1815466a
add esp, 0x10
test eax, eax
je 0x1801499e
push esi
call fcn.1814c973
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1801490f
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181aab88
push dword [ebp - 0x420]
call fcn.1800f2dc
add esp, 0x10
xor eax, eax
jmp 0x1801498f
Function at 0x180154b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x181ce008]
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 0x18015522
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x18015522
call fcn.18004702
mov esi, eax
jmp 0x180155fa
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18015545
call fcn.18004702
jmp 0x180155ed
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1801553b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1801556e
mov esi, 0x8007000e
jmp 0x180155ef
push 2
pop ecx
mul ecx
test edx, edx
ja 0x18015626
jb 0x18015586
cmp eax, 0xffffffff
ja 0x18015626
cmp eax, 0x400
jbe 0x1801559b
push eax
lea ecx, [ebp - 0x410]
call fcn.1801aae2
jmp 0x180155a7
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x18015564
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 0x1801553b
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.18016022
mov esi, eax
test edi, edi
je 0x180155fa
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18015613
lea ecx, [ebp - 0x410]
call fcn.1801a164
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145efd
leave
ret 0x10
push 0x80070216
call fcn.1800457b
int3
Function at 0x180172bd
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 0x1801731d
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 0x1801731a
jmp 0x18017314
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 0x1801730b
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x1801731a
cmp dword [esi + 4], 0
jg 0x180172ea
xchg dword [esi], edi
pop edi
pop esi
leave
ret
Function at 0x18018b0c
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.180b58fa
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x18018b2f
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 0xc]
call fcn.18006e44
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push 0x20019
push esi
mov dword [ebp - 0x1c], 0x181a9c18
mov dword [ebp - 0x14], 0x200
call fcn.180126f7
mov ebx, eax
mov ecx, ebx
call fcn.18014c58
test ebx, ebx
js 0x18018c94
lea ecx, [ebp - 0x1c]
call fcn.18013483
test eax, eax
je 0x18018c8f
push str.Clients
lea ecx, [ebp - 0x1c]
call fcn.18012740
test al, al
je 0x18018c8f
push str.ClientState
lea ecx, [ebp - 0x1c]
call fcn.18012740
test al, al
je 0x18018c8f
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 0x18018c8f
push eax
push eax
push eax
push eax
push str.path
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x18018c8f
call fcn.180040b1
push eax
lea ecx, [ebp - 4]
call fcn.1800717c
lea eax, [ebp - 4]
push eax
push str.version
lea ecx, [ebp - 0x1c]
call fcn.18012ba7
mov ebx, eax
mov ecx, ebx
call fcn.18014c58
test ebx, ebx
js 0x18018c82
call fcn.180b58fa
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
jne 0x18018c1e
mov eax, str.HKCUSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
push eax
lea ecx, [ebp - 0x10]
call fcn.18006e44
call fcn.180040b1
push eax
lea ecx, [ebp - 8]
call fcn.1800717c
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
mov edx, 0x181aaf30
mov ecx, edi
call fcn.1801457c
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.18014c58
mov esi, dword [ebp - 8]
test ebx, ebx
js 0x18018c6f
push esi
lea ecx, [ebp - 4]
call fcn.1800c345
test eax, eax
je 0x18018c6d
mov ebx, 0xa043090b
jmp 0x18018c6f
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.18004715
lea ecx, [edi - 0x10]
call fcn.18004715
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
jmp 0x18018c94
mov ebx, 0x80070003
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x181a9c18
call fcn.18012552
lea ecx, [esi - 0x10]
call fcn.18004715
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18018d8a
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 0x18018eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x18018dcd
test eax, eax
jle 0x18018dc7
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x18018eae
lea edi, [ebx + 0x90]
mov ecx, dword [edi]
test ecx, ecx
je 0x18018de0
mov dword [edi], esi
call fcn.1801a09c
lea ecx, [ebp - 0x18]
call fcn.1800f1bf
call fcn.180040b1
push eax
lea ecx, [ebp - 8]
call fcn.1800717c
push dword [ebx + 0xc]
lea eax, [ebp - 8]
push 0x181ab20c
push eax
call fcn.1800f2dc
add esp, 0xc
lea ecx, [ebp - 4]
push str.CommandLineMode
call fcn.18006e44
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.1801b88a
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
je 0x18018e3e
push dword [esi + 0x10]
lea ecx, [ebp - 4]
call fcn.1800c345
test eax, eax
jns 0x18018e59
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.1801b8c7
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x14]
call fcn.18006dec
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov cl, byte [ebx + 0x88]
lea edx, [ebp - 0x18]
push edi
call fcn.180b2dea
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004715
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.1800f25d
push 0x18
push dword [ebp - 0x18]
call fcn.1800a736
pop ecx
pop ecx
mov eax, esi
jmp 0x18018eb1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18019a4a
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.1801125c
test al, al
je 0x18019ae1
call fcn.1801a350
test al, al
jne 0x18019ae1
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18019a87
call fcn.18013e1e
mov ebx, eax
jmp 0x18019add
lea ecx, [ebp - 4]
call fcn.1804c298
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18019ab9
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 0x18019ac0
call fcn.18013e1e
mov ebx, eax
test esi, esi
je 0x18019acb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18019ae3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18019d60
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.1801125c
test al, al
je 0x18019df7
call fcn.1801a698
test al, al
jne 0x18019df7
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18019d9d
call fcn.18013e1e
mov ebx, eax
jmp 0x18019df3
lea ecx, [ebp - 4]
call fcn.1804c1f8
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18019dcf
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 0x18019dd6
call fcn.18013e1e
mov ebx, eax
test esi, esi
je 0x18019de1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18019df9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801a422
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.1801ab77
test al, al
je 0x1801a440
xor eax, eax
jmp 0x1801a4ed
call fcn.18019c17
mov esi, eax
mov ecx, esi
call fcn.18014c58
test esi, esi
jns 0x1801a459
mov eax, esi
jmp 0x1801a4ed
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1801a485
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a4eb
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a4eb
lea ecx, [ebp - 4]
call fcn.1804c298
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1801a4b9
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 0x1801a4ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a4ce
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1801a4d9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1801a76a
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.1801ad03
test al, al
je 0x1801a788
xor eax, eax
jmp 0x1801a835
call fcn.18019f2d
mov esi, eax
mov ecx, esi
call fcn.18014c58
test esi, esi
jns 0x1801a7a1
mov eax, esi
jmp 0x1801a835
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1801a7cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a833
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a833
lea ecx, [ebp - 4]
call fcn.1804c1f8
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1801a801
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 0x1801a816
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a816
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1801a821
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801a83a
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 0x1801a870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a8df
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a8df
lea ecx, [ebp - 4]
call fcn.1804c1f8
lea ecx, [ebp - 8]
call fcn.1801ac93
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 0x1801a8be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a8c5
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a8c5
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [edi - 0x10]
call fcn.18004715
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004715
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret