joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov edx, dword [ebp + 0xb0]
push ebx
mov ebx, dword [ebp + 0xb4]
push esi
push edi
xor eax, eax
mov ecx, 0x27
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, 0x27
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xb8]
mov dword [esp + 0xc], 3
mov dword [esp + 0x14], 1
mov dword [eax], 0
jmp 0x423150
mov eax, dword [esp + 0xc]
test eax, eax
je 0x423256
xor edx, edx
mov dword [esp + 0x10], edx
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa8]
test eax, eax
mov word [esp + 0x3c], 0x9c
jne 0x423192
lea ecx, [esp + 0x18]
push ecx
push edx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
jmp 0x4231a4
mov ecx, dword [ebp + 8]
push 2
lea eax, [esp + 0x1c]
push eax
push edx
push ecx
call dword [sym.imp.USER32.dll_EnumDisplaySettingsExA]
test eax, eax
je 0x42323b
mov edi, dword [ebp + 0x78]
mov esi, dword [ebp + 0x7c]
cmp edi, esi
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
jbe 0x4231ca
cmp ecx, eax
jb 0x4231d0
cmp edi, esi
jae 0x4231e4
cmp ecx, eax
jbe 0x4231e4
mov edx, ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
mov edx, dword [ebp + 0x74]
cmp dword [esp + 0x80], edx
jne 0x4232dd
cmp eax, esi
jne 0x4232dd
cmp ecx, edi
jne 0x4232dd
mov eax, dword [esp + 0x90]
mov ecx, dword [ebp + 0x84]
cmp eax, ecx
mov dword [esp + 0x14], 0
jne 0x4232b4
mov eax, dword [ebp + 0xb8]
mov dword [eax], 1
mov eax, dword [ebp + 0xac]
test eax, eax
je 0x4232dd
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0xb0]
dec ecx
test eax, eax
mov dword [esp + 0xc], ecx
jne 0x423150
mov eax, dword [ebp + 0xb8]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x68]
push ecx
mov ecx, dword [ebx + 0x78]
push eax
mov eax, dword [ebx + 0x70]
push ecx
mov ecx, dword [ebx + 0x6c]
push eax
mov eax, dword [edx + 0x68]
push ecx
mov ecx, dword [edx + 0x78]
push eax
mov eax, dword [edx + 0x70]
push ecx
mov ecx, dword [edx + 0x6c]
mov edx, dword [ebp + 0xac]
push eax
mov eax, dword [ebp + 0xa8]
push ecx
mov ecx, dword [ebp + 0x74]
push edx
mov edx, dword [ebp + 0x84]
push eax
mov eax, dword [ebp + 0x7c]
push ecx
mov ecx, dword [ebp + 0x78]
push edx
push eax
push ecx
push str.GetLowerAndHigherRefreshrateMode:_ModeIn_x_d__y_d__f_d__Bpp_d_nbRawMode_d_nbFindMatching_d_nModeLower_x_d__y_d__f_d__Bpp_d_nModeHigher_x_d__y_d__f_d__Bpp_d_nbMatchModeFound___d
call fcn.0040aab0
add esp, 0x40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jae 0x4232c5
mov ecx, dword [ebp + 0xb0]
cmp dword [ecx + 0x78], eax
jae 0x4232dd
mov edi, ecx
jmp 0x4232d2
mov ecx, dword [ebx + 0x78]
cmp ecx, eax
ja 0x4232d0
test ecx, ecx
jne 0x4232dd
mov edi, ebx
lea esi, [esp + 0x18]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
mov edx, eax
jmp 0x423162
Function at 0x423550
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
cmp dword [0x491098], 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], 0
jb 0x4234f0
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42348e
call esi
push eax
push str.MyExitWindows._Open_Process_Token_failed._err_d
call fcn.0040aab0
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call esi
test eax, eax
je 0x4234f0
call esi
push eax
push str.MyExitWindows._AdjustTokenPrivileges_failed_err_d
call fcn.0040aab0
mov ecx, dword [esp + 0xc]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x423527
call esi
push eax
push str.MyExitWindows._ExitWindowsEx_failed._err_d
call fcn.0040aab0
mov eax, dword [esp + 0xc]
add esp, 8
test eax, eax
je 0x423520
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x423536
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x14
ret
jmp 0x423440

Function at 0x423570
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x42359e
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x42358f
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
pop esi
ret

Function at 0x423cb0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x423ce6
push str.FAILURE:_EEUCreateThread:_Failed_to_create_thread.
call fcn.0040aab0
add esp, 4
mov eax, esi
pop esi
ret
push esi
push str.EEUCreateThread:_success_to_create_thread_0x_x.
call fcn.0040aab0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x423d17
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x423d17
push esi
push str.EEUCreateThread__Set_thread__0x_x__to_highest_priority
call fcn.0040aab0
add esp, 8
mov eax, esi
pop esi
ret
Function at 0x424350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], ebp
mov dword [esp + 0x18], 0
je 0x4244f6
test ebp, ebp
je 0x4244f6
push ebx
push edi
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push 0
push str.SoftwareATIACE
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x4243e6
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push 0
push str.PATH
push eax
call ebx
test eax, eax
jne 0x4243e6
push str.GetACEPrbPath___ACE_PATH_is_OK
jmp 0x4244a3
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
push str.SoftwareATI
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x424426
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push str.PATH
push ecx
call ebx
test eax, eax
jne 0x424426
push str.GetACEPrbPath___ACE_PATH_NEW_is_OK
jmp 0x4244a3
lea edx, [esp + 0x20]
push edx
push 0xf003f
push 0
push str.SoftwareWOW6432NodeATIACE
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x424466
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.PATH
push edx
call ebx
test eax, eax
jne 0x424466
push str.GetACEPrbPath___ACE_REMAP_PATH_is_OK
jmp 0x4244a3
lea eax, [esp + 0x20]
push eax
push 0xf003f
push 0
push str.SoftwareWOW6432NodeATI
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4244e7
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x30]
push str.PATH
push eax
call ebx
test eax, eax
jne 0x4244e7
push str.GetACEPrbPath___ACE_REMAP_PATH_NEW_is_OK
call fcn.0040aab0
add esp, 4
push 0x5c
push esi
call fcn.0045f340
add esp, 8
test eax, eax
je 0x4244c9
lea ecx, [esi + ebp - 1]
cmp eax, ecx
jae 0x4244c9
mov cl, byte [eax + 1]
test cl, cl
je 0x4244d1
lea edx, [esi + ebp - 1]
cmp eax, edx
jne 0x4244d4
mov byte [eax], 0
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret
push str.GetACEPrbPath___Get_ACE_registry_key_failed_n
call fcn.0040aab0
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
add esp, 8
ret
Function at 0x424580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
push esi
push edi
je 0x42459c
mov dword [ebx], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42465d
cmp byte [esi], 0
je 0x42465d
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4245c2
sub eax, edx
cmp eax, 0x104
jbe 0x4245d7
mov eax, 0x103
push eax
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.0045e560
lea ecx, [esp + 0x74]
push ecx
call fcn.0040aab0
xor edx, edx
xor eax, eax
mov dword [esp + 0x20], edx
mov ecx, 0x11
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], edx
add esp, 0x10
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x44
je 0x424664
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x42468e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.FAILURE:_Failed_to_CreateProcess_for__s
call fcn.0040aab0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42464f
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4246b3
test ebx, ebx
je 0x4246b3
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424c90
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2124
call fcn.0045f430
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0044ea50
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edx, dword [ebp + 0x14]
xor eax, eax
mov byte [esp + 0x28], bl
lea edi, [esp + 0x29]
mov dword [edx], ebx
mov dword [esp + 0x1c], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push 0x1000
lea ecx, [esp + 0x1138]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x424d0b
push str.g_pfnEnumProcesses:_Failed
call fcn.0040aab0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x20]
shr edi, 2
cmp edi, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ebx
jbe 0x424e77
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x424e77
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x424d4c
mov edx, dword [esp + ebx*4 + 0x1130]
push edx
call fcn.0044ea50
cmp eax, dword [ebp + 0x1c]
jne 0x424e3a
mov eax, dword [esp + ebx*4 + 0x1130]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x424e3a
xor edx, edx
mov dword [esp + 0x130], edx
mov dword [esp + 0x14], edx
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov ecx, 0x3ff
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [esp + 0x138]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x424e2f
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, 0xfffffffc
jbe 0x424e2b
jmp 0x424dc0
mov edx, dword [esp + ebx*4 + 0x130]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x28]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x424e02
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.0045fc11
add esp, 0xc
test eax, eax
je 0x424e10
mov eax, dword [esp + 0x14]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x424dc0
jmp 0x424e2b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x424e52
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x24]
inc ebx
cmp ebx, edi
mov dword [esp + 0x18], ebx
jb 0x424d22
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.OpenProcessToken:_Failed
call fcn.0040aab0
mov eax, dword [ebp + 0x14]
add esp, 4
push esi
mov dword [eax], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424e90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x204
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
push edi
je 0x424fd4
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x424fd4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x424fd4
mov esi, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov edi, 0x100
push eax
mov dword [esp + 0x10], edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
je 0x424f27
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x114]
push edx
mov dword [esp + 0x14], edi
call ebx
test eax, eax
je 0x424f47
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x424f27
push str.Failed_to_revert_1st.1
call fcn.0040aab0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call esi
test eax, eax
je 0x424f74
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], edi
call ebx
test eax, eax
jne 0x424f5d
push str.IsSameUserByTokens:_GetUserName_failed
call fcn.0040aab0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x424f74
push str.Failed_to_revert_1st.2
call fcn.0040aab0
add esp, 4
lea eax, [esp + 0x110]
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424f80
sub eax, edx
push eax
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0045fc11
add esp, 0xc
test eax, eax
jne 0x424fa8
mov esi, 1
lea eax, [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424fb0
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0045e560
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.IsSameUserByTokens:_bad_inout
call fcn.0040aab0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426900
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
push ebx
push esi
push edi
mov eax, 0x400
call fcn.0045f430
mov esi, esp
xor ebx, ebx
cmp esi, ebx
jne 0x426930
push str.FAILURE:_Failed_at__alloca_for_paclKey
call fcn.0040aab0
add esp, 4
jmp 0x426abe
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00426830
add esp, 8
test eax, eax
je 0x426abe
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push edx
push eax
lea ecx, [ebp - 0x44]
push esi
push ecx
call fcn.00426740
add esp, 0x10
test eax, eax
je 0x426abe
lea edx, [ebp - 0x54c]
push ebx
push edx
call fcn.0040aac0
push eax
call fcn.0044cd90
add esp, 0xc
cmp eax, 1
jne 0x426abe
lea eax, [ebp - 8]
push eax
push 0x2001f
push ebx
lea ecx, [ebp - 0x548]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426abe
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push str.DefaultMode
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x426ab8
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push str.REG_SZ
push ebx
lea ecx, [ebp - 0x548]
push ecx
push VariantClear
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x426ab8
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20]
push edx
push 4
push ebx
push str.DefaultSettings.BitsPerPel
push eax
mov dword [ebp - 0x2c], ebx
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push ebx
push str.DefaultSettings.Flags
push edx
call esi
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push ebx
push str.DefaultSettings.VRefresh
push ecx
call esi
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push ebx
push str.DefaultSettings.XPanning
push eax
call esi
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0x28]
push ecx
push 4
push ebx
push str.DefaultSettings.XResolution
push edx
call esi
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
push str.DefaultSettings.YPanning
push ecx
call esi
mov eax, dword [ebp - 4]
push 4
lea edx, [ebp - 0x24]
push edx
push 4
push ebx
push str.DefaultSettings.YResolution
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call edi
mov edx, dword [ebp - 8]
push str.DefaultMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 8]
push eax
call edi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
je 0x426ace
push eax
call esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x426ad8
push eax
call esi
lea esp, [ebp - 0x558]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426cc0
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push esi
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push edi
call ebx
test eax, eax
jne 0x426d02
push str.ImpersonateCurrentLogontUser:_ImpersonateLoggedOnUser_to_get_username_failed
call fcn.0040aab0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x426d31
push str.ImpersonateCurrentLogontUser:_RevertToSelf_failed_after_get_username
call fcn.0040aab0
add esp, 4
mov esi, dword [ebp + 0xc]
xor edx, edx
mov eax, esi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
push esi
mov dword [eax + 0x1c], edx
lea ecx, [esp + 0x14]
push edi
mov dword [esi], 0x20
mov dword [esi + 8], ecx
call dword [sym.imp.USERENV.dll_LoadUserProfileA]
test eax, eax
jne 0x426d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_LoadUserProfile___d
call fcn.0040aab0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call ebx
test eax, eax
jne 0x426dad
push str.ImpersonateCurrentLogontUser:_ImpersonateLoggedOnUser_to_get_username_failed
call fcn.0040aab0
mov edx, dword [esi + 0x1c]
add esp, 4
push edx
push edi
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4277f0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x868
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [0x4900e8]
xor ebp, ebp
test ah, 4
je 0x427826
push str.StopGlobalService_is_called
call fcn.0040aab0
add esp, 4
push 4
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, ebp
jne 0x427863
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x5c]
push str.StopGlobalService._failed_to_open_SCM._err_d
push eax
call fcn.0045ebd9
lea ecx, [esp + 0x64]
push ecx
call fcn.00411050
add esp, 0x10
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x491098], 7
mov eax, str.Ati_HotKey_Poller
jbe 0x427876
mov eax, str.Ati_External_Event_Utility
push 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x4278ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x5c]
push str.StopGlobalService._failed_to_OpenService._err_d
push edx
call fcn.0045ebd9
lea eax, [esp + 0x64]
push eax
call fcn.00411050
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
xor eax, eax
mov ecx, 0x188
lea edi, [esp + 0x258]
rep stosd dword es:[edi], eax
push 1
mov ecx, 0xb
lea edi, [esp + 0x30]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x260]
push eax
push str..pipeExtEventPipe_Service
mov dword [esp + 0x20], ebp
mov dword [esp + 0x270], 0x40
call fcn.00409bf0
add esp, 0x10
test eax, eax
jne 0x42793e
mov eax, dword [0x4900e8]
test ah, 4
je 0x4279cc
push str.StopGlobalService:_enable_stop_global_service_capability_fails__n
call fcn.0040aab0
add esp, 4
jmp 0x4279cc
cmp dword [esp + 0x54], 2
jne 0x4279cc
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x427980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x5c]
push str.StopGlobalService._failed_to_ControlService._err_d
push edx
call fcn.0045ebd9
lea eax, [esp + 0x64]
push eax
call fcn.00411050
add esp, 0x10
jmp 0x4279cc
mov ecx, dword [esp + 0x38]
push ecx
push ebp
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebp
jne 0x4279b0
mov eax, dword [0x4900e8]
test ah, 4
je 0x4279cc
push str.StopGlobalService:_open_service_process_fails__n
call fcn.0040aab0
add esp, 4
jmp 0x4279cc
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4279c5
mov ebp, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret