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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e54ab
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
call fcn.00456500
push 4
call fcn.00456820
push 0x84
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004c3b60
lea eax, [ebp - 0x94]
push eax
call fcn.00451090
add esp, 0x18
push 0x514130
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
call fcn.00457e20
call fcn.004512c0
sub eax, 1
je 0x404956
sub eax, 3
jne 0x40496a
lea ecx, [ebp - 0x94]
call fcn.004583c0
push eax
call fcn.004567d0
add esp, 4
push str.ZIPRES
push 0x81
call fcn.004512a0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40496a
push esi
call fcn.004512a0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40494d
push esi
call fcn.004512a0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40494d
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.00456830
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40496a
lea ecx, [ebp - 0x94]
call fcn.004583c0
push eax
call fcn.004567d0
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.00457c70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret
Function at 0x4057d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5141d0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x5141d4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x20c], ax
jne 0x405848
xor ecx, ecx
jmp 0x405860
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405851
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00401d70
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.00412614
mov esp, ebp
pop ebp
ret 4
Function at 0x406120
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5766
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 4]
push str.ZhuanZhuan.exe
lea eax, [ebp - 0x640]
push esi
push eax
call fcn.00407a30
add esp, 0xc
push 0x5142cc
lea eax, [ebp - 0x658]
mov dword [ebp - 4], 0
push esi
push eax
call fcn.00407a30
add esp, 0xc
push 0
push 0x17
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push 0x5141d0
push eax
call esi
push 0x5142e4
lea eax, [ebp - 0x218]
push eax
call esi
lea ecx, [ebp - 0x218]
call fcn.0040bac0
push 0x5142e4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._s_s.lnk
push eax
call fcn.004079c0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x420]
lea esi, [ebp - 0x640]
cmovae esi, dword [ebp - 0x640]
lea ecx, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x640]
push eax
push esi
call fcn.0040b860
push 0x5142e4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x514310
push eax
call fcn.004079c0
cmp dword [ebp - 0x644], 8
lea eax, [ebp - 0x420]
lea esi, [ebp - 0x658]
cmovae esi, dword [ebp - 0x658]
lea ecx, [ebp - 0x658]
cmovae ecx, dword [ebp - 0x658]
push eax
push esi
call fcn.0040b860
push 0x5142e4
lea eax, [ebp - 0x628]
push str._s.lnk
push eax
call fcn.004079c0
add esp, 0x3c
lea eax, [ebp - 0x218]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._s_s
push eax
call fcn.004079c0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x420]
lea esi, [ebp - 0x640]
cmovae esi, dword [ebp - 0x640]
lea ecx, [ebp - 0x640]
cmovae ecx, dword [ebp - 0x640]
push eax
push esi
call fcn.0040b860
mov eax, dword [ebp - 0x644]
add esp, 0x18
cmp eax, 8
jb 0x4062f4
inc eax
lea ecx, [ebp - 0x658]
push eax
push dword [ebp - 0x658]
call fcn.00401ed0
xor eax, eax
mov dword [ebp - 0x644], 7
mov word [ebp - 0x658], ax
mov eax, dword [ebp - 0x62c]
mov dword [ebp - 0x648], 0
cmp eax, 8
jb 0x40632f
inc eax
lea ecx, [ebp - 0x640]
push eax
push dword [ebp - 0x640]
call fcn.00401ed0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret
Function at 0x406f20
Capabilities:
Create process on windows
Get system information on windows
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x848
mov eax, dword [0x525060]
xor eax, esp
mov dword [esp + 0x844], eax
push esi
push edi
push str.CInstallCtrl::InstallFinish____r_n
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
call fcn.00406120
mov ecx, esi
call fcn.00406350
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x24]
cmp ax, 9
je 0x406f77
cmp ax, 6
je 0x406f77
xor eax, eax
jmp 0x406f7c
mov eax, 1
test eax, eax
mov dword [esp + 0x20], 7
mov edx, str.zzdsMenu_64.dll
mov dword [esp + 0x1c], 0
mov ecx, str.zzdsMenu_32.dll
cmove edx, ecx
xor eax, eax
mov word [esp + 0xc], ax
cmp word [edx], ax
jne 0x406fab
xor ecx, ecx
jmp 0x406fbf
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406fb0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.00401d70
cmp dword [esp + 0x20], 8
lea ecx, [esp + 0xc]
cmovae ecx, dword [esp + 0xc]
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x406fe5
mov eax, dword [esi]
jmp 0x406fe7
mov eax, esi
push ecx
push eax
lea eax, [esp + 0x50]
push str._s___s_s_
push eax
call fcn.00407c70
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esp + 0x58]
add esp, 0x10
push 0
push 0
push eax
push str.regsvr32.exe
push str.open
push 0
call edi
mov eax, dword [esp + 0x20]
cmp eax, 8
jb 0x407030
inc eax
lea ecx, [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.00401ed0
push 0xf
xor eax, eax
mov dword [esp + 0x24], 7
push str.ZZWordAddin.dll
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.00401d70
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x40706d
mov esi, dword [esi]
push eax
push esi
lea eax, [esp + 0x50]
push str._s___s_s_
push eax
call fcn.00407c70
add esp, 0x10
lea eax, [esp + 0x48]
push 0
push 0
push eax
push str.regsvr32.exe
push str.open
push 0
call edi
mov eax, dword [esp + 0x20]
cmp eax, 8
jb 0x4070b0
inc eax
lea ecx, [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.00401ed0
mov ecx, dword [esp + 0x84c]
pop edi
pop esi
xor ecx, esp
call fcn.00412614
mov esp, ebp
pop ebp
ret
Function at 0x4070d0
Capabilities:
Check if file exists
Create process on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e595b
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0xc3c]
push eax
call fcn.00407bc0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc3c]
cmp dword [ebp - 0xc28], 8
cmovae eax, dword [ebp - 0xc3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4072aa
cmp dword [ebp - 0xc28], 8
lea eax, [ebp - 0xc3c]
cmovae eax, dword [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc24]
push str._u__s___s_
push eax
call fcn.00407c70
add esp, 0xc
lea eax, [ebp - 0xc74]
push 0x38
push 0
push eax
call fcn.004c3b60
add esp, 0xc
mov dword [ebp - 0xc78], 0x3c
lea eax, [ebp - 0xc24]
mov dword [ebp - 0xc74], 0x40
mov dword [ebp - 0xc64], eax
lea eax, [ebp - 0xc78]
mov dword [ebp - 0xc70], 0
push eax
mov dword [ebp - 0xc6c], 0
mov dword [ebp - 0xc68], str.regsvr32.exe
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 5
mov dword [ebp - 0xc58], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0xbb8
push dword [ebp - 0xc40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004c3b60
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004c3b60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0xc90]
push eax
call fcn.004050e0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40724e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push str._s_s.dll
push eax
call fcn.004079c0
mov eax, dword [ebp - 0xc7c]
add esp, 0x10
cmp eax, 8
jb 0x407288
inc eax
lea ecx, [ebp - 0xc90]
push eax
push dword [ebp - 0xc90]
call fcn.00401ed0
cmp dword [ebp - 0xc28], 8
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0xc3c]
cmovae eax, dword [ebp - 0xc3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0xc28]
cmp eax, 8
jb 0x4072c8
inc eax
lea ecx, [ebp - 0xc3c]
push eax
push dword [ebp - 0xc3c]
call fcn.00401ed0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret 4
Function at 0x408bc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
xor edi, edi
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004c3b60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor esi, esi
nop
mov eax, 1
mov ecx, esi
shl eax, cl
test ebx, eax
je 0x408c25
movzx eax, si
add eax, 0x41
push eax
lea eax, [ebp - 0x44]
push str._C:_
push eax
call fcn.00409a20
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x408c25
inc edi
inc esi
cmp esi, 0x20
jb 0x408bf0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412614
mov esp, ebp
pop ebp
ret

Function at 0x408c40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x408cb1
push ebx
call fcn.00405030
mov ebx, eax
lea eax, [ebp + 0xc]
push eax
push 0
push esi
mov ecx, dword [ebx]
push 0
push 0
push dword [ebx + 4]
or ecx, 2
push ecx
call fcn.004c852a
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x408cb0
lea esi, [eax + 1]
push edi
push esi
call fcn.00412c3f
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push esi
push edi
push dword [ebx + 4]
push dword [ebx]
call fcn.004c854e
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.00412c3a
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4094d0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [esi + 0x774]
call fcn.0045a370
cmp eax, 2
je 0x4095d2
push 1
push 1
mov ecx, esi
call fcn.00457820
mov ecx, dword [esi + 4]
sub esp, 0xc
mov edx, 0x514a24
call fcn.0040a080
add esp, 0xc
cmp eax, 1
je 0x40952e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004c3b60
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c3b60
add esp, 0x18
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004c85ba
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00412614
mov esp, ebp
pop ebp
ret
Function at 0x409720
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x514a84
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409753
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40975c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40977b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
add eax, 2
push eax
mov dword [ebp - 4], eax
call fcn.00412c3f
mov edi, eax
add esp, 4
test edi, edi
jne 0x4097af
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
push 0
push edi
call fcn.004c3b60
push dword [ebp - 8]
push ebx
push edi
call fcn.004c35e0
mov ecx, edi
call fcn.004086b0
push edi
mov esi, eax
call fcn.00412c3a
add esp, 0x1c
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac30
Capabilities:
Create process on windows
Get explorer pid

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x44
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], 0
push 0
push eax
mov edi, edx
mov dword [ebp - 0x4c], 0
mov esi, ecx
call fcn.004c3b60
add esp, 0xc
mov dword [ebp - 0x1c], 1
xorps xmm0, xmm0
mov eax, 1
movups xmmword [edi], xmm0
mov word [ebp - 0x18], ax
push str.CreateProcessWithTokenW
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x40acca
cmp dword [esi + 0x14], 8
jb 0x40aca0
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x54]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x4c]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x50]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp dword [esi + 0x14], 8
jb 0x40ad1b
mov esi, dword [esi]
push edi
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
push esi
push 0
push 0
push dword [ebp - 0x50]
call dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40ad43
push eax
call esi
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x40ad4d
push eax
call esi
test ebx, ebx
je 0x40ad54
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00412614
mov esp, ebp
pop ebp
ret

Function at 0x40ad70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3c
lea eax, [ebp - 0x40]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004c3b60
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [edi + 0x14], 8
jb 0x40ada5
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], str.runas
jb 0x40adb7
mov esi, dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], esi
push eax
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x24], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
test eax, eax
jne 0x40adf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x40adf5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret
Function at 0x40ae70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40ae9e
mov eax, dword [esi]
jmp 0x40aea0
mov eax, esi
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edx
push eax
push edx
push ecx
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40aed4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412c3f
mov ecx, dword [ebp - 0xc]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.004c3b60
add esp, 0x10
test edi, edi
je 0x40af53
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x40af30
push edi
mov ecx, esi
call fcn.00407470
push edi
call fcn.00412c3a
add esp, 4
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412614
mov esp, ebp
pop ebp
ret 8

Function at 0x40b090
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x525060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2ac], 0
push eax
mov esi, ecx
push 0
mov dword [ebp - 0x2a8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40b177
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b177
push edi
push ebx
push 0
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a8]
push eax
push 0x5141d0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40b177
mov ecx, dword [ebp - 0x2a8]
movsx eax, word [ecx + 0xc]
push eax
movsx eax, word [ecx + 0xe]
push eax
movsx eax, word [ecx + 8]
push eax
movsx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x94]
push 0x514de8
push eax
call fcn.0040bcf0
add esp, 0x18
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00401c20
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412614
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x514080
mov word [esi], ax
call fcn.00401d70
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412614
mov esp, ebp
pop ebp
ret
Function at 0x40b250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5ec2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x525060]
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 esi, ecx
mov dword [ebp - 0x224], esi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], esi
push eax
push 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40b2d0
mov eax, dword [esi]
jmp 0x40b2d2
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x228], 1
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x40b349
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b349
push edi
push ebx
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
push dword [ebp - 0x224]
mov ecx, edi
call fcn.0040b1b0
add esp, 8
mov eax, esi
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.00412614
mov esp, ebp
pop ebp
ret