joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40c5fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40c61f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40c63a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x40ef30
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40ef68
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041114f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00411127
jmp 0x40ef74
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x40ef78
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x420f10
mov ecx, edi
call fcn.004110b1
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x40efcb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40efde
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0041114f
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00411127
jmp 0x40efde
mov ecx, esi
call fcn.00410bfd
test eax, eax
je 0x40efde
push edi
mov ecx, eax
call fcn.0040ef30
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x410527
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x410569
call fcn.00413676
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x410569
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x410560
xor eax, eax
jmp 0x410571
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00410577
pop edi
pop esi
pop ebx
ret 4

Function at 0x413e93
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x413ec1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x413edf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00413df9
jmp 0x413edf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x413edf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00413df9
test edi, edi
mov eax, edi
jne 0x413ec9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408954
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
and ebx, ebx
call fcn.0040896c
xor dword [edx], edi
inc edx
sub ebx, eax
cmp edx, ecx
jne fcn.00408954
ret

Function at 0x40ed4f
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x40eae0
add esi, 0x495ac10d
and esi, eax
call fcn.0040ed7f
dec eax
push 0xb6b727c2
pop esi
xor dword [edx], ebx
mov esi, 0x4ecd3a52
dec eax
inc edx
add esi, esi
cmp edx, edi
jne fcn.0040ed4f
ret
Function at 0x401270
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
call dword [sym.imp.ole32.dll_CreateBindCtx]
mov esi, eax
test esi, esi
jl 0x4012d9
push str.HlinkSimpleNavigateToString
push str.URLMON.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4012c2
mov ecx, dword [edi]
test ecx, ecx
je 0x4012aa
mov ecx, dword [ecx]
jmp 0x4012ac
xor ecx, ecx
mov edx, dword [esp + 4]
push 0
push 2
push 0
push edx
push 0
push 0
push 0
push ecx
call eax
mov esi, eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jl 0x4012d9
mov al, 1
pop esi
pop ecx
ret 4
mov eax, dword [edi]
test eax, eax
je 0x4012e3
mov eax, dword [eax]
jmp 0x4012e5
xor eax, eax
push 1
push 0
push 0
push eax
mov eax, dword [esp + 0x1c]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setge cl
mov al, cl
pop esi
pop ecx
ret 4

Function at 0x401540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
test esi, esi
je 0x401661
push 0x2c
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004a30a0
add esp, 0xc
push 0x7f89
push 0
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0x401310
call dword [sym.imp.USER32.dll_LoadCursorW]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x44], str.HyperlinkClass
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x48]
push edx
push 0x5c
push eax
mov dword [edi + 4], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x61], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x10]
mov dword [edi + 8], eax
mov dword [edi + 0xc], esi
mov byte [edi], 0
call fcn.00401060
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea edx, [esp + 0xc]
push edx
push esi
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0
push esi
call ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
push 0x50000000
push 0x4d9064
push str.HyperlinkClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402e90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cfde0
push eax
mov dword fs:[0], esp
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], 2
call fcn.00402ef0
lea eax, [edi + 0x30]
push eax
mov byte [esp + 0x10], 1
call fcn.00403580
lea eax, [edi + 0x18]
push eax
mov byte [esp + 0x10], 0
call fcn.004033e0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop edi
add esp, 0xc
ret 4

Function at 0x406b30
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov esi, eax
push esi
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x4d91e0
mov edi, eax
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0049fbe0
mov eax, dword [esp + 0x14]
add esp, 0xc
test eax, eax
jne 0x406b7d
pop edi
xor al, al
pop esi
pop ecx
ret
push eax
push esi
push 1
push edi
call fcn.004a0107
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004a0200
add esp, 0x14
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
mov al, 1
pop esi
pop ecx
ret

Function at 0x406bb0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
push str._SYSTEMROOT_Procmon.Pmb
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea edi, [esp + 0xc]
call fcn.00406720
mov eax, esi
pop edi
add esp, 0x20c
ret

Function at 0x406bf0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [esp + 0xc]
push eax
push str.Instances
push ecx
call edi
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x30
push str.Process_Monitor_Instance
push 1
push 0
push str.DefaultInstance
push edx
call esi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push str.Process_Monitor_Instance
push ecx
call edi
mov edx, dword [esp + 8]
push 0xc
push str.385200
push 1
push 0
push str.Altitude
push edx
call esi
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.Flags
push ecx
mov dword [esp + 0x28], 0
call esi
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x406c90
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x414
push ebx
push ebp
mov ebp, dword [esp + 0x420]
push esi
push edi
push 0x104
lea eax, [esp + 0x220]
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.PROCMON20.SYS
lea ecx, [esp + 0x220]
push ecx
push str._sDrivers_s
lea edx, [esp + 0x20]
call fcn.00407540
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
add esp, 0xc
push 0x4d91d0
push str.RCDRIVERNT
push 0
call esi
test eax, eax
je 0x406d08
lea ebx, [esp + 0x14]
call fcn.00406b30
test al, al
je 0x406d08
lea edi, [esp + 0x14]
jmp 0x406dbc
cmp byte [esp + 0x42c], 0
jne 0x406dba
push str.PROCMON20.SYS
push str._TEMP__s
lea edx, [esp + 0x224]
call fcn.00407540
add esp, 8
push 0x104
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x4d91d0
push str.RCDRIVERNT
push 0
call esi
test eax, eax
je 0x406d66
lea ebx, [esp + 0x14]
call fcn.00406b30
test al, al
jne 0x406cff
lea ecx, [esp + 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.PROCMON20.SYS
lea edx, [esp + 0x220]
push edx
push str._s_s
lea edx, [esp + 0x20]
call fcn.00407540
add esp, 0xc
push 0x4d91d0
push str.RCDRIVERNT
push 0
call esi
test eax, eax
je 0x406dba
lea ebx, [esp + 0x14]
call fcn.00406b30
test al, al
jne 0x406cff
xor edi, edi
push ebp
call fcn.00406720
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x414
ret 8
Function at 0x406e80
Capabilities:
Delete registry key
Delete registry value
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x21c
push ebx
push esi
push edi
push str.SeLoadDriverPrivilege
call fcn.00406a90
lea eax, [esp + 0x10]
push eax
push str.SystemCurrentControlSetServicesPROCMON20
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x407046
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push eax
push str.Type
mov edi, 1
push edx
mov dword [esp + 0x2c], edi
call esi
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.ErrorControl
push ecx
mov dword [esp + 0x2c], edi
call esi
mov eax, dword [esp + 0x10]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push str.Start
push eax
mov dword [esp + 0x2c], 3
call esi
mov ecx, dword [esp + 0x22c]
push ecx
push str.___s
lea edx, [esp + 0x28]
call fcn.00407540
lea eax, [esp + 0x28]
add esp, 8
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x406f30
sub eax, ecx
mov ecx, dword [esp + 0x10]
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x24]
push eax
push edi
push 0
push str.ImagePath
push ecx
call esi
mov ecx, dword [esp + 0x10]
call fcn.00406bf0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlNtStatusToDosError
push str.ntdll.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.NtLoadDriver
push str.ntdll.dll
mov ebx, eax
call esi
push eax
call edi
lea ecx, [esp + 0x18]
mov edx, 0x7a
push ecx
mov dword [esp + 0x20], str.RegistryMachineSystemCurrentControlSetServicesPROCMON20
mov word [esp + 0x1c], dx
call eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.SystemCurrentControlSetServicesPROCMON20Enum
push reloc.WS2_32.dll_bind
mov edi, eax
call esi
push str.SystemCurrentControlSetServicesPROCMON20Security
push reloc.WS2_32.dll_bind
call esi
push str.SystemCurrentControlSetServicesPROCMON20Parameters
push reloc.WS2_32.dll_bind
call esi
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Type
push edx
call esi
mov eax, dword [esp + 0x10]
push str.ErrorControl
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.Start
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.ImagePath
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40703a
cmp edi, 0xc000010e
je 0x40703a
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 4
push 0
push 0x4fd484
call fcn.00406de0
pop edi
pop esi
pop ebx
add esp, 0x21c
ret 4
Function at 0x407060
Capabilities:
Delete file
Delete registry key
Delete registry value
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cd4ab
push eax
mov dword fs:[0], esp
sub esp, 0x214
lea eax, [esp]
push eax
push str.SystemCurrentControlSetServicesPROCMON20
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x407165
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
push str.Parameters
push ecx
call esi
mov edx, dword [esp + 8]
push str.Security
push edx
call esi
mov eax, dword [esp + 8]
push str.Enum
push eax
call esi
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Type
push ecx
call esi
mov edx, dword [esp + 8]
push str.ErrorControl
push edx
call esi
mov eax, dword [esp + 8]
push str.Start
push eax
call esi
mov ecx, dword [esp + 8]
push str.ImagePath
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x10]
push ecx
mov edi, str.DriversPROCMON20.SYS
call fcn.00406720
push eax
lea edx, [esp + 0x10]
push edx
lea edi, [esp + 0x1c]
mov dword [esp + 0x22c], 0
call fcn.004068a0
lea edi, [esp + 0x10]
call fcn.00401010
mov eax, dword [esp + 0xc]
test eax, eax
je 0x407151
mov eax, dword [eax]
jmp 0x407153
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esp + 0xc]
call fcn.00401010
pop edi
pop esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret

Function at 0x407180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push str.SystemCurrentControlSetServicesPROCMON20
push reloc.WS2_32.dll_bind
mov dword [esp + 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4071d8
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.Start
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x407b00
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ecx
push esi
push edi
push str.rootwmi
mov dword [esp + 0xc], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
mov edi, eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x4d66c8
push 1
push 0
push 0x4d6798
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jne 0x407b75
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0x4fee1c
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push eax
call edx
mov esi, eax
test esi, esi
jne 0x407b75
push eax
push eax
push 3
push 4
push eax
push eax
mov eax, dword [0x4fee1c]
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 8]
test eax, eax
je 0x407b8c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
mov eax, esi
pop esi
pop ecx
ret
Function at 0x40a240
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push 0x4dc09c
push str.Shell32.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40a21a
push edi
push 0x4fe458
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
cmp dword [0x4fe458], ebx
mov edi, eax
jle 0x40a219
mov eax, dword [edi + esi*4]
push 0x4dc0c8
push eax
call fcn.0049ebc9
add esp, 8
test eax, eax
je 0x40a1e5
mov ecx, dword [edi + esi*4]
push str._accepteula
push ecx
call fcn.0049ebc9
add esp, 8
test eax, eax
je 0x40a1e5
inc esi
cmp esi, dword [0x4fe458]
jl 0x40a1b0
jmp 0x40a219
mov edx, dword [0x4fe458]
dec edx
cmp esi, edx
mov ebx, 1
jge 0x40a213
jmp 0x40a200
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
mov ecx, dword [0x4fe458]
inc esi
dec ecx
cmp esi, ecx
jl 0x40a200
dec dword [0x4fe458]
pop edi
push ebx
call fcn.00409e10
test eax, eax
je 0x40a229
mov ebx, 1
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
ret
push ebp
xor ebp, ebp
test ebx, ebx
je 0x40a2ba
test edi, edi
je 0x40a2ba
push esi
xor esi, esi
cmp dword [ebx], esi
jle 0x40a2a1
mov eax, dword [edi + esi*4]
push 0x4dc0c8
push eax
call fcn.0049ebc9
add esp, 8
test eax, eax
je 0x40a283
mov ecx, dword [edi + esi*4]
push str._accepteula
push ecx
call fcn.0049ebc9
add esp, 8
test eax, eax
je 0x40a283
inc esi
cmp esi, dword [ebx]
jl 0x40a252
jmp 0x40a2a1
mov edx, dword [ebx]
dec edx
cmp esi, edx
mov ebp, 1
jge 0x40a29f
nop
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
mov ecx, dword [ebx]
inc esi
dec ecx
cmp esi, ecx
jl 0x40a290
dec dword [ebx]
push ebp
call fcn.00409e10
pop esi
test eax, eax
je 0x40a2b1
mov ebp, 1
xor eax, eax
test ebp, ebp
setne al
pop ebp
ret
pop ebp
jmp 0x40a170

Function at 0x40e410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d1688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 0
cmp byte [esi + 0x30], 0
je 0x40e4bf
xor edi, edi
jmp 0x40e450
movzx eax, byte [edi + 0x4dd60c]
mov ecx, dword [edi + 0x4dd608]
mov edx, dword [edi + 0x4dd604]
push eax
mov eax, dword [edi + 0x4dd600]
push ecx
push edx
push eax
call fcn.0040e0d0
add edi, 0x10
cmp edi, 0x120
jb 0x40e450
cmp byte [esp + 0x1c], 0
je 0x40e4bf
xor edi, edi
jmp 0x40e490
movzx ecx, byte [edi + 0x4dd60c]
mov edx, dword [edi + 0x4dd608]
mov eax, dword [edi + 0x4dd604]
push ecx
mov ecx, dword [edi + 0x4dd600]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040de70
add edi, 0x10
cmp edi, 0x120
jb 0x40e490
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4107a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4cfc58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x20], edi
call fcn.00415710
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x20], 1
call fcn.00417a40
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
push esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.0043cd90
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x18
ret 4

Function at 0x4116a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push ebx
push ebp
push edi
xor ebp, ebp
mov edi, ecx
mov dword [esi], eax
mov dword [esi + 4], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x28]
push ecx
lea ebx, [esi + 0xc]
mov dword [esi + 8], eax
call fcn.00402bd0
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x24], ebp
cmp dword [esi], ebp
je 0x411778
cmp edi, ebp
je 0x411709
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x14]
add eax, ecx
jmp 0x41171e
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
call ebx
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [esi + 0x18], eax
call ebx
cdq
sub eax, edx
push 2
sar eax, 1
push edi
mov dword [esi + 0x1c], eax
call dword [sym.imp.USER32.dll_GetAncestor]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov edi, eax
mov dword [esi + 0x24], eax
cmp edi, ebp
je 0x411761
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp edi, eax
je 0x41175f
push 0
push edi
call ebp
push edi
call ebx
mov edi, eax
test edi, edi
jne 0x411747
xor ebp, ebp
lea edx, [esp + 0xc]
push edx
push ebp
push esi
push 0x411880
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop edi
pop ebp
mov eax, esi
pop ebx
add esp, 0x18
ret 8