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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x100313b7
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100313ba
mov esi, dword [ebp + 8]
test esi, esi
je 0x1003156b
call fcn.10064200
test eax, eax
je 0x100314a4
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x100313db
mov dword [ebp + 0x10], eax
jmp 0x1003140e
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.1000a3f0
mov ecx, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp + 0x10], ebx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003155f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x10031448
cmp eax, 2
je 0x10031448
cmp eax, 6
je 0x10031448
cmp eax, 7
jne 0x1003155f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.10073bfa
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
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
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x1003154a
mov ecx, dword [ebp + 0x18]
call fcn.10021e00
cmp esi, dword [ebp + 8]
je 0x10031534
jmp 0x1003152d
mov ecx, dword [ebp + 0x10]
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 0x14]
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003155f
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x100314de
cmp eax, 2
je 0x100314de
cmp eax, 6
je 0x100314de
cmp eax, 7
jne 0x1003155f
mov edx, dword [ebp + 0xc]
add edx, 2
push edx
call fcn.10073bfa
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
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
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x1003154a
mov ecx, dword [ebp + 0x18]
call fcn.10021ed0
cmp esi, dword [ebp + 8]
je 0x10031534
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.10073c23
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.10073c23
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x1009c018
call fcn.10021ed0
cmp esi, dword [ebp + 8]
je 0x1003156b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10031e40
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10031e6c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10031e6c
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x10031f90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10084968
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x10031fe6
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 0x10031fe9
mov esi, dword [ebp + 8]
test esi, esi
je 0x100320cf
call fcn.10064200
test eax, eax
je 0x1003206a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x10032005
xor ebx, ebx
jmp 0x10032035
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.1000a3f0
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.10009905
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100320c3
cmp esi, dword [ebp + 8]
je 0x10032063
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x100320d1
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.1001b9c0
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 0x100320b4
cmp esi, dword [ebp + 8]
je 0x1003209e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1001c1c0
mov eax, 1
jmp 0x100320d1
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1001c1c0
cmp esi, dword [ebp + 8]
je 0x100320cf
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 0x10032dd0
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 0x10032f48
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10032f27
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x10032e26
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.10073bfa
mov esi, eax
add esp, 4
test esi, esi
je 0x10032f48
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 0x10032f3f
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 0x10032f3f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10032f3f
push ebp
push edi
call fcn.10032dd0
add esp, 8
test eax, eax
je 0x10032f34
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1009e638]
test eax, eax
je 0x10032ed1
test ebp, ebp
je 0x10032ed1
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x10032f3f
jmp 0x10032edd
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x10032f3f
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x10032f1e
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 0x10032f3f
mov eax, dword [esp + 0x14]
jmp 0x10032e7a
push esi
call fcn.10073c23
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x10032f3f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10073c23
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10032f60
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 0x10032fc9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10032f89
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10032fc9
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.10032dd0
add esp, 8
test eax, eax
je 0x10032fc9
mov eax, dword [0x1009e638]
test eax, eax
je 0x10032fb6
test edi, edi
je 0x10032fb6
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 0x100376f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x1003773e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1003773e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x10037743
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x10037729
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x10037753
test esi, esi
jne 0x10037771
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1003776f
mov byte [eax + esi - 1], 0
jne 0x10037778
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x1003ced0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x1003cf20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1003cf20
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x1003cf25
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1003cf0b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x1003cf32
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x10050420
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10085cc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x100956f0]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
mov ecx, dword [0x100956f0]
mov dword [esp + 0x14], 0
mov dword [esi + 0x1c], ecx
mov edx, dword [0x100956f0]
mov dword [esi + 0x20], edx
mov eax, dword [0x100956f0]
mov dword [esi + 0x24], eax
mov ecx, dword [0x100956f0]
mov dword [esi + 0x28], ecx
mov edx, dword [0x100956f0]
mov dword [esi + 0x2c], edx
mov eax, dword [0x100956f0]
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x34]
mov byte [esp + 0x14], 6
call fcn.1007304f
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 7
call fcn.1007304f
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x14], 8
push ecx
mov ecx, edi
mov dword [esi], 0x1008b4ec
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.10074048
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x100520d0
Capabilities:
Start service

Disassembly:
sub esp, 0x20
push edi
call fcn.10064180
test eax, eax
je 0x100520ee
mov dword [0x1009e698], 0x32
xor eax, eax
pop edi
add esp, 0x20
ret
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
jne 0x10052109
mov dword [0x1009e698], 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 [0x1009e698], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call ebp
mov esi, eax
cmp esi, edi
jne 0x10052138
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
cmp esi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
je 0x1005215a
mov eax, dword [esp + 0x34]
push 0x10
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x10052198
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
test edi, edi
je 0x100521cf
jne 0x10052198
test esi, esi
jne 0x1005217e
push 2
push esi
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x1005217e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov dword [esp + 0x14], eax
je 0x10052198
mov ecx, dword [esp + 0x34]
push 0x10
push ecx
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x10052198
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 0x100521ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
mov dword [0x1009e698], eax
jne 0x100521d8
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
jmp 0x100521ef
mov eax, dword [0x1009e698]
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x100521ef
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x100521ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1009e698], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x100521fc
push edi
call ebx
test esi, esi
je 0x10052203
push esi
call ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x20
ret
Function at 0x10052de0
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x1008603b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x624
push esi
push edi
lea ecx, [esp + 0x10]
xor esi, esi
call fcn.1007304f
mov eax, dword [esp + 0x65c]
mov dword [esp + 0x634], esi
test eax, eax
je 0x10052e24
push eax
lea ecx, [esp + 0x14]
call fcn.1007322b
mov eax, dword [esp + 0x660]
test eax, eax
je 0x10052e39
push eax
lea ecx, [esp + 0x14]
call fcn.1007322b
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov dword [esp + 8], 0x400
test eax, eax
jle 0x10052eb8
lea eax, [esp + 8]
lea ecx, [esp + 0x22c]
push eax
push ecx
lea edx, [esp + 0x18]
push 0
push edx
call fcn.10043d00
add esp, 0x10
test eax, eax
jne 0x10052eb1
lea ecx, [esp + 0x10]
mov dword [esp + 0x634], 0xffffffff
call fcn.10073082
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x624]
mov dword fs:[0], ecx
add esp, 0x630
ret
lea esi, [esp + 0x22c]
mov eax, dword [esp + 0x64c]
mov ecx, dword [esp + 0x668]
mov edx, dword [esp + 0x664]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x664]
push ecx
mov ecx, dword [esp + 0x664]
push edx
mov edx, dword [esp + 0x65c]
push esi
mov esi, dword [esp + 0x654]
push 0
push eax
mov eax, dword [esp + 0x664]
push ecx
mov ecx, dword [esp + 0x664]
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov ebp, eax
test ebp, ebp
je 0x10052f71
mov ebx, dword [esp + 0x658]
test ebx, ebx
je 0x10052f71
test esi, esi
je 0x10052f71
call fcn.10068210
mov eax, dword [0x1009ed94]
test eax, eax
je 0x10052f71
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], 0
rep stosd dword es:[edi], eax
push 0
lea edx, [esp + 0x30]
push 0x104
push edx
push 0xffffffffffffffff
push ebx
stosw word es:[edi], ax
call fcn.10042d50
add esp, 0x14
lea ecx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push 1
push esi
mov dword [esp + 0x20], eax
call dword [0x1009ed94]
lea ecx, [esp + 0x18]
mov dword [esp + 0x63c], 0xffffffff
call fcn.10073082
mov ecx, dword [esp + 0x634]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x630
ret
Function at 0x10053720
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xffffffff
je 0x1005373d
cmp edi, 4
jbe 0x1005373d
mov dword [0x1009e69c], 0x57
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
cmp eax, 0xffffffff
mov ebx, dword [esi]
je 0x1005375c
push eax
mov eax, dword [str.Type]
push eax
mov ecx, esi
call fcn.1006e6b0
cmp edi, 0xffffffff
je 0x10053770
mov ecx, dword [str.Start]
push edi
push ecx
mov ecx, esi
call fcn.1006e6b0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x10053788
mov edx, dword [str.ErrorControl]
push eax
push edx
mov ecx, esi
call fcn.1006e6b0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1005379e
push eax
mov eax, dword [str.DisplayName]
push eax
mov ecx, esi
call fcn.1006e860
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100537b5
mov ecx, dword [str.Description]
push eax
push ecx
mov ecx, esi
call fcn.1006e860
mov edx, dword [esp + 0x28]
test edx, edx
je 0x100537db
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [str.ImagePath]
push 2
push eax
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100537f1
push eax
mov eax, dword [str.Group]
push eax
mov ecx, esi
call fcn.1006e860
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10053808
mov ecx, dword [str.DependOnGroup]
push eax
push ecx
mov ecx, esi
call fcn.1006ecd0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1005381f
mov edx, dword [str.DependOnService]
push eax
push edx
mov ecx, esi
call fcn.1006ecd0
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x10054580
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10086250
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x100545b3
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp byte [esi], 0
jne 0x100545ca
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call fcn.1006d490
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.1006d5b0
test eax, eax
je 0x10054676
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.1006fa10
test eax, eax
jne 0x1005462b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006d530
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x1005465e
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.1006dbc0
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.10073ff8
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.10073ebf
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x1005473d
mov dword [eax], 0x10
jmp 0x1005473d
mov edx, dword [0x100956f0]
mov dword [esp + 0x1c], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push eax
lea ecx, [esp + 0x24]
push 0x10099b78
push ecx
mov byte [esp + 0x24], 2
call fcn.10071ad3
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea ecx, [esp + 4]
push 0x20019
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1006d5b0
test eax, eax
jne 0x100546ea
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call fcn.10073ebf
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006d530
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10054721
mov eax, dword [str.StaticVxD]
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1006dbc0
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.10073ff8
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call fcn.10073ebf
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1005472f
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call fcn.10073ebf
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1006d530
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10054770
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10086278
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x1005487f
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x1005487f
cmp byte [edi], bl
je 0x1005487f
cmp byte [esi], bl
je 0x1005487f
lea ecx, [esp + 0xc]
call fcn.1006d490
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp eax, 2
je 0x1005481d
cmp eax, 1
je 0x1005481d
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.1006d5b0
test eax, eax
jne 0x1005480b
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.1006d620
test eax, eax
je 0x1005486e
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.1006e860
mov esi, eax
jmp 0x10054902
mov edx, dword [0x100956f0]
mov dword [esp + 0x24], edx
mov eax, dword [str.SystemCurrentControlSetServicesVxD]
push edi
push eax
lea ecx, [esp + 0x2c]
push 0x10099b78
push ecx
mov byte [esp + 0x2c], 1
call fcn.10071ad3
mov edx, dword [esp + 0x34]
add esp, 0x10
lea ecx, [esp + 0xc]
push 0x2001f
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1006d5b0
test eax, eax
jne 0x10054893
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.10073ebf
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1006d530
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [0x100956f0]
mov dword [esp + 0x2c], eax
push 0x5c
push esi
mov byte [esp + 0x24], 2
call fcn.1000b994
add esp, 8
cmp eax, ebx
je 0x100548bb
inc eax
lea ecx, [esp + 0x2c]
push eax
call fcn.10074048
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
jne 0x100548d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call fcn.10073ebf
jmp 0x10054861
mov ecx, dword [str.StaticVxD]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.1006e860
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x1c], 1
call fcn.10073ebf
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call fcn.10073ebf
lea ecx, [esp + 0xc]
call fcn.1006d600
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1006d530
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret