joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b4a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410084]
jne 0x401b54
repz ret
jmp fcn.00402587

Function at 0x40820c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405850
and dword [ebp - 0x14], 0
cmp dword [0x411c88], 0
mov dword [ebp - 0x18], eax
jne 0x4082bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408367
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408367
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411c88], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411c8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411c90], eax
call edi
push eax
call esi
mov dword [0x411c98], eax
test eax, eax
je 0x4082bf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411c94], eax
mov eax, dword [0x411c94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408318
cmp dword [0x411c98], ecx
je 0x408318
push eax
call esi
push dword [0x411c98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408318
test ebx, ebx
je 0x408318
call edi
test eax, eax
je 0x40830f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40830f
test byte [ebp - 8], 1
jne 0x408318
or dword [ebp + 0x10], 0x200000
jmp 0x40834b
mov eax, dword [0x411c8c]
cmp eax, dword [ebp - 0x18]
je 0x40834b
push eax
call esi
test eax, eax
je 0x40834b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40834b
mov eax, dword [0x411c90]
cmp eax, dword [ebp - 0x18]
je 0x40834b
push eax
call esi
test eax, eax
je 0x40834b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411c88]
call esi
test eax, eax
je 0x408367
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408369
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b4a
leave
ret
Function at 0x1001c970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x1001c986
mov eax, 0x80004003
jmp 0x1001ca1d
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0x20219
push 0
push str.SoftwareSmdmFGeneral
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001c9d1
lea edx, [ebp - 8]
push edx
push str.SoftwareSmdmFGeneral
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001ca11
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.use_secondary_url
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1001d400
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1001d45f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001d42c
mov eax, 1
jmp 0x1001d47d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001d45d
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
jmp 0x1001d47d
jmp 0x1001d478
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x1001d478
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1001d47d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x1001dc60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x1001dc69
xor ecx, ecx
jne 0x1001dc69
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x1001dc8a
mov eax, 0xd
jmp 0x1001dce5
xor eax, eax
jne 0x1001dc71
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x1001dc9b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x1001dcf0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x230], ecx
push 0
lea ecx, [ebp - 0x18]
call fcn.1001d870
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.1001db30
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1001dd5d
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x18]
call fcn.1001d8a0
mov eax, dword [ebp - 0x224]
jmp 0x1001ddee
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001ddc3
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x18]
call fcn.1001dcf0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1001ddba
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x18]
call fcn.1001d8a0
mov eax, dword [ebp - 0x228]
jmp 0x1001ddee
mov dword [ebp - 4], 0x100
jmp 0x1001dd64
lea ecx, [ebp - 0x18]
call fcn.1001da20
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.1001d940
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x18]
call fcn.1001d8a0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1007dda4
mov esp, ebp
pop ebp
ret 4
Function at 0x10025ba0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xffffffff
je 0x10025be5
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10025bdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10025be5
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10037e00
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 0x811c9dc5
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.10037e80
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0xa
div ecx
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10037e40
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x10037e67
mov esi, dword [ebp - 0x10]
imul esi, esi, 0x1000193
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.100056f0
movzx edx, word [eax]
xor esi, edx
mov dword [ebp - 0x10], esi
jmp 0x10037e37
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10037ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x10037ea9
xor ecx, ecx
jne 0x10037ea9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10037ef0
mov eax, dword [ebp - 0xc]
jmp 0x10037f4d
cmp dword [ebp - 4], 1
je 0x10037f03
cmp dword [ebp - 4], 2
je 0x10037f03
mov eax, 0xd
jmp 0x10037f4d
cmp dword [ebp + 0xc], 0
je 0x10037f41
cmp dword [ebp - 8], 0
je 0x10037f39
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x10037f30
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x10037f37
mov eax, 0xd
jmp 0x10037f4d
jmp 0x10037f41
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10043980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, eax
call fcn.10048fd0
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push 0x1f4
push esi
mov dword [ebp - 8], 0xffffffff
call ebx
mov edi, eax
test edi, edi
je 0x10043a58
push 0xf0
push 0x1f4
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100439d3
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x10043a35
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10043a35
push edi
call fcn.10043750
add esp, 4
push 0
mov ebx, eax
mov eax, dword [ebp + 8]
push 0x10041c00
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
test esi, esi
je 0x10043a18
cmp esi, 0xffffffff
jne 0x10043a21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x10043a41
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10043a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10043a4f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004a540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x10133870]
push edi
push 0xf0
push 0x1f4
mov edi, 1
push esi
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1004a716
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1004a716
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1004a716
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x1004a5b8
mov edi, dword [ebp - 0x10c]
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1004a701
mov edx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov ecx, 0x403
add esi, 8
mov dword [ebp - 0x114], edx
cmp cx, ax
jne 0x1004a64c
lea edx, [ebp - 0x104]
mov dword [ebp - 0x108], edx
call fcn.1001cf10
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.1004a8f0
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 0x110]
push eax
mov eax, dword [edx + 4]
push 0
push 0x143
push edi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x1004a62a
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x1004a6d5
push eax
call fcn.1007e621
add esp, 4
jmp 0x1004a6d5
mov edx, 0x1234
cmp dx, ax
jne 0x1004a6d5
lea eax, [ebp - 0x104]
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.1001cf10
push eax
push esi
lea ecx, [ebp - 0x108]
call fcn.1004a8f0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x130], eax
cmp eax, ecx
je 0x1004a6ab
push eax
call fcn.1007e621
add esp, 4
mov ecx, dword [ebp - 0x110]
lea edx, [ebp - 0x138]
push edx
mov edx, dword [ecx + 4]
push 0
push 0x40b
push edi
push edx
call ebx
cmp eax, 0xffffffff
jne 0x1004a6d5
mov dword [ebp - 0x10c], 0
add esi, dword [ebp - 0x114]
cmp dword [ebp - 0x10c], 0
jne 0x1004a5b2
mov eax, dword [ebp - 0x10c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dda4
mov esp, ebp
pop ebp
ret 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007dda4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1007dda4
mov esp, ebp
pop ebp
ret 4
Function at 0x1004cbd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x1004cbe3
xor al, al
jmp 0x1004cc5d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [eax + 4], edx
push 0
lea eax, [ebp - 8]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004cc13
cmp dword [ebp - 8], 4
je 0x1004cc17
xor al, al
jmp 0x1004cc5d
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x1004cc5b
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1004c980
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004cc57
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x1004cc5b
xor al, al
jmp 0x1004cc5d
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x1004cc70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 4]
sub edx, dword [ecx]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [edx], eax
cmp dword [ebp + 8], 0xffffffff
jne 0x1004cc9e
xor al, al
jmp 0x1004cccf
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1004ccc9
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 8]
je 0x1004cccd
xor al, al
jmp 0x1004cccf
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x10055b80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x101335a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, 1
push eax
mov ecx, dword [0x101335a0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10055e80
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8780
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push eax
lea ecx, [ebp - 0x14]
call fcn.10057680
mov dword [ebp - 4], 0
push 0x16
push str.SmdmFService2
lea ecx, [ebp - 0x14]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10057680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.100576f0
cmp eax, 0xffffffff
jne 0x10055f16
push 0x16
push str.SmdmFService
lea ecx, [ebp - 0x14]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100576b0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10055f65
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100569d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100569d0
jmp 0x10055fd7
cmp dword [ebp - 0x30], 4
je 0x10055fac
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x38]
call fcn.1004aeb0
mov ecx, dword [ebp - 0x38]
call fcn.10071640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100569d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100569d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1007dda4
mov esp, ebp
pop ebp
ret
Function at 0x10056080
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8780
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1012c610]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push eax
lea ecx, [ebp - 0x14]
call fcn.10057680
mov dword [ebp - 4], 0
push 0x16
push str.SmdmFService2
lea ecx, [ebp - 0x14]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.10057680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.100576f0
cmp eax, 0xffffffff
jne 0x10056116
push 0x16
push str.SmdmFService
lea ecx, [ebp - 0x14]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push eax
lea ecx, [ebp - 0x10]
call fcn.100576b0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10056165
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100569d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100569d0
jmp 0x100561d7
cmp dword [ebp - 0x30], 4
je 0x100561ac
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.100576d0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x38]
call fcn.1004aeb0
mov ecx, dword [ebp - 0x38]
call fcn.10074a20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100569d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100569d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1007dda4
mov esp, ebp
pop ebp
ret
Function at 0x1007a640
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x10133858]
test eax, eax
je 0x1007a6c8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x1007a6c7
mov ecx, dword [0x10133858]
test ecx, ecx
jne 0x1007a666
xor eax, eax
jmp 0x1007a66f
push ecx
call esi
mov ecx, dword [0x10133858]
cmp byte [eax + 0x18], 0
je 0x1007a6c7
test ecx, ecx
je 0x1007a6c7
push ecx
call esi
test eax, eax
je 0x1007a6c7
mov eax, dword [0x10133858]
test eax, eax
je 0x1007a68c
push eax
call esi
mov eax, dword [eax + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1007a6c7
mov eax, dword [0x10133858]
test eax, eax
je 0x1007a6a8
push eax
call esi
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x1011fd24
lea ecx, [esp + 0xb]
xor al, al
push ecx
mov byte [esp + 0xf], al
call fcn.1007f543
pop esi
pop ecx
ret