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

Disassembly:
push 0xc
mov eax, 0x105691e
call fcn.01021eb9
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp ecx, ebx
jne 0x103b833
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x103ba16
mov edi, dword [ebp + 8]
cmp edi, 1
je 0x103b93a
cmp edi, 2
je 0x103b93a
cmp edi, 3
jne 0x103b85b
add esi, 4
push esi
call fcn.01015aaf
jmp 0x103ba13
cmp edi, 0xe
jne 0x103b86a
cmp dword [esi + 0x14], ebx
je 0x103b82c
add esi, 8
jmp 0x103b850
mov ecx, esi
call fcn.0103aedf
test eax, eax
je 0x103b82c
cmp edi, 0xb
jne 0x103b883
mov dword [ebp - 0x10], 0x100cc04
jmp 0x103b8ab
cmp edi, 0xc
jne 0x103b891
mov dword [ebp - 0x10], 0x100cbe0
jmp 0x103b8ab
cmp edi, 0xd
jne 0x103b89f
mov dword [ebp - 0x10], 0x100a6dc
jmp 0x103b8ab
cmp edi, 7
jne 0x103b824
mov dword [ebp - 0x10], 0x100cbbc
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
push dword [esi + 0x10]
call edi
cmp eax, ebx
jne 0x103b934
cmp dword [ebp + 8], 1
jbe 0x103b934
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.01054617
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x103b82c
push dword [ebp + 8]
push ebx
push eax
call fcn.010219e0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x14]
push ebx
push ebx
push dword [ebp - 0x10]
push dword [esi + 0x10]
call edi
push dword [ebp - 0x14]
test eax, eax
je 0x103b915
call fcn.01021189
pop ecx
jmp 0x103b82c
mov ecx, dword [ebp + 0xc]
call fcn.01015acb
push dword [ebp - 0x14]
call fcn.01021189
xor eax, eax
cmp eax, dword [ebp + 8]
pop ecx
sbb eax, eax
neg eax
jmp 0x103ba16
push eax
jmp 0x103b826
mov ecx, esi
call fcn.0103aedf
test eax, eax
je 0x103b82c
lea ecx, [ebp - 0x10]
call fcn.010151da
mov dword [ebp - 4], ebx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.010158a3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 0xc]
lea ecx, [ecx + ecx + 2]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push 0x10039fc
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.01015023
cmp edi, ebx
je 0x103b9a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01015174
jmp 0x103b82c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x103b9bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01015174
mov eax, ebx
jmp 0x103ba16
cmp dword [ebp + 8], 1
jne 0x103b9d3
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.01015959
xor ebx, ebx
inc ebx
jmp 0x103b9ac
lea ecx, [ebp - 0x14]
call fcn.010151da
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 8
push esi
call fcn.010360f6
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.01015959
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01015174
xor eax, eax
inc eax
call fcn.01021fa5
ret 8
Function at 0x103ba23
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
cmp dword [ebp + 8], esi
jne 0x103ba43
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103bae0
call fcn.0103aedf
test eax, eax
je 0x103bae0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push 0x100cc04
push dword [ebx + 0x10]
mov dword [ebp - 4], esi
call edi
cmp eax, esi
jne 0x103bad3
cmp dword [ebp - 4], 1
jbe 0x103bad3
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.01054617
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x103bae0
push dword [ebp - 4]
push esi
push eax
call fcn.010219e0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
push esi
push 0x100cc04
push dword [ebx + 0x10]
call edi
push dword [ebp - 8]
test eax, eax
je 0x103bab7
call fcn.01021189
pop ecx
jmp 0x103bae0
mov ecx, dword [ebp + 8]
call fcn.01015acb
push dword [ebp - 8]
call fcn.01021189
xor eax, eax
cmp eax, dword [ebp - 4]
pop ecx
sbb eax, eax
neg eax
jmp 0x103badc
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, esi
jne 0x103bae7
xor eax, eax
jmp 0x103bc2e
cmp dword [ebp + 0xc], esi
je 0x103ba36
mov ecx, ebx
call fcn.0103aedf
test eax, eax
je 0x103bae0
lea eax, [ebp + 8]
push eax
push esi
push esi
push esi
push 0x100cbe0
push dword [ebx + 0x10]
mov dword [ebp + 8], esi
call edi
cmp eax, esi
jne 0x103bb74
cmp dword [ebp + 8], 1
jbe 0x103bb74
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.01054617
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x103bae0
push dword [ebp + 8]
push esi
push eax
call fcn.010219e0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push esi
push esi
push 0x100cbe0
push dword [ebx + 0x10]
call edi
push dword [ebp - 8]
test eax, eax
jne 0x103baaf
mov ecx, dword [ebp + 0xc]
call fcn.01015acb
push dword [ebp - 8]
call fcn.01021189
xor eax, eax
cmp eax, dword [ebp + 8]
pop ecx
sbb eax, eax
neg eax
jmp 0x103bb7d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, esi
je 0x103bae0
cmp dword [ebp + 0x10], esi
je 0x103ba36
mov ecx, ebx
call fcn.0103aedf
test eax, eax
je 0x103bae0
lea eax, [ebp + 8]
push eax
push esi
push esi
push esi
push 0x100a6dc
push dword [ebx + 0x10]
mov dword [ebp + 8], esi
call edi
cmp eax, esi
jne 0x103bc1a
cmp dword [ebp + 8], 1
jbe 0x103bc1a
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.01054617
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x103bae0
push dword [ebp + 8]
push esi
push eax
call fcn.010219e0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x100a6dc
push dword [ebx + 0x10]
call edi
push dword [ebp + 0xc]
test eax, eax
jne 0x103baaf
mov ecx, dword [ebp + 0x10]
call fcn.01015acb
push dword [ebp + 0xc]
call fcn.01021189
xor eax, eax
cmp eax, dword [ebp + 8]
pop ecx
sbb eax, eax
neg eax
jmp 0x103bc23
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, esi
je 0x103bae0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x103c21f
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x14
mov eax, 0x1056a86
call fcn.01021eb9
mov dword [ebp - 4], 1
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
call fcn.010151da
mov byte [ebp - 4], 2
push 0x100cc90
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.010161a7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.010360f6
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.01015174
test bl, bl
je 0x103c28a
mov esi, 0x65b
jmp 0x103c30b
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp - 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
jne 0x103c30b
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 8], edi
jbe 0x103c2e9
lea eax, [ebp - 0x1c]
push eax
call fcn.01035d59
mov ebx, eax
cmp ebx, edi
jne 0x103c2c8
push 8
pop esi
jmp 0x103c300
mov eax, dword [ebp - 0x1c]
add eax, eax
push eax
push ebx
push 7
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
jne 0x103c300
jmp 0x103c2fe
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, edi
jne 0x103c30b
mov ebx, dword [ebp - 0x20]
xor esi, esi
cmp ebx, edi
je 0x103c30b
push ebx
call fcn.01021189
pop ecx
cmp dword [ebp - 0x10], edi
je 0x103c319
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.01015174
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01015174
mov eax, esi
call fcn.01021fa5
ret 0xc
Function at 0x103c34c
Capabilities:
Delete registry key

Disassembly:
push 0x18
mov eax, 0x1056ade
call fcn.01021eb9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.010151da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010151da
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010151da
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.010151da
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.010151da
mov byte [ebp - 4], 5
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01036032
test al, al
je 0x103c418
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01036032
test al, al
je 0x103c418
push 0x100cc90
lea ecx, [ebp - 0x1c]
call fcn.010161a7
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.010360f6
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.01015174
test bl, bl
jne 0x103c418
lea ecx, [ebp - 0x14]
call fcn.01015002
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x103c41d
jmp 0x103c41d
mov esi, 0x65b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.01015174
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.01015174
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01015174
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.01015174
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01015174
mov eax, esi
call fcn.01021fa5
ret 4

Function at 0x103c4cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0xc], ebx
jne 0x103c4f3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
cmp eax, 4
jne 0x103c504
mov dword [ebp - 4], 0x100cba8
jmp 0x103c52c
cmp eax, 9
jne 0x103c512
mov dword [ebp - 4], 0x100cb80
jmp 0x103c52c
cmp eax, 0xa
jne 0x103c520
mov dword [ebp - 4], 0x100ac9c
jmp 0x103c52c
cmp eax, 8
jne 0x103c4ea
mov dword [ebp - 4], 0x100cb4c
call fcn.0103aedf
test eax, eax
je 0x103c4ea
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], ebx
push dword [esi + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x103c4ea
cmp dword [ebp + 8], 1
jbe 0x103c4ea
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.01054617
mov edi, eax
pop ecx
cmp edi, ebx
je 0x103c4ea
push dword [ebp + 8]
push ebx
push edi
call fcn.010219e0
add esp, 0xc
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 8]
push edi
push ebx
push ebx
push dword [ebp - 4]
push dword [eax + 0x10]
call esi
push edi
test eax, eax
je 0x103c599
call fcn.01021189
pop ecx
jmp 0x103c4ea
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0103c474
push edi
call fcn.01021189
xor eax, eax
cmp dword [esi + 8], ebx
pop ecx
setne al
jmp 0x103c4ec
Function at 0x103c883
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x1056b9e
call fcn.01021eb9
mov dword [ebp - 4], 1
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
call fcn.010151da
mov byte [ebp - 4], 2
push 0x100cc90
lea ecx, [ebp - 0x10]
call fcn.010161a7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010360f6
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.01015174
test bl, bl
je 0x103c8ed
mov dword [ebp - 0x10], 0x65b
jmp 0x103c99f
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push dword [ebp - 0x1c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x103c99f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x103c93e
cmp eax, 2
jne 0x103c99f
mov dword [ebp - 0x10], 0x490
jmp 0x103c99f
add dword [ebp - 0x14], 4
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
jne 0x103c95c
mov dword [ebp - 0x10], 8
jmp 0x103c994
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x103c994
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 4], cx
mov eax, dword [ebp - 0x14]
shr eax, 1
mov word [esi + eax*2 - 2], cx
mov ecx, dword [ebp + 0x10]
push esi
call fcn.0103c474
mov dword [ebp - 0x10], edi
cmp esi, edi
je 0x103c99f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], edi
je 0x103c9ad
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.01015174
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01015174
mov eax, dword [ebp - 0x10]
call fcn.01021fa5
ret 0xc

Function at 0x1042b30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
push 0x104
mov ecx, esi
mov dword [ebp - 8], ebx
call fcn.010158a3
push 0x20019
push 2
push ebx
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x1042ba1
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push ebx
push 0x100e14c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1042b9a
cmp dword [ebp - 4], ebx
jbe 0x1042b9a
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, esi
call fcn.01015023
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8
Function at 0x104660b
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x14
mov eax, 0x105850c
call fcn.01021eb9
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x100e130
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x104672f
push 0x100e118
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x10466d6
lea ecx, [ebp - 0x18]
call fcn.010151da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.010151da
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.01014fc6
lea ecx, [ebp - 0x10]
call fcn.01014fc6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01036032
test al, al
je 0x10466b9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x10466b9
push ebx
xor esi, esi
inc esi
push esi
push eax
call edi
test eax, eax
je 0x10466a4
mov dword [ebp - 0x14], esi
jmp 0x10466b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000023c
jne 0x10466b6
mov dword [ebp - 0x14], ebx
jmp 0x10466b9
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01015174
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.01015174
cmp dword [ebp - 0x1c], ebx
je 0x1046726
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, 0x80
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
test eax, eax
je 0x1046726
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.0101575c
push 0x100f384
push 0x1005244
lea ecx, [ebp + 8]
call fcn.0101ae36
test eax, eax
je 0x1046726
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01015174
mov eax, dword [ebp - 0x14]
call fcn.01021fa5
ret 4
Function at 0x1049484
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x10494d2
cmp dword [ebx + 4], 1
push edi
je 0x10494ce
mov edi, 0x1f4
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x10494e2
add dword [ebp - 4], edi
cmp dword [ebp - 4], 0x2710
ja 0x10494d7
cmp dword [ebx + 4], 1
jne 0x10494ab
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10494d1

Function at 0x10494eb
Capabilities:
Start service
Stop service

Disassembly:
push 0x28
mov eax, 0x1058f83
call fcn.01021eb9
xor edi, edi
mov dword [ebp - 4], edi
push 0xe0000000
push edi
push edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x10495d9
push 0x80000030
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x10495b2
mov esi, dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
push edi
push ebx
call esi
test eax, eax
je 0x1049556
push dword [ebp + 8]
push 0x10108e8
push 1
call fcn.0103ac75
add esp, 0xc
jmp 0x10495a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x104957b
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
push 0x1010880
push 3
call fcn.0103ac75
add esp, 0x10
jmp 0x10495a7
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10495a4
push ebx
lea ebx, [ebp - 0x34]
call fcn.01049484
test eax, eax
je 0x10495a4
push edi
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x10495a7
mov dword [ebp - 0x10], edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10495ce
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1010800
push 3
call fcn.0103ac75
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10495f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1010770
push 3
call fcn.0103ac75
add esp, 0xc
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01015174
mov eax, dword [ebp - 0x10]
call fcn.01021fa5
ret 4
Function at 0x104960e
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0x28
mov eax, 0x1058f83
call fcn.01021eb9
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
push 0xe0000000
push edi
push edi
mov dword [ebp - 0x10], 1
mov dword [eax], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x10497ad
push 0x80010020
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x104978a
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1049682
cmp eax, 3
je 0x1049682
cmp eax, 4
je 0x1049682
cmp eax, 1
jne 0x10496d0
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10496a8
call edi
push eax
push dword [ebp + 8]
push 0x1010c10
push 3
call fcn.0103ac75
add esp, 0x10
push ebx
lea ebx, [ebp - 0x34]
call fcn.01049484
test eax, eax
jne 0x10496d0
push dword [ebp + 8]
push 0x1010bd8
push 2
call fcn.0103ac75
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x104976a
push dword [ebp + 8]
push 0x1010ba0
push 1
call fcn.0103ac75
add esp, 0xc
push dword [ebp - 0x14]
call esi
xor edi, edi
cmp dword [ebp + 0xc], 2
je 0x104970d
cmp dword [ebp + 0xc], 3
mov dword [ebp + 0xc], 6
jne 0x1049714
mov dword [ebp + 0xc], 3
push SysReAllocString
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
inc edi
test ebx, ebx
je 0x10497a6
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
call esi
cmp edi, dword [ebp + 0xc]
jne 0x1049758
push 0x1010ac8
push 2
call fcn.0103ac75
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [eax], 1
jmp 0x1049763
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, dword [ebp + 0xc]
jb 0x1049714
jmp 0x10497a6
and dword [ebp - 0x10], 0
call edi
push eax
push dword [ebp + 8]
push 0x1010a50
push 3
call fcn.0103ac75
add esp, 0x10
push dword [ebp - 0x14]
call esi
jmp 0x10497a6
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x10109c0
push 3
call fcn.0103ac75
add esp, 0x10
push dword [ebp - 0x18]
call esi
jmp 0x10497c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1010920
push 3
call fcn.0103ac75
add esp, 0xc
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01015174
mov eax, dword [ebp - 0x10]
call fcn.01021fa5
ret 0xc
Function at 0x1049f17
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x10590e6
call fcn.01021eb9
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call fcn.010151da
mov dword [ebp - 4], ebx
push dword [0x1064698]
lea ecx, [ebp - 0x18]
call fcn.010161a7
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.010360f6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.01015174
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x10]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x1049f99
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011110
push 3
call fcn.0103ac75
add esp, 0x10
jmp 0x1049fe7
push ebx
push ebx
push ebx
push ebx
push dword [0x106469c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1049fb8
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], ebx
je 0x1049fe5
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, ebx
je 0x1049fe5
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011000
push 1
jmp 0x1049f8f
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01015174
mov eax, edi
call fcn.01021fa5
ret 4