joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45116c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46abb8]
cmp dword [eax + 0x30], 0
je 0x451216
cmp dword [ebx + 0x94], 0
jne 0x451210
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4510fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451210
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4511d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451210
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004137a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4511e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451d78
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451dad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x451dba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452e0c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452e4d
mov eax, esi
call fcn.004395d4
test al, al
je 0x452e4d
mov eax, dword [ebx + 0x84]
call fcn.004392d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452e4d
push 0
mov eax, dword [ebx + 0x84]
call fcn.004392d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x456514
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x456542
mov eax, ebx
call fcn.00456fc8
cmp dword [ebx + 0x40], 0
je 0x45653b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4565b3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4565a5
cmp dword [ebx + 8], 0
je 0x456564
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x456576
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4565a5
cmp dword [ebx + 8], 0
je 0x456557
cmp eax, 3
je 0x456589
dec eax
jne 0x456557
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x456557
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x456557
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4565d1
cmp dword [ebx + 0x14], 0xcc
je 0x4565d1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004565dc
pop ebx
ret
Function at 0x4013d0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push 0x457554
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4013ef
jmp 0x4014c6
push str.OpenThread
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push str.Thread32First
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push str.Thread32Next
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
push str.CreateToolhelp32Snapshot
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], 0
je 0x40144f
cmp dword [ebp - 4], 0
je 0x40144f
cmp dword [ebp - 0x40], 0
je 0x40144f
cmp dword [ebp - 0x1c], 0
jne 0x401451
jmp 0x4014c6
push 0
push 4
call dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0x1c
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4014c6
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 8]
jne 0x4014b6
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x3c]
je 0x4014b6
mov edx, dword [ebp - 0x30]
push edx
push 0
push 2
call dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x4014b6
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
jmp 0x401482
mov esp, ebp
pop ebp
ret
Function at 0x406a60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004401c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00406af0
add esp, 0x10
test eax, eax
je 0x406ad9
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret

Function at 0x406c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x406c4f
cmp dword [ebp + 0xc], 0
jne 0x406c56
xor eax, eax
jmp 0x406d3c
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
mov byte [ebp - 0x118], 0
push 0x103
push 0
lea eax, [ebp - 0x117]
push eax
call fcn.004401c0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SOFTWARERising_s
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.00406d50
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x118]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406d30
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.datapath
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00440430
add esp, 4
test eax, eax
je 0x406d26
cmp dword [ebp + 0x10], 0x7fffffff
jbe 0x406d0e
mov dword [ebp - 0x11c], 0x80070057
jmp 0x406d26
push 0x457bd0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00406950
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00440430
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret
Function at 0x406da0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004401c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00406af0
add esp, 0x10
test eax, eax
je 0x406eff
mov byte [ebp - 0x228], 0
push 0x104
push 0
lea ecx, [ebp - 0x227]
push ecx
call fcn.004401c0
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0x457c04
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x114], eax
movsx eax, byte [ebp - 0x228]
test eax, eax
jne 0x406e5a
mov eax, dword [ebp + 0x10]
jmp 0x406f02
lea ecx, [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_CharUpperA]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
lea edx, [ebp - 0x118]
push edx
push 0x457c00
lea eax, [ebp - 0x228]
push eax
call fcn.00442655
add esp, 0xc
cmp dword [ebp - 0x118], 0
jbe 0x406ea7
mov eax, dword [ebp - 0x118]
jmp 0x406f02
lea ecx, [ebp - 0x11c]
push ecx
push str.0X_X
lea edx, [ebp - 0x228]
push edx
call fcn.00442655
add esp, 0xc
cmp dword [ebp - 0x11c], 0
jbe 0x406ed3
mov eax, dword [ebp - 0x11c]
jmp 0x406f02
lea eax, [ebp - 0x114]
push eax
push 0x457bf4
lea ecx, [ebp - 0x228]
push ecx
call fcn.00442655
add esp, 0xc
cmp dword [ebp - 0x114], 0
jbe 0x406eff
mov eax, dword [ebp - 0x114]
jmp 0x406f02
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret
Function at 0x407460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0x457bcc
push str.RAV.INI
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x457c04
push str.LOGNAME
push str.DEBUG
call fcn.00407590
add esp, 0x1c
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
jne 0x407586
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 4], eax
push 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.00440418
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40755a
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
sub edx, ecx
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 9
push ecx
call fcn.00442ac0
add esp, 0xc
push 9
push str.logfiles
mov edx, dword [ebp - 8]
push edx
call fcn.00442750
add esp, 0xc
mov eax, dword [ebp - 8]
mov byte [eax + 9], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov byte [edx + 9], 0x5c
cmp dword [ebp - 0xc], 0xffffffff
je 0x407532
mov eax, dword [ebp - 0xc]
and eax, 0x10
je 0x407532
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx + 9], 0
jmp 0x40755a
mov edx, dword [ebp - 8]
sub edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
sub eax, edx
push eax
mov ecx, dword [ebp - 8]
add ecx, 9
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00442ac0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, 0x104
cmp ecx, 0x7fffffff
jbe 0x407570
mov dword [ebp - 0x10], 0x80070057
jmp 0x407586
push str..log
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.00406950
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret

Function at 0x407590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0xffffffff
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004401c0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x20]
push eax
call fcn.00406af0
add esp, 0x10
test eax, eax
je 0x407611
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret
Function at 0x407f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.004401c0
add esp, 0xc
mov byte [ebp - 0x328], 0
push 0x103
push 0
lea ecx, [ebp - 0x327]
push ecx
call fcn.004401c0
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x32c], eax
push 0x457b84
mov ecx, dword [ebp - 0x32c]
push ecx
call fcn.004423ca
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x348], edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x104
sub ecx, eax
sub ecx, 1
mov dword [ebp - 0x344], ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x218]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x344], 0x7fffffff
jbe 0x408058
mov dword [ebp - 0x330], 0x80070057
jmp 0x40807c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x348]
push edx
mov eax, dword [ebp - 0x344]
push eax
mov ecx, dword [ebp - 0x340]
push ecx
call fcn.00406420
mov dword [ebp - 0x330], eax
mov dword [ebp - 4], 0
push str._RsInstall_
lea edx, [ebp - 0x328]
push edx
call fcn.004423f0
add esp, 8
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x328]
push ecx
call fcn.00442400
add esp, 8
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea edx, [ebp - 0x10f]
push edx
call fcn.004401c0
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4080f7
push 0x104
push str.C:Temp
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x5c
lea edx, [ebp - 0x110]
push edx
call fcn.00440418
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40812e
mov eax, dword [ebp - 0x21c]
movsx ecx, byte [eax + 1]
test ecx, ecx
jne 0x40812e
mov edx, dword [ebp - 0x21c]
mov byte [edx], 0
push str.RsInstall.log
lea eax, [ebp - 0x110]
push eax
call fcn.00442400
add esp, 8
lea ecx, [ebp - 0x328]
push ecx
lea edx, [ebp - 0x110]
push edx
push 1
push 0x80
call fcn.004064b0
add esp, 0x10
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret
Function at 0x408a30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45310b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc8], ecx
lea ecx, [ebp - 0x74]
call fcn.00409920
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x74]
call fcn.0040a0c0
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x94]
cmp dword [edx + 0x18], 0x10
jb 0x408ab4
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xd0], ecx
jmp 0x408ac3
mov edx, dword [ebp - 0x94]
add edx, 4
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x10]
call fcn.004093b0
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x90]
call fcn.00401600
lea ecx, [ebp - 0x10]
call fcn.004042b0
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.0040ac90
test eax, eax
jne 0x408b37
lea ecx, [ebp - 0x10]
call fcn.004042b0
push eax
call fcn.0040ca40
add esp, 4
push 0
lea ecx, [ebp - 0x10]
call fcn.004042b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x408b35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReleaseDUI_CreateDir_FAILED_Error___d
call fcn.00407f90
add esp, 8
jmp 0x408b54
mov edx, dword [ebp - 0x10]
push edx
call fcn.00408b90
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.004042b0
push eax
call fcn.0040ca40
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00404a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00409ac0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret

Function at 0x408b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push str.ClearTempDir__s
call fcn.00407f90
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c730
add esp, 4
mov dword [ebp - 4], 0
jmp 0x408bc3
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xa
jge 0x408bf1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408bf1
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c730
add esp, 4
jmp 0x408bba
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x409060
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x409105
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReleaseRes_CreateFile_Failed_ErrorCode__d_File_s
call fcn.00407f90
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.0040ca40
add esp, 4
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x409105
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReleaseRes_2_CreateFile_Failed_ErrorCode__d_File_s
call fcn.00407f90
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x40915e
mov edx, dword [ebp + 0x10]
push edx
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409170
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x465b00]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x409392
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x409392
cmp dword [ebp - 0xa4], 4
jne 0x4092ab
cmp dword [ebp - 0xa0], 0
jne 0x4092ab
push 0x45809c
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x4092a6
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0xb4], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.00442ed0
add esp, 8
mov byte [eax + 1], 0
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x1c8]
push edx
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebp - 0x1c8]
imul ecx, dword [ebp - 0x1cc]
imul ecx, dword [ebp - 0x1c4]
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
jmp 0x409392
push str.GetDiskFreeSpaceExA
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0
je 0x409392
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov byte [ebp - 0x2d8], 0
push 0x103
push 0
lea ecx, [ebp - 0x2d7]
push ecx
call fcn.004401c0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.00442ed0
add esp, 8
mov byte [eax + 1], 0
lea edx, [ebp - 0x2e0]
push edx
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2f8]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call dword [ebp - 0x1d0]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 0
je 0x409392
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x2dc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004401a3
mov esp, ebp
pop ebp
ret 4
Function at 0x409b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4532a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x465b00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x1c]
call fcn.0040b180
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040bca0
add esp, 0xc
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409cb5
cmp dword [ebp - 0x10], 0
je 0x409cb5
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push str.DisplayVersion
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409cab
mov edx, dword [ebp - 0x14]
push edx
call fcn.0043ff28
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.004401c0
add esp, 0xc
cmp dword [ebp - 0x24], 0
je 0x409cab
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push str.DisplayVersion
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409c99
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x74]
add ecx, 0x30
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x24], 0
jne 0x409c7a
mov dword [ebp - 0x40], 0
jmp 0x409c89
mov edx, dword [ebp - 0x24]
push edx
call fcn.00440430
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x6c]
call fcn.00405160
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0044219d
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00404a90
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4