joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cddf8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f5568]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4f5568]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004201f0
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x54], 0
push eax
lea ecx, [ebx + 4]
call fcn.004201f0
mov eax, ebx
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [eax + 0xc]
call fcn.004201f0
push 4
mov byte [esp + 0x54], 2
push dword [esp + 0x28]
mov eax, dword [ebx + 0x14]
mov esi, dword [sym.imp.GDI32.dll_CombineRgn]
push eax
push eax
call esi
mov eax, dword [ebx + 4]
push 4
push dword [esp + 0x1c]
push eax
push eax
call esi
push 4
push dword [esp + 0x14]
mov edi, ebx
mov eax, dword [edi + 0xc]
push eax
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_GetRgnBox]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x28]
call esi
mov ebx, dword [esp + 0x20]
cmp eax, 1
je 0x421129
mov edx, dword [ebx]
lea eax, [edi + 0x1c]
push eax
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call dword [edx + 0xc]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
call esi
cmp eax, 1
je 0x421145
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call dword [eax + 4]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
call esi
cmp eax, 1
je 0x421161
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call dword [eax + 8]
push dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x14]
call fcn.004ae337
add esp, 4
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
call fcn.004ae337
add esp, 4
push dword [esp + 0x24]
call esi
push dword [esp + 0x28]
call fcn.004ae337
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 8

Function at 0x421320
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x501498], 0
push esi
push edi
mov esi, edx
mov edi, ecx
jne 0x421353
push esi
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
pop edi
sbb eax, eax
and eax, 2
pop esi
mov esp, ebp
pop ebp
ret
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x42136c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
test eax, eax
je 0x421364
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [edi], eax
test eax, eax
je 0x421364
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4213c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
call fcn.00421320
cmp eax, 1
jne 0x42140f
mov al, al
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x34]
call fcn.00421560
push dword [ebp - 0x14]
mov edx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00421560
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
add esp, 8
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x421536
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x421536
mov edi, dword [ebp - 0x18]
lea eax, [edi + 8]
cmp eax, edi
jbe 0x421536
cmp eax, 0x400
ja 0x421499
call fcn.004be360
mov esi, esp
test esi, esi
je 0x421536
mov dword [esi], 0xcccc
jmp 0x4214b2
push eax
call fcn.004ae57a
mov esi, eax
add esp, 4
test esi, esi
je 0x421536
mov dword [esi], 0xdddd
mov edi, dword [ebp - 0x18]
add esi, 8
test esi, esi
je 0x421536
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push 2
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x421536
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x421536
xor edi, edi
mov dword [ebp - 0x10], 0
cmp dword [esi], edi
jbe 0x421524
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x42151d
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x421504
jmp 0x421524
mov dword [ebp - 0x10], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], 0
setne bl
jmp 0x421538
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.00421580
lea ecx, [ebp - 0x34]
call fcn.00421580
mov al, bl
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x421bc0
Capabilities:
Check os version
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x290]
xor cl, cl
mov byte [0x4f8b46], cl
sub eax, 2
jne 0x421c1d
cmp dword [ebp - 0x29c], 5
jne 0x421c1d
cmp dword [ebp - 0x298], 0
movzx eax, cl
mov ecx, 1
cmove eax, ecx
mov byte [0x4f8b46], al
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ecx, ecx
jmp 0x421c40
mov al, byte [ebp + ecx - 0x108]
lea ecx, [ecx + 1]
mov byte [ecx + 0x5041cf], al
test al, al
jne 0x421c40
push ebx
mov ebx, 0x5041d0
push esi
push edi
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x421c60
mov ax, word [0x4e1398]
mov edx, 0x4f8fe8
mov word [edi], ax
mov esi, edx
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x421c80
sub edx, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421c90
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx - 1]
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x421cb0
mov eax, dword [str._run]
mov dword [ecx], eax
mov al, byte [0x4e1640]
mov byte [ecx + 4], al
lea ecx, [ebp - 0x3a4]
call fcn.0041e390
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x3a4]
push eax
push dword [0x4f8b48]
push str.kickrdp
push str.admin
call esi
mov dword [0x4f8b48], eax
lea eax, [ebp - 0x3a4]
push eax
push dword [0x4f8b4c]
push str.clearconsole
push str.admin
call esi
mov dword [0x4f8b4c], eax
lea eax, [ebp - 0x3a4]
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 0x4d9f42
push str.service_commandline
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421d47
sub ecx, edx
je 0x421de2
xor ecx, ecx
jmp 0x421d60
mov al, byte [ebp + ecx - 0x108]
lea ecx, [ecx + 1]
mov byte [ecx + 0x5041cf], al
test al, al
jne 0x421d60
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x421d77
mov ax, word [0x4e1398]
lea edx, [ebp - 0x20c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x421d92
sub edx, esi
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421da0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
dec ebx
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + 1]
lea ebx, [ebx + 1]
test al, al
jne 0x421db7
mov eax, dword [str.__service_run]
mov dword [ebx], eax
mov eax, dword [0x4e165c]
mov dword [ebx + 4], eax
mov eax, dword [0x4e1660]
mov dword [ebx + 8], eax
mov ax, word [0x4e1664]
mov word [ebx + 0xc], ax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x421ed0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x421f1b
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x421f2e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x10c]
push str.winlogon.exe
push eax
call fcn.004aeec7
add esp, 8
test eax, eax
lea eax, [ebp - 0x130]
cmove esi, dword [ebp - 0x128]
push eax
push edi
call ebx
test eax, eax
jne 0x421f34
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x422a20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.winsta.dll
call esi
push str.user32.dll
mov edi, eax
call esi
mov esi, eax
mov dword [ebp - 0x410], 0
xor eax, eax
mov dword [ebp - 0x40c], eax
call fcn.004228c0
test al, al
jne 0x422b23
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x422a85
push str.WinStationConnectW
push edi
call ebx
mov dword [ebp - 0x410], eax
test esi, esi
je 0x422a99
push str.LockWorkStation
push esi
call ebx
mov dword [ebp - 0x40c], eax
jmp 0x422a9b
xor eax, eax
mov ebx, dword [ebp - 0x410]
test ebx, ebx
je 0x422b04
test eax, eax
je 0x422b04
mov ecx, dword [0x503bcc]
xor eax, eax
test ecx, ecx
je 0x422ab7
call ecx
push 0
push 0x4e15ac
push eax
push 0
push 0
call ebx
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40c]
call eax
test eax, eax
jne 0x422b04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x408]
push str.LockWorkstation_failed_with_error_0x_0X
push eax
call fcn.004ad5d8
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x422b1c
push edi
call ebx
test esi, esi
je 0x422b23
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x422f10
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4e182c]
movdqu xmm0, xmmword [str.Provides_secure_remote_desktop_sharing]
mov dword [ebp - 0x20], eax
mov ax, word [0x4e1830]
mov word [ebp - 0x1c], ax
mov al, byte [0x4e1832]
push str.uvnc_service
movdqu xmmword [ebp - 0x40], xmm0
push str.SYSTEMCurrentControlSetServices_s
movdqu xmm0, xmmword [0x4e181c]
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x140]
push 0x100
push eax
movdqu xmmword [ebp - 0x30], xmm0
call fcn.004adf8d
add esp, 0x10
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x144]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x140]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x40]
lea edx, [eax + 1]
jmp 0x422fc0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422fc0
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x40]
push eax
push 1
push 0
push str.Description
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x423010
Capabilities:
Create service
Persist via windows service

Disassembly:
push edi
call fcn.004232a0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x423041
push 0x10
push 0x4e143c
mov edx, str.Failed_to_open_service_control_manager
call fcn.0041b520
add esp, 8
lea eax, [edi + 1]
pop edi
ret
push esi
push 0
push 0
push str.Tcpip
push 0
push 0
push 0x5040c8
push 1
push 2
push 0x10
push 0xf01ff
push str.uvnc_service
push str.uvnc_service
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x4230ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4230a4
push 0x10
push 0x4e143c
mov edx, str.Failed:_Permission_denied
call fcn.0041b520
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
ret
cmp eax, 0x431
je 0x4230bf
push 0x10
push 0x4e143c
mov edx, str.Failed_to_create_a_new_service
call fcn.0041b520
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
ret
call fcn.00422f10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
ret
Function at 0x4230f0
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f5568]
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 0x423139
push 0x10
push 0x4e143c
mov edx, str.Failed_to_open_service_control_manager
call fcn.0041b520
add esp, 8
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
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 0x4231c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x42318a
push 0x10
push 0x4e143c
mov edx, str.Failed:_Permission_denied
call fcn.0041b520
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.004aca59
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x4231a5
push 0x10
push 0x4e143c
mov edx, str.Failed_to_open_the_service
call fcn.0041b520
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.004aca59
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 0x423205
push 0x10
push 0x4e143c
mov edx, str.Failed_to_query_service_status
call fcn.0041b520
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.004aca59
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
push esi
je 0x42323c
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.004230f0
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x42327b
push 0x10
push 0x4e143c
mov edx, str.Failed_to_delete_the_service
call fcn.0041b520
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.004aca59
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.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x4232a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x20c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x109], cl
test cl, cl
jne 0x4232d0
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004ad400
add esp, 8
test eax, eax
je 0x4232fe
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x423322
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov eax, 0x22
lea ebx, [ebp - 0x20c]
push edi
mov word [0x5040c8], ax
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x423338
mov edx, 0x5040c8
sub ebx, esi
lea edi, [edx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x423350
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec edx
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
lea ebx, [ebx]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x423370
mov eax, dword [str.___service]
mov ecx, dword [ebp - 4]
mov dword [edx], eax
xor ecx, ebp
mov eax, dword [0x4e1928]
mov dword [edx + 4], eax
mov ax, word [0x4e192c]
mov word [edx + 8], ax
mov al, byte [0x4e192e]
mov byte [edx + 0xa], al
xor eax, eax
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x4233b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push str.uvnc_service
push str.Network
push str.SYSTEMCurrentControlSetControlSafeBoot_s_s
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0
push 0x400
push eax
call fcn.004adf8d
add esp, 0x14
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x423457
push 8
push str.Service
push 1
push eax
push eax
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x423930
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x423999
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 - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x423999
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x4239b0
Capabilities:
Check os version
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xb4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x423a46
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 - 0xb4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x423a46
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xac], 6
push 0
jae 0x423a3e
push 0x12
jmp 0x423a40
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x423a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4f5568]
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.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x423b00
Capabilities:
Create process on windows

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