joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb80
Capabilities:
Check os version
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2a0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x290]
sub eax, 2
mov byte [0x54472c], 0
jne 0x40fbd4
cmp dword [ebp - 0x29c], 5
jne 0x40fbd4
cmp dword [ebp - 0x298], eax
jne 0x40fbd4
mov byte [0x54472c], 1
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [ebp + eax - 0x108]
mov byte [eax + 0x4eecd8], cl
inc eax
test cl, cl
jne 0x40fbf0
push esi
push edi
mov edi, 0x4eecd8
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fc10
mov dx, word [0x4d6580]
mov eax, 0x4ef310
mov word [edi], dx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40fc30
mov edi, 0x4eecd8
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fc41
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x4eecd8
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40fc60
mov ecx, dword [str._run]
mov dl, byte [0x4d6828]
push ebx
mov dword [eax], ecx
lea ebx, [ebp - 0x3a4]
mov byte [eax + 4], dl
call fcn.0040c260
mov ecx, dword [0x544724]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, ebx
push eax
push ecx
push str.kickrdp
push str.admin
call esi
mov edx, ebx
push edx
mov dword [0x544724], eax
mov eax, dword [0x544728]
push eax
push str.clearconsole
push str.admin
call esi
mov ecx, ebx
push ecx
push pe_nt_image_headers32
lea edx, [ebp - 0x20c]
push edx
push 0x4ce44c
push str.service_commandline
push str.admin
mov dword [0x544728], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
pop ebx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fcf0
sub eax, edx
je 0x40fd9d
xor eax, eax
mov cl, byte [ebp + eax - 0x108]
mov byte [eax + 0x4eecd8], cl
inc eax
test cl, cl
jne 0x40fd01
mov edi, 0x4eecd8
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fd20
mov ax, word [0x4d6580]
mov word [edi], ax
lea eax, [ebp - 0x20c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40fd40
mov edi, 0x4eecd8
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fd51
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x4eecd8
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40fd70
mov ecx, dword [str.__service_run]
mov edx, dword [0x4d6844]
mov dword [eax], ecx
mov ecx, dword [0x4d6848]
mov dword [eax + 4], edx
mov dx, word [0x4d684c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x40fe80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40fecb
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40fede
push esi
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.004a8a2f
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [ebp - 0x10c]
push str.winlogon.exe
push ecx
call fcn.004aab8d
add esp, 8
test eax, eax
jne 0x40ff02
mov edi, dword [ebp - 0x128]
lea edx, [ebp - 0x130]
push edx
push esi
call ebx
test eax, eax
jne 0x40fee4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x4109e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4ea5e0]
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 ebx, eax
call esi
mov dword [ebp - 0x40c], eax
xor esi, esi
xor edi, edi
call fcn.00410880
test al, al
jne 0x410acf
test ebx, ebx
je 0x410a35
push str.WinStationConnectW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [ebp - 0x40c]
test eax, eax
je 0x410a4d
push str.LockWorkStation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test esi, esi
je 0x410aaa
test edi, edi
je 0x410aaa
mov ecx, dword [0x54489c]
xor eax, eax
test ecx, ecx
je 0x410a63
call ecx
push 0
push 0x4d6794
push eax
push 0
push 0
call esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
test eax, eax
jne 0x410aaa
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.004a931b
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x410ac2
push ebx
call esi
mov eax, dword [ebp - 0x40c]
test eax, eax
je 0x410acf
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 9
mov esi, str.Provides_secure_remote_desktop_sharing
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push str.uvnc_service
movsw word es:[edi], word [esi]
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x12c]
push pe_nt_image_headers32
push eax
movsb byte es:[edi], byte [esi]
call fcn.004a9bad
add esp, 0x10
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x130]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [ebp - 0x12c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x2c]
pop edi
lea edx, [eax + 1]
pop esi
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410ee0
sub eax, edx
mov edx, dword [ebp - 0x130]
inc eax
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 1
push 0
push str.Description
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x410f20
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
call fcn.004111c0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x410f52
push 0x4d6624
push str.Failed_to_open_service_control_manager
lea eax, [esi + 0x10]
call fcn.00409310
add esp, 8
lea eax, [esi + 1]
pop esi
ret
push edi
push 0
push 0
push str.Tcpip
push 0
push 0
push 0x4ef208
push 1
push 2
push 0x10
push 0xf01ff
push str.uvnc_service
push str.uvnc_service
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x410fe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x410fb6
push 0x4d6624
push str.Failed:_Permission_denied
lea eax, [edi + 0x10]
call fcn.00409310
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
ret
cmp eax, 0x431
je 0x410fd4
push 0x4d6624
push str.Failed_to_create_a_new_service
mov eax, 0x10
call fcn.00409310
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
ret
call fcn.00410e60
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret
Function at 0x411000
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x41104a
push 0x4d6624
push str.Failed_to_open_service_control_manager
lea eax, [esi + 0x10]
call fcn.00409310
add esp, 8
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push edi
push 0x10004
push str.uvnc_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x4110d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41109c
push 0x4d6624
push str.Failed:_Permission_denied
lea eax, [edi + 0x10]
call fcn.00409310
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp eax, 0x424
je 0x4110ba
push 0x4d6624
push str.Failed_to_open_the_service
mov eax, 0x10
call fcn.00409310
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x41111d
push 0x4d6624
push str.Failed_to_query_service_status
mov eax, 0x10
call fcn.00409310
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
push edi
je 0x411154
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00411000
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x411196
push 0x4d6624
push str.Failed_to_delete_the_service
mov eax, 0x10
call fcn.00409310
add esp, 8
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x4111c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ea5e0]
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]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x4111f0
lea ecx, [ebp - 0x108]
push 0x5c
push ecx
call fcn.004a9130
add esp, 8
test eax, eax
je 0x41121c
mov byte [eax + 1], 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x411240
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, 0x22
mov word [0x4ef208], ax
lea eax, [ebp - 0x20c]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x411253
push esi
push edi
mov edi, 0x4ef208
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x411266
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 eax, 0x4ef208
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x411284
mov ecx, dword [str.___service]
mov edx, dword [0x4d6b10]
mov dword [eax], ecx
mov cx, word [0x4d6b14]
mov dword [eax + 4], edx
mov dl, byte [0x4d6b16]
mov word [eax + 8], cx
mov ecx, dword [ebp - 4]
mov byte [eax + 0xa], dl
xor ecx, ebp
xor eax, eax
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x4112d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.uvnc_service
push str.Network
push str.SYSTEMCurrentControlSetControlSafeBoot_s_s
lea eax, [ebp - 0x404]
push 0x400
push eax
mov dword [ebp - 0x40c], 0
call fcn.004a9bad
add esp, 0x14
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x408]
push edx
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 0x411379
mov ecx, dword [ebp - 0x408]
push 8
push str.Service
push 1
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x411930
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ea5e0]
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 0x41199a
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41199a
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x4119b0
Capabilities:
Check os version
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4ea5e0]
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 0x411a47
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xac]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x411a47
lea ecx, [ebp - 0xa8]
push ecx
mov dword [ebp - 0xa8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
push 0
jae 0x411a3f
push 0x12
jmp 0x411a41
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x411a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], str._rebootforce
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x411b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x108]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [ebp - 0x144]
lea ecx, [ebp - 0x108]
push edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], str._rebootsafemode
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x412070
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4120c9
call fcn.00411ba0
push str.uvnc_service
push str.Network
push str.SYSTEMCurrentControlSetControlSafeBoot_s_s
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004a9bad
add esp, 0x14
lea ecx, [ebp - 0x404]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret

Function at 0x4120e0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jae 0x412123
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xb0]
push ecx
lea edx, [ebp - 0x9c]
push edx
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x412183
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0xa0]
push eax
push 0x20019
push 0
push str.System
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412193
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
push esi
mov eax, 4
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0xac]
push edx
push 0
push str.SoftwareSASGeneration
push eax
mov dword [ebp - 0xa4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x412205
mov ecx, dword [ebp - 0xa0]
push ecx
call esi
mov edx, dword [ebp - 0x9c]
push edx
call esi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa0]
push eax
call esi
mov ecx, dword [ebp - 0x9c]
push ecx
call esi
cmp dword [ebp - 0xa4], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
Function at 0x412230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4122be
lea edx, [ebp - 8]
push edx
push 0x2001f
push eax
mov eax, dword [ebp - 4]
push str.System
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41228a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push esi
push 4
lea edx, [ebp - 0xc]
push edx
push 4
push 0
push str.SoftwareSASGeneration
push eax
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4122d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41234d
lea edx, [ebp - 8]
push edx
push 0x2001f
push eax
mov eax, dword [ebp - 4]
push str.System
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41232a
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push esi
push str.SoftwareSASGeneration
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412360
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x198], 6
jb 0x412412
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x1d8], 0x3c
mov dword [ebp - 0x1d4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x1d0], eax
lea eax, [ebp - 0x1d8]
lea edx, [ebp - 0x108]
push eax
mov dword [ebp - 0x1cc], str.runas
mov dword [ebp - 0x1c8], edx
mov dword [ebp - 0x1c4], str._delsoftwarecad
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 1
mov dword [ebp - 0x1b8], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret