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

Disassembly:
sub esp, 0x144
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._stopservice
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x144
ret

Function at 0x403e70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x124], eax
push str.uvnc_service
push str.net_stop___s_
lea eax, [esp + 8]
push 0x124
push eax
call fcn.0045e1bd
add esp, 0x10
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x128
ret

Function at 0x403ed0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._startservice
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x144
ret

Function at 0x403f60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x124], eax
push str.uvnc_service
push str.net_start___s_
lea eax, [esp + 8]
push 0x124
push eax
call fcn.0045e1bd
add esp, 0x10
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x128
ret

Function at 0x403fc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._install
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x144
ret
Function at 0x404050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._uninstall
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x144
ret

Function at 0x4040e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._securityeditor
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x144
ret
Function at 0x404cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404d3f
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x4a77c0
push eax
push eax
push str.WallpaperStyle
push edx
mov dword [esp + 0x1c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x404d50
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404da4
mov eax, 0x4a77c0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404d78
mov ecx, dword [esp]
sub eax, edx
push eax
push 0x4a77c0
push 1
push 0
push str.WallpaperStyle
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x405070
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x405164
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4050d0
lea edx, [esp + 0xc]
push 0x5c
push edx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x4051c1
mov byte [eax], 0
lea eax, [esp + 0xc]
mov byte [ebx], 0
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4050e0
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4050f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405110
mov ax, word [0x47630c]
mov word [edi], ax
dec ebx
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x405122
mov ecx, dword [str.ultravnc.ini]
mov dword [ebx], ecx
mov edx, dword [0x47b3c0]
mov dword [ebx + 4], edx
mov eax, dword [0x47b3c4]
mov dword [ebx + 8], eax
mov cl, byte [0x47b3c8]
pop edi
pop esi
mov byte [ebx + 0xc], cl
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x108
ret
lea eax, [esp + 0xc]
mov byte [ebx], 0
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405170
mov edi, ebx
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405180
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec ebx
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x405197
mov edx, dword [str.ultravnc.ini]
mov dword [ebx], edx
mov eax, dword [0x47b3c0]
mov dword [ebx + 4], eax
mov ecx, dword [0x47b3c4]
mov dword [ebx + 8], ecx
mov dl, byte [0x47b3c8]
mov byte [ebx + 0xc], dl
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045dc1f
add esp, 0x108
ret
Function at 0x4051e0
Capabilities:
Create process on windows
Find taskbar

Disassembly:
sub esp, 0x27c
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x278], eax
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x104
lea eax, [esp + 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x405220
mov cl, byte [esp + eax + 0x178]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x405220
lea eax, [esp + 0x70]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405235
mov ecx, dword [str.__settingshelper]
mov edx, dword [0x47b3d0]
mov dword [eax], ecx
mov ecx, dword [0x47b3d4]
mov dword [eax + 4], edx
mov edx, dword [0x47b3d8]
mov dword [eax + 8], ecx
mov cl, byte [0x47b3dc]
lea edi, [esp + 0x70]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405270
mov dx, word [0x47afcc]
mov eax, ebp
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405286
lea edi, [esp + 0x70]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405296
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x44
lea eax, [esp + 0x2c]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], 0
call fcn.00463710
xor eax, eax
add esp, 0xc
push eax
mov ecx, 5
push str.Shell_TrayWnd
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x60], cx
mov dword [esp + 0x38], str.Winsta0Default
mov dword [esp + 0x30], 0x44
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40539c
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40539c
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40539c
lea eax, [esp + 0x10]
push eax
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40538d
push eax
call esi
cmp edi, 0x522
jne 0x40539c
mov ecx, ebp
call fcn.00402c10
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045dc1f
add esp, 0x27c
ret 4
Function at 0x4054c0
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x4054db
push str.34F673E0_878F_11D5_B98A_00B0D07B8C7C
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x405502
push 0
push 0
push 0
push 6
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4054fc
xor bl, bl
mov dword [esi + 0x109b4], eax
mov al, bl
pop ebx
ret
Function at 0x4069f0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4721b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
xor esi, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.0045bcb0
mov ecx, dword [esp + 0x38]
mov dword [edi], eax
mov ecx, dword [ecx]
lea ebx, [esp + 0x14]
call fcn.0045c7d0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], esi
mov eax, dword [edi]
mov ecx, dword [edx]
mov esi, eax
mov dword [esp + 0x10], 1
call fcn.0045bf10
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x406a80
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4721b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.0045bcb0
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [ecx]
lea ebx, [esp + 0x14]
call fcn.0045c7d0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], edi
mov eax, dword [esi]
mov ebx, dword [edx]
mov ecx, eax
mov dword [esp + 0x10], 1
call fcn.0045c7d0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x406b10
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4721b9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
call fcn.0045bcb0
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [ecx]
lea ebx, [esp + 0x14]
call fcn.0045c7d0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], edi
mov ecx, dword [esi]
mov eax, dword [edx]
mov edx, ecx
mov dword [esp + 0x10], 1
call fcn.0045cb20
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
Function at 0x407630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472748
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
lea esi, [ecx + 4]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.00406a80
mov ecx, eax
xor eax, eax
mov dword [esp + 0x28], eax
mov edx, dword [esi]
mov dword [edx + 4], eax
mov ecx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [esi]
lea ebx, [esp + 0xc]
call fcn.0045c7d0
mov eax, dword [esp + 0x30]
mov esi, eax
mov eax, dword [eax + 8]
push eax
call fcn.0045ecd6
push esi
call fcn.0045ecd6
add esp, 8
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x408130
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472b68
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x48a348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0x18]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0xc], eax
jbe 0x408175
call fcn.0045e4f1
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x408190
call fcn.0045e4f1
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00408320
mov eax, dword [esi + 0x48]
lea ebx, [esi + 0x38]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0xc], eax
jbe 0x4081bc
call fcn.0045e4f1
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x4081d7
call fcn.0045e4f1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00408320
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x4081fc
call fcn.0045e4f1
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x408217
call fcn.0045e4f1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
push ebx
push edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
mov ebx, esi
call fcn.00408320
mov ecx, dword [edi + 0x10]
lea ebx, [edi + 4]
push ebx
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0xc]
push ecx
mov dword [esi + 0x34], edx
call fcn.00406b10
mov dword [esp + 0x30], 0
cmp dword [edi + 0x14], 0
setle cl
cmp dword [edi + 0x10], 0
setle dl
movzx eax, dl
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x18]
call fcn.00406ba0
push 1
lea eax, [esi + 0x38]
push eax
mov cl, 1
mov eax, ebx
call fcn.00406ba0
push 1
push esi
lea eax, [edi + 8]
mov cl, 1
call fcn.00406ba0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
push ecx
mov esi, eax
call fcn.0045ecd6
add esp, 4
push esi
call fcn.0045ecd6
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4083d0
Capabilities:
Find taskbar

Disassembly:
push ecx
mov eax, dword [0x48b140]
cmp eax, 4
je 0x40846f
cmp eax, 5
je 0x40846f
cmp dword [0x4a7820], 0
jne 0x408411
push 0x48dcf8
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
sbb eax, eax
and eax, 2
pop ecx
ret
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x408426
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push ecx
push eax
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp]
test eax, eax
je 0x408422
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x48dcfc], eax
test eax, eax
je 0x408422
push 0x48dcf8
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, 2
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x408480
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48a348]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [0x48dcfc], esi
mov dword [0x48dcf8], esi
call fcn.004083d0
cmp eax, 1
jne 0x4084c8
mov al, al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045dc1f
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x48dcf8]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 2
push ecx
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call ebx
test eax, eax
je 0x408511
xor al, al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045dc1f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4084fb
mov edi, dword [ebp - 0x18]
mov eax, edi
call fcn.00465c00
mov esi, esp
test esi, esi
je 0x4084fb
mov eax, dword [0x48dcf8]
lea edx, [ebp - 0x18]
push edx
push edi
push esi
push 2
push eax
call ebx
test eax, eax
je 0x4084fb
xor edi, edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4084fb
mov dword [ebp - 0x14], edi
cmp dword [esi], edi
jbe 0x408592
lea ebx, [esi + 4]
lea ecx, [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40858b
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x408570
jmp 0x408592
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x48dcfc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4085ae
push eax
call esi
mov eax, dword [0x48dcf8]
test eax, eax
je 0x4085ba
push eax
call esi
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045dc1f
mov esp, ebp
pop ebp
ret
Function at 0x4085e0
Capabilities:
Check os version
Read .ini file

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x3a4], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
sub eax, 2
mov byte [0x4a77ca], 0
jne 0x40862b
cmp dword [esp + 8], 5
jne 0x40862b
cmp dword [esp + 0xc], eax
jne 0x40862b
mov byte [0x4a77ca], 1
push 0x104
lea ecx, [esp + 0x1a0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [esp + eax + 0x19c]
mov byte [eax + 0x48dd00], cl
inc eax
test cl, cl
jne 0x408642
push esi
push edi
mov edi, 0x48dd00
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408660
mov dx, word [0x47b4d8]
mov eax, 0x48df38
mov word [edi], dx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408680
mov edi, 0x48dd00
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408691
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x48dd00
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4086b0
mov ecx, dword [str._run]
mov dl, byte [0x47b4e0]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0xa0]
push eax
call fcn.00404eb0
mov edx, dword [0x4a77e0]
lea ecx, [esp + 0xa0]
push ecx
push edx
push str.kickrdp
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x4a77e0], eax
lea eax, [esp + 0xa0]
push eax
push pe_nt_image_headers32
lea ecx, [esp + 0x2b0]
push ecx
push 0x47b37f
push str.service_commandline
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x2a8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408730
sub eax, edx
je 0x4087dd
xor eax, eax
mov cl, byte [esp + eax + 0x1a4]
mov byte [eax + 0x48dd00], cl
inc eax
test cl, cl
jne 0x408741
mov edi, 0x48dd00
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408760
mov dx, word [0x47b4d8]
lea eax, [esp + 0x2a8]
mov word [edi], dx
mov ecx, eax
jmp 0x408780
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408780
mov edi, 0x48dd00
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408791
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x48dd00
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4087b0
mov ecx, dword [str.__service_run]
mov edx, dword [0x47b504]
mov dword [eax], ecx
mov ecx, dword [0x47b508]
mov dword [eax + 4], edx
mov dx, word [0x47b50c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0045dc1f
add esp, 0x3a8
ret