joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18013d1a
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 0x18013d3b
mov eax, 0x80070057
jmp 0x18013ed7
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.18006e74
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.18144340
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 0x18013ddd
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.18010af8
mov ebx, eax
test ebx, ebx
jns 0x18013dac
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x18013eb3
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 0x18013e0d
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
jmp 0x18013e17
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 0x18013e3e
push edx
lea ecx, [esp + 0x1c]
call fcn.18006ecd
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.18006b1a
test ebx, ebx
jne 0x18013e7b
call fcn.18013c6a
mov ebx, eax
jmp 0x18013eab
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x18013e96
push dword [esp + 0x28]
call ebx
jmp 0x18013e9c
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x18013ea9
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 0x18013ebe
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18013ec9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18004637
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x180146ca
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181c7008]
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.18006b69
mov ax, word [0x1817cc0c]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.18144340
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x18014732
call fcn.18013c6a
jmp 0x180147dd
mov eax, dword [0x181a3f10]
mov dword [ebp - 0xc], eax
mov ax, word [0x181a3f14]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x180147d6
movzx ecx, ax
mov ax, word [0x1817cc0c]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.18144340
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 0x180147bf
lea eax, [ebp - 0x41c]
push eax
call fcn.181482a3
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1814ff9a
add esp, 0x10
test eax, eax
je 0x180147ea
push esi
call fcn.181482a3
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1801475b
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18141824
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181a3f18
push dword [ebp - 0x420]
call fcn.1800f1a9
add esp, 0x10
xor eax, eax
jmp 0x180147db
Function at 0x18015303
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x181c7008]
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 0x1801536e
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1801536e
call fcn.18004624
mov esi, eax
jmp 0x18015446
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18015391
call fcn.18004624
jmp 0x18015439
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x18015387
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x180153ba
mov esi, 0x8007000e
jmp 0x1801543b
push 2
pop ecx
mul ecx
test edx, edx
ja 0x18015472
jb 0x180153d2
cmp eax, 0xffffffff
ja 0x18015472
cmp eax, 0x400
jbe 0x180153e7
push eax
lea ecx, [ebp - 0x410]
call fcn.1801a93e
jmp 0x180153f3
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x180153b0
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 0x18015387
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.18015e6e
mov esi, eax
test edi, edi
je 0x18015446
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x1801545f
lea ecx, [ebp - 0x410]
call fcn.18019fc4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18141824
leave
ret 0x10
push 0x80070216
call fcn.1800449d
int3
Function at 0x18017109
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 0x18017169
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 0x18017166
jmp 0x18017160
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 0x18017157
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x18017166
cmp dword [esi + 4], 0
jg 0x18017136
xchg dword [esi], edi
pop edi
pop esi
leave
ret
Function at 0x18018958
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.180b2023
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x1801897b
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 0xc]
call fcn.18006abf
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push 0x20019
push esi
mov dword [ebp - 0x1c], 0x181a3008
mov dword [ebp - 0x14], 0x200
call fcn.18012603
mov ebx, eax
mov ecx, ebx
call fcn.18014aa4
test ebx, ebx
js 0x18018ae0
lea ecx, [ebp - 0x1c]
call fcn.180132d1
test eax, eax
je 0x18018adb
push str.Clients
lea ecx, [ebp - 0x1c]
call fcn.1801264a
test al, al
je 0x18018adb
push str.ClientState
lea ecx, [ebp - 0x1c]
call fcn.1801264a
test al, al
je 0x18018adb
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 0x18018adb
push eax
push eax
push eax
push eax
push str.path
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x18018adb
call fcn.18003fd3
push eax
lea ecx, [ebp - 4]
call fcn.18006df7
lea eax, [ebp - 4]
push eax
push str.version
lea ecx, [ebp - 0x1c]
call fcn.18012aac
mov ebx, eax
mov ecx, ebx
call fcn.18014aa4
test ebx, ebx
js 0x18018ace
call fcn.180b2023
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
jne 0x18018a6a
mov eax, str.HKCUSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
push eax
lea ecx, [ebp - 0x10]
call fcn.18006abf
call fcn.18003fd3
push eax
lea ecx, [ebp - 8]
call fcn.18006df7
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
mov edx, 0x181a42c0
mov ecx, edi
call fcn.180143c8
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.18014aa4
mov esi, dword [ebp - 8]
test ebx, ebx
js 0x18018abb
push esi
lea ecx, [ebp - 4]
call fcn.1800c274
test eax, eax
je 0x18018ab9
mov ebx, 0xa043090b
jmp 0x18018abb
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.18004637
lea ecx, [edi - 0x10]
call fcn.18004637
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
jmp 0x18018ae0
mov ebx, 0x80070003
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x181a3008
call fcn.1801245f
lea ecx, [esi - 0x10]
call fcn.18004637
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x18018bea
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 0x18018d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x18018c2d
test eax, eax
jle 0x18018c27
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x18018d0e
lea edi, [ebx + 0x90]
mov ecx, dword [edi]
test ecx, ecx
je 0x18018c40
mov dword [edi], esi
call fcn.18019efc
lea ecx, [ebp - 0x18]
call fcn.1800f060
call fcn.18003fd3
push eax
lea ecx, [ebp - 8]
call fcn.18006df7
push dword [ebx + 0xc]
lea eax, [ebp - 8]
push 0x181a4854
push eax
call fcn.1800f1a9
add esp, 0xc
lea ecx, [ebp - 4]
push str.CommandLineMode
call fcn.18006abf
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.1801b6e7
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
je 0x18018c9e
push dword [esi + 0x10]
lea ecx, [ebp - 4]
call fcn.1800c274
test eax, eax
jns 0x18018cb9
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.1801b724
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x14]
call fcn.18006a67
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
mov cl, byte [ebx + 0x88]
lea edx, [ebp - 0x18]
push edi
call fcn.180af632
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18004637
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.1800f0fe
push 0x18
push dword [ebp - 0x18]
call fcn.1800a5dc
pop ecx
pop ecx
mov eax, esi
jmp 0x18018d11
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180198aa
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.18011187
test al, al
je 0x18019941
call fcn.1801a1b0
test al, al
jne 0x18019941
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x180198e7
call fcn.18013c6a
mov ebx, eax
jmp 0x1801993d
lea ecx, [ebp - 4]
call fcn.1804c0ba
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18019919
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 0x18019920
call fcn.18013c6a
mov ebx, eax
test esi, esi
je 0x1801992b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18019943
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18019bc0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.18011187
test al, al
je 0x18019c57
call fcn.1801a4f8
test al, al
jne 0x18019c57
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18019bfd
call fcn.18013c6a
mov ebx, eax
jmp 0x18019c53
lea ecx, [ebp - 4]
call fcn.1804c01a
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18019c2f
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 0x18019c36
call fcn.18013c6a
mov ebx, eax
test esi, esi
je 0x18019c41
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18019c59
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801a282
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.1801a9d3
test al, al
je 0x1801a2a0
xor eax, eax
jmp 0x1801a34d
call fcn.18019a77
mov esi, eax
mov ecx, esi
call fcn.18014aa4
test esi, esi
jns 0x1801a2b9
mov eax, esi
jmp 0x1801a34d
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1801a2e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a34b
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a34b
lea ecx, [ebp - 4]
call fcn.1804c0ba
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1801a319
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 0x1801a32e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a32e
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1801a339
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1801a5ca
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.1801ab5f
test al, al
je 0x1801a5e8
xor eax, eax
jmp 0x1801a695
call fcn.18019d8d
mov esi, eax
mov ecx, esi
call fcn.18014aa4
test esi, esi
jns 0x1801a601
mov eax, esi
jmp 0x1801a695
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1801a62d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a693
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a693
lea ecx, [ebp - 4]
call fcn.1804c01a
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1801a661
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 0x1801a676
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a676
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1801a681
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801a69a
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 0x1801a6d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a73f
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a73f
lea ecx, [ebp - 4]
call fcn.1804c01a
lea ecx, [ebp - 8]
call fcn.1801aaef
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 0x1801a71e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1801a725
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1801a725
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [edi - 0x10]
call fcn.18004637
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004637
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1801b009
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x181c7008]
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.1800446c
push dword [eax + 4]
push dword [eax]
call fcn.1814e1dc
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 0x1801b06f
push eax
call fcn.1815027a
pop ecx
lea eax, [esi + 0x40]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1801b09e
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.18141824
leave
ret

Function at 0x1801b2cf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x181c8d60], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x181c8d60
je 0x1801b307
push ecx
mov ecx, ebx
call fcn.18014caa
mov esi, eax
mov ecx, esi
call fcn.18014aa4
test esi, esi
js 0x1801b384
add ebx, 0x24
cmp dword [ebx], 0
jne 0x1801b2e6
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1801b3a5
jne 0x1801b3a2
cmp byte [edi + 0x3c], 0
je 0x1801b38f
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1801b388
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1801b50f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1801b359
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1801b388
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b37b
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 0x1801b397
xor ebx, ebx
jmp 0x1801b30b
mov esi, 0x80004005
jmp 0x1801b39b
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b3a5
call fcn.1801b48d
jmp 0x1801b3a5
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1801b3ae
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x181c8e20], 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, 0x181c8e20
je 0x1801b3e6
push ecx
mov ecx, ebx
call fcn.18014caa
mov esi, eax
mov ecx, esi
call fcn.18014aa4
test esi, esi
js 0x1801b463
add ebx, 0x24
cmp dword [ebx], 0
jne 0x1801b3c5
xor ebx, ebx
mov esi, ebx
test esi, esi
js 0x1801b484
jne 0x1801b481
cmp byte [edi + 0x3c], 0
je 0x1801b46e
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x1801b467
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edi
push 0x1801b50f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x1801b438
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1801b467
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b45a
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 0x1801b476
xor ebx, ebx
jmp 0x1801b3ea
mov esi, 0x80004005
jmp 0x1801b47a
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x1801b484
call fcn.1801b4ce
jmp 0x1801b484
mov byte [edi + 0x3c], bl
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x1801df78
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 0x1801df8c
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
lea ecx, [esi + 0x18]
call fcn.1801efb0
mov ecx, dword [0x181cdc28]
pop esi
mov ecx, dword [ecx]
jmp fcn.18017109