joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406c31
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x41647c
push 1
xor edi, edi
push edi
push 0x41648c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x406cfe
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x1c], edi
je 0x406c88
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x14], edi
je 0x406c99
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push dword [ebp + 0x18]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41649c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x406cf5
push dword [ebp + 0xc]
mov eax, 0x104
lea edi, [ebp - 0x214]
call fcn.00404c14
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [eax]
push 1
mov edx, edi
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x408196
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.004154c0
push ebx
push esi
mov esi, 0x7fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x8003]
push ebx
push eax
mov byte [ebp - 0x8004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x8004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x8004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x8004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x408205
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004154c0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x409e41
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00409a94
push eax
push esi
push dword [ebp + 8]
call fcn.00409a49
invalid
invalid
inc esp

Function at 0x40ae5f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax - 0x74000004], ecx
dec ebp
cld
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004099f5
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40ae91
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x40aeda
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x40ae84
call fcn.00409a84
das
stc
inc edx
dec ecx
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00409a84
xlatb
ret

Function at 0x40c18f
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40c1c1
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x417d6c
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x69c]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.0040beda
test eax, eax
je 0x40c245
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c220
lea eax, [ebp - 0x208]
push eax
call fcn.00404b6e
pop ecx
jmp 0x40c226
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c238
push dword [esi + 0x208]
mov ecx, eax
call fcn.0040499d
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
leave
ret
Function at 0x40c549
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
lea eax, [ebp - 4]
push eax
push dword [edi + 0x69c]
call fcn.00407a94
test eax, eax
je 0x40c5b1
and word [ebp - 0x804], 0
push esi
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
call fcn.0040346d
push dword [edi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop esi
je 0x40c5b1
lea eax, [ebp - 0x804]
push eax
call fcn.00404b06
pop ecx
leave
ret

Function at 0x40d24d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x86c
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push esi
push edi
xor esi, esi
push esi
push dword [eax + 0x21c]
call ebx
push esi
push eax
call ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp eax, esi
jle 0x40d298
mov edi, eax
push 0x400
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_DeleteMenu]
dec edi
jne 0x40d285
push 0x2c
lea eax, [esp + 0x20]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x30
pop edi
push 0x12
pop ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x42
mov dword [esp + 0x28], 0xbdd7
call fcn.00406015
mov ebx, dword [sym.imp.USER32.dll_InsertMenuItemW]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x18]
push eax
push 1
push esi
push dword [esp + 0x20]
call ebx
lea eax, [esp + 0x18]
push eax
push 1
push esi
push dword [esp + 0x20]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], 0x800
call ebx
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x6e8]
cmp edi, esi
mov dword [esp + 0x10], esi
jle 0x40d3d9
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x1c]
add eax, 0xbd74
push 0x7fe
mov dword [esp + 0x68], eax
lea eax, [esp + 0x8a]
push esi
push eax
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x64], 0x42
mov word [esp + 0x90], si
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
sub edi, ecx
add esp, 0x18
add eax, 0x6cc
dec edi
call fcn.00405a87
cmp edi, 0xa
push eax
jge 0x40d39d
push edi
push str._d____s
lea eax, [esp + 0x84]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
jmp 0x40d3ac
mov eax, 0x3ff
lea edi, [esp + 0x7c]
call fcn.00404c14
pop ecx
lea eax, [esp + 0x78]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x48]
push eax
push 1
push esi
push dword [esp + 0x20]
call ebx
mov eax, dword [ebp + 8]
inc dword [esp + 0x10]
mov edi, dword [eax + 0x6e8]
cmp dword [esp + 0x10], edi
jl 0x40d31e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x28]
call fcn.00410898
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 8], eax
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x46c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4106a3
lea eax, [ebp - 0x240]
call fcn.0040ffa7
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x454]
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push ebx
push 0x410
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x30], ecx
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4105d3
call fcn.00404e29
test eax, eax
je 0x410694
push dword [ebp - 0x240]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x410694
push 0x208
lea eax, [ebp - 0x676]
push ebx
push eax
mov word [ebp - 0x678], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 4]
mov eax, edi
call fcn.004107ec
cmp word [ebp - 0x678], bx
jne 0x41065c
cmp dword [0x41d44c], ebx
mov dword [ebp - 0xc], 0x104
jne 0x410642
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x410642
push str.QueryFullProcessImageNameW
push eax
mov dword [0x41d44c], 1
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41d450], eax
mov eax, dword [0x41d450]
cmp eax, ebx
je 0x41065c
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x678]
push ecx
push ebx
push dword [ebp - 4]
call eax
lea esi, [ebp - 0x678]
lea edi, [ebp - 0x23c]
call fcn.0041012d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.00410478
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push eax
lea eax, [edi + 0x28]
call fcn.004108c6
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x410577
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x410814
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x41086a
push edi
push str.psapi.dll
call fcn.00405862
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret
Function at 0x4111bf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.004154c0
cmp dword [ebp + 8], 0
je 0x411224
test esi, esi
je 0x411212
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x411212
and word [ebp - 0x20000], 0
push esi
push str.__s_
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x411216
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
leave
ret

Function at 0x41123c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.004154c0
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x41129b
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.004052ed
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x4112dc
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x416594
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00405376
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4112e2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x411300
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00411172
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x411313
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41134c
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x411348
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x41185f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push ebx
push esi
push edi
mov edi, 0x208
xor esi, esi
push edi
lea eax, [ebp - 0x26a]
push esi
push eax
mov word [ebp - 0x26c], si
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x476]
push esi
push eax
mov word [ebp - 0x478], si
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x26c]
push eax
call fcn.00404e5d
mov edi, str.regedit.exe
push edi
call sub.msvcrt.dll_wcslen
mov ebx, eax
lea eax, [ebp - 0x26c]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 1]
add esp, 0x24
cmp eax, 0x104
jae 0x4118e6
lea eax, [ebp - 0x26c]
push edi
push eax
lea eax, [ebp - 0x478]
call fcn.00404e39
pop ecx
pop ecx
jmp 0x4118ed
mov word [ebp - 0x478], si
xor eax, eax
mov dword [ebp - 0x1c], esi
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 5
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00405639
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
pop ecx
je 0x411954
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call ebx
push eax
call edi
cmp eax, esi
je 0x411954
lea ecx, [ebp - 8]
push ecx
call eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00405639
test eax, eax
pop ecx
je 0x4119a2
mov eax, dword [ebp - 8]
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0xc], eax
call ebx
push eax
call edi
cmp eax, esi
je 0x4119a2
push dword [ebp - 0xc]
call eax
cmp dword [ebp - 4], esi
je 0x4119c3
xor edi, edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp + 8]
call fcn.00411842
test eax, eax
jne 0x4119c3
inc edi
cmp edi, 0x64
jl 0x4119a9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411c0e
Capabilities:
Set environment variable

Disassembly:
push ebx
push ebp
xor ebx, ebx
call fcn.00404e29
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
je 0x411c2d
push str.RunAsInvoker
push str.__COMPAT_LAYER
call ebp
push esi
mov esi, edi
call fcn.00411842
test eax, eax
jne 0x411c3f
push edi
call fcn.0041185f
call fcn.00411842
test eax, eax
je 0x411ca3
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x20000000
je 0x411c63
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [esp + 0x10]
push edi
call fcn.00411b08
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
call fcn.0041172c
test eax, eax
je 0x411c98
push dword [edi + 8]
or eax, 0xffffffff
mov ebx, 0x416594
call fcn.00411a07
push dword [edi + 8]
call fcn.00411a4f
xor ebx, ebx
inc ebx
call fcn.00404e29
test eax, eax
pop esi
je 0x411cb6
push 0
push str.__COMPAT_LAYER
call ebp
pop ebp
mov eax, ebx
pop ebx
ret 4

Function at 0x411d8d
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
call fcn.00411d5e
xor edi, edi
cmp dword [0x41c4fc], edi
je 0x411dbb
call fcn.00404df4
push edi
push 0x10
push ebx
push edi
call dword [0x41c4fc]
jmp 0x411e3f
push 0x206
lea eax, [ebp - 0x24a]
push edi
push eax
mov word [ebp - 0x24c], di
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x411e28
push esi
lea eax, [ebp - 0x44]
push str.Desktop
push eax
call sub.msvcrt.dll_wcscpy
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
mov eax, 0x104
lea esi, [ebp - 0x24c]
call fcn.00411313
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.msvcrt.dll_wcscpy
xor eax, eax
cmp word [ebx], di
pop ecx
pop ecx
setne al
pop edi
leave
ret
Function at 0x41224a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x4123dc
push ebx
mov eax, edi
call fcn.00405f3b
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x416e38
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4122cd
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41231c
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x416594
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.004121bb
test eax, eax
jne 0x41232c
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x4189cc
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.004121bb
push 0x4189e4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.004121bb
push 0x418a04
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.004121bb
push 0x418a1c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.004121bb
push 0x418a3c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.004121bb
push 0x418a54
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.004121bb
push 0x418a70
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.004121bb
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.004121bb
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x4031c0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0
push eax
push 2
push 0
push 0x402268
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x403219
mov edx, dword [esp]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push 0x4022dc
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
add esp, 8
ret