joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f004]
jne 0x401010
repz ret
jmp fcn.004015c6

Function at 0x4065eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004022ef
and dword [ebp - 4], 0
cmp dword [0x440ffc], 0
mov ebx, eax
jne 0x40669c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40674d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40674d
push eax
call fcn.0040227d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x440ffc], eax
call esi
push eax
call fcn.0040227d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x441000], eax
call esi
push eax
call fcn.0040227d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x441004], eax
call esi
push eax
call fcn.0040227d
pop ecx
mov dword [0x44100c], eax
test eax, eax
je 0x40669c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040227d
pop ecx
mov dword [0x441008], eax
mov eax, dword [0x441008]
cmp eax, ebx
je 0x4066f4
cmp dword [0x44100c], ebx
je 0x4066f4
push eax
call fcn.004022f8
push dword [0x44100c]
mov esi, eax
call fcn.004022f8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4066f4
test edi, edi
je 0x4066f4
call esi
test eax, eax
je 0x4066eb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066eb
test byte [ebp - 0xc], 1
jne 0x4066f4
or dword [ebp + 0x10], 0x200000
jmp 0x40672d
mov eax, dword [0x441000]
cmp eax, ebx
je 0x40672d
push eax
call fcn.004022f8
pop ecx
test eax, eax
je 0x40672d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40672d
mov eax, dword [0x441004]
cmp eax, ebx
je 0x40672d
push eax
call fcn.004022f8
pop ecx
test eax, eax
je 0x40672d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x440ffc]
call fcn.004022f8
pop ecx
test eax, eax
je 0x40674d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40674f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437d70
Capabilities:
Get hostname

Disassembly:
sub esp, 0x414
mov eax, dword [0x43f004]
xor eax, esp
mov dword [esp + 0x410], eax
cmp edi, 0x182
jne 0x437da6
push 0
push 0
push 0
push str.rijetinibahelohahuluru
push str.mifehiduwacirutadalorimadiwim
push 0
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
jmp 0x437dd0
cmp edi, 0x19f
jne 0x437dd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push esi
xor esi, esi
test edi, edi
jle 0x437e52
jmp 0x437de0
lea ecx, [esp + 0xc]
mov dword [esp + 4], 5
mov dword [esp + 0xc], 0
call fcn.00437d60
mov eax, dword [esp + 0xc]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
movsx eax, byte [ebx + esi]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
xor dword [esp + 8], eax
mov cl, byte [esp + 8]
mov byte [ebx + esi], cl
cmp edi, 0xf
jne 0x437e4d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x437de0
pop esi
cmp edi, 0x2d
jne 0x437e6c
mov dword [0x2b3f218], 0xa62e7790
mov dword [0x2b3f21c], 0xffffffff
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00401006
add esp, 0x414
ret
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x12974b63
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x75f05f4
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4025c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x14
lea ecx, [esp]
call fcn.0043be40
lea eax, [esp + 0x18]
lea ecx, [esp]
push eax
call fcn.0043bee0
lea ecx, [esp]
call fcn.0043c030
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402652
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [esp + 0x10]
call fcn.0043c1e0
push eax
push 0x2042
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0043c1e0
lea ecx, [esp + 0x10]
mov ebp, eax
call fcn.0043c1d0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0xf
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
lea ecx, [esp]
call fcn.0043be60
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40268a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40268a
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
add esp, 0x14
ret
Function at 0x402f50
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x4e3cc0]
push ebx
push esi
push edi
test eax, eax
jne 0x402fe7
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, 0x45
mov edi, 0x4e3b80
push 0x4e3b80
rep stosd dword es:[edi], eax
mov dword [0x4e3b80], 0x114
call esi
mov ecx, dword [0x4e3b84]
mov edx, dword [0x4e3b88]
mov eax, ecx
and edx, 0xffff
and eax, 0xffff
shl eax, 0x10
or eax, edx
cmp ecx, 5
mov dword [0x4e3cc0], eax
jb 0x402fed
mov ecx, 0x47
xor eax, eax
mov edi, 0x4e3a60
push 0x4e3a60
rep stosd dword es:[edi], eax
mov dword [0x4e3a60], 0x11c
call esi
mov eax, dword [0x4e3a68]
mov ecx, dword [0x4e3a64]
mov dword [0x4e3b88], eax
mov eax, dword [0x4e3cc0]
mov dword [0x4e3b84], ecx
jmp 0x402fed
mov ecx, dword [0x4e3b84]
mov ebx, dword [esp + 0x10]
cmp dword [ebx], 0
je 0x40317a
mov edx, dword [0x4e3b88]
push ebp
push edx
push ecx
push str.Windows__d._d
push ebx
call fcn.00401a70
mov eax, dword [0x4e3b90]
add esp, 0x10
cmp eax, 2
jne 0x403083
mov eax, str._Win32_NT
test eax, eax
je 0x403164
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x403164
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x40305e
mov edi, dword [edx - 8]
mov ebp, dword [edx - 4]
lea ecx, [edi + eax]
cmp ecx, ebp
jg 0x40305e
lea ecx, [eax + eax]
mov esi, str._Win32_NT
jmp 0x40310d
push str._Win32_NT
mov ecx, dword [edx - 8]
push eax
push edx
push ecx
mov ecx, ebx
call fcn.004017b0
test eax, eax
je 0x403164
push esi
call fcn.00401350
jmp 0x403164
cmp eax, 1
jne 0x4030cf
mov edx, str._Win32_WINDOWS
test edx, edx
je 0x403164
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x403164
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x4030c8
mov edi, dword [edx - 8]
mov ebp, dword [edx - 4]
lea ecx, [edi + eax]
cmp ecx, ebp
jg 0x4030c8
lea ecx, [eax + eax]
mov esi, str._Win32_WINDOWS
jmp 0x40310d
push str._Win32_WINDOWS
jmp 0x403063
test eax, eax
jne 0x40313f
mov edx, str._Win32s
test edx, edx
je 0x403164
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x403164
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x403135
mov edi, dword [edx - 8]
mov ebp, dword [edx - 4]
lea ecx, [edi + eax]
cmp ecx, ebp
jg 0x403135
lea ecx, [eax + eax]
mov esi, str._Win32s
lea edi, [edx + edi*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov ebx, dword [ebx]
mov eax, dword [ebx - 8]
mov word [ebx + eax*2], 0
jmp 0x403164
push str._Win32s
jmp 0x403063
mov edx, str._Unbekannt
test edx, edx
jne 0x40314c
xor eax, eax
jmp 0x403157
push str._Unbekannt
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str._Unbekannt
push eax
mov ecx, ebx
call fcn.00401850
mov eax, dword [esp + 0x18]
pop ebp
test eax, eax
je 0x403175
mov ecx, dword [0x4e3b90]
mov dword [eax], ecx
mov eax, dword [0x4e3cc0]
pop edi
pop esi
pop ebx
ret
Function at 0x403410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00488620
mov ecx, dword [0x4d9540]
mov edx, str._Kontakt
add esp, 4
mov esi, eax
test edx, edx
mov dword [esp + 0xc], ecx
jne 0x40343c
xor ebx, ebx
jmp 0x403449
push str._Kontakt
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov esi, dword [esi]
mov edi, dword [esi - 8]
lea eax, [ebx + edi]
cmp eax, edi
jl 0x40349f
cmp eax, ebx
jl 0x40349f
test eax, eax
je 0x40349f
push eax
lea ecx, [esp + 0x10]
call fcn.004012f0
test eax, eax
je 0x40349f
lea eax, [edi + edi]
mov edi, dword [esp + 0xc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0xc]
lea ecx, [ebx + ebx]
mov esi, str._Kontakt
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401200
lea ecx, [esp + 0xc]
call fcn.004014c0
mov edx, dword [esp + 0x10]
push 5
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4034ff
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4034ff
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40352a
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40352a
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret 0x10
Function at 0x405ba0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x218
mov edx, dword [esp + 0x21c]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [edi]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x405c00
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405bf0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov esi, eax
test eax, eax
mov dword [esp + 8], ecx
je 0x405c20
jmp 0x405c04
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405cc3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x218
ret 4
lea eax, [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push 0
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x30]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x405c8a
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00405ba0
mov edi, eax
test edi, edi
jne 0x405cd0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x405c4c
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x405ca1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x224]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x405cc3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x218
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x405cdf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x218
ret 4
Function at 0x407e00
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00407ca0
add esp, 4
test eax, eax
jne 0x407e1a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
Function at 0x40a220
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 8
Function at 0x40a610
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x218
mov eax, dword [0x4e3a2c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
push ecx
push 0x4d4e78
push 1
push ebx
push 0x4d4ed8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebp, dword [esp + 0x234]
mov esi, dword [esp + 0x22c]
test eax, eax
jl 0x40a732
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x4d4ef8
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x40a732
mov ecx, dword [esp + 0x244]
mov eax, dword [esp + 0x10]
cmp ecx, ebx
mov edx, dword [eax]
jne 0x40a6a3
push esi
push eax
call dword [edx + 0x50]
jmp 0x40a6a8
push ecx
push eax
call dword [edx + 0x14]
cmp eax, ebx
jl 0x40a732
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x238]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
jl 0x40a732
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x23c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jl 0x40a732
mov eax, dword [esp + 0x18]
push 1
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x240]
push ecx
push esi
mov edx, dword [eax]
push eax
call dword [edx + 0x44]
test eax, eax
jl 0x40a732
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
mov edx, dword [eax]
push 0x104
push ecx
push eax
call dword [edx + 0x40]
test eax, eax
jl 0x40a732
mov eax, dword [esp + 0x18]
push 1
push ebp
push eax
mov edx, dword [eax]
mov dword [esp + 0x20], 1
call dword [edx + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a740
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40a74e
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [0x4d9544]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x40a774
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x40a774
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x230]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40a79b
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x40a79b
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [0x4d9544]
lea edx, [ebp - 0xc]
cmp edx, eax
je 0x40a7ba
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x40a7ba
push esi
call fcn.004c5432
add esp, 4
mov esi, dword [esp + 0x238]
mov ecx, dword [0x4d9544]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x40a7e1
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x40a7e1
push esi
call fcn.004c5432
add esp, 4
mov esi, dword [esp + 0x23c]
mov eax, dword [0x4d9544]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x40a807
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x40a807
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x40aa70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov edx, dword [0x4e3a2c]
push esi
mov esi, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x410]
mov dword [esp + 0x40c], edx
rep stosd dword es:[edi], eax
mov ecx, 0xff
lea edi, [esp + 0x10]
mov dword [esp + 0xc], edx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40aaca
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
push eax
push 2
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
jmp 0x40aae5
mov edx, dword [esi + 4]
lea ecx, [esp + 8]
push ecx
push 0x17
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [esp + 0xc]
lea eax, [esp + 0x40c]
push edx
push 0x4d9b84
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 4]
add esp, 0xc
push eax
push 0x3e9
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esp + 0x814]
mov eax, dword [esp + 0x810]
push edx
push eax
mov ecx, esi
call fcn.0040a820
pop edi
pop esi
add esp, 0x804
ret 8
Function at 0x40ada0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov eax, dword [0x4d963c]
push esi
cmp eax, 0xffffffff
jne 0x40ae48
lea eax, [esp + 4]
xor esi, esi
push eax
push 0x20006
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [0x4d963c], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ade3
mov esi, dword [esp + 4]
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str._________ADMIN_TEST_SoftwareOK
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40ae22
test esi, esi
mov dword [0x4d963c], 0
je 0x40ae1d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
push str._________ADMIN_TEST_SoftwareOK
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
mov dword [0x4d963c], 1
je 0x40ae43
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40c730
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40c774
mov eax, dword [esp + 4]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40c76f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40c76f
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
xor eax, eax
ret 4
test al, 1
je 0x40c79a
mov eax, dword [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
lea ecx, [esp + 4]
jne 0x40c79e
call fcn.004014c0
xor eax, eax
ret 4
lea ecx, [esp + 4]
call fcn.004014c0
mov eax, 1
ret 4
Function at 0x40d9c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x4e3a24]
mov ecx, dword [esp + 4]
push esi
push 2
mov esi, dword [eax + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ax, word [eax + 0xe]
pop esi
ret
Function at 0x40ebb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov bl, 1
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x40ec0d
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 4]
mov dword [esp + 0x10], eax
push edx
mov dword [esp + 0x18], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret
shr eax, 2
test al, 1
je 0x40ec4a
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
and edi, 0xffff
push ecx
push edi
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 0x24]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x40ec81
mov al, byte [esi + 0x54]
push 1
or al, 2
push 0
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret