joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push dword [0x5e8d6c]
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncHideDesktop.cpp_:_Killwallpaper__i_n
push 8
push 0x5d7d48
call fcn.0041c960
add esp, 0x10
cmp dword [0x5e8d6c], 0
jne 0x471d75
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x471cc7
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xa
push eax
push 0x5e91f4
push 0
push 0
push str.WallpaperStyle
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push edi
push 0
push 0x5e8df0
push 0x400
push 0x73
call esi
push 2
push 0x584fd8
push 0
push 0x14
call esi
call fcn.004256f0
cmp eax, 0x40047
jb 0x471d4a
push str.shell32.dll
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x471d4a
push str.SHGetSettings
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x471d2f
push 0x200
lea ecx, [ebp - 8]
push ecx
call eax
mov esi, dword [ebp - 8]
shl esi, 0x19
sar esi, 0x1f
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x471d4a
xor cl, cl
call fcn.00425770
xor ecx, ecx
test eax, eax
setns cl
jmp 0x471d4c
xor ecx, ecx
push ecx
push 1
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncHideDesktop.cpp_:_Killwallpaper__i__i_n
push 8
push 0x5d7d48
mov dword [0x5e91f0], ecx
mov dword [0x5e8d6c], 1
call fcn.0041c960
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x471d80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [0x5e8d6c]
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncHideDesktop.cpp_:_Restorewallpaper__i_n
push 8
push 0x5d7d48
call fcn.0041c960
mov eax, dword [0x5e8d6c]
add esp, 0x10
test eax, eax
je 0x471e4a
push dword [0x5e91f0]
push eax
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvncHideDesktop.cpp_:_Restorewallpaper__i__i_n
push 8
push 0x5d7d48
call fcn.0041c960
add esp, 0x14
cmp dword [0x5e91f0], 0
je 0x471de2
call fcn.004256f0
cmp eax, 0x40047
jb 0x471de2
mov cl, 1
call fcn.00425770
push 2
push 0x5e8df0
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x471e4a
mov ecx, 0x5e91f4
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471e20
sub ecx, edx
push ecx
push 0x5e91f4
push 1
push 0
push str.WallpaperStyle
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5e8d6c], 0
mov esp, ebp
pop ebp
ret
Function at 0x472630
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x584fd8
lea edx, [edi + 0x1550]
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [esi]
jne 0x472662
test bl, bl
je 0x47265e
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x472662
add eax, 2
add esi, 2
test cl, cl
jne 0x472642
xor eax, eax
jmp 0x472667
sbb eax, eax
or eax, 1
test eax, eax
je 0x4726c5
mov eax, str.SYSTEM
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x472690
test cl, cl
je 0x47268c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x472690
add edx, 2
add eax, 2
test cl, cl
jne 0x472670
xor eax, eax
jmp 0x472695
sbb eax, eax
or eax, 1
test eax, eax
je 0x4726c5
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4726c9
mov ecx, dword [edi + 8]
mov byte [edi + 0x1674], al
mov eax, dword [ecx]
call dword [eax + 0x17c]
test eax, eax
jne 0x4726c5
inc dword [edi + 0x1678]
pop edi
pop esi
pop ebx
ret
push 0
push 0
mov ecx, edi
call fcn.00472750
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
je 0x4726c5
call fcn.00471bb0
test al, al
je 0x472725
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x20c]
test eax, eax
je 0x4726fd
call fcn.00471c50
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x214]
test eax, eax
je 0x472711
call fcn.00471e60
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x21c]
test eax, eax
je 0x472725
call fcn.00425890
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x224]
test eax, eax
je 0x472739
call fcn.00471aa0
call fcn.0041d020
pop edi
pop esi
mov ecx, eax
pop ebx
jmp fcn.00477240
Function at 0x475080
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x108]
call fcn.00425a60
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x475113
lea eax, [ebp - 0x10c]
push eax
push 0x5e23bc
push 0
push 0x20019
push 0
push 0
push 0
push 0x586a60
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x475113
lea eax, [ebp - 0x10c]
push eax
push 0x5e25cc
push 0
push 0x2001f
push 0
push 0
push 0
push str.mslogon
push dword [0x5e23bc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret

Function at 0x475130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x108]
call fcn.00425a60
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x475198
mov eax, dword [0x5e25cc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x47517f
push eax
call esi
mov eax, dword [0x5e25c0]
test eax, eax
je 0x47518b
push eax
call esi
mov eax, dword [0x5e23bc]
test eax, eax
je 0x475197
push eax
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret

Function at 0x4751b0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5e25cc]
lea ecx, [ebp - 0x108]
push esi
mov esi, edx
call fcn.00425a60
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x475258
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], 4
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x475245
cmp dword [ebp - 0x10c], 4
jne 0x475245
cmp dword [ebp - 0x110], 4
mov eax, dword [ebp - 0x114]
je 0x47526e
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x475280
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5e25cc]
lea ecx, [ebp - 0x108]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x114], ebx
call fcn.00425a60
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x475368
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x100
push eax
push 0
push edi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x475353
cmp dword [ebp - 0x10c], 3
jne 0x475353
push 0x100
mov dword [ebp - 0x110], 0x100
call fcn.0053d681
add esp, 4
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0
push edi
push dword [ebp - 0x114]
call ebx
test eax, eax
jne 0x47534a
cmp dword [ebp - 0x10c], 3
je 0x475395
push esi
call fcn.0053d63e
add esp, 4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push 0x96
call fcn.0053d681
add esp, 4
mov esi, eax
lea eax, [ebp - 0x108]
push eax
push 0x96
push esi
push 0x584fd8
push edi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret

Function at 0x4753b0
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x5e25cc]
lea ecx, [ebp - 0x128]
mov esi, edx
call fcn.00425a60
lea eax, [ebp - 0x128]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x475418
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x5bcc88
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x475460
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x5e25cc]
lea ecx, [ebp - 0x108]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
call fcn.00425a60
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x4754cd
push 0xfe
push edi
push 3
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push edi
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x475560
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x118], eax
mov ebx, ecx
mov dword [ebp - 0x120], edi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 4
mov dword [ebp - 0x114], 4
call fcn.00425a60
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call esi
cmp eax, 1
jne 0x47565c
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push str.SoftwareORLWinVNC3
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47576e
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.NewMSLogon
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47576e
cmp dword [ebp - 0x110], 4
jne 0x47576e
cmp dword [ebp - 0x114], 4
jne 0x47576e
mov eax, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x11c]
test eax, eax
je 0x475673
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x475673
lea eax, [ebp - 0x108]
push eax
push 0
push str.NewMSLogon
push str.admin
call esi
mov esi, eax
test esi, esi
je 0x47576e
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4756bd
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0053eb80
push str._authSSP.dll
push 0x104
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.0054184f
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x475747
push str.CUPSD
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.C:Users_rudiDesktopgit_ultravncwinvncwinvnc_vncntlm.cpp_:_GetProcAddress
push 9
push 0x5d7d48
mov dword [0x5e25c4], eax
call fcn.0041c960
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp - 0x118]
push dword [ebp - 0x120]
push ebx
call dword [0x5e25c4]
mov esi, eax
push esi
push str.CheckUserPasswordSDUni_result_i
push 9
push 0x5d7d48
call fcn.0041c960
add esp, 0x1c
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push 0
push 0x5e6980
mov edx, str.You_selected_ms_logon__but_authSSP.dll_nwas_not_found.Check_you_installation
call fcn.004254b0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x118]
mov edx, edi
mov ecx, ebx
call fcn.004757a0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x476f90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x98], 0x94
push esi
lea eax, [ebp - 0x98]
push eax
mov dword [ebx], vtable.VNC_OSVersion.0
mov byte [ebx + 0xf], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0xa], 0
mov dword [ebx + 5], 0
mov byte [ebx + 9], 0
mov byte [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete al
mov byte [ebx + 0x10], al
mov eax, dword [ebp - 0x88]
sub eax, 1
je 0x477090
sub eax, 1
jne 0x477094
mov eax, dword [ebp - 0x94]
cmp eax, 6
jne 0x477063
mov eax, dword [ebp - 0x90]
cmp eax, 2
jb 0x47704f
mov byte [ebx + 5], 1
jmp 0x477094
cmp eax, 1
jne 0x477059
mov byte [ebx + 6], al
jmp 0x477094
test eax, eax
jne 0x477090
mov byte [ebx + 7], 1
jmp 0x477094
cmp eax, 5
jne 0x477090
mov eax, dword [ebp - 0x90]
cmp eax, 2
je 0x477086
cmp eax, 1
je 0x477086
test eax, eax
jne 0x477090
mov byte [ebx + 9], 1
mov byte [ebx + 0xd], 1
jmp 0x477094
mov byte [ebx + 8], 1
mov byte [ebx + 0xd], 1
jmp 0x477094
mov byte [ebx + 0xc], 1
cmp byte [ebx + 0xd], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sete al
cmp byte [ebx + 5], 0
mov byte [ebx + 0xe], al
je 0x477138
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4770f9
push str.RtlGetVersion
push eax
call esi
mov esi, eax
test esi, esi
je 0x4770f9
push 0x110
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.0053f2b0
add esp, 0xc
mov dword [ebp - 0x1ac], 0x114
lea eax, [ebp - 0x1ac]
push eax
call esi
test eax, eax
je 0x47710f
push 0x114
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.0053f2b0
add esp, 0xc
mov ecx, 0x45
lea edi, [ebp - 0x2c4]
lea esi, [ebp - 0x1ac]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2c0], 0xa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
jne 0x477138
mov word [ebx + 4], 1
cmp dword [ebx + 0x14], 0
jne 0x477168
push str.dwmapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x477168
push str.DwmIsCompositionEnabled
push eax
call esi
push str.DwmEnableComposition
push dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
call esi
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret
Function at 0x477390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b030
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5d7008]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x118], eax
lea eax, [edi + 8]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [edi + 4], ecx
mov ecx, edi
jne 0x4773f7
push 1
call fcn.0047a380
jmp 0x4773fc
call fcn.0047ccc0
mov ecx, dword [edi + 0x118]
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x128]
mov esi, dword [edi + 0x5d4]
push 9
call fcn.0054cef5
add esp, 4
mov ebx, eax
mov eax, 0x5d7ba0
test esi, esi
mov ecx, 0x5d7a94
mov edx, 1
cmovne ecx, eax
call fcn.0041ddf0
mov edx, ebx
lea ecx, [ebp - 0x18]
call fcn.0041e040
mov byte [ebx + 8], 0
mov dword [ebp - 0x120], ebx
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477460
sub ecx, edx
jne 0x477559
cmp dword [edi + 0x120], ecx
je 0x47752b
call fcn.00429200
test al, al
je 0x47752b
mov ecx, dword [edi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x1a8]
test eax, eax
je 0x477559
lea ecx, [ebp - 0x11c]
call fcn.00486920
test eax, eax
jne 0x4774bf
lea ecx, [ebp - 0x120]
call fcn.00437130
xor eax, eax
jmp 0x477583
mov ecx, 0x584fd8
lea eax, [ebp - 0x11c]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4774f0
test dl, dl
je 0x4774ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4774f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4774d0
xor eax, eax
jmp 0x4774f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47751f
push 0x30
push 0x5e7808
mov edx, 0x5e75f0
mov byte [edi], 1
call fcn.004254b0
add esp, 8
push 0
push ecx
mov ecx, edi
call fcn.004775b0
mov byte [edi], 0
jmp 0x477559
push 1
push ecx
mov ecx, edi
call fcn.004775b0
jmp 0x477559
mov ecx, dword [edi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x1a8]
test eax, eax
je 0x477559
push 0x10
push 0x5e7808
mov edx, 0x5e7528
call fcn.004254b0
add esp, 8
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x477560
sub ecx, edx
push ecx
push 0
push ebx
call fcn.0053f2b0
push ebx
call fcn.005417da
add esp, 0x10
mov byte [edi], 0
mov eax, 1
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.0053d630
mov esp, ebp
pop ebp
ret 4
Function at 0x47a2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47a370
cmp dword [ebp - 4], 1
jne 0x47a370
push esi
push dword [ebp - 8]
call fcn.0053d681
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47a35e
cmp dword [ebp - 4], 1
jne 0x47a35e
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.0053d63e
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x47e740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x278
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0x274], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
call fcn.004864f0
test eax, eax
je 0x47e8b5
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47e8b5
lea eax, [esp + 0xc]
push eax
push 0x201eb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x47e7bb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [esp + 0x174]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x170]
push eax
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.005417f5
add esp, 0xc
lea eax, [esp + 0x68]
push str.__dsmpluginhelper
push 0x104
push eax
call fcn.0054184f
add esp, 0xc
lea eax, [esp + 0x68]
push edi
push 0x104
push eax
call fcn.0054184f
add esp, 0xc
lea eax, [esp + 0x20]
push 0x44
push 0
push eax
call fcn.0053f2b0
add esp, 0xc
mov dword [esp + 0x28], str.Winsta0Default
mov eax, 5
mov dword [esp + 0x20], 0x44
mov word [esp + 0x50], ax
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x47e899
mov ecx, edi
call fcn.0047e8d0
pop edi
pop esi
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47e8aa
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47e8b5
push eax
call esi
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret