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

Disassembly:
push 0xffffffffffffffff
push 0x100369ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x100383ac]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x1001889b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1001889d
mov esi, edi
test esi, esi
je 0x10018967
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001895c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x100188df
cmp eax, 2
je 0x100188df
cmp eax, 6
je 0x100188df
cmp eax, 7
jne 0x1001895c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1001ae2b
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x10018942
lea ecx, [esp + 0x14]
call fcn.10009020
cmp esi, dword [esp + 0x14]
je 0x10018937
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1001ade3
add esp, 4
jmp 0x10018979
call fcn.1001ade3
add esp, 4
lea ecx, [esp + 0x10]
push 0x10042c70
call fcn.10009020
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x10018967
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10018979
push eax
lea ecx, [esp + 0x14]
call fcn.10009020
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10008390
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10008dc0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x10018f10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [ecx]
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.10012e50
test esi, esi
je 0x10018ffc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10018ffc
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x10018f6c
cmp eax, 2
je 0x10018f6c
cmp eax, 6
je 0x10018f6c
cmp eax, 7
jne 0x10018ffc
mov eax, dword [esp + 0x1c]
add eax, 2
push eax
call fcn.1001ae2b
mov ecx, dword [esp + 0x20]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10018ff3
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x10018fdd
mov edx, dword [ebp + 4]
push esi
push edx
mov ecx, ebp
call fcn.100132f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x10018fb9
push ebx
call fcn.1001ade3
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.1001ade3
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x10019670
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
test edx, edx
je 0x100196a6
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
jne 0x100196a6
mov eax, 1
ret 8
xor eax, eax
ret 8

Function at 0x100196e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10036ac8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x10019736
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x10019739
mov esi, dword [ebp + 8]
test esi, esi
je 0x10019823
call fcn.1002a560
test eax, eax
je 0x100197be
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10019787
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.1001c880
mov edi, esp
test edi, edi
je 0x10019787
mov eax, dword [ebp + 0x10]
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x10019789
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.1001adc6
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10019817
cmp esi, dword [ebp + 8]
je 0x100197b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x10019825
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.10008660
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10019808
cmp esi, dword [ebp + 8]
je 0x100197f2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10008dc0
mov eax, 1
jmp 0x10019825
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10008dc0
cmp esi, dword [ebp + 8]
je 0x10019823
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019930
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x1001997c
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x20]
neg esi
sbb esi, esi
not esi
and esi, eax
mov dword [esp + 0x10], esi
jmp 0x10019986
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x10019ac8
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x20], 1
mov eax, dword [ebp + 4]
test eax, eax
jle 0x100199d2
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.10019ae0
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx - 8]
lea edx, [ecx + eax + 1]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.10008dc0
mov eax, dword [ebp + 4]
inc edi
cmp edi, eax
jl 0x100199a3
mov eax, dword [esp + 0x20]
push eax
call fcn.1001ae2b
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x10019ac8
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x28], 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 4]
test eax, eax
jle 0x10019a73
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.10019ae0
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.10008dc0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
inc eax
mov dword [esp + 0x28], eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jl 0x10019a12
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push 7
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10019ab0
cmp esi, dword [esp + 0x1c]
je 0x10019a9a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.1001ade3
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
call fcn.1001ade3
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, eax
je 0x10019ac8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x1001a580
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1001a6f8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001a6d7
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x1001a5d6
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.1001ae2b
mov esi, eax
add esp, 4
test esi, esi
je 0x1001a6f8
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1001a6ef
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001a6ef
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1001a6ef
push ebp
push edi
call fcn.1001a580
add esp, 8
test eax, eax
je 0x1001a6e4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10042c6c]
test eax, eax
je 0x1001a681
test ebp, ebp
je 0x1001a681
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x1001a6ef
jmp 0x1001a68d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x1001a6ef
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x1001a6ce
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1001a6ef
mov eax, dword [esp + 0x14]
jmp 0x1001a62a
push esi
call fcn.1001ade3
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x1001a6ef
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1001ade3
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x1001a710
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x1001a779
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1001a739
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1001a779
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.1001a580
add esp, 8
test eax, eax
je 0x1001a779
mov eax, dword [0x10042c6c]
test eax, eax
je 0x1001a766
test edi, edi
je 0x1001a766
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x1001a8f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x1001a926
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1001a928
mov esi, dword [ebx]
test esi, esi
je 0x1001a9b3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x1001a958.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x1001a958.2
jmp dword [eax*4 + 0x1001a9bc]
mov edi, 1
jmp case.0x1001a958.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x1001a958.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x1001a958.0
cmp eax, 2
je case.0x1001a958.0
cmp eax, 6
je case.0x1001a958.0
cmp eax, 7
je case.0x1001a958.0
xor edi, edi
jmp case.0x1001a958.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x1001a9ab
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x10029f60
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x10043164]
test eax, eax
jne 0x1002a04c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x10043000
mov dword [0x10043164], 1
mov dword [0x10043000], 0x94
call esi
mov edx, dword [0x10043010]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x100409e0], eax
je 0x1002a02e
push edi
push 0x10043098
mov dword [0x10043098], 0x9c
call esi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x1004315c], eax
call edi
mov dword [0x10043160], eax
mov eax, dword [0x1004315c]
pop edi
test eax, eax
push 0x10043138
je 0x10029ffc
call eax
jmp 0x1002a002
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1004309c]
cmp eax, 6
jae 0x1002a01a
cmp eax, 5
jne 0x1002a02e
cmp dword [0x100430a0], 2
jb 0x1002a02e
cmp word [0x10043138], 9
jne 0x1002a02e
mov dword [0x10042ff4], 1
push 0x10043008
push 0x10043004
call fcn.1002a380
add esp, 8
call fcn.1002a060
mov eax, 1
pop esi
ret
mov eax, 1
ret
Function at 0x1002b060
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039260
push 0x10021afc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x10043168]
xor ebx, ebx
cmp eax, ebx
jne 0x1002b1c0
mov byte [ebp - 0x11c], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x11b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002b1bb
mov byte [ebp - 0x224], bl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user32.dll
lea ecx, [ebp - 0x11c]
push ecx
push 0x100413b0
lea edx, [ebp - 0x224]
push edx
call fcn.1001b74f
add esp, 0x10
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
push eax
call fcn.1001ae2b
add esp, 4
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, ebx
je 0x1002b1bb
push esi
mov edx, dword [ebp - 0x120]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1002b1b2
mov dword [ebp - 0x230], ebx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x230]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1002b1b2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x234], eax
mov ecx, dword [eax]
mov dword [0x10043168], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x1002b1b2
push esi
call fcn.1001ade3
add esp, 4
mov eax, dword [0x10043168]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002b830
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10036d73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x100383ac]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
mov ecx, dword [0x100383ac]
mov dword [esp + 0x14], 0
mov dword [esi + 0x1c], ecx
mov edx, dword [0x100383ac]
mov dword [esi + 0x20], edx
mov eax, dword [0x100383ac]
mov dword [esi + 0x24], eax
mov ecx, dword [0x100383ac]
mov dword [esi + 0x28], ecx
mov edx, dword [0x100383ac]
mov dword [esi + 0x2c], edx
mov eax, dword [0x100383ac]
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 6
call fcn.10012de0
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 7
call fcn.10012de0
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], 8
push ecx
mov ecx, edi
mov dword [esi], 0x1003926c
mov dword [esi + 4], 0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 2
mov dword [esi + 0x14], 1
call fcn.10009020
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1002bac0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10036ec3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x100383ac]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
mov ecx, dword [0x100383ac]
mov dword [esp + 0x1c], 0
mov dword [esi + 0x1c], ecx
mov edx, dword [0x100383ac]
mov dword [esi + 0x20], edx
mov eax, dword [0x100383ac]
lea ebp, [esi + 0x24]
mov dword [ebp], eax
mov ecx, dword [0x100383ac]
lea ebx, [esi + 0x28]
mov dword [ebx], ecx
mov edx, dword [0x100383ac]
mov dword [esi + 0x2c], edx
mov eax, dword [0x100383ac]
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 6
call fcn.10012de0
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 7
call fcn.10012de0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
push eax
mov ecx, edi
mov byte [esp + 0x20], 8
mov dword [esi], 0x1003926c
mov dword [esi + 4], 0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
call fcn.10009020
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1002bb8f
push eax
mov ecx, ebx
call fcn.10009020
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1002bb9f
push eax
mov ecx, ebp
call fcn.10009020
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x1002d380
Capabilities:
Delete service

Disassembly:
sub esp, 0x20
push edi
call fcn.1002a4e0
test eax, eax
je 0x1002d39e
mov dword [0x10043174], 0x32
xor eax, eax
pop edi
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
jne 0x1002d3b9
mov dword [0x10043174], 0x57
xor eax, eax
pop edi
add esp, 0x20
ret
push ebx
push ebp
push esi
push 0xf003f
push edi
push edi
mov dword [0x10043174], edi
mov dword [esp + 0x1c], edi
xor ebx, ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, edi
je 0x1002d3ee
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x1002d3f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp esi, edi
je 0x1002d41b
mov eax, dword [esp + 0x34]
push 0xf01ff
push eax
push esi
call ebp
mov edi, eax
test edi, edi
jne 0x1002d46e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x1002d488
jne 0x1002d46e
test esi, esi
jne 0x1002d453
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x1002d447
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1002d44f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x1002d46e
mov ecx, dword [esp + 0x34]
push 0xf01ff
push ecx
push esi
call ebp
mov edi, eax
test edi, edi
jne 0x1002d46e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, eax
test ebp, ebp
jne 0x1002d4ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10043174], eax
jmp 0x1002d48c
mov ebp, dword [esp + 0x10]
mov eax, dword [0x10043174]
test eax, eax
jne 0x1002d4ac
test ebx, ebx
je 0x1002d4a1
mov dword [0x10043174], ebx
jmp 0x1002d4ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10043174], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x1002d4b9
push edi
call ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002d4c8
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
test esi, esi
je 0x1002d4cf
push esi
call ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
Function at 0x1002d4e0
Capabilities:
Start service

Disassembly:
sub esp, 0x20
push edi
call fcn.1002a4e0
test eax, eax
je 0x1002d4fe
mov dword [0x10043174], 0x32
xor eax, eax
pop edi
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
jne 0x1002d519
mov dword [0x10043174], 0x57
xor eax, eax
pop edi
add esp, 0x20
ret
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push esi
push 2
push edi
push edi
mov dword [0x10043174], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call ebp
mov esi, eax
cmp esi, edi
jne 0x1002d548
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
je 0x1002d56a
mov eax, dword [esp + 0x34]
push 0x10
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1002d5a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
test edi, edi
je 0x1002d5df
jne 0x1002d5a8
test esi, esi
jne 0x1002d58e
push 2
push esi
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x1002d58e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [esp + 0x14], eax
je 0x1002d5a8
mov ecx, dword [esp + 0x34]
push 0x10
push ecx
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1002d5a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test ebp, ebp
jne 0x1002d5ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
mov dword [0x10043174], eax
jne 0x1002d5e8
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
jmp 0x1002d5ff
mov eax, dword [0x10043174]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x1002d5ff
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1002d5fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10043174], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x1002d60c
push edi
call ebx
test esi, esi
je 0x1002d613
push esi
call ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret