joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fa0
Capabilities:
Delete file
Link many functions at runtime

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
lea edi, [ebx + 0x1c8]
mov eax, edi
mov dword [esp + 0xc], edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402fd0
sub eax, esi
push eax
push 0
push edi
call fcn.004858b0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x1c4], eax
test eax, eax
jne 0x40309b
push 0x104
lea eax, [esp + 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403028
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.0047c410
add esp, 8
mov byte [eax], 0
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x114]
mov byte [esp + eax + 0x10], cl
inc eax
test cl, cl
jne 0x403030
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403045
mov dx, word [0x4a3f08]
mov eax, ebp
mov word [edi], dx
mov esi, eax
jmp 0x403060
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403060
lea edi, [esp + 0x10]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403070
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [esp + 0xc]
mov dword [ebx + 0x1c4], eax
mov eax, dword [ebx + 0x1c4]
test eax, eax
je 0x4031d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Description
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.Startup
push ecx
mov dword [ebx + 0x2cc], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.Shutdown
push edx
mov dword [ebx + 0x2d4], eax
call esi
mov dword [ebx + 0x2d0], eax
mov eax, dword [ebx + 0x1c4]
push str.SetParams
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.GetParams
push ecx
mov dword [ebx + 0x2d8], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.TransformBuffer
push edx
mov dword [ebx + 0x2dc], eax
call esi
mov dword [ebx + 0x2e0], eax
mov eax, dword [ebx + 0x1c4]
push str.RestoreBuffer
push eax
call esi
mov ecx, dword [ebx + 0x1c4]
push str.FreeBuffer
push ecx
mov dword [ebx + 0x2e4], eax
call esi
mov edx, dword [ebx + 0x1c4]
push str.Reset
push edx
mov dword [ebx + 0x2e8], eax
call esi
mov dword [ebx + 0x2ec], eax
mov eax, dword [ebx + 0x1c4]
push str.CreatePluginInterface
push eax
call esi
cmp dword [ebx + 0x2d4], 0
mov dword [ebx + 0x2f0], eax
je 0x4031b8
cmp dword [ebx + 0x2d0], 0
je 0x4031b8
cmp dword [ebx + 0x2d8], 0
je 0x4031b8
cmp dword [ebx + 0x2dc], 0
je 0x4031b8
cmp dword [ebx + 0x2e0], 0
je 0x4031b8
cmp dword [ebx + 0x2e4], 0
je 0x4031b8
cmp dword [ebx + 0x2e8], 0
je 0x4031b8
mov byte [ebx + 0x20], 1
mov al, 1
jmp 0x4031d3
mov ecx, dword [ebx + 0x1c4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [edi], 0
je 0x4031d1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0047c3ff
add esp, 0x210
ret 4
Function at 0x4031f0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0x2f4]
test eax, eax
je 0x403206
push eax
mov eax, dword [esi + 0x2e8]
call eax
add esp, 4
mov eax, dword [esi + 0x2f8]
test eax, eax
je 0x40321c
mov ecx, dword [esi + 0x2e8]
push eax
call ecx
add esp, 4
mov edx, dword [esi + 0x2d0]
mov dword [esi + 0x2f4], 0
mov dword [esi + 0x2f8], 0
mov byte [esi + 0x20], 0
call edx
test eax, eax
je 0x403269
mov eax, dword [esi + 0x1c4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
lea eax, [esi + 0x1c8]
setne bl
cmp byte [eax], 0
je 0x403265
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
ret
xor al, al
ret
Function at 0x4039b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x408], eax
cmp dword [esi + 0x9c], 0
je 0x403a54
cmp word [esi + 0x128], 1
jne 0x403a54
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a4a
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.SubVersionNumber
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403a4a
lea ecx, [esp + 8]
push 0x4a4054
push ecx
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403a4a
mov edx, 1
mov eax, edx
mov word [esi + 0x12a], dx
mov word [esi + 0x96], ax
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x40c
ret

Function at 0x403a70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x408], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b56
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.CurrentType
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b56
lea ecx, [esp + 8]
push str.Uniprocessor_Free
push ecx
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403af2
or dword [esi + 0x12c], 0x400
jmp 0x403b56
lea edx, [esp + 8]
push str.Uniprocessor_Checked
push edx
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403b14
or dword [esi + 0x12c], 0x800
jmp 0x403b56
lea eax, [esp + 8]
push str.Multiprocessor_Free
push eax
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403b36
or dword [esi + 0x12c], 0x1000
jmp 0x403b56
lea ecx, [esp + 8]
push str.Multiprocessor_Checked
push ecx
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403b56
or dword [esi + 0x12c], 0x2000
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x40c
ret
Function at 0x403b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x408], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlProductOptions
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403cbd
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.ProductType
push eax
mov dword [esp + 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403cb3
push str.LANMANNT
cmp dword [esp + 0x414], eax
je 0x403c28
lea ecx, [esp + 0xc]
push ecx
call fcn.0047ca06
add esp, 8
test eax, eax
je 0x403c43
lea edx, [esp + 8]
push str.LANSECNT
push edx
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403cb3
or dword [esi + 0x12c], 8
jmp 0x403cb3
lea eax, [esp + 0xc]
push eax
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403c4c
mov dword [esi + 0x130], 2
or dword [esi + 0x12c], 4
jmp 0x403cb3
lea ecx, [esp + 8]
push str.SERVERNT
push ecx
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403c6e
mov dword [esi + 0x130], 1
jmp 0x403cb3
lea edx, [esp + 8]
push str.LANSECNT
push edx
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403c97
or dword [esi + 0x12c], 8
mov dword [esi + 0x130], 2
jmp 0x403cb3
lea eax, [esp + 8]
push str.WinNT
push eax
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x403cb3
mov dword [esi + 0x130], eax
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x40c
ret 4

Function at 0x403e50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x94
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x90], eax
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403efc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x10]
push eax
push esi
push str.CSDVersion
push ecx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ef1
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x403ede
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403ec2
sub eax, edx
je 0x403eda
push edi
lea edi, [esp + 0x18]
call fcn.00403e10
pop edi
jmp 0x403eee
xor esi, esi
jmp 0x403ef1
cmp eax, 4
jne 0x403ef1
mov edx, dword [esp + 0x14]
shr edx, 8
movzx ax, dl
movzx esi, ax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x94]
mov ax, si
pop esi
xor ecx, esp
call fcn.0047c3ff
add esp, 0x94
ret
Function at 0x403f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlTerminal_Server
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403f99
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.TSAppCompat
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403f8f
cmp dword [esp + 4], eax
jne 0x403f8f
or dword [esi + 0x12c], 0x200
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret

Function at 0x403fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SystemWPAMediaCenter
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404015
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x14]
push eax
push 0
push str.Installed
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40400b
cmp dword [esp + 4], eax
je 0x40400b
or dword [edi + 0x12c], 0x4000
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x404020
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SystemCurrentControlSetControlProductOptions
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404174
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push str.ProductSuite
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x404194
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x404194
push ebp
push eax
call fcn.0047c463
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ebp, eax
mov eax, dword [esp + 0x10]
push ebp
lea edx, [esp + 0x1c]
push edx
push ebx
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x404179
cmp dword [esp + 0x14], 7
jne 0x404179
mov esi, ebp
cmp byte [ebp], bl
je 0x40415e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Terminal_Server
push esi
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x4040eb
or dword [edi + 0x12c], 0x10
jmp 0x40414c
push 0x4a41e4
push esi
call fcn.0047ca06
add esp, 8
test eax, eax
je 0x404145
push str.Small_Business
push esi
call fcn.0047ca06
add esp, 8
test eax, eax
je 0x404145
push str.Enterprise
push esi
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x40412a
or dword [edi + 0x12c], 2
jmp 0x40414c
push str.Personal
push esi
call fcn.0047ca06
add esp, 8
test eax, eax
jne 0x40414c
or dword [edi + 0x12c], 0x40
jmp 0x40414c
or dword [edi + 0x12c], 1
push esi
call ebx
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4040d0
push ebp
call fcn.0047c43d
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
push ebp
call fcn.0047c43d
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4054d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x14c]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
nop
mov cl, byte [eax + str._settings]
mov byte [esp + eax + 0x44], cl
inc eax
test cl, cl
jne 0x405500
lea edi, [esp + 0x44]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405514
mov cx, word [0x4a93dc]
mov eax, esi
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405530
lea edi, [esp + 0x44]
sub eax, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405540
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 dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x148]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
xor ecx, esp
call fcn.0047c3ff
add esp, 0x248
ret
Function at 0x406950
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._stopservice
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x144
ret

Function at 0x4069e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x124], eax
push str.uvnc_service
push str.net_stop___s_
lea eax, [esp + 8]
push 0x124
push eax
call fcn.0047cd5d
add esp, 0x10
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x128
ret

Function at 0x406a40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._startservice
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x144
ret

Function at 0x406ad0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x124], eax
push str.uvnc_service
push str.net_start___s_
lea eax, [esp + 8]
push 0x124
push eax
call fcn.0047cd5d
add esp, 0x10
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x128
ret

Function at 0x406b30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._install
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x144
ret
Function at 0x406bc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._uninstall
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x144
ret

Function at 0x406c50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x140], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [esp], 0x3c
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], str._securityeditor
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x144
ret
Function at 0x407870
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4078bf
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push 0x4f3730
push eax
push eax
push str.WallpaperStyle
push edx
mov dword [esp + 0x1c], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret

Function at 0x4078d0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.Control_PanelDesktop
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407924
mov eax, 0x4f3730
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078f8
mov ecx, dword [esp]
sub eax, edx
push eax
push 0x4f3730
push 1
push 0
push str.WallpaperStyle
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret
Function at 0x407c50
Capabilities:
Create process on windows
Find taskbar

Disassembly:
sub esp, 0x27c
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x278], eax
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x104
lea eax, [esp + 0x17c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x407c90
mov cl, byte [esp + eax + 0x178]
mov byte [esp + eax + 0x70], cl
inc eax
test cl, cl
jne 0x407c90
lea eax, [esp + 0x70]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x407ca5
mov ecx, dword [str.__settingshelper]
mov edx, dword [0x4a998c]
mov dword [eax], ecx
mov ecx, dword [0x4a9990]
mov dword [eax + 4], edx
mov edx, dword [0x4a9994]
mov dword [eax + 8], ecx
mov cl, byte [0x4a9998]
lea edi, [esp + 0x70]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407ce0
mov dx, word [0x4a93dc]
mov eax, ebp
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407cf6
lea edi, [esp + 0x70]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407d06
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x44
lea eax, [esp + 0x2c]
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], 0
call fcn.004858b0
xor eax, eax
add esp, 0xc
push eax
mov ecx, 5
push str.Shell_TrayWnd
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x60], cx
mov dword [esp + 0x38], str.Winsta0Default
mov dword [esp + 0x30], 0x44
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x407e0c
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407e0c
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x407e0c
lea eax, [esp + 0x10]
push eax
push 0x2000000
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 8
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407dfd
push eax
call esi
cmp edi, 0x522
jne 0x407e0c
mov ecx, ebp
call fcn.004054d0
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0047c3ff
add esp, 0x27c
ret 4
Function at 0x407f40
Capabilities:
Read file via mapping

Disassembly:
push ebx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x407f5b
push str.34F673E0_878F_11D5_B98A_00B0D07B8C7C
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x407f82
push 0
push 0
push 0
push 6
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x407f7c
xor bl, bl
mov dword [esi + 0x109b4], eax
mov al, bl
pop ebx
ret