joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401087
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010ba
push 0xfffffffffffffffe
pop eax
jmp 0x40122c
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 0xa]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4010e3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010ff
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401107
or eax, 0xffffffff
jmp 0x40122c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0x42
jne 0x401215
cmp byte [esi + 1], 0x4d
jne 0x401215
push 0
sub edi, 0xe
pop eax
je 0x401135
mov cl, byte [eax + esi + 0xe]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x401129
cmp dword [esi + 0x10], 0
je 0x401142
push 0xfffffffffffffff0
jmp 0x401217
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [esi + 8]
and dword [edi + 4], 0
mov dword [edi + 0xc], eax
movzx eax, word [esi + 0xe]
dec eax
je 0x40117e
sub eax, 3
je 0x40117a
sub eax, 4
je 0x401173
sub eax, 0x10
jne 0x401215
xor eax, eax
jmp 0x401181
mov eax, 0x400
jmp 0x401181
push 0x40
jmp 0x401180
push 8
pop eax
mov ebx, dword [esi]
push 0
add ebx, eax
add ebx, esi
call dword [sym.imp.USER32.dll_GetDC]
and dword [ebp + 0xc], 0
push 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 8
jne 0x4011ab
mov dword [ebp + 0xc], 1
cmp word [esi + 0xe], 8
jne 0x4011da
cmp dword [ebp + 0xc], 0
je 0x4011da
push esi
call fcn.00401233
pop ecx
mov dword [edi + 4], eax
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
push ebx
push 4
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [edi], eax
cmp word [esi + 0xe], 8
jne 0x401207
cmp dword [ebp + 0xc], 0
je 0x401207
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x401218
push 0xfffffffffffffff8
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40145c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4014b9
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4014b1
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004013bf
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4014bf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 0x13
mov byte [ebp - 3], 0x35
mov byte [ebp - 2], 0x86
mov byte [ebp - 1], 7
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.0041d7f8
mov esi, eax
pop ecx
test esi, esi
je 0x40150d
xor edx, edx
test ebx, ebx
jbe 0x40150d
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
inc edx
cmp edx, ebx
mov byte [ecx], al
jb 0x4014f7
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40340c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x403418
mov eax, 0x42b480
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40342c
test al, 0x10
jne 0x40342c
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x403ad0
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x403adc
mov eax, 0x42b480
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
ja 0x403b15
cmp esi, 0xffffffff
je 0x403b11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403b29
mov ecx, dword [esp + 8]
cmp esi, 0xffffffff
mov dword [ecx], eax
je 0x403b27
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret 4

Function at 0x404ae3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp byte [0x4352ac], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x404c73
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.00414579
push 1
mov ecx, esi
mov ebx, eax
call fcn.0041455e
mov ecx, esi
call fcn.00414557
push eax
mov ecx, esi
call fcn.00414430
mov ecx, ebx
call fcn.00416cbe
push eax
mov ecx, esi
call fcn.00414519
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, edi
call fcn.00404c7b
test eax, eax
jne 0x404b6f
mov edi, 0x47f
mov ecx, esi
mov dword [0x437e5c], edi
call fcn.00414526
shr eax, 0xa
push eax
push edi
call fcn.0041751b
pop ecx
pop ecx
jmp 0x404c68
lea eax, [ebp - 0x400]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x800]
push 0x4301e4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.00418075
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.0041ec50
and byte [eax], bl
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.0041801e
test eax, eax
jne 0x404bc5
lea eax, [ebp - 0x400]
push eax
call fcn.00417f74
lea eax, [ebp - 0x400]
push eax
push 0x434eac
call fcn.0041dbb0
pop ecx
pop ecx
push dword [0x4313e8]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.0041510f
test eax, eax
jne 0x404bfb
push 2
mov ecx, esi
call fcn.0041455e
jmp 0x404c06
mov ecx, esi
call fcn.00415123
test eax, eax
je 0x404c68
push dword [0x4313fc]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.0041510f
test eax, eax
je 0x404c38
push 1
push ebx
push ebx
push 1
push dword [0x4313fc]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.00415434
mov ecx, edi
call fcn.00404d3c
test eax, eax
jne 0x404c54
mov eax, 0x481
push ebx
mov dword [0x437e5c], eax
push eax
jmp 0x404b63
cmp dword [esi + 0x14bc], 5
jne 0x404c6c
mov ecx, esi
call fcn.0041538e
test eax, eax
jne 0x404c6c
xor eax, eax
jmp 0x404c76
mov byte [0x4352ac], 1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c7b
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.00414526
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x404cbc
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00404d11
test eax, eax
jne 0x404d08
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x404cd8
push esi
push edi
mov ecx, ebx
call fcn.00404d11
test eax, eax
jne 0x404d08
push 0x434e90
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00417bb1
add esp, 0xc
test eax, eax
jge 0x404d08
push edi
push esi
push 4
call fcn.00417bb1
add esp, 0xc
test eax, eax
jge 0x404d08
xor eax, eax
jmp 0x404d0b
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x405ad0
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x4292de
call fcn.0041e1f0
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00405cde
test al, al
je 0x405b03
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x405c87
and byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.00405d06
mov esi, 0x400
xor edi, edi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
mov dword [ebx + 0x90], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0x94], eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.0041d7f8
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x405b99
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.00405c97
jmp 0x405b9b
xor eax, eax
mov dword [ebx + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push ebx
push 0x405a84
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.0041d7f8
mov dword [eax], esi
pop ecx
mov esi, 0xff
mov dword [ebp + 8], eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x405c23
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x405c1a
cmp dword [ebp - 0x30], 0x8032
jne 0x405c0e
mov ecx, dword [ebx + 0x98]
call fcn.004060a3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x405be7
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x405bd7
push dword [ebp + 8]
call fcn.0040729e
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [ebx + 0x90]
call esi
push dword [ebx + 0x94]
call esi
mov ebx, dword [ebx + 0x98]
pop esi
cmp ebx, edi
je 0x405c5c
lea ecx, [ebx + 8]
call fcn.00405e62
push ebx
call fcn.0040729e
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x405c66
xor eax, eax
jmp 0x405c87
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x406035
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x40604e
xor esi, esi
jmp 0x40607b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0041e1c0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406099
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x406040
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409e18
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409e6f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x435b58
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e66
mov byte [0x436b58], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x409f9d
Capabilities:
Hide graphical window

Disassembly:
push dword [0x436b74]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409fc9
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x436b74]
call esi
push 0
push dword [0x436b68]
call esi
pop esi
ret

Function at 0x409fca
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x436b74]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0041437c
cmp dword [eax], 1
je 0x40a034
cmp dword [eax + 4], ebx
je 0x40a089
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40a089
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x436b74]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a70f
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040b1b4
test eax, eax
pop ecx
jne 0x40a86c
mov esi, 0x4375b0
push esi
call fcn.0040b299
test eax, eax
pop ecx
jne 0x40a86c
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x4375b0]
push 0x4375a4
mov dword [eax], ecx
call fcn.0040b204
test eax, eax
pop ecx
jne 0x40a86c
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x4375a4]
mov dword [ebx], eax
cmp dword [0x4375b0], 1
jne 0x40a772
xor eax, eax
jmp 0x40a86c
lea eax, [ebp + 8]
push eax
push 0x4375a8
call fcn.0040a6fb
test eax, eax
jne 0x40a86c
mov eax, dword [0x4375b0]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x4375b4], eax
jne 0x40a7b1
push 0xfffffffffffffffc
pop eax
jmp 0x40a86c
push esi
call fcn.0040b322
mov edi, eax
pop ecx
test edi, edi
je 0x40a7e7
push dword [0x4375b4]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4375b4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a86a
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x4375a0], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x437394], eax
movzx eax, word [ebp + 0x14]
push 0x40aa9b
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x437394]
test eax, eax
je 0x40a82a
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x40a833
xor edi, edi
jmp 0x40a83b
cmp edi, 2
jne 0x40a83b
or edi, 0xffffffff
mov eax, dword [0x4375b4]
test eax, eax
je 0x40a863
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x4375b4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x4375a4], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40ad50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x40aed7
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x40aed7
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x40adc2
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x40aed7
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.0040b514
push 1
push 0x43071c
push esi
mov edi, eax
call fcn.0040b514
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x40aed7
test edi, edi
je 0x40aed7
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x40ae61
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x40ae67
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x40ae77
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x40aed7
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40babb
Capabilities:
Check os version

Disassembly:
mov eax, 0x4296c4
call fcn.0041e1f0
sub esp, 0x3e0
push ebx
push esi
lea eax, [ebp - 0xe0]
push edi
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 0xe0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xdc], 5
jb 0x40bc0d
cmp dword [ebp - 0xd8], 2
jb 0x40bc0d
push 0x430880
push dword [ebp + 8]
call fcn.0041dd60
pop ecx
pop ecx
test eax, eax
push 1
je 0x40bbfb
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.00410a13
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
je 0x40bbed
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
push eax
push 0x2c
mov byte [ebp - 4], 1
call fcn.00410b4e
mov dword [ebp - 0x14], ebx
xor esi, esi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x40bbe2
mov eax, dword [ebp - 0x1c]
push 0x28
sub eax, ecx
pop edi
cdq
idiv edi
cmp dword [ebp - 0x14], eax
jae 0x40bbe2
add ecx, esi
call fcn.0041167c
push eax
lea eax, [ebp - 0x1e4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1e4]
push str.dotnetfxsp1.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2e8]
push 1
push eax
lea eax, [ebp - 0x1e4]
push eax
call fcn.0040ebc1
test eax, eax
je 0x40bbbf
inc dword [ebp - 0x14]
add esi, edi
jmp 0x40bb5e
mov ecx, dword [ebp - 0x10]
call fcn.004108bf
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00410d43
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040ba41
xor eax, eax
jmp 0x40bbfc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00410d43
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040ba41
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x430880
push dword [ebp + 8]
call fcn.0041dd60
pop ecx
test eax, eax
pop ecx
jne 0x40bbf9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x3ec]
push 1
push eax
push str.dotnetfxsp1.exe
call fcn.0040ebc1
test eax, eax
jne 0x40bbf9
mov ecx, dword [ebp - 0x10]
call fcn.004108bf
jmp 0x40bbde
Function at 0x40c107
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x4296d8
call fcn.0041e1f0
sub esp, 0x118
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
push 1
pop esi
cmp ecx, 0x2000
mov dword [eax], esi
je 0x40c182
cmp ecx, 0xbc2
je 0x40c182
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x40c149
cmp ecx, 0x642
jne 0x40c155
cmp dword [ebp + 0x18], ebx
je 0x40c155
mov dword [eax], ebx
jmp 0x40c27c
cmp ecx, ebx
je 0x40c27c
cmp ecx, 0x1008
je 0x40c27c
mov ecx, dword [ebp - 0x10]
mov dword [0x437e5c], 0x66d
call fcn.004108bf
xor eax, eax
jmp 0x40c27e
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
mov ecx, dword [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0x430a84
push str.DotNetDelayReboot
push dword [0x42b5dc]
call fcn.00401046
mov ecx, eax
add ecx, 0x4428
call fcn.00401d30
cmp byte [ebp - 0x20], 0x59
mov byte [ebp + 0x17], bl
je 0x40c1cd
cmp byte [ebp - 0x20], 0x79
jne 0x40c1d1
mov byte [ebp + 0x17], 1
call fcn.004183e2
test eax, eax
jne 0x40c1f3
cmp dword [ebp + 8], 0xbc2
jne 0x40c1e8
cmp byte [ebp + 0x17], bl
je 0x40c1f3
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x40c1fd
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x18], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], ebx
call fcn.00409e71
test eax, eax
jne 0x40c26d
push 0x40
lea edi, [ebp - 0x123]
pop ecx
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x18], ebx
pop edi
je 0x40c27c
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14