joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425890
Capabilities:
Enumerate processes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2cc
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
lea ecx, [esp + 0x140]
call fcn.00426250
push 0x569fe8
lea eax, [esp + 0x24c]
push 0x81
push eax
call fcn.0051f3ce
add esp, 0xc
lea eax, [esp + 0x140]
push eax
push 0x100
lea eax, [esp + 0x250]
push eax
push 0x569fe8
push str.alternate_shell
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x124
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0
push 0
push eax
call fcn.0051b450
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0x1000
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42594e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov edi, dword [esp + 0x10]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x42597e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x425995
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax + eax]
lea eax, [esp + 0x3c]
push str.explorer.exe
push eax
call fcn.0052c8bc
add esp, 8
test eax, eax
je 0x4259e4
lea ecx, [esp + 0x248]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4259c0
sub ecx, edx
je 0x425a05
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0052c8bc
add esp, 8
test eax, eax
jne 0x425a05
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x425a05
cmp dword [esp + 0x10], edi
je 0x425a31
lea eax, [esp + 0x18]
push eax
push esi
call ebx
test eax, eax
jne 0x4259a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2d4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x425b90
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5be08c]
sub esp, 0xc
cmp dword [eax + 0xe20], 0
push esi
mov esi, ecx
je 0x425c10
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x425c59
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
cmp dword [ebp - 4], 0
jne 0x425c10
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 0x569fe8
push 0x101
push esi
call fcn.0051f3ce
add esp, 0xc
mov ecx, 0x569fe8
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x425c60
test dl, dl
je 0x425c0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x425c60
add eax, 2
add ecx, 2
test dl, dl
jne 0x425bf0
xor eax, eax
jmp 0x425c65
mov ecx, esi
mov dword [ebp - 8], 0x101
call fcn.00425a60
test al, al
jne 0x425be5
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x425be5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
je 0x425bd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.processHelper::GetCurrentUser_:_getusername_error__d_n
push 0
push 0x5b0d48
call fcn.0041cc90
add esp, 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
test eax, eax
jne 0x425c8f
mov eax, dword [0x5be08c]
cmp dword [eax + 0xe20], 0
jne 0x425c8f
push 0x101
push str.Default
push 0x101
push esi
call fcn.0052c878
add esp, 0x10
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x425ca0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov esi, eax
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0051b450
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x425d4b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
lea eax, [ebp - 0x20c]
push str.LogonUI.exe
push eax
call fcn.0052c6c0
add esp, 8
test eax, eax
je 0x425d36
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x425d00
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00519459
mov esp, ebp
pop ebp
ret

Function at 0x426500
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov eax, dword [esi + 4]
test eax, eax
jne 0x426522
push str.34F673E0_878F_11D5_B98A_00B0D07B8C7C
push eax
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
test eax, eax
je 0x426542
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
mov dword [esi + 0x109bc], eax
pop esi
setne al
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret
Function at 0x4274c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548864
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5b2d20]
push 0x7f00
push 0
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x427250
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0xffffff
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.borderscreen
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov edi, dword [ebp + 0x14]
sub edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
sub ebx, dword [ebp + 8]
push 0
push dword [0x5b2d20]
push 0
push 0
push edi
push ebx
push accept
push accept
push 0x86000000
push str.borderscreen
push str.borderscreen
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
push str.user32
mov dword [0x5b2e28], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4275c2
push 0x59afa0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0xfffffffffffffff0
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffbbffff
push eax
push 0xfffffffffffffff0
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_SetWindowLongA]
test esi, esi
je 0x427637
push 0xffffffffffffffec
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80028
push eax
push 0xffffffffffffffec
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push 0xffffff
push dword [0x5b2e28]
call esi
push 0x30
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x5bb8f8]
test eax, eax
jne 0x427678
push 0x20
call fcn.0051946c
add esp, 4
mov dword [ebp + 0x14], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00479de0
mov dword [0x5bb8f8], eax
cmp byte [eax + 5], 0
je 0x42768c
push 0x11
push dword [0x5b2e28]
call dword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4276a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5488c2
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5b0008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x5bb8f8]
test ecx, ecx
jne 0x4276fb
push 0x20
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00479de0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5bb8f8], ecx
jmp 0x4276fd
mov eax, ecx
cmp byte [ecx + 5], 0
jne 0x427736
test eax, eax
jne 0x42772e
push 0x20
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00479de0
mov dword [ebp - 4], 0xffffffff
mov dword [0x5bb8f8], eax
mov ecx, eax
cmp byte [ecx + 4], 0
jne 0x427767
test eax, eax
jne 0x427761
push 0x20
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00479de0
mov dword [ebp - 4], 0xffffffff
mov dword [0x5bb8f8], eax
cmp byte [eax + 6], 0
je 0x42777c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp + 0xc], 0
je 0x42784f
cmp byte [ebp + 8], 0
je 0x427821
call fcn.00426b80
cmp byte [eax + 0xb], 0
je 0x4277fb
call fcn.00426b80
mov esi, eax
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.dwmapi.dll_DwmIsCompositionEnabled]
test eax, eax
js 0x4277fb
cmp dword [ebp + 0xc], 0
je 0x4277fb
push 0
call dword [sym.imp.dwmapi.dll_Ordinal_102]
test eax, eax
js 0x4277d3
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x18]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x4277f7
lea ecx, [ebp + 0xc]
push ecx
call eax
test eax, eax
js 0x4277f7
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi + 0xb], al
jmp 0x4277fb
mov byte [esi + 0xb], 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0x427130
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42781d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x427852
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x42783f
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor bl, bl
call fcn.00426b80
mov ecx, eax
call fcn.0047a0e0
jmp 0x427852
mov bl, byte [ebp + 0x10]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427910
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0x30
push edi
push 5
mov dword [esp + 0x14], 3
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], 0x427a70
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], str.mouseSimulator
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x4279c1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
sub eax, edx
mov ecx, dword [esp + 0x3c]
push 0
push dword [esi + 0x20]
push 0
push edi
push eax
mov eax, dword [esp + 0x58]
sub eax, ecx
push eax
push edx
push ecx
push 0x86800000
push str.mouseSimulator
push str.mouseSimulator
push 0x800a8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebx, eax
push esi
push 0xffffffffffffffeb
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call esi
and eax, 0xff30ffff
push eax
push 0xfffffffffffffff0
push ebx
call edi
push 0xffffffffffffffec
push ebx
call esi
and eax, 0xfffdfdfe
push eax
push 0xffffffffffffffec
push ebx
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
push 0
push 0xffffff
push ebx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, dword [esp + 0x4c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x42a950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548af0
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00426250
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call fcn.00425890
test eax, eax
je 0x42a9c9
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
push ecx
push 0x201eb
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0
xor ebx, ebx
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42aa7f
push 0x104
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42aa4d
lea eax, [ebp - 0x118]
push 0x5c
push eax
call fcn.0051a9e0
add esp, 8
test eax, eax
jne 0x42aa4b
mov eax, dword [ebp - 0x120]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42aa37
push eax
call edi
mov ecx, dword [ebp - 0x11c]
test ecx, ecx
je 0x42ab67
push ecx
jmp 0x42ab65
mov byte [eax], bl
push 0x569fe8
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0051f3ce
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0x104
push edi
call fcn.0051f428
mov eax, 0x597578
jmp 0x42aa9b
push 0x569fe8
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0051f3ce
lea eax, [ebp - 0x118]
add esp, 0xc
push eax
push 0x104
push edi
call fcn.0051f428
add esp, 0xc
push str.UltraVNC.ini
push 0x104
push edi
call fcn.0051f428
mov eax, dword [ebp - 0x124]
add esp, 0xc
test eax, eax
je 0x42ab2f
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x42aae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x42ab2f
mov eax, dword [ebp - 0x124]
push 0x104
push edi
push str._TEMP_
push eax
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
push 0x597578
push 0x104
push edi
call fcn.0051f428
add esp, 0xc
push str.UltraVNC.ini
push 0x104
push edi
call fcn.0051f428
add esp, 0xc
mov ecx, esi
call fcn.0042ab90
mov ecx, esi
call fcn.0042afa0
jmp 0x42ab41
mov ecx, esi
call fcn.0042ab90
mov ecx, esi
call fcn.0042afa0
test ebx, ebx
jne 0x42ab47
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x120]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42ab5a
push eax
call edi
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x42ab67
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x42cf50
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42cf99
push 0x10
push 0x59af10
mov edx, str.Failed_to_open_service_control_manager
call fcn.00425040
add esp, 8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
push esi
push 0x10004
push str.uvnc_service
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x42d021
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42cfea
push 0x10
push 0x59af10
mov edx, str.Failed:_Permission_denied
call fcn.00425040
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [esi + 1]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x42d005
push 0x10
push 0x59af10
mov edx, str.Failed_to_open_the_service
call fcn.00425040
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42d065
push 0x10
push 0x59af10
mov edx, str.Failed_to_query_service_status
call fcn.00425040
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
push esi
je 0x42d09c
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0042cf50
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x42d0db
push 0x10
push 0x59af10
mov edx, str.Failed_to_delete_the_service
call fcn.00425040
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop edi
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x42d490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], str._rebootforce
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret

Function at 0x42d530
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], str._rebootsafemode
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x42db40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x3a4], 0x94
push eax
mov bh, dl
mov bl, cl
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x5b3078
call fcn.0051f3ce
add esp, 0xc
test bl, bl
je 0x42dbb7
push str.__preconnect
push 0x104
push 0x5b3078
call fcn.0051f428
add esp, 0xc
mov ecx, str.__service_rdp_run
test bh, bh
mov eax, str.__service_run
cmovne eax, ecx
push eax
push 0x104
push 0x5b3078
call fcn.0051f428
add esp, 0xc
lea ecx, [ebp - 0x310]
call fcn.00426250
lea eax, [ebp - 0x310]
push eax
push dword [0x5b2e3c]
push str.kickrdp
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5b2e3c], eax
lea eax, [ebp - 0x310]
push eax
push dword [0x5b2f5c]
push str.clearconsole
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5b2f5c], eax
lea eax, [ebp - 0x310]
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x569fe8
push str.service_commandline
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42dc60
sub ecx, edx
je 0x42dcf2
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x5b3078
call fcn.0051f3ce
add esp, 0xc
test bl, bl
je 0x42dca3
push str.__preconnect
push 0x104
push 0x5b3078
call fcn.0051f428
add esp, 0xc
push 0x59b4dc
push 0x104
push 0x5b3078
call fcn.0051f428
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x5b3078
call fcn.0051f428
add esp, 0x18
test bh, bh
je 0x42dcdb
push str.__service_rdp_run
jmp 0x42dce0
push str.__service_run
push 0x104
push 0x5b3078
call fcn.0051f428
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00519459
mov esp, ebp
pop ebp
ret
Function at 0x42f450
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov edx, 8
sub edx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
lea esi, [esp + 0x10]
add esi, dword [ebp + 8]
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x3a0]
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
jne 0x42f485
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x42f48d
push eax
push edx
push esi
call fcn.00484d00
mov ecx, dword [esp + 0x14]
mov esi, ecx
and esi, 0xff0000
mov eax, ecx
shr eax, 0x10
or esi, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr esi, 8
shl eax, 8
or esi, eax
cmp esi, 0xffffffff
jne 0x42f4f4
cmp byte [edi + 0x10], 0
jne 0x42f5a8
lea eax, [esp + 0xc]
push eax
push 0
push edi
push 0x42fa90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x34], eax
test eax, eax
je 0x42f5a8
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp esi, 0xfffffffe
jne 0x42f51d
cmp byte [edi + 0x10], 0
je 0x42f5a8
push 0
push 1
push 0x111
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp esi, 0xfffffffd
je 0x42f5a8
cmp esi, 0x4000
jg 0x42f5a8
test esi, esi
jne 0x42f55e
push 0x569fe8
push 0x475
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x4000
push esi
push dword [edi + 0x1c]
call fcn.0051b450
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x4000
push 0
push dword [edi + 0x1c]
call fcn.0051b450
mov ecx, dword [edi + 4]
add esp, 0xc
mov ecx, dword [ecx + 0x3a0]
push esi
push dword [edi + 0x1c]
call fcn.00484cd0
push 9
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xff
push dword [edi + 0x20]
mov ecx, edi
push dword [edi + 0x1c]
call fcn.0042f680
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4