joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1066ba2
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d003b
call fcn.01077798
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_5
push 0x100d50c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010761f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010761d8
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1066c58
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d003b
call fcn.01077798
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_5
push 0x100549c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010761f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010761d8
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1066d0e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d005a
call fcn.01077798
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_5
xor ebx, ebx
push 0x100d518
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.010761f0
push 0x10042fc
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_5
push 0x100549c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.010761f0
call fcn.01050891
push eax
lea ecx, [ebp + 8]
call fcn.010761f0
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1066efb
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10d00c3
call fcn.01077798
sub esp, 0x218
mov eax, dword [0x10de03c]
and dword [ebp - 0x220], 0
cmp dword [ebp + 0xc], 0x270f
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x224], esi
jl 0x1066f86
push edi
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x100a544
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString_5
xor edi, edi
lea eax, [ebp - 0x21c]
inc edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
pop edi
jmp 0x1067022
call fcn.01021478
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_4
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push 0x100a438
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
call fcn.010761d8
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.01075aef
leave
ret 8
Function at 0x1068cf2
Capabilities:
Create directory

Disassembly:
mov eax, 0x10d0300
call fcn.01077798
sub esp, 0x18
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_4
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x1068e8f
cmp word [esi + 4], 0x5c
jne 0x1068e8f
mov edi, 0x1004528
push edi
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::operator_1
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010761f0
mov ebx, 0x1004204
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010761f0
mov ax, word [esi]
and word [ebp - 0x12], 0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x16], 0x24
mov word [ebp - 0x14], 0x5c
call fcn.010761f0
add esi, 6
push esi
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::operator_1
push 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::Left
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x1068e8f
push 0x5c
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Find_2
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1068e5e
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.010761d8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
inc esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1068e4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068e91
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010761f0
push 0x5c
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x1068de5
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.010761d8
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1068e8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068e91
xor esi, esi
inc esi
jmp 0x1068e91
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x106e6e8
Capabilities:
Start service

Disassembly:
mov eax, 0x10d0f49
call fcn.01077798
sub esp, 0xc
push edi
push 0x100f70c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_5
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x106e75b
push ebx
push esi
push 0x10
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
je 0x106e74f
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x106e74c
mov dword [ebp - 0x10], 1
jmp 0x106e74f
push ebx
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], edi
pop esi
pop ebx
jne 0x106e770
push 1
push edi
push 0x30
push edi
push 0x4ede
push 0xfa9
call fcn.01054be3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x106e791
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x100f70c
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString_5
xor esi, esi
push 4
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x106e7f8
push edi
push 4
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x106e7f4
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x106e7f1
xor eax, eax
cmp dword [ebp - 0x20], 4
sete al
mov dword [ebp - 8], eax
push edi
call esi
push ebx
call esi
pop edi
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x107083c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 1
mov edi, ecx
call sub.MFC42u.DLL_CWnd::UpdateData
xor eax, eax
xor esi, esi
cmp dword [edi + 0x68], esi
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10708a1
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x100f570
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret

Function at 0x1071d37
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x28]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x18], 0
je 0x1071dd7
test edi, edi
je 0x1071d9b
cmp edi, 0x102
jne 0x1071ddb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
lea edi, [esi + 0x30]
mov dword [ebp - 4], 0x40
mov eax, dword [edi]
test eax, eax
je 0x1071d93
mov ecx, dword [edi - 4]
add ecx, eax
cmp ecx, ebx
ja 0x1071d93
push dword [edi + 8]
call dword [edi + 4]
mov dword [edi - 4], ebx
add edi, 0x10
dec dword [ebp - 4]
jne 0x1071d7b
or dword [esi + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
lea edx, [esi + 0x30]
cmp dword [edx], 0
je 0x1071dc6
mov ecx, dword [edx - 4]
mov edi, dword [edx]
sub ecx, ebx
add ecx, edi
cmp ecx, edi
ja 0x1071dd1
cmp ecx, dword [esi + 0x28]
jae 0x1071dc6
mov dword [esi + 0x28], ecx
inc eax
add edx, 0x10
cmp eax, 0x40
jb 0x1071dac
jmp 0x1071ddb
and dword [esi + 0x28], 0
jmp 0x1071ddb
and dword [esi + 0x1c], 0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esi + 0x18], 0
jne 0x1071d42
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x107753f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10101d8
call fcn.01077994
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x107757a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x107757a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1077592
cmp eax, 0x20b
je 0x107757f
mov dword [ebp - 0x1c], edi
jmp 0x10775a6
cmp dword [ecx + 0x84], 0xe
jbe 0x107757a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10775a0
cmp dword [ecx + 0x74], 0xe
jbe 0x107757a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10eec68], 0xffffffff
or dword [0x10eec6c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10e6aec]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10e6ae8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10eec64], eax
call fcn.01047fea
cmp dword [0x10de040], edi
jne 0x1077603
push fcn.01047fea
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01077b85
push 0x10dc04c
push 0x10dc048
call sub.msvcrt.dll__initterm
mov eax, dword [0x10e6ae4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10e6ae0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x10dc044
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1077669
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1077723
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x10776b7
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1077685
cmp ax, 0x22
jne 0x1077672
cmp word [esi], 0x22
jne 0x1077690
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x107769e
cmp ax, 0x20
jbe 0x107768b
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x10776c4
movzx eax, word [ebp - 0x50]
jmp 0x10776c7
cmp word [esi], 0x20
jbe 0x1077690
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x10776b7
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.010cb48f
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x10776e8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x107771d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010779cf
ret
Function at 0x1077d5a
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1077db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x18], ebx
je 0x1077dc8
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 0x18], edi
je 0x1077ef8
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.NTMSAPI.dll_GetNtmsObjectSecurity
cmp eax, ebx
je 0x1077e04
cmp eax, 0x7a
jne 0x1077ef8
mov esi, dword [ebp - 0x30]
jmp 0x1077db9
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x14]
xor edi, edi
cmp word [eax + 4], bx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x1077ec2
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax]
sub ecx, ebx
je 0x1077e71
dec ecx
jne 0x1077ef8
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077ea8
cmp dword [ebp + 0x14], 2
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp + 0x18]
jne 0x1077e8f
or dword [esi + 4], eax
jmp 0x1077ea8
mov esi, eax
add eax, 8
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1077ea8
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], eax
jmp 0x1077e67
not eax
and dword [esi + 4], eax
jne 0x1077ea8
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 4]
inc edi
cmp edi, ecx
jb 0x1077e2c
cmp dword [ebp - 0x1c], ebx
je 0x1077ec2
cmp dword [ebp - 0x20], ebx
je 0x1077ed7
cmp dword [ebp + 0x14], 1
jne 0x1077ed7
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push dword [ebp - 0x18]
push 4
push 0xc
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call sub.NTMSAPI.dll_SetNtmsObjectSecurity
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
jmp 0x1077efb
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 0x14
Function at 0x107bc42
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10d1511
call fcn.01077798
sub esp, 0x78
push esi
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bcac
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0x100dc8c
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107bca3
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
jne 0x107bcdb
push esi
lea ecx, [ebp - 0x84]
call fcn.01069415
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], esi
call fcn.01054c69
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x107bced
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10d143f
call fcn.01077798
sub esp, 0xac
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x48]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push 0x80000001
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bd80
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov edi, 0x100add8
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107bd70
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107bd76
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp dword [ebp - 0x3c], esi
jne 0x107bdaf
push esi
lea ecx, [ebp - 0xb8]
call fcn.01054dd3
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 4], esi
call fcn.01054c69
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075aef
leave
ret
Function at 0x107bdc9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10d1459
call fcn.01077798
sub esp, 0xb8
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
xor esi, esi
lea eax, [ebp - 0x40]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push 0x80000001
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x107bead
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100a0bc
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
je 0x107be5c
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107be62
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
mov edi, 0x100c774
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0x28
call ebx
test eax, eax
pop ebx
je 0x107be9e
push 4
lea eax, [ebp - 0x44]
push eax
push 4
push esi
push edi
push dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x107bea4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
cmp dword [0x10e6c08], esi
jne 0x107bebb
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x44], esi
jne 0x107bec8
cmp dword [0x10e6c0c], esi
je 0x107bed3
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edi
call fcn.0107a38a
cmp dword [ebp - 0x3c], esi
jne 0x107bf3e
mov ecx, dword [ebp - 0x48]
call fcn.01079f6b
test al, al
je 0x107bf3e
push esi
lea ecx, [ebp - 0xc4]
call fcn.010500c0
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 4], esi
call fcn.01054c69
cmp eax, edi
jne 0x107bf2f
cmp dword [ebp - 0x58], esi
je 0x107bf10
mov ecx, dword [ebp - 0x48]
call fcn.0107a38a
cmp dword [ebp - 0x5c], esi
je 0x107bf2f
push 4
lea eax, [ebp - 0x3c]
push eax
push 4
push esi
push 0x100a0bc
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075aef
leave
ret 4
Function at 0x10813a4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0xf
push dword [0x10de044]
call sub.NTMSAPI.dll_OpenNtmsNotification
cmp eax, 0xffffffff
mov dword [0x10e6c20], eax
je 0x10813db
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push 0x107fa2c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10e6c18], eax
leave
ret