joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801848b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1820f00c]
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.18006df7
mov ax, word [0x181b72bc]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x180184f3
call fcn.18017850
jmp 0x1801859e
mov eax, dword [0x181dd644]
mov dword [ebp - 0xc], eax
mov ax, word [0x181dd648]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x18018597
movzx ecx, ax
mov ax, word [0x181b72bc]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.181620e0
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 0x18018580
lea eax, [ebp - 0x41c]
push eax
call fcn.18165959
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1816ae1a
add esp, 0x10
test eax, eax
je 0x180185ab
push esi
call fcn.18165959
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1801851c
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181dd638
push dword [ebp - 0x420]
call fcn.18013d2c
add esp, 0x10
xor eax, eax
jmp 0x1801859c
Function at 0x18019ba2
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 4]
call fcn.18009c8e
mov dword [ebp - 8], edi
mov ecx, 0x811c9dc5
xor esi, esi
movzx eax, byte [ebp + esi - 8]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x18019bc1
push ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1801e291
mov ecx, dword [0x182189b0]
mov eax, dword [eax + 4]
test eax, eax
jne 0x18019bf1
mov eax, ecx
cmp eax, ecx
je 0x18019c03
add eax, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.18009c40
jmp 0x18019c19
or edi, 0x4000
lea edx, [ebp - 4]
mov ecx, edi
call fcn.1800bca9
mov esi, eax
test esi, esi
js 0x18019c89
mov eax, dword [ebp - 4]
xor edx, edx
mov esi, dword [ebx]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x18019c3e
push edi
lea ecx, [ebp - 4]
call fcn.18006f9e
mov eax, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18009cb5
test esi, esi
jne 0x18019c5d
mov esi, 0x80040709
jmp 0x18019c89
mov esi, dword [ebp - 4]
test esi, esi
jne 0x18019c68
xor eax, eax
jmp 0x18019c6f
push esi
call fcn.18165959
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.18006e93
cmp byte [ebp + 8], 0
je 0x18019c87
mov ecx, dword [ebp - 4]
call fcn.1800bb9e
xor esi, esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800687d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1801bfaf
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push 4
mov edx, str.AutoUpdateJitterMs
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdateDev_
call fcn.1801661d
add esp, 0xc
test eax, eax
js 0x1801bfe7
mov eax, dword [ebp - 4]
cmp eax, 0xea60
jb 0x1801c00c
mov eax, 0xea5f
leave
ret
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
mov ecx, 0xea60
neg eax
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 8]
div ecx
mov eax, edx
leave
ret
Function at 0x1802004f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1820f00c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.181620e0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x180200b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1802010a
movzx eax, ax
or eax, 0x80070000
jmp 0x1802010a
lea ecx, [esp + 0x10]
call fcn.1800b090
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.1800b9bf
pop ecx
push dword [esp + 0x10]
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x180200ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x180200ff
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.1800b0b1
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1814cf3d
mov esp, ebp
pop ebp
ret

Function at 0x1802014f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10820
call fcn.18186520
mov eax, dword [0x1820f00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x1081c], esi
mov ecx, dword [edi]
call fcn.1800e6f7
test al, al
jne 0x1802018b
mov eax, 0x80070002
jmp 0x18020284
mov ecx, esi
call fcn.18018224
push 0x10000
lea eax, [ebp - 0x1080c]
push 0
push eax
call fcn.181620e0
add esp, 0xc
lea eax, [ebp - 0x1080c]
push dword [edi]
push 0x8000
push eax
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x10814], 0
mov dword [ebp - 0x10818], eax
test eax, eax
je 0x18020282
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.181620e0
mov eax, dword [ebp - 0x10814]
lea ecx, [ebp - 0x1080c]
add esp, 0xc
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10810]
call fcn.18006d98
push dword [edi]
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0
push dword [ebp - 0x10810]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10810]
mov ecx, esi
push eax
call fcn.18021441
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.18165959
pop ecx
push eax
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
call fcn.18006e93
mov eax, dword [ebp - 0x10810]
mov esi, dword [ebp - 0x10814]
inc esi
add esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x10814], esi
call fcn.1800687d
cmp esi, dword [ebp - 0x10818]
mov esi, dword [ebp - 0x1081c]
jb 0x180201d7
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret
Function at 0x18020293
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], edx
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x180202b1
xor eax, eax
inc eax
jmp 0x1802038b
mov edx, 0x181e0450
lea ecx, [ebp - 8]
call fcn.1800d2d0
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], edi
jne 0x180202d2
call fcn.18017850
mov edi, eax
jmp 0x1802037e
push esi
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x180202fd
call fcn.18017850
mov edi, eax
jmp 0x1802037d
lea ecx, [ebp - 4]
call fcn.18009c8e
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.18010286
push dword [eax]
lea eax, [ebp - 4]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.18013d41
mov ecx, dword [ebp - 0xc]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push edi
push ecx
mov dword [ebp - 0x10], edi
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1802035f
call fcn.18017850
mov edi, eax
jmp 0x1802036b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
call fcn.18009c40
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x18020bea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov bh, dl
mov dword [ebp - 0xc], 0x181dd038
xor edi, edi
lea edx, [ebp - 0xc]
mov bl, cl
mov dword [ebp - 8], edi
call fcn.180208b6
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
mov edx, dword [eax + 4]
cmp edx, 0x18012e89
jne 0x18020c23
push 0xffffffffffffffff
call dword [eax + 0xc]
jmp 0x18020c25
call edx
mov dword [ebp - 0x18], 0x181dc620
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x200
call fcn.1801a8a4
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
test bl, bl
jne 0x18020c49
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push 0xf003f
push eax
lea ecx, [ebp - 0x18]
call fcn.18016414
push edi
push edi
push edi
push edi
mov esi, str.old_uid
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x18]
test eax, eax
jne 0x18020c7d
push 0x181e0298
call fcn.18016236
jmp 0x18020cd2
push esi
push 0x181e0298
call fcn.18016afc
test bh, bh
je 0x18020cd2
lea ecx, [ebp - 4]
call fcn.18009c8e
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.1801691f
mov esi, str.__legacy
push esi
call fcn.18165959
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.18009d31
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x18]
push 1
push esi
push str.old_uid
call fcn.18016a96
lea ecx, [esi - 0x10]
call fcn.1800687d
mov cl, bl
call fcn.18020d8a
mov esi, eax
mov dword [ebp - 0x18], 0x181dc620
cmp dword [ebp - 0x14], edi
je 0x18020cfa
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x200
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
cmp eax, 0x18012eb7
jne 0x18020d12
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x18020d17
lea ecx, [ebp - 0xc]
call eax
mov dword [ebp - 0xc], 0x181dd038
cmp dword [ebp - 8], edi
je 0x18020d2c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x180274c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1820f00c]
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 0x18027533
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x18027533
call fcn.18007249
mov esi, eax
jmp 0x1802760b
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18027556
call fcn.18007249
jmp 0x180275fe
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1802754c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1802757f
mov esi, 0x8007000e
jmp 0x18027600
push 2
pop ecx
mul ecx
test edx, edx
ja 0x18027637
jb 0x18027597
cmp eax, 0xffffffff
ja 0x18027637
cmp eax, 0x400
jbe 0x180275ac
push eax
lea ecx, [ebp - 0x410]
call fcn.1802ca98
jmp 0x180275b8
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x18027575
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 0x1802754c
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.1802803d
mov esi, eax
test edi, edi
je 0x1802760b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18027624
lea ecx, [ebp - 0x410]
call fcn.1802bf5e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1814cf3d
leave
ret 0x10
push 0x80070216
call fcn.18006585
int3
Function at 0x18029129
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ecx + 0x98]
cmp dword [esi], 0
jne 0x18029189
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 0x18029186
jmp 0x18029180
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 0x18029177
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x18029186
cmp dword [esi + 4], 0
jg 0x18029156
xchg dword [esi], edi
pop edi
pop esi
leave
ret

Function at 0x18029926
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 2
pop esi
mov ecx, dword [edi + 0x80]
cmp ecx, dword [edi + 0x84]
je 0x1802994f
xor eax, eax
cmp dword [ecx + 0x14], eax
setne al
mov dword [ebp - 8], eax
mov esi, eax
mov al, byte [edi + 0x8d]
mov bl, byte [edi + 0x11]
mov dword [ebp - 8], eax
call fcn.1801a8a4
mov ecx, dword [edi + 0xc]
inc eax
push esi
push ebx
push dword [ebp - 8]
mov dl, byte [eax]
call fcn.1802af35
add esp, 0xc
mov byte [edi + 0x8c], al
mov ecx, 0x182104c0
push eax
call fcn.1801e95b
cmp byte [edi + 0x8c], 0
je 0x1802999c
call fcn.18014160
test al, al
je 0x1802999c
mov cl, 1
xor ebx, ebx
jmp 0x180299a0
xor ebx, ebx
mov cl, bl
call fcn.18055686
mov edx, dword [edi]
lea ecx, [ebp - 8]
call fcn.1801261c
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
je 0x18029a74
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x18029a74
movzx ecx, byte [0x18217983]
neg ecx
sbb ecx, ecx
and ecx, 0x18217880
je 0x18029a27
push 7
pop edx
push 3
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008988
mov edx, esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
call fcn.18006ac3
push dword [ebp - 4]
movzx eax, byte [edi + 0x8c]
push eax
lea eax, [ebp - 0x18]
push str._is_machine:__d__Current_dir___s_
push eax
call fcn.18006aa4
mov ecx, dword [ebp - 4]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, edi
call fcn.1802a237
mov cl, byte [edi + 0x8c]
call fcn.1802ae2b
push dword [edi + 0xc]
call fcn.1802a0fe
test al, al
je 0x18029a57
mov ecx, edi
call fcn.1802a150
test al, al
je 0x18029a57
mov edi, 0xa0430607
jmp 0x18029a7b
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [edi + 0xc]
call fcn.1802a1b2
mov edi, eax
mov ecx, edi
call fcn.1801864b
test edi, edi
js 0x18029a7b
jmp 0x18029a7d
call fcn.18017850
mov edi, eax
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.1800687d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1802ab13
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.1801a8a4
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
jne 0x1802ab36
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.18006d98
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
push 0x20019
push edi
mov dword [ebp - 0x18], 0x181dc620
mov dword [ebp - 0x10], 0x200
call fcn.18016414
mov ebx, eax
mov ecx, ebx
call fcn.1801864b
test ebx, ebx
js 0x1802ac8e
lea ecx, [ebp - 0x18]
call fcn.180171dd
test eax, eax
je 0x1802ac89
push str.Clients
lea ecx, [ebp - 0x18]
call fcn.1801645b
test al, al
je 0x1802ac89
push str.ClientState
lea ecx, [ebp - 0x18]
call fcn.1801645b
test al, al
je 0x1802ac89
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
push eax
push eax
push eax
push eax
push 0x181e1414
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x1802ac89
push eax
push eax
push eax
push eax
push str.path
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x1802ac89
lea ecx, [ebp - 8]
call fcn.18009c8e
lea eax, [ebp - 8]
push eax
push 0x181e1414
lea ecx, [ebp - 0x18]
call fcn.1801691f
mov ebx, eax
mov ecx, ebx
call fcn.1801864b
test ebx, ebx
js 0x1802ac7c
call fcn.1801a8a4
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
jne 0x1802ac1f
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
push eax
lea ecx, [ebp - 0xc]
call fcn.18006d98
lea ecx, [ebp - 4]
call fcn.18009c8e
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
mov edx, 0x181e0648
mov ecx, esi
call fcn.180180a7
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.1801864b
test ebx, ebx
js 0x1802ac69
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.180099af
test al, al
je 0x1802ac67
mov ebx, 0xa043090b
jmp 0x1802ac69
xor ebx, ebx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
lea ecx, [esi - 0x10]
call fcn.1800687d
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800687d
jmp 0x1802ac8e
mov ebx, 0x80070003
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x181dc620
je 0x1802acaf
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x200
lea ecx, [edi - 0x10]
call fcn.1800687d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1802b7a1
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.180132ba
test al, al
je 0x1802b838
call fcn.1802c061
test al, al
jne 0x1802b838
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1802b7de
call fcn.18017850
mov ebx, eax
jmp 0x1802b834
lea ecx, [ebp - 4]
call fcn.180604a7
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1802b810
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 0x1802b81b
call fcn.18017850
mov ebx, eax
test esi, esi
je 0x1802b822
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1802b83a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1802bacf
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.180132ba
test al, al
je 0x1802bb66
call fcn.1802c3a9
test al, al
jne 0x1802bb66
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1802bb0c
call fcn.18017850
mov ebx, eax
jmp 0x1802bb62
lea ecx, [ebp - 4]
call fcn.18060411
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1802bb3e
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 0x1802bb49
call fcn.18017850
mov ebx, eax
test esi, esi
je 0x1802bb50
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1802bb68
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1802c133
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.1802cb21
test al, al
je 0x1802c151
xor eax, eax
jmp 0x1802c1fe
call fcn.1802b984
mov esi, eax
mov ecx, esi
call fcn.1801864b
test esi, esi
jns 0x1802c16a
mov eax, esi
jmp 0x1802c1fe
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1802c196
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1802c1fc
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1802c1fc
lea ecx, [ebp - 4]
call fcn.180604a7
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1802c1ca
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 0x1802c1e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1802c1df
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x1802c1ea
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800687d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1802c203
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
mov ebx, ecx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x1802c239
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1802c2a8
movzx edi, di
or edi, 0x80070000
jmp 0x1802c2a8
lea ecx, [ebp - 8]
call fcn.180604a7
lea ecx, [ebp - 4]
call fcn.1802cabd
push edi
push edi
push str.RPCSS
push edi
push edi
push ebx
push 1
push 3
push 0x10
push 0xf01ff
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x1802c28c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1802c28f
movzx edi, di
or edi, 0x80070000
jmp 0x1802c28f
push eax
call ebx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800687d
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.1800687d
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret