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

Disassembly:
push 0xc
mov eax, 0x1056578
call fcn.01022092
mov esi, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp ecx, ebx
jne 0x103b67e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x103b861
mov edi, dword [ebp + 8]
cmp edi, 1
je 0x103b785
cmp edi, 2
je 0x103b785
cmp edi, 3
jne 0x103b6a6
add esi, 4
push esi
call fcn.01015d54
jmp 0x103b85e
cmp edi, 0xe
jne 0x103b6b5
cmp dword [esi + 0x14], ebx
je 0x103b677
add esi, 8
jmp 0x103b69b
mov ecx, esi
call fcn.0103ad2a
test eax, eax
je 0x103b677
cmp edi, 0xb
jne 0x103b6ce
mov dword [ebp - 0x10], 0x100d2d4
jmp 0x103b6f6
cmp edi, 0xc
jne 0x103b6dc
mov dword [ebp - 0x10], 0x100d2b0
jmp 0x103b6f6
cmp edi, 0xd
jne 0x103b6ea
mov dword [ebp - 0x10], 0x100adb0
jmp 0x103b6f6
cmp edi, 7
jne 0x103b66f
mov dword [ebp - 0x10], 0x100d28c
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 0x103b77f
cmp dword [ebp + 8], 1
jbe 0x103b77f
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.010542e0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x103b677
push dword [ebp + 8]
push ebx
push eax
call fcn.01021bf0
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
test eax, eax
push dword [ebp - 0x14]
je 0x103b760
call fcn.010213d8
pop ecx
jmp 0x103b677
mov ecx, dword [ebp + 0xc]
call fcn.01016141
push dword [ebp - 0x14]
call fcn.010213d8
xor eax, eax
cmp eax, dword [ebp + 8]
pop ecx
sbb eax, eax
neg eax
jmp 0x103b861
push eax
jmp 0x103b671
mov ecx, esi
call fcn.0103ad2a
test eax, eax
je 0x103b677
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov dword [ebp - 4], ebx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.01015aa6
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 0x1004864
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.01015124
cmp edi, ebx
je 0x103b7ef
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.010151a6
jmp 0x103b677
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x103b807
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.010151a6
mov eax, ebx
jmp 0x103b861
cmp dword [ebp + 8], 1
jne 0x103b81e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.01015b0a
xor ebx, ebx
inc ebx
jmp 0x103b7f7
lea ecx, [ebp - 0x14]
call fcn.010155dc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
add esi, 8
push esi
call fcn.01035e1c
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.01015b0a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.010151a6
xor eax, eax
inc eax
call fcn.0102217e
ret 8
Function at 0x103b86e
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
cmp dword [ebp + 8], esi
push edi
mov ebx, ecx
jne 0x103b88e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103b92b
call fcn.0103ad2a
test eax, eax
je 0x103b92b
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push 0x100d2d4
push dword [ebx + 0x10]
mov dword [ebp - 4], esi
call edi
cmp eax, esi
jne 0x103b91e
cmp dword [ebp - 4], 1
jbe 0x103b91e
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.010542e0
cmp eax, esi
pop ecx
mov dword [ebp - 8], eax
je 0x103b92b
push dword [ebp - 4]
push esi
push eax
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
push esi
push 0x100d2d4
push dword [ebx + 0x10]
call edi
test eax, eax
push dword [ebp - 8]
je 0x103b902
call fcn.010213d8
pop ecx
jmp 0x103b92b
mov ecx, dword [ebp + 8]
call fcn.01016141
push dword [ebp - 8]
call fcn.010213d8
xor eax, eax
cmp eax, dword [ebp - 4]
pop ecx
sbb eax, eax
neg eax
jmp 0x103b927
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, esi
jne 0x103b932
xor eax, eax
jmp 0x103ba79
cmp dword [ebp + 0xc], esi
je 0x103b881
mov ecx, ebx
call fcn.0103ad2a
test eax, eax
je 0x103b92b
lea eax, [ebp + 8]
push eax
push esi
push esi
push esi
push 0x100d2b0
push dword [ebx + 0x10]
mov dword [ebp + 8], esi
call edi
cmp eax, esi
jne 0x103b9bf
cmp dword [ebp + 8], 1
jbe 0x103b9bf
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.010542e0
cmp eax, esi
pop ecx
mov dword [ebp - 8], eax
je 0x103b92b
push dword [ebp + 8]
push esi
push eax
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
push esi
push esi
push 0x100d2b0
push dword [ebx + 0x10]
call edi
test eax, eax
push dword [ebp - 8]
jne 0x103b8fa
mov ecx, dword [ebp + 0xc]
call fcn.01016141
push dword [ebp - 8]
call fcn.010213d8
xor eax, eax
cmp eax, dword [ebp + 8]
pop ecx
sbb eax, eax
neg eax
jmp 0x103b9c8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, esi
je 0x103b92b
cmp dword [ebp + 0x10], esi
je 0x103b881
mov ecx, ebx
call fcn.0103ad2a
test eax, eax
je 0x103b92b
lea eax, [ebp + 8]
push eax
push esi
push esi
push esi
push 0x100adb0
push dword [ebx + 0x10]
mov dword [ebp + 8], esi
call edi
cmp eax, esi
jne 0x103ba65
cmp dword [ebp + 8], 1
jbe 0x103ba65
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.010542e0
cmp eax, esi
pop ecx
mov dword [ebp + 0xc], eax
je 0x103b92b
push dword [ebp + 8]
push esi
push eax
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x100adb0
push dword [ebx + 0x10]
call edi
test eax, eax
push dword [ebp + 0xc]
jne 0x103b8fa
mov ecx, dword [ebp + 0x10]
call fcn.01016141
push dword [ebp + 0xc]
call fcn.010213d8
xor eax, eax
cmp eax, dword [ebp + 8]
pop ecx
sbb eax, eax
neg eax
jmp 0x103ba6e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp eax, esi
je 0x103b92b
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x103c068
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0x14
mov eax, 0x1056708
call fcn.01022092
mov dword [ebp - 4], 1
xor edi, edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
call fcn.010155dc
mov byte [ebp - 4], 2
push 0x100d360
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], edi
call fcn.01016a0f
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.01035e1c
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.010151a6
test bl, bl
je 0x103c0d3
mov esi, 0x65b
jmp 0x103c154
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 0x103c154
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 8], edi
jbe 0x103c132
lea eax, [ebp - 0x1c]
push eax
call fcn.01035a81
mov ebx, eax
cmp ebx, edi
jne 0x103c111
push 8
pop esi
jmp 0x103c149
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 0x103c149
jmp 0x103c147
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, edi
jne 0x103c154
mov ebx, dword [ebp - 0x20]
xor esi, esi
cmp ebx, edi
je 0x103c154
push ebx
call fcn.010213d8
pop ecx
cmp dword [ebp - 0x10], edi
je 0x103c162
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010151a6
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 0xc
Function at 0x103c195
Capabilities:
Delete registry key

Disassembly:
push 0x18
mov eax, 0x1056760
call fcn.01022092
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010155dc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.010155dc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.010155dc
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.01035d59
test al, al
je 0x103c261
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01035d59
test al, al
je 0x103c261
push 0x100d360
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
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.01035e1c
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.010151a6
test bl, bl
jne 0x103c261
lea ecx, [ebp - 0x14]
call fcn.01014f3a
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x103c266
jmp 0x103c266
mov esi, 0x65b
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.010151a6
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.010151a6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010151a6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.010151a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 4

Function at 0x103c315
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
cmp dword [ebp + 0xc], ebx
mov esi, ecx
push edi
mov dword [ebp - 8], esi
jne 0x103c33c
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 0x103c34d
mov dword [ebp - 4], 0x100d278
jmp 0x103c375
cmp eax, 9
jne 0x103c35b
mov dword [ebp - 4], 0x100d250
jmp 0x103c375
cmp eax, 0xa
jne 0x103c369
mov dword [ebp - 4], 0x100b36c
jmp 0x103c375
cmp eax, 8
jne 0x103c333
mov dword [ebp - 4], 0x100d21c
call fcn.0103ad2a
test eax, eax
je 0x103c333
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 0x103c333
cmp dword [ebp + 8], 1
jbe 0x103c333
add dword [ebp + 8], 4
push dword [ebp + 8]
call fcn.010542e0
mov edi, eax
cmp edi, ebx
pop ecx
je 0x103c333
push dword [ebp + 8]
push ebx
push edi
call fcn.01021bf0
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
test eax, eax
push edi
je 0x103c3e2
call fcn.010213d8
pop ecx
jmp 0x103c333
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0103c2bd
push edi
call fcn.010213d8
xor eax, eax
cmp dword [esi + 8], ebx
pop ecx
setne al
jmp 0x103c335
Function at 0x103c6cc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x10567f8
call fcn.01022092
mov dword [ebp - 4], 1
xor edi, edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edi
call fcn.010155dc
mov byte [ebp - 4], 2
push 0x100d360
lea ecx, [ebp - 0x10]
call fcn.01016a0f
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.01035e1c
mov bl, al
neg bl
sbb bl, bl
inc bl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.010151a6
test bl, bl
je 0x103c736
mov dword [ebp - 0x10], 0x65b
jmp 0x103c7e6
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]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x103c7e6
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
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x103c787
cmp eax, 2
jne 0x103c7e6
mov dword [ebp - 0x10], 0x490
jmp 0x103c7e6
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 0x103c7a5
mov dword [ebp - 0x10], 8
jmp 0x103c7db
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call ebx
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x103c7db
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
shr eax, 1
mov word [esi + eax*2 - 4], di
mov eax, dword [ebp - 0x14]
shr eax, 1
push esi
mov word [esi + eax*2 - 2], di
call fcn.0103c2bd
mov dword [ebp - 0x10], edi
cmp esi, edi
je 0x103c7e6
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x18], edi
je 0x103c7f4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010151a6
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.010151a6
mov eax, dword [ebp - 0x10]
call fcn.0102217e
ret 0xc

Function at 0x1042b2c
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.01015aa6
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 0x1042b9d
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 0x100ea6c
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1042b96
cmp dword [ebp - 4], ebx
jbe 0x1042b96
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, esi
call fcn.01015124
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8
Function at 0x104611b
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x14
mov eax, 0x105808c
call fcn.01022092
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x100e800
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x104623f
push 0x100e7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x10461e6
lea ecx, [ebp - 0x18]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.01014eae
lea ecx, [ebp - 0x10]
call fcn.01014eae
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01035d59
test al, al
je 0x10461c9
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x10461c9
push ebx
xor esi, esi
inc esi
push esi
push eax
call edi
test eax, eax
je 0x10461b4
mov dword [ebp - 0x14], esi
jmp 0x10461c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000023c
jne 0x10461c6
mov dword [ebp - 0x14], ebx
jmp 0x10461c9
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.010151a6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.010151a6
cmp dword [ebp - 0x1c], ebx
je 0x1046236
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 0x1046236
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.01015a21
push 0x100f798
push 0x1005f64
lea ecx, [ebp + 8]
call fcn.0101b03a
test eax, eax
je 0x1046236
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.010151a6
mov eax, dword [ebp - 0x14]
call fcn.0102217e
ret 4
Function at 0x1048f8a
Capabilities:
Start service
Stop service

Disassembly:
push 0x28
mov eax, 0x1058f1d
call fcn.01022092
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]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x1049078
push 0x80000030
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x1049051
mov esi, dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
push edi
push ebx
call esi
test eax, eax
je 0x1048ff5
push dword [ebp + 8]
push 0x1010cf8
push 1
call fcn.0103aac4
add esp, 0xc
jmp 0x1049046
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x104901a
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
push 0x1010c90
push 3
call fcn.0103aac4
add esp, 0x10
jmp 0x1049046
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1049043
push ebx
lea ebx, [ebp - 0x34]
call fcn.0104adfd
test eax, eax
je 0x1049043
push edi
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1049046
mov dword [ebp - 0x10], edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x104906d
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1010c10
push 3
call fcn.0103aac4
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1049091
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1010b80
push 3
call fcn.0103aac4
add esp, 0xc
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, dword [ebp - 0x10]
call fcn.0102217e
ret 4
Function at 0x10497ca
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x1058c75
call fcn.01022092
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
push dword [0x10645c8]
lea ecx, [ebp - 0x18]
call fcn.01016a0f
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.01035e1c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010151a6
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 0x104984c
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
jmp 0x104989a
push ebx
push ebx
push ebx
push ebx
push dword [0x10645cc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x104986b
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], ebx
je 0x1049898
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, ebx
je 0x1049898
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011410
push 1
jmp 0x1049842
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.010151a6
mov eax, edi
call fcn.0102217e
ret 4
Function at 0x10498b5
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0x18
mov eax, 0x1058cad
call fcn.01022092
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
push dword [0x10645c8]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 1
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.01035e1c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.010151a6
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x1c]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x104995a
cmp eax, 2
push dword [esi]
je 0x1049949
push eax
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x1049995
push 0x10117d8
push 1
call fcn.0103aac4
add esp, 0xc
jmp 0x1049995
cmp dword [ebp + 0x10], ebx
jne 0x1049968
mov dword [ebp - 0x24], 1
jmp 0x1049995
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x10645cc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x104998e
push dword [esi]
push eax
push 0x1011718
jmp 0x104993a
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x10499a3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x10499b2
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x18], ebx
je 0x1049a7c
lea ecx, [ebp + 0x10]
call fcn.010155dc
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 2
call fcn.0103b658
test eax, eax
jne 0x10499ef
push 0x100c220
push 3
call fcn.0103aac4
pop ecx
pop ecx
mov dword [ebp - 0x18], ebx
jmp 0x1049a71
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.0103ae0c
test eax, eax
jne 0x1049a14
push dword [ebp + 0x10]
push 0x10116a8
push 3
call fcn.0103aac4
add esp, 0xc
jmp 0x10499e7
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 0x10]
inc edi
push 0x1011658
push edi
call fcn.0103aac4
add esp, 0x10
cmp dword [ebp + 0xc], edi
je 0x1049a47
jbe 0x1049a57
cmp dword [ebp + 0xc], 4
ja 0x1049a57
mov ecx, dword [ebp + 0x1c]
push esi
lea eax, [ebp + 0x10]
push eax
call fcn.010492eb
jmp 0x1049a54
push dword [ebp + 0x1c]
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.010490ad
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], ebx
je 0x1049a6e
push dword [ebp + 0x10]
push 0x1011600
push 3
call fcn.0103aac4
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.010151a6
cmp dword [ebp - 0x14], ebx
je 0x1049a86
cmp dword [ebp - 0x18], ebx
jne 0x1049a8b
mov ebx, 0x643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010151a6
mov eax, ebx
call fcn.0102217e
ret 0x18