joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4231a0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49b638]
push ebx
xor ebx, ebx
cmp eax, 4
mov dword [ebp - 0x10], ebx
jae 0x4231bd
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x28], 0x220
mov dword [ebp - 0x24], 0x222
mov dword [ebp - 0x20], 0x221
mov dword [ebp - 0x1c], 0x223
mov dword [ebp - 0xc], ebx
xor esi, esi
mov ecx, dword [ebp + esi*4 - 0x28]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 0x20
push 2
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call edi
test eax, eax
je 0x42325a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push ecx
push edx
mov dword [ebp - 8], ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x423234
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 8], ebx
je 0x423267
mov eax, dword [ebp + esi*4 - 0x28]
add eax, 0xfffffde0
cmp eax, 3
pop edi
pop esi
ja case.default.0x423253
jmp dword [eax*4 + 0x4232a8]
push str.GetUserType._Failed_to_AllocateAndInitializeSid
call fcn.004113d0
add esp, 4
inc esi
cmp esi, 4
jb 0x4231e6
mov eax, dword [ebp - 0xc]
jmp 0x423247
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4233f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x42348a
cmp byte [eax], 0
je 0x42348a
lea ecx, [ebp - 8]
push ecx
push 0x2001f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42348a
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ebp + 8]
push edx
mov edx, dword [ebp - 8]
mov dword [esi], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.SGCountDown
push edx
mov dword [ebp - 0xc], 4
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x423476
cmp dword [ebp + 8], 4
jne 0x423476
mov eax, dword [ebp - 4]
push eax
push str.GetSGCountDown__SGCountDown___d_n
mov dword [esi], eax
call fcn.0040acd0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x423990
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423890
Function at 0x4239b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x4239de
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4239cf
mov ecx, dword [ebp + 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
pop ebp
ret

Function at 0x423be0
Capabilities:
Create thread

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
je 0x4241e5
test ecx, ecx
je 0x4241e5
push ebx
push edi
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, [ebp - 4]
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 0x4240dd
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push str.PATH
push eax
call ebx
test eax, eax
jne 0x4240dd
push str.GetACEPrbPath___ACE_PATH_is_OK
jmp 0x42418e
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push str.SoftwareATI
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x424119
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.PATH
push ecx
call ebx
test eax, eax
jne 0x424119
push str.GetACEPrbPath___ACE_PATH_NEW_is_OK
jmp 0x42418e
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push str.SoftwareWOW6432NodeATIACE
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x424155
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.PATH
push edx
call ebx
test eax, eax
jne 0x424155
push str.GetACEPrbPath___ACE_REMAP_PATH_is_OK
jmp 0x42418e
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareWOW6432NodeATI
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x4241d6
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
push str.PATH
push eax
call ebx
test eax, eax
jne 0x4241d6
push str.GetACEPrbPath___ACE_REMAP_PATH_NEW_is_OK
call fcn.0040acd0
add esp, 4
push 0x5c
push esi
call fcn.004616e0
add esp, 8
test eax, eax
je 0x4241b7
mov ecx, dword [ebp + 0xc]
lea edx, [esi + ecx - 1]
cmp eax, edx
jae 0x4241b7
mov cl, byte [eax + 1]
test cl, cl
je 0x4241c2
mov ecx, dword [ebp + 0xc]
lea edx, [esi + ecx - 1]
cmp eax, edx
jne 0x4241c5
mov byte [eax], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push str.GetACEPrbPath___Get_ACE_registry_key_failed_n
call fcn.0040acd0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
push esi
je 0x424298
mov dword [ebx], 0
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x424358
cmp byte [esi], 0
je 0x424358
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4242c1
sub eax, edx
cmp eax, 0x104
jbe 0x4242d6
mov eax, 0x103
push eax
lea eax, [ebp - 0x158]
push esi
push eax
call fcn.00460860
lea ecx, [ebp - 0x158]
push ecx
call fcn.0040acd0
xor edx, edx
xor eax, eax
mov dword [ebp - 0x10], edx
mov ecx, 0x11
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edx
add esp, 0x10
test eax, eax
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x54], 0x44
pop edi
je 0x42435e
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x158]
push ecx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x424385
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push str.FAILURE:_Failed_to_CreateProcess_for__s
call fcn.0040acd0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [ebp - 0x158]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x42434a
mov edx, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4243a7
test ebx, ebx
je 0x4243a7
mov eax, dword [ebp - 0x10]
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424910
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.00461300
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0044f910
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edx, dword [ebp + 0x14]
xor eax, eax
mov byte [ebp - 0x11c], bl
lea edi, [ebp - 0x11b]
mov dword [edx], ebx
mov dword [ebp - 0x10], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push 0x1000
lea ecx, [ebp - 0x211c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x424986
push str.g_pfnEnumProcesses:_Failed
call fcn.0040acd0
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
shr edi, 2
cmp edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ebx
jbe 0x424ae7
push esi
jmp 0x4249a0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x424ae6
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4249c8
mov edx, dword [ebp + ebx*4 - 0x211c]
push edx
call fcn.0044f910
cmp eax, dword [ebp + 0x1c]
jne 0x424aac
mov eax, dword [ebp + ebx*4 - 0x211c]
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 0x424aac
xor edx, edx
mov dword [ebp - 0x111c], edx
mov dword [ebp - 8], edx
xor eax, eax
lea edx, [ebp - 8]
push edx
mov ecx, 0x3ff
lea edi, [ebp - 0x1118]
rep stosd dword es:[edi], eax
push 0x1000
lea eax, [ebp - 0x111c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x424aa2
mov eax, dword [ebp - 8]
xor ebx, ebx
test eax, 0xfffffffc
jbe 0x424a9f
lea ecx, [ecx]
mov edx, dword [ebp + ebx*4 - 0x111c]
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x11c]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x11c]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x424a78
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00461fe2
add esp, 0xc
test eax, eax
je 0x424a85
mov eax, dword [ebp - 8]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x424a30
jmp 0x424a9f
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x424ac2
mov ebx, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
inc ebx
cmp ebx, edi
mov dword [ebp - 0xc], ebx
jb 0x4249a0
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.OpenProcessToken:_Failed
call fcn.0040acd0
mov eax, dword [ebp + 0x14]
add esp, 4
push esi
mov dword [eax], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424af0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [ebp + 8]
test eax, eax
je 0x424c38
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x424c38
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x424c38
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push edi
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x204]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
mov eax, dword [edx]
mov edi, 0x100
push eax
mov dword [ebp - 4], edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
je 0x424b97
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x204]
push edx
mov dword [ebp - 4], edi
call ebx
test eax, eax
jne 0x424b80
push str.IsSameUserByTokens:_GetUserName_failed
call fcn.0040acd0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x424b97
push str.Failed_to_revert_1st.1
call fcn.0040acd0
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call esi
test eax, eax
je 0x424bce
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 4], edi
call ebx
test eax, eax
je 0x424b6a
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x424bce
push str.Failed_to_revert_1st.2
call fcn.0040acd0
add esp, 4
lea eax, [ebp - 0x204]
xor esi, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424be0
sub eax, edx
push eax
lea ecx, [ebp - 0x204]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00461fe2
add esp, 0xc
test eax, eax
jne 0x424c09
mov esi, 1
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424c12
mov ecx, dword [ebp + 0x10]
sub eax, edx
push eax
lea eax, [ebp - 0x104]
push eax
push ecx
call fcn.00460860
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.IsSameUserByTokens:_bad_inout
call fcn.0040acd0
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x426170
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.00461300
mov esi, esp
xor ebx, ebx
cmp esi, ebx
jne 0x4261a0
push str.FAILURE:_Failed_at__alloca_for_paclKey
call fcn.0040acd0
add esp, 4
jmp 0x42632e
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.004260a0
add esp, 8
test eax, eax
je 0x42632e
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push edx
push eax
lea ecx, [ebp - 0x44]
push esi
push ecx
call fcn.00425fb0
add esp, 0x10
test eax, eax
je 0x42632e
lea edx, [ebp - 0x54c]
push ebx
push edx
call fcn.0040ace0
push eax
call fcn.0044db20
add esp, 0xc
cmp eax, 1
jne 0x42632e
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 0x42632e
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 0x426328
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 0x426328
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 0x42633e
push eax
call esi
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x426348
push eax
call esi
lea esp, [ebp - 0x558]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426530
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push edi
xor eax, eax
mov ecx, 0x41
lea edi, [ebp - 0x108]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push edi
call ebx
test eax, eax
jne 0x42656f
push str.ImpersonateCurrentLogontUser:_ImpersonateLoggedOnUser_to_get_username_failed
call fcn.0040acd0
add esp, 4
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x42659e
push str.ImpersonateCurrentLogontUser:_RevertToSelf_failed_after_get_username
call fcn.0040acd0
add esp, 4
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
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, [ebp - 0x108]
push edi
mov dword [esi], 0x20
mov dword [esi + 8], ecx
call dword [sym.imp.USERENV.dll_LoadUserProfileA]
test eax, eax
jne 0x4265f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_to_LoadUserProfile___d
call fcn.0040acd0
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call ebx
test eax, eax
jne 0x42661d
push str.ImpersonateCurrentLogontUser:_ImpersonateLoggedOnUser_to_get_username_failed
call fcn.0040acd0
mov edx, dword [esi + 0x1c]
add esp, 4
push edx
push edi
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426e90
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x80
lea edi, [ebp - 0x24c]
rep stosd dword es:[edi], eax
mov eax, dword [0x49a0e8]
xor esi, esi
test ah, 4
mov dword [ebp - 4], esi
je 0x426ec7
push str.StopGlobalService_is_called
call fcn.0040acd0
add esp, 4
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x426f09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24c]
push str.StopGlobalService._failed_to_open_SCM._err_d
push eax
call fcn.00460f01
lea ecx, [ebp - 0x24c]
push ecx
call fcn.004113d0
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x49b638], 7
mov eax, str.Ati_HotKey_Poller
jbe 0x426f1c
mov eax, str.Ati_External_Event_Utility
push 0x34
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x426f64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x24c]
push str.StopGlobalService._failed_to_OpenService._err_d
push edx
call fcn.00460f01
lea eax, [ebp - 0x24c]
push eax
call fcn.004113d0
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
xor eax, eax
mov ecx, 0x188
lea edi, [ebp - 0x86c]
rep stosd dword es:[edi], eax
push 1
mov ecx, 0xb
lea edi, [ebp - 0x4c]
lea edx, [ebp - 0x4c]
rep stosd dword es:[edi], eax
push edx
lea eax, [ebp - 0x86c]
push eax
push str..pipeExtEventPipe_Service
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x864], 0x40
call fcn.00409e90
add esp, 0x10
test eax, eax
jne 0x426fe0
mov eax, dword [0x49a0e8]
test ah, 4
je 0x427072
push str.StopGlobalService:_enable_stop_global_service_capability_fails__n
call fcn.0040acd0
add esp, 4
jmp 0x427072
cmp dword [ebp - 0x24], 2
jne 0x427072
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x427024
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x24c]
push str.StopGlobalService._failed_to_ControlService._err_d
push edx
call fcn.00460f01
lea eax, [ebp - 0x24c]
push eax
call fcn.004113d0
add esp, 0x10
jmp 0x427072
mov ecx, dword [ebp - 0x40]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x427054
mov eax, dword [0x49a0e8]
test ah, 4
je 0x427072
push str.StopGlobalService:_open_service_process_fails__n
call fcn.0040acd0
add esp, 4
jmp 0x427072
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x42706b
mov dword [ebp - 4], 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
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret