joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18025d4c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
push edi
test cl, cl
je 0x18025e53
call fcn.18013e0c
test al, al
je 0x18025e53
call fcn.18014d11
test al, al
je 0x18025e53
lea ecx, [ebp - 1]
mov byte [ebp - 1], 0
call fcn.1800c8e7
test eax, eax
sets al
dec al
and byte [ebp - 1], al
je 0x18025da2
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.18019198
pop ecx
jmp 0x18025e66
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x18025e3d
cmp dword [ebp - 0xc], 0
jne 0x18025dc7
xor edi, edi
inc edi
jmp 0x18025e44
push dword [esi]
lea ecx, [ebp - 0x10]
call fcn.18006e68
lea ecx, [ebp - 8]
call fcn.18009d8f
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
jle 0x18025e16
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x18025df4
push 0x20
lea ecx, [ebp - 8]
call fcn.18009e05
mov ebx, dword [esi + edi*4]
test ebx, ebx
jne 0x18025dff
xor eax, eax
jmp 0x18025e06
push ebx
call fcn.18179019
pop ecx
push eax
push ebx
lea ecx, [ebp - 8]
call fcn.18009e32
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x18025de1
push ecx
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.18014f3b
pop ecx
mov ecx, dword [ebp - 8]
mov edi, eax
add ecx, 0xfffffff0
call fcn.1800694d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1800694d
jmp 0x18025e48
call fcn.18018dce
mov edi, eax
test esi, esi
je 0x18025e4f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x18025e66
mov edx, dword [ebp + 0xc]
mov ecx, esi
push 0
call fcn.18018f4e
pop ecx
test eax, eax
js 0x18025e66
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18026a5e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1822b00c]
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.181757a0
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 0x18026ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18026b19
movzx eax, ax
or eax, 0x80070000
jmp 0x18026b19
lea ecx, [esp + 0x10]
call fcn.1800b194
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.1800bac3
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 0x18026b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x18026b0e
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.1800b1b5
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181605f4
mov esp, ebp
pop ebp
ret
Function at 0x18026b5e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10820
call fcn.18199bf0
mov eax, dword [0x1822b00c]
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.1800f1f5
test al, al
jne 0x18026b9a
mov eax, 0x80070002
jmp 0x18026c93
mov ecx, esi
call fcn.18019b6b
push 0x10000
lea eax, [ebp - 0x1080c]
push 0
push eax
call fcn.181757a0
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 0x18026c91
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.181757a0
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.18006e68
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.18027e5a
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.18179019
pop ecx
push eax
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
call fcn.18006f63
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.1800694d
cmp esi, dword [ebp - 0x10818]
mov esi, dword [ebp - 0x1081c]
jb 0x18026be6
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret

Function at 0x18026ca2
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 0x18026cc0
xor eax, eax
inc eax
jmp 0x18026d9a
mov edx, 0x181f9ea0
lea ecx, [ebp - 8]
call fcn.1800d9c8
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], edi
jne 0x18026ce1
call fcn.18018dce
mov edi, eax
jmp 0x18026d8d
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 0x18026d0c
call fcn.18018dce
mov edi, eax
jmp 0x18026d8c
lea ecx, [ebp - 4]
call fcn.18009d8f
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.18010dd8
push dword [eax]
lea eax, [ebp - 4]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.18014893
mov ecx, dword [ebp - 0xc]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.1800694d
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 0x18026d6e
call fcn.18018dce
mov edi, eax
jmp 0x18026d7a
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
call fcn.18009d41
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x18027603
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], 0x181f555c
xor edi, edi
lea edx, [ebp - 0xc]
mov bl, cl
mov dword [ebp - 8], edi
call fcn.180272cf
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
mov edx, dword [eax + 4]
cmp edx, 0x180139db
jne 0x1802763c
push 0xffffffffffffffff
call dword [eax + 0xc]
jmp 0x1802763e
call edx
mov dword [ebp - 0x18], 0x181f4a50
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x200
call fcn.1801c0e3
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
test bl, bl
jne 0x18027662
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push 0xf003f
push eax
lea ecx, [ebp - 0x18]
call fcn.18017992
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 0x18027696
push 0x181f9cf8
call fcn.180177b4
jmp 0x180276eb
push esi
push 0x181f9cf8
call fcn.1801807a
test bh, bh
je 0x180276eb
lea ecx, [ebp - 4]
call fcn.18009d8f
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.18017e9d
mov esi, str.__legacy
push esi
call fcn.18179019
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.18009e32
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x18]
push 1
push esi
push str.old_uid
call fcn.18018014
lea ecx, [esi - 0x10]
call fcn.1800694d
mov cl, bl
call fcn.180277a3
mov esi, eax
mov dword [ebp - 0x18], 0x181f4a50
cmp dword [ebp - 0x14], edi
je 0x18027713
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, 0x18013a09
jne 0x1802772b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x18027730
lea ecx, [ebp - 0xc]
call eax
mov dword [ebp - 0xc], 0x181f555c
cmp dword [ebp - 8], edi
je 0x18027745
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1802a120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1822b00c]
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 0x1802a18b
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1802a18b
call fcn.18007319
mov esi, eax
jmp 0x1802a263
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1802a1ae
call fcn.18007319
jmp 0x1802a256
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1802a1a4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1802a1d7
mov esi, 0x8007000e
jmp 0x1802a258
push 2
pop ecx
mul ecx
test edx, edx
ja 0x1802a28f
jb 0x1802a1ef
cmp eax, 0xffffffff
ja 0x1802a28f
cmp eax, 0x400
jbe 0x1802a204
push eax
lea ecx, [ebp - 0x410]
call fcn.1802fbfe
jmp 0x1802a210
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x1802a1cd
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 0x1802a1a4
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.1802ac95
mov esi, eax
test edi, edi
je 0x1802a263
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x1802a27c
lea ecx, [ebp - 0x410]
call fcn.1802ef44
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret 0x10
push 0x80070216
call fcn.18006655
int3
Function at 0x1802be06
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 0x1802be66
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 0x1802be63
jmp 0x1802be5d
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 0x1802be54
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x1802be63
cmp dword [esi + 4], 0
jg 0x1802be33
xchg dword [esi], edi
pop edi
pop esi
leave
ret

Function at 0x1802c5cd
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 0x1802c5f6
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.1801c0e3
mov ecx, dword [edi + 0xc]
inc eax
push esi
push ebx
push dword [ebp - 8]
mov dl, byte [eax]
call fcn.1802db1d
add esp, 0xc
mov byte [edi + 0x8c], al
mov ecx, 0x1822c4b8
push eax
call fcn.18020bce
cmp byte [edi + 0x8c], 0
je 0x1802c643
call fcn.18014d11
test al, al
je 0x1802c643
mov cl, 1
xor ebx, ebx
jmp 0x1802c647
xor ebx, ebx
mov cl, bl
call fcn.180596f5
mov edx, dword [edi]
lea ecx, [ebp - 8]
call fcn.1801316e
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], ebx
je 0x1802c71f
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1802c71f
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x1802c6ce
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.18008a16
mov edx, esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
call fcn.18006b93
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.18006b74
mov ecx, dword [ebp - 4]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov ecx, edi
call fcn.1802ce87
mov cl, byte [edi + 0x8c]
call fcn.1802da13
push dword [edi + 0xc]
call fcn.1802cdb0
test al, al
je 0x1802c702
mov cl, byte [edi + 0x8c]
call fcn.180261f1
test al, al
je 0x1802c702
mov edi, 0xa0430607
jmp 0x1802c726
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [edi + 0xc]
call fcn.1802ce02
mov edi, eax
mov ecx, edi
call fcn.18019f92
test edi, edi
js 0x1802c726
jmp 0x1802c728
call fcn.18018dce
mov edi, eax
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.1800694d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1802d6fb
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.1801c0e3
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdate_
jne 0x1802d71e
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdate_
push eax
lea ecx, [ebp - 8]
call fcn.18006e68
mov edi, dword [ebp - 8]
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
push 0x20019
push edi
mov dword [ebp - 0x18], 0x181f4a50
mov dword [ebp - 0x10], 0x200
call fcn.18017992
mov ebx, eax
mov ecx, ebx
call fcn.18019f92
test ebx, ebx
js 0x1802d876
lea ecx, [ebp - 0x18]
call fcn.1801875b
test eax, eax
je 0x1802d871
push str.Clients
lea ecx, [ebp - 0x18]
call fcn.180179d9
test al, al
je 0x1802d871
push str.ClientState
lea ecx, [ebp - 0x18]
call fcn.180179d9
test al, al
je 0x1802d871
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
push eax
push eax
push eax
push eax
push 0x181fa824
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x1802d871
push eax
push eax
push eax
push eax
push str.path
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x1802d871
lea ecx, [ebp - 8]
call fcn.18009d8f
lea eax, [ebp - 8]
push eax
push 0x181fa824
lea ecx, [ebp - 0x18]
call fcn.18017e9d
mov ebx, eax
mov ecx, ebx
call fcn.18019f92
test ebx, ebx
js 0x1802d864
call fcn.1801c0e3
cmp byte [esi + 0x8c], 0
mov eax, str.HKLMSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
jne 0x1802d807
mov eax, str.HKCUSoftwareMicrosoftEdgeUpdateClientsF3C4FE00_EFD5_403B_9569_398A20F1BA4A
push eax
lea ecx, [ebp - 0xc]
call fcn.18006e68
lea ecx, [ebp - 4]
call fcn.18009d8f
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
mov edx, 0x181f90b4
mov ecx, esi
call fcn.180199ee
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.18019f92
test ebx, ebx
js 0x1802d851
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.18009ab0
test al, al
je 0x1802d84f
mov ebx, 0xa043090b
jmp 0x1802d851
xor ebx, ebx
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
lea ecx, [esi - 0x10]
call fcn.1800694d
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
jmp 0x1802d876
mov ebx, 0x80070003
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x181f4a50
je 0x1802d897
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.1800694d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1802e393
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.18199bf0
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.18013e0c
test al, al
je 0x1802e578
push 0x2000
xor esi, esi
lea eax, [ebp - 0x2008]
push esi
push eax
mov dword [ebp - 0x2018], esi
call fcn.181757a0
add esp, 0xc
mov dword [ebp - 0x200c], esi
lea eax, [ebp - 0x200c]
lea ecx, [ebp - 0x2008]
push eax
call fcn.1802f047
mov edi, dword [ebp - 0x200c]
pop ecx
test al, al
je 0x1802e41a
mov ecx, edi
call fcn.18019f92
test edi, edi
jns 0x1802e578
mov ecx, edi
call fcn.18019f92
test edi, edi
jns 0x1802e42c
mov eax, edi
jmp 0x1802e57a
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 0x1802e451
call fcn.18018dce
mov esi, eax
jmp 0x1802e574
lea ecx, [ebp - 0x201c]
call fcn.1806484e
push 2
push dword [ebp - 0x201c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2014], eax
test eax, eax
jne 0x1802e481
call fcn.18018dce
mov esi, eax
jmp 0x1802e55f
mov edx, dword [ebp - 0x2008]
lea ecx, [ebp - 0x2010]
lea edx, [edx + 1]
call fcn.18030864
mov ecx, dword [ebp - 0x2008]
mov dword [ebp - 0x200c], esi
test ecx, ecx
je 0x1802e4ee
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 - 0x200c]
mov ecx, dword [ebp - 0x2008]
inc esi
mov dword [ebp - 0x200c], esi
cmp esi, ecx
jb 0x1802e4ad
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], 0x181fb6b0
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x2008]
inc dword [ebp - 0x2008]
push eax
push 8
push dword [ebp - 0x2014]
mov dword [ebp - 0x2004], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1802e542
call fcn.18018dce
mov dword [ebp - 0x2018], eax
test esi, esi
je 0x1802e54d
push esi
call fcn.18160e83
pop ecx
push dword [ebp - 0x2014]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x2018]
mov ecx, dword [ebp - 0x201c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x1802e57a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.181605f4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1802e58d
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.18013e0c
test al, al
je 0x1802e624
call fcn.1802f107
test al, al
jne 0x1802e624
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1802e5ca
call fcn.18018dce
mov ebx, eax
jmp 0x1802e620
lea ecx, [ebp - 4]
call fcn.1806484e
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1802e5fc
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 0x1802e607
call fcn.18018dce
mov ebx, eax
test esi, esi
je 0x1802e60e
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x1802e626
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1802e8bb
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.18199bf0
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.18013e0c
test al, al
je 0x1802eaa0
push 0x2000
xor esi, esi
lea eax, [ebp - 0x2008]
push esi
push eax
mov dword [ebp - 0x2018], esi
call fcn.181757a0
add esp, 0xc
mov dword [ebp - 0x200c], esi
lea eax, [ebp - 0x200c]
lea ecx, [ebp - 0x2008]
push eax
call fcn.1802f44f
mov edi, dword [ebp - 0x200c]
pop ecx
test al, al
je 0x1802e942
mov ecx, edi
call fcn.18019f92
test edi, edi
jns 0x1802eaa0
mov ecx, edi
call fcn.18019f92
test edi, edi
jns 0x1802e954
mov eax, edi
jmp 0x1802eaa2
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 0x1802e979
call fcn.18018dce
mov esi, eax
jmp 0x1802ea9c
lea ecx, [ebp - 0x201c]
call fcn.180647b8
push 2
push dword [ebp - 0x201c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2014], eax
test eax, eax
jne 0x1802e9a9
call fcn.18018dce
mov esi, eax
jmp 0x1802ea87
mov edx, dword [ebp - 0x2008]
lea ecx, [ebp - 0x2010]
lea edx, [edx + 1]
call fcn.18030864
mov ecx, dword [ebp - 0x2008]
mov dword [ebp - 0x200c], esi
test ecx, ecx
je 0x1802ea16
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 - 0x200c]
mov ecx, dword [ebp - 0x2008]
inc esi
mov dword [ebp - 0x200c], esi
cmp esi, ecx
jb 0x1802e9d5
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], 0x181fb6b0
mov dword [eax + 0xc], ecx
lea eax, [ebp - 0x2008]
inc dword [ebp - 0x2008]
push eax
push 8
push dword [ebp - 0x2014]
mov dword [ebp - 0x2004], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1802ea6a
call fcn.18018dce
mov dword [ebp - 0x2018], eax
test esi, esi
je 0x1802ea75
push esi
call fcn.18160e83
pop ecx
push dword [ebp - 0x2014]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x2018]
mov ecx, dword [ebp - 0x201c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x1802eaa2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.181605f4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret