joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426610
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5e44e8]
sub esp, 8
cmp dword [eax + 0xe20], 0
push esi
mov esi, ecx
je 0x426690
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x4266d9
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 0x426690
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 0x5b9638
push 0x101
push esi
call fcn.0053193e
add esp, 0xc
mov ecx, 0x5b9638
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4266e0
test dl, dl
je 0x42668c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4266e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x426670
xor eax, eax
jmp 0x4266e5
mov ecx, esi
mov dword [ebp - 8], 0x101
call fcn.004264e0
test al, al
jne 0x426665
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x426665
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
je 0x426652
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.processHelper::GetCurrentUser_:_getusername_error__d_n
push 0
push 0x5d6df8
call fcn.0041d510
add esp, 0x10
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42670f
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe20], 0
jne 0x42670f
push 0x101
push str.Default
push 0x101
push esi
call fcn.0053a408
add esp, 0x10
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x426720
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5d60c4]
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.0052d9b0
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 0x4267cb
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.0053a250
add esp, 8
test eax, eax
je 0x4267b6
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x426780
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0052b789
mov esp, ebp
pop ebp
ret

Function at 0x426f00
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 0x426f22
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 0x426f42
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 0x427ec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565dd4
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d60c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5d9180]
push 0x7f00
push 0
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], 0x427c50
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 [0x5d9180]
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 [0x5d9288], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x427fc2
push 0x5c2628
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0xfffffffffffffff0
push dword [0x5d9288]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push dword [0x5d9288]
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xffbbffff
push eax
push 0xfffffffffffffff0
push dword [0x5d9288]
call dword [sym.imp.USER32.dll_SetWindowLongA]
test esi, esi
je 0x428037
push 0xffffffffffffffec
push dword [0x5d9288]
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80028
push eax
push 0xffffffffffffffec
push dword [0x5d9288]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push dword [0x5d9288]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push 0xffffff
push dword [0x5d9288]
call esi
push 0x30
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [0x5d9288]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x5e1d58]
test eax, eax
jne 0x428078
push 0x20
call fcn.0052b79c
add esp, 4
mov dword [ebp + 0x14], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0047bdb0
mov dword [0x5e1d58], eax
cmp byte [eax + 5], 0
je 0x42808c
push 0x11
push dword [0x5d9288]
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 0x4280a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565e32
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5d60c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x5e1d58]
test ecx, ecx
jne 0x4280fb
push 0x20
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0047bdb0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5e1d58], ecx
jmp 0x4280fd
mov eax, ecx
cmp byte [ecx + 5], 0
jne 0x428136
test eax, eax
jne 0x42812e
push 0x20
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0047bdb0
mov dword [ebp - 4], 0xffffffff
mov dword [0x5e1d58], eax
mov ecx, eax
cmp byte [ecx + 4], 0
jne 0x428167
test eax, eax
jne 0x428161
push 0x20
call fcn.0052b79c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0047bdb0
mov dword [ebp - 4], 0xffffffff
mov dword [0x5e1d58], eax
cmp byte [eax + 6], 0
je 0x42817c
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 0x42824f
cmp byte [ebp + 8], 0
je 0x428221
call fcn.00427580
cmp byte [eax + 0xb], 0
je 0x4281fb
call fcn.00427580
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 0x4281fb
cmp dword [ebp + 0xc], 0
je 0x4281fb
push 0
call dword [sym.imp.dwmapi.dll_Ordinal_102]
test eax, eax
js 0x4281d3
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 0x4281f7
lea ecx, [ebp + 0xc]
push ecx
call eax
test eax, eax
js 0x4281f7
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi + 0xb], al
jmp 0x4281fb
mov byte [esi + 0xb], 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0x427b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42821d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x428252
push 0
push str.blackscreen
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x42823f
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor bl, bl
call fcn.00427580
mov ecx, eax
call fcn.0047c0b0
jmp 0x428252
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 0x428310
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x5d60c4]
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], 0x428470
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 0x4283c1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0052b789
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.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x42b330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566060
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5d60c4]
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.00426c50
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.00426310
test eax, eax
je 0x42b3a9
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c], 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 - 0x118]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x42b45f
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42b42d
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.0052cf50
add esp, 8
test eax, eax
jne 0x42b42b
mov eax, dword [ebp - 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42b417
push eax
call edi
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x42b541
push ecx
jmp 0x42b53f
mov byte [eax], bl
push 0x5b9638
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0053193e
lea eax, [ebp - 0x114]
push eax
push 0x104
push edi
call fcn.00531998
add esp, 0x18
mov eax, 0x5bea9c
jmp 0x42b47e
push 0x5b9638
lea edi, [esi + 0xd18]
push 0x104
push edi
call fcn.0053193e
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
push edi
call fcn.00531998
push str.ultravnc.ini
push 0x104
push edi
call fcn.00531998
mov eax, dword [ebp - 0x120]
add esp, 0x18
test eax, eax
je 0x42b509
push eax
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x42b4be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x42b509
mov eax, dword [ebp - 0x120]
push 0x104
push edi
push str._TEMP_
push eax
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserA]
push 0x5bea9c
push 0x104
push edi
call fcn.00531998
push str.ultravnc.ini
push 0x104
push edi
call fcn.00531998
add esp, 0x18
mov ecx, esi
call fcn.0042b560
mov ecx, esi
call fcn.0042b960
jmp 0x42b51b
mov ecx, esi
call fcn.0042b560
mov ecx, esi
call fcn.0042b960
test ebx, ebx
jne 0x42b521
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, dword [ebp - 0x11c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42b534
push eax
call edi
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x42b541
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.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x42dac0
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d60c4]
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 0x42db09
push 0x10
push str.UltraVNC
mov edx, str.Failed_to_open_service_control_manager
call fcn.00425890
add esp, 8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
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 0x42db91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42db5a
push 0x10
push str.UltraVNC
mov edx, str.Failed:_Permission_denied
call fcn.00425890
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.0052b789
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x42db75
push 0x10
push str.UltraVNC
mov edx, str.Failed_to_open_the_service
call fcn.00425890
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.0052b789
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 0x42dbd5
push 0x10
push str.UltraVNC
mov edx, str.Failed_to_query_service_status
call fcn.00425890
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.0052b789
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
push esi
je 0x42dc0c
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.0042dac0
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x42dc4b
push 0x10
push str.UltraVNC
mov edx, str.Failed_to_delete_the_service
call fcn.00425890
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.0052b789
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.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Check os version
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xac]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42e0a8
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0xac]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x42e0a8
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
push 0
jae 0x42e0a0
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret

Function at 0x42e0c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d60c4]
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.0052b789
mov esp, ebp
pop ebp
ret

Function at 0x42e160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d60c4]
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.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x42e770
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x5d60c4]
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 0x5d94d8
call fcn.0053193e
add esp, 0xc
test bl, bl
je 0x42e7e7
push str.__preconnect
push 0x104
push 0x5d94d8
call fcn.00531998
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 0x5d94d8
call fcn.00531998
add esp, 0xc
lea ecx, [ebp - 0x310]
call fcn.00426c50
lea eax, [ebp - 0x310]
push eax
push dword [0x5d929c]
push str.kickrdp
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5d929c], eax
lea eax, [ebp - 0x310]
push eax
push dword [0x5d93bc]
push str.clearconsole
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x5d93bc], eax
lea eax, [ebp - 0x310]
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x5b9638
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 0x42e890
sub ecx, edx
je 0x42e922
lea eax, [ebp - 0x108]
push eax
push 0x104
push 0x5d94d8
call fcn.0053193e
add esp, 0xc
test bl, bl
je 0x42e8d3
push str.__preconnect
push 0x104
push 0x5d94d8
call fcn.00531998
add esp, 0xc
push 0x5c2b6c
push 0x104
push 0x5d94d8
call fcn.00531998
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x5d94d8
call fcn.00531998
add esp, 0x18
test bh, bh
je 0x42e90b
push str.__service_rdp_run
jmp 0x42e910
push str.__service_run
push 0x104
push 0x5d94d8
call fcn.00531998
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x430090
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]
push edx
push esi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x3a0]
mov eax, dword [0x5e44e8]
cmp dword [eax + 0xe64], 0
je 0x4300cc
call fcn.00487d10
jmp 0x4300d1
call fcn.00487f70
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 0x430138
cmp byte [edi + 0x10], 0
jne 0x4301ec
lea eax, [esp + 0xc]
push eax
push 0
push edi
push 0x4306b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x34], eax
test eax, eax
je 0x4301ec
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp esi, 0xfffffffe
jne 0x430161
cmp byte [edi + 0x10], 0
je 0x4301ec
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 0x4301ec
cmp esi, 0x4000
jg 0x4301ec
test esi, esi
jne 0x4301a2
push 0x5b9638
push 0x3fd
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x4000
push esi
push dword [edi + 0x1c]
call fcn.0052d9b0
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x4000
push 0
push dword [edi + 0x1c]
call fcn.0052d9b0
mov ecx, dword [edi + 4]
add esp, 0xc
mov ecx, dword [ecx + 0x3a0]
push esi
push dword [edi + 0x1c]
call fcn.004881a0
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.004302c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x432880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d60c4]
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]
test eax, eax
je 0x4328c7
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0052cf50
add esp, 8
test eax, eax
je 0x43299a
mov byte [eax], 0
push str.uvnckeyboardhelper.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00531998
lea eax, [ebp - 0x108]
push 0x5c3390
push eax
call fcn.0053aa86
add esp, 0x14
test eax, eax
je 0x43299a
push eax
call fcn.0053abc2
add esp, 4
mov dword [ebp - 0x144], 0x3c
lea eax, [ebp - 0x108]
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x144]
movlpd qword [ebp - 0x120], xmm0
push eax
movlpd qword [ebp - 0x118], xmm0
movlpd qword [ebp - 0x110], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x130], 0x5b9638
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x43299a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret