joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push 1
pop eax
lea ecx, [ebp - 8]
push ecx
xor edi, edi
push eax
push edi
push 0x1009498
push 0x80000002
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x105
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
cmp eax, edi
jne 0x1010e30
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push edi
push eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegQueryInfoKeyW]
cmp eax, edi
jne 0x1010e1c
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push 0x40
call esi
mov ebx, eax
cmp ebx, edi
je 0x1010e27
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push 0x40
call esi
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x1010e37
cmp dword [ebp - 0x18], edi
mov esi, dword [sym.imp.ADVAPI32.DLL_RegEnumValueW]
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.KERNEL32.DLL_LocalFree]
jbe 0x10036fd
jmp 0x10036ac
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jae 0x10036fd
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1010e61
cmp dword [ebp - 0x14], 0x800
jae 0x1010e49
mov eax, dword [ebp - 0x24]
dec eax
jne 0x10036a1
push 1
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0100378d
jmp 0x10036a1
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jbe 0x1003754
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push ebx
push eax
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1010e61
cmp dword [ebp - 0x14], 0x800
jae 0x1010e55
mov eax, dword [ebp - 0x24]
dec eax
dec eax
je 0x100376f
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jb 0x1003707
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push dword [ebp - 0x10]
call edi
push ebx
call edi
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
call fcn.010038a6
push 1
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
push dword [ebp + 8]
call fcn.0100378d
push dword [ebp - 0x34]
call edi
jmp 0x1003749
cmp eax, 0xea
je 0x100365c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
jmp 0x1003768
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1010e30
and word [ebx + 0x7fe], ax
jmp 0x10036e7
and word [ebx + 0x7fe], ax
jmp 0x1003742
and dword [ebp - 0x20], 0
jmp 0x1003754
Function at 0x10038a6
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
add esi, 0x3c
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x10038eb
push edi
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x101770d
cmp edi, esi
jg 0x10176f3
mov eax, ebx
pop edi
pop esi
pop ebx
ret 4
lea eax, [edi + edi]
push 0x42
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
test eax, eax
mov esi, edi
je 0x101770d
mov ebx, eax
jmp 0x10038ca
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
jmp 0x10038e8

Function at 0x10038f0
Capabilities:
Get hostname
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.01003a3d
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
je 0x100392c
lea eax, [ebp - 0x30]
push 1
push eax
push 0x1008d3c
push dword [ebp + 8]
call fcn.0100378d
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x10095ac
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1003a33
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
push eax
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100958c
mov dword [ebp - 4], 0x802
push dword [ebp - 8]
call ebx
test eax, eax
mov esi, 0x401
jne 0x10039c2
lea eax, [ebp - 0x834]
push esi
push eax
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x10039c2
cmp eax, esi
jae 0x10039c2
lea eax, [ebp - 0x834]
push 1
mov edi, 0x1009570
push eax
push edi
push dword [ebp + 8]
call fcn.0100378d
lea eax, [ebp - 0x834]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x802
push eax
lea eax, [ebp - 0x1038]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1009550
push dword [ebp - 8]
call ebx
test eax, eax
jne 0x1003a2a
lea eax, [ebp - 0x834]
push esi
push eax
lea eax, [ebp - 0x1038]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
je 0x1003a2a
cmp eax, esi
jae 0x1003a2a
lea eax, [ebp - 0x834]
push 1
mov esi, 0x1009528
push eax
push esi
push dword [ebp + 8]
call fcn.0100378d
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1003a6c
Capabilities:
Listen for remote procedure calls

Disassembly:
push esi
mov esi, 0x1021290
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.01003acc
mov edi, eax
test edi, edi
jne 0x1003ab9
inc dword [0x10212a8]
cmp dword [0x10212a8], 1
jne 0x1003ab9
push 1
push 0x3039
push 1
call dword [sym.imp.RPCRT4.DLL_RpcServerListen]
mov edi, eax
cmp edi, 0x6b1
je 0x101d100
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push edi
call dword [sym.imp.RPCRT4.DLL_I_RpcMapWin32Status]
pop edi
pop esi
ret 8
xor edi, edi
jmp 0x1003ab9
Function at 0x1003bfd
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
push 0x3c
pop esi
push 0x78
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1003c37
push dword [esp + 0x18]
push esi
push edi
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea ecx, [esi - 1]
cmp eax, ecx
je 0x10176cb
mov eax, edi
pop edi
pop esi
ret 0x10
add esi, esi
push 0x42
lea eax, [esi + esi]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
test eax, eax
je 0x10176e5
mov edi, eax
jmp 0x1003c12
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor edi, edi
jmp 0x1003c35

Function at 0x1003c3c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp + 0x10]
push ebx
or ah, 4
push dword [ebp + 0x18]
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x48], edi
push eax
push ebx
push ebx
push ebx
push edi
push ebx
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x1003d0c
mov eax, dword [ebp + 0x20]
cmp eax, ebx
jne 0x10147ff
cmp dword [ebp + 0x1c], ebx
je 0x10147f1
test byte [ebp + 0x1c], 1
jne 0x10147c2
test byte [ebp + 0x1c], 2
je 0x1003cf8
push 0x10
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x1003cf8
push edi
call fcn.01002c06
push 8
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
push esi
push 0x1014a35
mov dword [esi + 4], eax
push dword [ebp - 0x10]
lea eax, [esi + 8]
push eax
call dword [sym.imp.NTDLL.DLL_RtlRegisterWait]
cmp eax, ebx
jl 0x10147e5
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x1014809
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x20
mov eax, dword [0x1022f14]
cmp eax, 0x40
jae 0x1003cb6
mov ecx, dword [ebp - 0x10]
mov dword [eax*4 + 0x1022f20], ecx
inc eax
mov dword [0x1022f14], eax
jmp 0x1003cb6
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1003cf8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1003cf8
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x1003cf8
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x1003d0c

Function at 0x1003e11
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [0x10212e0], eax
jne 0x1003e3a
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push 0x10043b1
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
ret 4
Function at 0x1003ec5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1008da4
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1003f1a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1009644
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [ebp - 8], esi
jne 0x10141ba
pop esi
leave
ret 4
push 0x10
push 0x5f4
push 0x636
push esi
push dword [ebp + 8]
call fcn.01011b97
push dword [ebp + 8]
call fcn.0101135e
jmp 0x1003f23

Function at 0x1003f28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1008dc0
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
cmp eax, esi
jne 0x1016d65
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1009670
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
cmp eax, esi
je 0x1016d6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, esi
pop esi
leave
ret
xor eax, eax
jmp 0x1003f85
cmp dword [ebp - 0xc], esi
je 0x1003f7a
push 1
pop esi
jmp 0x1003f7a
Function at 0x1004096
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [ebp - 4]
xor eax, eax
push ecx
push eax
push eax
push 0x1004583
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
leave
ret

Function at 0x10040b4
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x2001f
push 0
push 0x1008dc0
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1004113
lea eax, [ebp - 0xc]
mov esi, 0x1009684
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
je 0x10141dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [ebp - 8], 0
jne 0x10141eb
pop esi
leave
ret
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegDeleteValueW]
jmp 0x100410a
push 0x100be50
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100411d
push 0x100be38
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x1014212
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x100411d
Function at 0x100467a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 1
pop eax
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x30], edi
jne 0x10047e0
push esi
lea eax, [ebp - 4]
push ebx
push eax
push 0x20019
push edi
push 0x1008dc0
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
push 4
test eax, eax
pop ebx
jne 0x10046fe
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10099c0
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x1009988
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1008e2c
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x1004759
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10099c0
push dword [ebp - 4]
call esi
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x1009988
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
cmp dword [0x102103c], edi
mov ebx, 0xe10
mov esi, 0x258
je 0x100479b
xor eax, eax
cmp dword [ebp - 0xc], edi
push ebx
push 0x1009950
sete al
push edi
push eax
push 2
push 0x1005604
call fcn.010047e5
push esi
push 0x1009918
push edi
push edi
push 3
push 0x10168f0
call fcn.010047e5
xor eax, eax
cmp dword [ebp - 0x10], edi
push ebx
push 0x10098e8
sete al
push edi
push eax
push edi
push 0x1008048
call fcn.010047e5
push esi
push 0x10098b4
push edi
push edi
push 1
push 0x1016a83
call fcn.010047e5
push esi
push 0x1009874
push edi
push edi
push 8
push 0x10087d8
call fcn.010047e5
pop ebx
pop esi
pop edi
leave
ret 4
Function at 0x1004b78
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
lea ecx, [eax + 0x38c]
mov dword [eax + 0x60], 2
push ecx
mov ecx, dword [eax + 8]
push 0x1021690
push 0
push eax
push dword [ecx + 8]
call dword [eax + 0x398]
test eax, eax
je 0x10178d3
push 1
pop eax
ret 4
push 0x406
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x1004c90
Capabilities:
Enumerate services
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
jne 0x101adb5
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
jne 0x101adcf
push 4
push edi
push edi
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
je 0x1004cea
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.DLL_EnumServicesStatusW]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 1
push 0x30
push ebx
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x101adf0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, edi
je 0x101adc7
push eax
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov dword [esi], edi
push 1
pop eax
jmp 0x1004cec
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.DLL_QueryServiceStatus]
test eax, eax
je 0x1004cea
xor eax, eax
cmp dword [ebp - 0x20], 4
sete al
jmp 0x1004cec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
jne 0x101adc7
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
test edi, edi
je 0x101ae85
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push 1
push 0x30
push ebx
call esi
test eax, eax
je 0x101ae7e
cmp dword [ebp + 0x10], 0
jbe 0x101ae58
dec dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [eax + eax*8]
push dword [edi + eax*4]
call dword [sym.imp.MSVCRT.DLL__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x101ae6d
mov eax, dword [ebp + 0x10]
dec dword [ebp + 0x10]
test eax, eax
jne 0x101ae36
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push ebx
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
xor edi, edi
jmp 0x1004cea
push 4
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push ebx
call dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
jmp 0x101adc7
Function at 0x10050eb
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0x200
xor ebp, ebp
call dword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x18], ebx
je 0x10051e3
push 5
push dword [esp + 0x40]
push ebx
call dword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov ebp, eax
cmp ebp, esi
je 0x10051e3
push dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_LocalAlloc]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x10051ee
lea eax, [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.DLL_QueryServiceConfigW]
push eax
push dword [esp + 0x14]
push esi
push ebp
call ebx
test eax, eax
je 0x101a042
cmp dword [esi + 4], 2
jne 0x10051df
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [esp + 0x3c], eax
mov ebx, 0x1f4
jmp 0x10051a8
cmp eax, 4
jne 0x100518c
mov dword [esp + 0x14], ecx
jmp 0x10051a1
cmp eax, 5
je 0x1005186
cmp eax, 6
je 0x1005186
cmp eax, 7
je 0x1005186
cmp eax, 2
push ebx
call edi
cmp dword [esp + 0x14], 0
jne 0x10051df
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
ja 0x10051df
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.DLL_QueryServiceStatus]
test eax, eax
je 0x10051df
mov eax, dword [esp + 0x20]
push 1
pop ecx
cmp eax, ecx
jne 0x1005181
cmp dword [esp + 0x28], 0x435
jne 0x10051df
jmp 0x100519e
mov ebx, dword [esp + 0x18]
test esi, esi
je 0x10051ee
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov esi, dword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
test ebp, ebp
je 0x10051fb
push ebp
call esi
test ebx, ebx
je 0x1005202
push ebx
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x10051df
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [esp + 0x10]
push 0x40
call edi
mov esi, eax
test esi, esi
je 0x10051df
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push esi
push ebp
call ebx
test eax, eax
je 0x10051df
jmp 0x1005164

Function at 0x100523f
Capabilities:
Check if file exists

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
mov ebp, 0x1009be8
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_OpenEventW]
push ebp
mov ebx, 0x100000
push 0
push ebx
call edi
mov esi, eax
test esi, esi
je 0x101a084
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, eax
push esi
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x101a0ad
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x14
jge 0x101a0ad
push ebp
push esi
push ebx
jmp 0x100525c
test esi, esi
jne 0x1005268
xor eax, eax
jmp 0x1005283
Function at 0x100528b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
lea eax, [ebp - 0xc]
push edi
xor edi, edi
push eax
push 1
push edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.01005309
cmp eax, edi
jne 0x1005301
mov eax, dword [ebp - 0xc]
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [eax]
push 4
pop esi
cmp eax, esi
je 0x101a0bc
cmp eax, 5
je 0x101a0bc
mov eax, dword [ebp - 0xc]
cmp dword [eax], 5
je 0x101a0e9
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
cmp eax, esi
je 0x101a1da
cmp eax, 5
je 0x101a1da
push dword [ebp - 0xc]
call fcn.0100532f
pop ebx
pop esi
mov eax, dword [ebp - 0x10]
pop edi
leave
ret 4
push 0x100c84c
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
mov edi, eax
test edi, edi
je 0x10052ce
push dword [ebp + 8]
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x10052ce
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0x20019
push edi
push 0x100c7e0
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
cmp eax, edi
jne 0x10052e1
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
mov edi, 0x100c7c8
mov dword [ebp - 0x1c], esi
push edi
mov dword [ebp - 0x20], esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
call esi
xor ecx, ecx
cmp eax, ecx
jne 0x101a1cc
cmp dword [ebp - 4], ecx
jne 0x101a1bb
push 0x100c7a4
push ecx
push 1
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x101a1bb
push 1
push eax
push 4
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegNotifyChangeKeyValue]
test eax, eax
jne 0x101a1b2
mov eax, dword [ebp + 8]
push 3
xor edx, edx
pop ecx
div ecx
mov dword [ebp + 8], eax
push dword [ebp + 8]
push dword [ebp - 0x18]
call ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0
jne 0x101a1ab
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jb 0x101a17a
cmp dword [ebp - 4], 0
je 0x101a1b2
mov dword [ebp - 0x10], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
push 4
pop esi
jmp 0x10052e1
cmp eax, 2
jne 0x101a1bb
mov dword [ebp - 0x10], 1
jmp 0x101a1bb
push dword [ecx + 0xc]
lea eax, [ebp - 0x670]
push 0x100c784
push eax
call dword [sym.imp.USER32.DLL_wsprintfW]
add esp, 0xc
xor esi, esi
push 0xb4
push 0x100c758
push 0x1008b34
call dword [sym.imp.KERNEL32.DLL_GetProfileIntW]
mov edi, eax
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x101a23a
inc esi
cmp esi, edi
ja 0x10052f7
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x101a20b
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x10052f7