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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
cmp dword [esp + 0x30], esi
je 0x1000981a
cmp dword [esp + 0x34], esi
je 0x1000981a
push 0x200
call fcn.1000f0e1
mov ebx, eax
add esp, 4
cmp ebx, esi
jne 0x10009825
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x14]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009984
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x1000991a
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1000987d
mov eax, 0x80000002
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100098f3
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea eax, [ebx + 4]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100098e8
mov eax, ebx
mov dword [ebx], 0x5c2e5c5c
call fcn.10009750
cmp edx, edi
jb 0x100098e8
ja 0x100098e2
cmp eax, dword [esp + 0x24]
jbe 0x100098e8
mov dword [esp + 0x24], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
je 0x10009870
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
ja 0x10009930
cmp dword [esp + 0x24], 0
jbe 0x10009984
mov ecx, dword [esp + 0x24]
push edi
push ecx
push str._012I64X
mov ecx, 0x200
call fcn.10007560
add esp, 0xc
test eax, eax
jne 0x10009969
push ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.1000e576
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push ebx
push edx
push str.MAC:
call fcn.10009390
add esp, 0xc
mov dword [esp + 0x18], eax
push ebx
call fcn.1000e576
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1000c740
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x1001c03b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100651b0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x100683c8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.1000ecf5
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x1000c92d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000c7de
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.1000e610
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.1000c430
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x1000c845
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x100622e0
push eax
call fcn.1000e967
add esp, 0xc
cmp eax, 1
jne 0x1000c845
mov eax, dword [ebp - 0x14]
mov dword [0x100683c8], eax
jmp 0x1000c915
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1000c85f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1000c873
push ebx
push esi
call fcn.1000cb90
jmp 0x1000c875
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x100683c8], eax
test eax, eax
jne 0x1000c897
push 0x100630d8
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.1000e0db
push eax
lea edx, [ebp + 0x84]
push 0x100622e0
push edx
mov edi, 1
call fcn.1000edc8
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.1000c570
test eax, eax
jne 0x1000c90e
push 0x100630d8
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.1000e0db
call fcn.1000c610
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x100683c8]
test esi, esi
je 0x1000c8ff
call fcn.1000cc70
mov dword [0x100683c8], 0
jmp 0x1000c906
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1000c90c
ret
mov eax, dword [0x100683c8]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x1000c92d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100683c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.1000d1df
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x1000c960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bfb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100651b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x100683c8]
xor edi, edi
cmp ecx, edi
jne 0x1000c9ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1000c9b8
mov dword [ebp - 0x14], edi
jmp 0x1000c9d0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1000ca66
mov ecx, dword [0x100683c8]
mov eax, dword [ecx]
cmp eax, edi
je 0x1000c997
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000c997
mov ebx, 0x100683c8
mov dword [ebp - 4], edi
call fcn.1000ca80
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1000ca0e
push 0x100630d8
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1000e0db
mov ecx, dword [0x100683c8]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1000ca28
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x1000ca52
push 0x100630d8
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1000e0db
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000ca49
call fcn.1000cd90
mov eax, 0x1000ca4f
ret
mov eax, dword [0x100683c8]
mov eax, dword [eax]
test eax, eax
je 0x1000ca64
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ca80
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1000caad
xor ecx, ecx
jmp 0x1000cab9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1000cb6d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1000cae0
mov dword [esp + 0xc], esi
jmp 0x1000cb40
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1000cb39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000cb2c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1000cb40
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000cb40
push 0x100622e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000cb40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1000cb63
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1000cad2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1000cb81
mov ecx, dword [ebx]
add ecx, 8
call fcn.1000ccc0
test eax, eax
je 0x1000cb81
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1000cb90
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1001c00b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100651b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1000e610
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000cc28
push 0x100630d8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1000e0db
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000d1df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100651b0]
jne 0x1000d1e9
repz ret
jmp fcn.1000f54d
Function at 0x1001867d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000f7fa
and dword [ebp - 4], 0
cmp dword [0x10067280], 0
mov ebx, eax
jne 0x1001872e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100187df
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100187df
push eax
call fcn.1000f788
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10067280], eax
call esi
push eax
call fcn.1000f788
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10067284], eax
call esi
push eax
call fcn.1000f788
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10067288], eax
call esi
push eax
call fcn.1000f788
pop ecx
mov dword [0x10067290], eax
test eax, eax
je 0x1001872e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f788
pop ecx
mov dword [0x1006728c], eax
mov eax, dword [0x1006728c]
cmp eax, ebx
je 0x10018786
cmp dword [0x10067290], ebx
je 0x10018786
push eax
call fcn.1000f803
push dword [0x10067290]
mov esi, eax
call fcn.1000f803
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10018786
test edi, edi
je 0x10018786
call esi
test eax, eax
je 0x1001877d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001877d
test byte [ebp - 0xc], 1
jne 0x10018786
or dword [ebp + 0x10], 0x200000
jmp 0x100187bf
mov eax, dword [0x10067284]
cmp eax, ebx
je 0x100187bf
push eax
call fcn.1000f803
pop ecx
test eax, eax
je 0x100187bf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100187bf
mov eax, dword [0x10067288]
cmp eax, ebx
je 0x100187bf
push eax
call fcn.1000f803
pop ecx
test eax, eax
je 0x100187bf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10067280]
call fcn.1000f803
pop ecx
test eax, eax
je 0x100187df
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100187e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f890
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x41f8f0
mov edx, dword [ebp - 4]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f8c4
mov ecx, dword [ebp + 8]
sub eax, esi
sar eax, 1
push eax
push edx
call int.00412b50
mov edx, dword [ebp - 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41f9f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4ba920]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0041d650
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fb05
push esi
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41fb04
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x20c], ax
call fcn.00461130
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
push 4
lea eax, [ebp - 0x418]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x41faa3
mov edx, dword [ebp - 0x418]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41faa3
lea eax, [ebp - 0x20c]
jmp 0x41faf5
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0040b370
test eax, eax
je 0x41fafd
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.00461130
push 0x104
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call int.0041a8b0
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.0041e630
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor ecx, ecx
cmp ecx, dword [edi + 0x14]
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
pop edi
call fcn.0046111a
mov esp, ebp
pop ebp
ret
Function at 0x420e10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491d56
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ba920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x220], 0
call fcn.00461130
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x420e87
push 0x4a8660
mov ecx, edi
call fcn.00420460
jmp 0x420f59
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00420460
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax - 0xc]
push 1
dec eax
push eax
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0041d4d0
mov eax, dword [eax]
push 0x498208
push eax
call fcn.00462df2
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x220]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420efa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x21c]
test bl, bl
je 0x420f0d
push 0xc
push str.explorer.exe
jmp 0x420f14
push 0xd
push 0x498440
call fcn.0041d8c0
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call int.0041b7c0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420f59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046111a
mov esp, ebp
pop ebp
ret

Function at 0x427080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ba920]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.00461130
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x498898
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42713a
mov eax, dword [ebp - 0x214]
shr eax, 1
dec eax
cmp eax, 0x104
jae 0x42713a
cmp word [ebp + eax*2 - 0x20c], 0x5c
je 0x427132
cmp eax, 0x103
jae 0x42713a
mov ecx, 0x5c
xor edx, edx
mov word [ebp + eax*2 - 0x20c], cx
mov word [ebp + eax*2 - 0x20a], dx
lea eax, [ebp - 0x20c]
jmp 0x42713f
mov eax, 0x4a8660
push eax
mov ecx, esi
call fcn.00420460
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046111a
mov esp, ebp
pop ebp
ret
Function at 0x429ad0
Capabilities:
Reference absolute stream path on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4928a6
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x4ba920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x7fe
xor esi, esi
lea edx, [ebp - 0x80e]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x818], eax
mov word [ebp - 0x810], cx
call fcn.00461130
add esp, 0xc
mov dword [ebp - 0x828], str..ROOT_securitycenter:AntiVirusProduct.instanceGuid__s_
mov byte [ebp - 0x824], 0
mov dword [ebp - 0x820], str..ROOT_securitycenter2:AntiVirusProduct.instanceGuid__s_
mov byte [ebp - 0x81c], 1
xor ebx, ebx
mov dword [ebp - 0x814], esi
movzx eax, byte [ebp + ebx*8 - 0x824]
push eax
lea ecx, [ebp - 0x814]
push ecx
mov dword [ebp - 4], esi
call fcn.00429970
add esp, 8
test al, al
je 0x429bce
mov edx, dword [ebp - 0x818]
mov eax, dword [ebp + ebx*8 - 0x828]
push edx
push eax
lea ecx, [ebp - 0x810]
push 0x800
push ecx
call fcn.00428b90
mov edi, dword [ebp - 0x814]
add esp, 0x10
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x82c], esi
test esi, esi
je 0x429c0f
mov eax, dword [edi]
mov ecx, dword [eax + 0x40]
push 0
push 0
push 0
push esi
push edi
mov byte [ebp - 4], 1
call ecx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov eax, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x429be7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
inc ebx
cmp ebx, 2
jb 0x429b4b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046111a
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0040b9f0
int3
Function at 0x429c20
Capabilities:
Reference absolute stream path on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4928e6
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x4ba920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x7fe
xor esi, esi
lea edx, [ebp - 0x80e]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x818], eax
mov word [ebp - 0x810], cx
call fcn.00461130
add esp, 0xc
mov dword [ebp - 0x828], str..ROOT_securitycenter:AntiSpywareProduct.instanceGuid__s_
mov byte [ebp - 0x824], 0
mov dword [ebp - 0x820], str..ROOT_securitycenter2:AntiSpywareProduct.instanceGuid__s_
mov byte [ebp - 0x81c], 1
xor ebx, ebx
mov dword [ebp - 0x814], esi
movzx eax, byte [ebp + ebx*8 - 0x824]
push eax
lea ecx, [ebp - 0x814]
push ecx
mov dword [ebp - 4], esi
call fcn.00429970
add esp, 8
test al, al
je 0x429d1e
mov edx, dword [ebp - 0x818]
mov eax, dword [ebp + ebx*8 - 0x828]
push edx
push eax
lea ecx, [ebp - 0x810]
push 0x800
push ecx
call fcn.00428b90
mov edi, dword [ebp - 0x814]
add esp, 0x10
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x82c], esi
test esi, esi
je 0x429d5f
mov eax, dword [edi]
mov ecx, dword [eax + 0x40]
push 0
push 0
push 0
push esi
push edi
mov byte [ebp - 4], 1
call ecx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
mov eax, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x429d37
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
inc ebx
cmp ebx, 2
jb 0x429c9b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046111a
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0040b9f0
int3
Function at 0x42ae40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x42add0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42ae6f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42b220
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4ba920]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00461130
xor edx, edx
push 0x40e
push edx
lea eax, [ebp - 0x61a]
push eax
mov word [ebp - 0x61c], dx
call fcn.00461130
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42b31d
push edi
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x61c]
push 0x4994b0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 3
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x42b31c
push esi
push 0
push 0
push 0x4a8660
push 0
push 0x4994a8
lea ecx, [ebp - 0x61c]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
push str.QHProtected
push str.QHProtected
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
je 0x42b30b
lea edx, [ebp - 0x620]
push edx
push 1
push esi
mov dword [ebp - 0x620], 0x499468
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x42b31b
push esi
call edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046111a
mov esp, ebp
pop ebp
ret