joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18013d42
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 0x18013d63
mov eax, 0x80070057
jmp 0x18013eff
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.18007149
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.18147220
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 0x18013e05
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.18010b1f
mov ebx, eax
test ebx, ebx
jns 0x18013dd4
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x18013edb
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 0x18013e35
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
jmp 0x18013e3f
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 0x18013e66
push edx
lea ecx, [esp + 0x1c]
call fcn.180071a2
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.18006def
test ebx, ebx
jne 0x18013ea3
call fcn.18013c92
mov ebx, eax
jmp 0x18013ed3
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x18013ebe
push dword [esp + 0x28]
call ebx
jmp 0x18013ec4
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x18013ed1
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 0x18013ee6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18013ef1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18004665
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x180146f2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181cb008]
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.18006e3e
mov ax, word [0x1817fc2c]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.18147220
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1801475a
call fcn.18013c92
jmp 0x18014805
mov eax, dword [0x181a79d8]
mov dword [ebp - 0xc], eax
mov ax, word [0x181a79dc]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x180147fe
movzx ecx, ax
mov ax, word [0x1817fc2c]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.18147220
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 0x180147e7
lea eax, [ebp - 0x41c]
push eax
call fcn.1814b183
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.18152e7a
add esp, 0x10
test eax, eax
je 0x18014812
push esi
call fcn.1814b183
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x18014783
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181a79e0
push dword [ebp - 0x420]
call fcn.1800f22e
add esp, 0x10
xor eax, eax
jmp 0x18014803
Function at 0x1801532b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x181cb008]
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 0x18015396
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x18015396
call fcn.18004652
mov esi, eax
jmp 0x1801546e
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x180153b9
call fcn.18004652
jmp 0x18015461
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x180153af
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x180153e2
mov esi, 0x8007000e
jmp 0x18015463
push 2
pop ecx
mul ecx
test edx, edx
ja 0x1801549a
jb 0x180153fa
cmp eax, 0xffffffff
ja 0x1801549a
cmp eax, 0x400
jbe 0x1801540f
push eax
lea ecx, [ebp - 0x410]
call fcn.1801a966
jmp 0x1801541b
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x180153d8
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 0x180153af
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.18015e96
mov esi, eax
test edi, edi
je 0x1801546e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18015487
lea ecx, [ebp - 0x410]
call fcn.18019fec
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18144705
leave
ret 0x10
push 0x80070216
call fcn.180044cb
int3
Function at 0x18017131
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 0x18017191
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 0x1801718e
jmp 0x18017188
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 0x1801717f
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x1801718e
cmp dword [esi + 4], 0
jg 0x1801715e
xchg dword [esi], edi
pop edi
pop esi
leave
ret
Function at 0x18018980
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.180b41c3
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x180189a3
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 0xc]
call fcn.18006d94
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push 0x20019
push esi
mov dword [ebp - 0x1c], 0x181a6a98
mov dword [ebp - 0x14], 0x200
call fcn.1801262b
mov ebx, eax
mov ecx, ebx
call fcn.18014acc
test ebx, ebx
js 0x18018b08
lea ecx, [ebp - 0x1c]
call fcn.180132f9
test eax, eax
je 0x18018b03
push str.Clients
lea ecx, [ebp - 0x1c]
call fcn.18012672
test al, al
je 0x18018b03
push str.ClientState
lea ecx, [ebp - 0x1c]
call fcn.18012672
test al, al
je 0x18018b03
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 0x18018b03
push eax
push eax
push eax
push eax
push str.path
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x18018b03
call fcn.18004001
push eax
lea ecx, [ebp - 4]
call fcn.180070cc
lea eax, [ebp - 4]
push eax
push str.version
lea ecx, [ebp - 0x1c]
call fcn.18012ad4
mov ebx, eax
mov ecx, ebx
call fcn.18014acc
test ebx, ebx
js 0x18018af6
call fcn.180b41c3
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
jne 0x18018a92
mov eax, str.HKCUSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
push eax
lea ecx, [ebp - 0x10]
call fcn.18006d94
call fcn.18004001
push eax
lea ecx, [ebp - 8]
call fcn.180070cc
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
mov edx, 0x181a7d90
mov ecx, edi
call fcn.180143f0
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.18014acc
mov esi, dword [ebp - 8]
test ebx, ebx
js 0x18018ae3
push esi
lea ecx, [ebp - 4]
call fcn.1800c297
test eax, eax
je 0x18018ae1
mov ebx, 0xa043090b
jmp 0x18018ae3
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.18004665
lea ecx, [edi - 0x10]
call fcn.18004665
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004665
jmp 0x18018b08
mov ebx, 0x80070003
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x181a6a98
call fcn.18012487
lea ecx, [esi - 0x10]
call fcn.18004665
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18018c12
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 0x18018d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x18018c55
test eax, eax
jle 0x18018c4f
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x18018d36
lea edi, [ebx + 0x90]
mov ecx, dword [edi]
test ecx, ecx
je 0x18018c68
mov dword [edi], esi
call fcn.18019f24
lea ecx, [ebp - 0x18]
call fcn.1800f111
call fcn.18004001
push eax
lea ecx, [ebp - 8]
call fcn.180070cc
push dword [ebx + 0xc]
lea eax, [ebp - 8]
push 0x181a806c
push eax
call fcn.1800f22e
add esp, 0xc
lea ecx, [ebp - 4]
push str.CommandLineMode
call fcn.18006d94
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.1801b70e
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
je 0x18018cc6
push dword [esi + 0x10]
lea ecx, [ebp - 4]
call fcn.1800c297
test eax, eax
jns 0x18018ce1
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.1801b74b
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x14]
call fcn.18006d3c
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004665
mov cl, byte [ebx + 0x88]
lea edx, [ebp - 0x18]
push edi
call fcn.180b16c2
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004665
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.1800f1af
push 0x18
push dword [ebp - 0x18]
call fcn.1800a688
pop ecx
pop ecx
mov eax, esi
jmp 0x18018d39
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180198d2
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.180111af
test al, al
je 0x18019969
call fcn.1801a1d8
test al, al
jne 0x18019969
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1801990f
call fcn.18013c92
mov ebx, eax
jmp 0x18019965
lea ecx, [ebp - 4]
call fcn.1804c0d3
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18019941
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 0x18019948
call fcn.18013c92
mov ebx, eax
test esi, esi
je 0x18019953
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004665
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1801996b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18019be8
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.180111af
test al, al
je 0x18019c7f
call fcn.1801a520
test al, al
jne 0x18019c7f
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18019c25
call fcn.18013c92
mov ebx, eax
jmp 0x18019c7b
lea ecx, [ebp - 4]
call fcn.1804c033
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18019c57
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 0x18019c5e
call fcn.18013c92
mov ebx, eax
test esi, esi
je 0x18019c69
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004665
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18019c81
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801a2aa
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.1801a9fb
test al, al
je 0x1801a2c8
xor eax, eax
jmp 0x1801a375
call fcn.18019a9f
mov esi, eax
mov ecx, esi
call fcn.18014acc
test esi, esi
jns 0x1801a2e1
mov eax, esi
jmp 0x1801a375
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1801a30d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a373
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a373
lea ecx, [ebp - 4]
call fcn.1804c0d3
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1801a341
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 0x1801a356
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a356
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1801a361
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004665
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1801a5f2
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.1801ab87
test al, al
je 0x1801a610
xor eax, eax
jmp 0x1801a6bd
call fcn.18019db5
mov esi, eax
mov ecx, esi
call fcn.18014acc
test esi, esi
jns 0x1801a629
mov eax, esi
jmp 0x1801a6bd
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1801a655
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a6bb
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a6bb
lea ecx, [ebp - 4]
call fcn.1804c033
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1801a689
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 0x1801a69e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a69e
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1801a6a9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004665
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801a6c2
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 0x1801a6f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a767
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a767
lea ecx, [ebp - 4]
call fcn.1804c033
lea ecx, [ebp - 8]
call fcn.1801ab17
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 0x1801a746
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a74d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a74d
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [edi - 0x10]
call fcn.18004665
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004665
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1801b030
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x181cb008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push eax
xor edi, edi
lea eax, [ebp - 0x204]
push edi
push dword [ebp + 0xc]
push 0xff
push 0x100
push eax
call fcn.1800449a
push dword [eax + 4]
push dword [eax]
call fcn.181510bc
xor eax, eax
add esp, 0x20
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x260], edi
jne 0x1801b096
push eax
call fcn.1815315a
pop ecx
lea eax, [esi + 0x40]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1801b0c5
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
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]
pop edi
xor ecx, ebp
pop esi
call fcn.18144705
leave
ret

Function at 0x1801b2f6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x181ccd60], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x181ccd60
je 0x1801b32e
push ecx
mov ecx, ebx
call fcn.18014cd2
mov esi, eax
mov ecx, esi
call fcn.18014acc
test esi, esi
js 0x1801b3ab
add ebx, 0x24
cmp dword [ebx], 0
jne 0x1801b30d
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1801b3cc
jne 0x1801b3c9
cmp byte [edi + 0x3c], 0
je 0x1801b3b6
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1801b3af
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1801b536
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1801b380
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1801b3af
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b3a2
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x34]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1801b3be
xor ebx, ebx
jmp 0x1801b332
mov esi, 0x80004005
jmp 0x1801b3c2
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b3cc
call fcn.1801b4b4
jmp 0x1801b3cc
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1801b3d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x181cce20], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x181cce20
je 0x1801b40d
push ecx
mov ecx, ebx
call fcn.18014cd2
mov esi, eax
mov ecx, esi
call fcn.18014acc
test esi, esi
js 0x1801b48a
add ebx, 0x24
cmp dword [ebx], 0
jne 0x1801b3ec
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1801b4ab
jne 0x1801b4a8
cmp byte [edi + 0x3c], 0
je 0x1801b495
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1801b48e
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1801b536
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1801b45f
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1801b48e
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b481
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0x34]
add eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1801b49d
xor ebx, ebx
jmp 0x1801b411
mov esi, 0x80004005
jmp 0x1801b4a1
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b4ab
call fcn.1801b4f5
jmp 0x1801b4ab
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
and dword [esi + 0x1c], 0
test ecx, ecx
je 0x1801df42
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
lea ecx, [esi + 0x18]
call fcn.1801ef66
mov ecx, dword [0x181d1d28]
pop esi
mov ecx, dword [ecx]
jmp fcn.18017131