joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18027ca6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], edx
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jne 0x18027cce
xor eax, eax
inc eax
jmp 0x18027db4
mov edx, 0x181a7d24
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0xc]
call fcn.1800ebe9
mov eax, dword [ebp - 0xc]
cmp dword [eax - 0xc], edi
jne 0x18027cf2
call fcn.1801b8b5
mov edi, eax
jmp 0x18027da7
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 0x18027d1d
call fcn.1801b8b5
mov edi, eax
jmp 0x18027da6
mov dword [ebp - 8], edi
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
mov edx, ebx
lea ecx, [ebp - 0x14]
call fcn.18012580
push dword [eax]
lea eax, [ebp - 8]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.18016942
mov ecx, dword [ebp - 0x14]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, dword [ebp - 8]
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 0x18027d88
call fcn.1801b8b5
mov edi, eax
jmp 0x18027d94
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
call fcn.18009e6a
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret
Function at 0x18028870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov bl, cl
push edi
mov byte [ebp - 0x31], bl
call fcn.18026700
test al, al
je 0x1802889b
mov eax, 0x80004005
jmp 0x18028a44
xor edi, edi
mov dword [ebp - 0x28], 0x1819e7d0
lea edx, [ebp - 0x28]
mov dword [ebp - 0x24], edi
mov cl, bl
call fcn.18028349
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], edi
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
call fcn.1801558d
mov dword [ebp - 0x20], 0x1819e70c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
call fcn.1801f86a
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
test bl, bl
jne 0x180288e7
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push edi
push ecx
push 0xf003f
push ecx
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.18019f48
mov ebx, eax
test ebx, ebx
js 0x18028a04
push edi
push edi
push edi
push edi
push 0x181a7b84
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18028920
mov ebx, edi
jmp 0x18028a04
mov dword [ebp - 8], edi
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
lea ecx, [ebp - 8]
call fcn.1800ea7b
mov esi, dword [ebp - 8]
test eax, eax
js 0x180289f6
xor ebx, ebx
lea ecx, [ebp - 0x20]
inc ebx
push ebx
push esi
push 0x181a7b84
call fcn.1801a832
test eax, eax
js 0x180289f6
mov ecx, 0x181d21e0
call fcn.180267f1
lea ecx, [ebp - 0x20]
call fcn.18028805
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.18028076
mov edi, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
js 0x180289b6
cmp edi, eax
je 0x180289b6
sub esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.180252d8
mov cl, byte [ebp - 0x31]
call fcn.180283be
mov edi, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x38], eax
test edi, edi
je 0x180289fa
cmp edi, eax
je 0x180289d8
mov esi, dword [ebp - 0x38]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18006f52
add edi, 4
cmp edi, esi
jne 0x180289c1
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub eax, edi
and eax, 0xfffffffc
push eax
push edi
call fcn.1800a1cd
xor edi, edi
pop ecx
pop ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
jmp 0x180289fc
mov ebx, eax
jmp 0x180289fc
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.18006f52
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0x1819e70c
je 0x18028a24
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x200
lea ecx, [ebp - 0x30]
call fcn.180155b8
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1819e7d0
je 0x18028a42
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret
Function at 0x180308ec
Capabilities:
Authenticate hmac

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x1803092e
call fcn.18030b60
mov ecx, esi
cmp eax, 0xef
jne 0x18030929
call fcn.18030b60
cmp eax, 0xbb
jne 0x1803091d
mov ecx, esi
call fcn.18030b60
cmp eax, 0xbf
je 0x1803092e
mov dword [esi + 0x40], str.invalid_BOM__must_be_0xEF_0xBB_0xBF_if_given
push 0xe
pop eax
pop esi
ret
call fcn.18031626
mov ecx, esi
call fcn.18030b60
mov eax, dword [esi + 8]
cmp eax, 0x20
je 0x1803092e
cmp eax, 9
je 0x1803092e
cmp eax, 0xa
je 0x1803092e
cmp eax, 0xd
je 0x1803092e
cmp eax, 0x36
jg 0x180309a7
je 0x18030976
cmp eax, 0x30
jg 0x1803098e
je 0x18030976
cmp eax, 0xffffffff
je 0x1803098a
test eax, eax
je 0x1803098a
cmp eax, 0x22
je 0x18030982
cmp eax, 0x2c
je 0x1803097e
cmp eax, 0x2d
jne 0x180309f6
mov ecx, esi
pop esi
jmp fcn.18030c0a
push 0xd
jmp 0x18030926
mov ecx, esi
pop esi
jmp fcn.18030fd0
push 0xf
jmp 0x18030926
sub eax, 0x31
je 0x18030976
sub eax, 1
je 0x18030976
sub eax, 1
je 0x18030976
sub eax, 1
je 0x18030976
sub eax, 1
jmp 0x18030970
cmp eax, 0x5d
jg 0x180309dc
je 0x180309d5
sub eax, 0x37
je 0x18030976
sub eax, 1
je 0x18030976
sub eax, 1
je 0x18030976
sub eax, 1
je 0x180309ce
sub eax, 0x21
jne 0x180309f6
push 8
jmp 0x18030926
push 0xc
jmp 0x18030926
push 0xa
jmp 0x18030926
sub eax, 0x66
je 0x18030a26
sub eax, 8
je 0x18030a1b
sub eax, 6
je 0x18030a10
sub eax, 7
je 0x18030a09
dec eax
sub eax, 1
je 0x18030a02
mov dword [esi + 0x40], str.invalid_literal
jmp 0x18030924
push 0xb
jmp 0x18030926
push 9
jmp 0x18030926
push 1
push 4
push str.true
jmp 0x18030a2f
push 3
push 4
push str.null
jmp 0x18030a2f
push 2
push 5
push str.false
mov ecx, esi
call fcn.18030bcc
pop esi
ret
Function at 0x1803b3b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x181d100c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
push 0x400
lea eax, [esp + 0x20]
mov dword [esp + 0x18], ecx
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.181312b0
add esp, 0xc
mov dword [esp + 0x18], edi
push 0x60
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1803b430
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1803b430
call fcn.180079f0
mov esi, eax
jmp 0x1803b4e3
push dword [esp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1803b44c
call fcn.180079f0
jmp 0x1803b4d6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1803b442
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea ecx, [esi + 1]
cmp ecx, esi
jae 0x1803b472
mov esi, 0x8007000e
jmp 0x1803b4d8
push 2
pop edx
lfence
call fcn.180101d2
cmp eax, 0x400
jbe 0x1803b493
push eax
lea ecx, [esp + 0x1c]
lfence
call fcn.180416b3
jmp 0x1803b49b
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
je 0x1803b46b
push esi
lfence
push dword [esp + 0x1c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1803b442
mov eax, dword [esp + 0x18]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
call fcn.1803bf98
mov esi, eax
test edi, edi
je 0x1803b4e3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], eax
je 0x1803b4f6
lea ecx, [esp + 0x18]
call fcn.180407e7
mov ecx, dword [esp + 0x424]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811c608
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1803d33e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 0x98]
cmp dword [esi], 0
jne 0x1803d399
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
inc edi
test eax, eax
je 0x1803d395
jmp 0x1803d38f
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
cmp eax, ebx
jae 0x1803d386
or ecx, 0xffffffff
sub ecx, ebx
add ecx, eax
cmp ecx, dword [ebp - 4]
jae 0x1803d395
cmp dword [esi + 4], 0
jg 0x1803d36a
xchg dword [esi], edi
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1803dbda
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 2
pop esi
mov ecx, dword [edi + 0x80]
cmp ecx, dword [edi + 0x84]
je 0x1803dc0d
xor eax, eax
cmp dword [ecx + 0x14], eax
setne al
mov dword [ebp - 0xc], eax
mov esi, eax
mov al, byte [edi + 0x8d]
mov bl, byte [edi + 0x11]
mov dword [ebp - 0xc], eax
call fcn.1801f86a
mov ecx, dword [edi + 0xc]
inc eax
push esi
push ebx
push dword [ebp - 0xc]
mov dl, byte [eax]
call fcn.1803f2e2
add esp, 0xc
mov byte [edi + 0x8c], al
mov ecx, 0x181d2618
push eax
call fcn.18025fcc
cmp byte [edi + 0x8c], 0
je 0x1803dc5a
call fcn.18016e6c
test al, al
je 0x1803dc5a
mov cl, 1
xor ebx, ebx
jmp 0x1803dc5e
xor ebx, ebx
mov cl, bl
call fcn.1807491f
mov edx, dword [edi]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.18014b77
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
je 0x1803dd3c
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1803dd3c
movzx ecx, byte [0x181d705a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d6f50
je 0x1803dce8
push 7
pop edx
push 3
pop eax
push eax
push edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call fcn.18008b3f
mov edx, esi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0xc]
call fcn.1800722f
push dword [ebp - 0xc]
movzx eax, byte [edi + 0x8c]
push eax
lea eax, [ebp - 0x1c]
push str._is_machine:__d__Current_dir___s_
push eax
call fcn.18007210
mov ecx, dword [ebp - 0xc]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov ecx, edi
call fcn.1803e597
mov cl, byte [edi + 0x8c]
call fcn.1803f1ba
push dword [edi + 0xc]
call fcn.1803e4b3
test al, al
je 0x1803dd1c
mov cl, byte [edi + 0x8c]
call fcn.18027061
test al, al
je 0x1803dd1c
mov edi, 0xa0430607
jmp 0x1803dd43
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [edi + 0xc]
call fcn.1803e505
mov edi, eax
mov ecx, edi
call fcn.1801cec7
mov esi, dword [ebp - 8]
test edi, edi
js 0x1803dd43
jmp 0x1803dd45
call fcn.1801b8b5
mov edi, eax
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret
Function at 0x1803edef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov esi, ecx
call fcn.1801f86a
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
jne 0x1803ee20
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.180074da
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
push 0x20019
push edi
mov dword [ebp - 0x18], 0x1819e70c
mov dword [ebp - 0x10], 0x200
call fcn.1801a09e
mov ebx, eax
mov ecx, ebx
call fcn.1801cec7
test ebx, ebx
js 0x1803ef95
lea ecx, [ebp - 0x18]
call fcn.1801b06e
test eax, eax
je 0x1803ef90
push str.Clients
lea ecx, [ebp - 0x18]
call fcn.1801a100
test al, al
je 0x1803ef90
push str.ClientState
lea ecx, [ebp - 0x18]
call fcn.1801a100
test al, al
je 0x1803ef90
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1803ef90
push ebx
push ebx
push ebx
push ebx
push str.path
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1803ef90
mov dword [ebp - 8], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
lea eax, [ebp - 8]
push eax
push str.version
lea ecx, [ebp - 0x18]
call fcn.1801a683
mov ebx, eax
mov ecx, ebx
call fcn.1801cec7
test ebx, ebx
js 0x1803ef83
and dword [ebp - 0x1c], 0
call fcn.1801f86a
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
jne 0x1803ef1c
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
push eax
lea ecx, [ebp - 0x1c]
call fcn.180074da
and dword [ebp - 0xc], 0
call fcn.18006f7b
push eax
lea ecx, [ebp - 0xc]
call fcn.1800768f
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
mov edx, 0x181a82ac
mov ecx, esi
call fcn.1801c8d1
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.1801cec7
test ebx, ebx
js 0x1803ef70
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.18009bef
test al, al
je 0x1803ef6e
mov ebx, 0xa043090b
jmp 0x1803ef70
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f52
lea ecx, [esi - 0x10]
call fcn.18006f52
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
jmp 0x1803ef95
mov ebx, 0x80070003
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x1819e70c
je 0x1803efb6
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.18006f52
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret
Function at 0x1803fcca
Capabilities:
Modify service

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x2038
call fcn.181580c0
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.18015ab1
test al, al
je 0x1803febb
push 0x2000
xor esi, esi
lea eax, [ebp - 0x2008]
push esi
push eax
mov dword [ebp - 0x201c], esi
call fcn.181312b0
add esp, 0xc
mov dword [ebp - 0x200c], esi
lea eax, [ebp - 0x200c]
lea ecx, [ebp - 0x2008]
push eax
call fcn.180408f0
mov edi, dword [ebp - 0x200c]
pop ecx
test al, al
je 0x1803fd51
mov ecx, edi
call fcn.1801cec7
test edi, edi
jns 0x1803febb
mov ecx, edi
call fcn.1801cec7
test edi, edi
jns 0x1803fd63
mov eax, edi
jmp 0x1803febd
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x2020], edi
test edi, edi
jne 0x1803fd88
call fcn.1801b8b5
mov esi, eax
jmp 0x1803feb7
lea ecx, [ebp - 0x200c]
mov dword [ebp - 0x200c], esi
call fcn.18081a9c
push 2
push dword [ebp - 0x200c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2018], eax
test eax, eax
jne 0x1803fdbe
call fcn.1801b8b5
mov esi, eax
jmp 0x1803fea2
mov edx, dword [ebp - 0x2008]
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x2010], esi
lea edx, [edx + 1]
call fcn.18042446
mov ecx, dword [ebp - 0x2008]
mov dword [ebp - 0x2014], esi
test ecx, ecx
je 0x1803fe31
mov eax, dword [ebp - 0x2010]
mov edx, esi
mov esi, dword [ebp - 0x2004]
lea edi, [ebp - 0x2038]
add esi, edx
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
push 5
lea edi, [edx + eax]
add edx, 0x14
pop ecx
lea esi, [ebp - 0x2038]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2014]
mov ecx, dword [ebp - 0x2008]
inc esi
mov dword [ebp - 0x2014], esi
cmp esi, ecx
jb 0x1803fdf0
mov edi, dword [ebp - 0x2020]
mov esi, dword [ebp - 0x2010]
imul eax, ecx, 0x14
xor ecx, ecx
add eax, esi
mov dword [eax], 0x14
mov dword [eax + 4], 1
mov dword [eax + 8], 0x181ac070
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x2008]
inc dword [ebp - 0x2008]
push eax
push 8
push dword [ebp - 0x2018]
mov dword [ebp - 0x2004], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1803fe85
call fcn.1801b8b5
mov dword [ebp - 0x201c], eax
test esi, esi
je 0x1803fe90
push esi
call fcn.1811ceb3
pop ecx
push dword [ebp - 0x2018]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0x200c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x1803febd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1811c608
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1803fed0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.18015ab1
test al, al
je 0x1803ff74
call fcn.180409cc
test al, al
jne 0x1803ff74
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1803ff17
call fcn.1801b8b5
mov ebx, eax
jmp 0x1803ff70
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.18081a9c
push 2
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1803ff4c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1803ff57
call fcn.1801b8b5
mov ebx, eax
test esi, esi
je 0x1803ff5e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1803ff76
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret
Function at 0x1804019b
Capabilities:
Modify service

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x2038
call fcn.181580c0
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.18015ab1
test al, al
je 0x1804038c
push 0x2000
xor esi, esi
lea eax, [ebp - 0x2008]
push esi
push eax
mov dword [ebp - 0x201c], esi
call fcn.181312b0
add esp, 0xc
mov dword [ebp - 0x200c], esi
lea eax, [ebp - 0x200c]
lea ecx, [ebp - 0x2008]
push eax
call fcn.18040d59
mov edi, dword [ebp - 0x200c]
pop ecx
test al, al
je 0x18040222
mov ecx, edi
call fcn.1801cec7
test edi, edi
jns 0x1804038c
mov ecx, edi
call fcn.1801cec7
test edi, edi
jns 0x18040234
mov eax, edi
jmp 0x1804038e
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x2020], edi
test edi, edi
jne 0x18040259
call fcn.1801b8b5
mov esi, eax
jmp 0x18040388
lea ecx, [ebp - 0x200c]
mov dword [ebp - 0x200c], esi
call fcn.180819df
push 2
push dword [ebp - 0x200c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2018], eax
test eax, eax
jne 0x1804028f
call fcn.1801b8b5
mov esi, eax
jmp 0x18040373
mov edx, dword [ebp - 0x2008]
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x2010], esi
lea edx, [edx + 1]
call fcn.18042446
mov ecx, dword [ebp - 0x2008]
mov dword [ebp - 0x2014], esi
test ecx, ecx
je 0x18040302
mov eax, dword [ebp - 0x2010]
mov edx, esi
mov esi, dword [ebp - 0x2004]
lea edi, [ebp - 0x2038]
add esi, edx
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
push 5
lea edi, [edx + eax]
add edx, 0x14
pop ecx
lea esi, [ebp - 0x2038]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2014]
mov ecx, dword [ebp - 0x2008]
inc esi
mov dword [ebp - 0x2014], esi
cmp esi, ecx
jb 0x180402c1
mov edi, dword [ebp - 0x2020]
mov esi, dword [ebp - 0x2010]
imul eax, ecx, 0x14
xor ecx, ecx
add eax, esi
mov dword [eax], 0x14
mov dword [eax + 4], 1
mov dword [eax + 8], 0x181ac070
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x2008]
inc dword [ebp - 0x2008]
push eax
push 8
push dword [ebp - 0x2018]
mov dword [ebp - 0x2004], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18040356
call fcn.1801b8b5
mov dword [ebp - 0x201c], eax
test esi, esi
je 0x18040361
push esi
call fcn.1811ceb3
pop ecx
push dword [ebp - 0x2018]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0x200c]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x1804038e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1811c608
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x180403a1
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.18015ab1
test al, al
je 0x18040445
call fcn.18040e35
test al, al
jne 0x18040445
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x180403e8
call fcn.1801b8b5
mov ebx, eax
jmp 0x18040441
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.180819df
push 2
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1804041d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x18040428
call fcn.1801b8b5
mov ebx, eax
test esi, esi
je 0x1804042f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x18040447
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret

Function at 0x18040aa4
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0xc], eax
call fcn.18041764
test al, al
je 0x18040acc
xor eax, eax
jmp 0x18040b7f
call fcn.1804001b
mov esi, eax
mov ecx, esi
call fcn.1801cec7
test esi, esi
jns 0x18040ae8
lfence
mov eax, esi
jmp 0x18040b7f
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18040b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18040b7d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x18040b7d
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.18081a9c
push 2
push dword [ebp - 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x18040b4b
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
push 1
push 3
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18040b64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x18040b60
movzx ebx, bx
or ebx, 0x80070000
test esi, esi
je 0x18040b6b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811c608
leave
ret