joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079cb
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x43d156
call fcn.004311b8
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00407bd9
test al, al
je 0x4079fe
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x407b82
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.00407c01
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.004311d7
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x407a94
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.00407b92
jmp 0x407a96
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 0x40797f
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.004311d7
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 0x407b1e
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 0x407b15
cmp dword [ebp - 0x30], 0x8032
jne 0x407b09
mov ecx, dword [ebx + 0x98]
call fcn.00407f8f
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407ae2
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x407ad2
push dword [ebp + 8]
call fcn.004091ee
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 0x407b57
lea ecx, [ebx + 8]
call fcn.00407d5d
push ebx
call fcn.004091ee
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407b61
xor eax, eax
jmp 0x407b82
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 0x407f21
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 0x407f3a
xor esi, esi
jmp 0x407f67
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.004318e0
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 0x407f85
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x407f2c
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fb89
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
xor ebx, ebx
cmp dword [0x44e454], ebx
push esi
mov esi, ecx
je 0x40fc6b
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, esi
call fcn.0040fcdc
xor al, al
cmp dword [ebp - 0x90], 5
ja 0x40fbd7
jne 0x40fbe2
cmp dword [ebp - 0x8c], ebx
jbe 0x40fbe2
cmp dword [ebp - 0x84], 2
jne 0x40fbe2
mov al, 1
cmp byte [ebp + 8], bl
je 0x40fc30
cmp al, bl
je 0x40fc18
push 0xfffffffffffffff0
push dword [0x44e454]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [esi + 0x48], eax
or al, 8
push eax
push 0xfffffffffffffff0
push dword [0x44e454]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x64
push 1
push 0x40a
jmp 0x40fc5f
lea eax, [esi + 0x44]
push eax
push ebx
push esi
push 0x40fc71
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
jmp 0x40fc6b
cmp al, bl
push ebx
push ebx
je 0x40fc5a
push 0x40a
push dword [0x44e454]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [esi + 0x48]
push 0xfffffffffffffff0
push dword [0x44e454]
call dword [sym.imp.USER32.dll_SetWindowLongA]
jmp 0x40fc6b
push 0x402
push dword [0x44e454]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
pop ebx
leave
ret 4

Function at 0x40fd6e
Capabilities:
Set registry value

Disassembly:
mov eax, 0x43da00
call fcn.004311b8
sub esp, 0x130
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
push 0xf003f
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00410c09
test eax, eax
jne 0x40fe11
push esi
lea eax, [ebp - 0x13c]
push dword [ebp + 8]
push 0x448520
push eax
call fcn.0043159b
add esp, 0xc
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x44049c
mov dword [ebp - 0x18], 0x440494
push ebx
push dword [ebp + 0xc]
call fcn.0040b9d3
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004016f0
mov esi, eax
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x13c]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.0040191f
pop esi
cmp dword [ebp - 0x10], ebx
pop ebx
je 0x40fe20
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40fe2e
Capabilities:
Accept command line arguments
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x43da2f
call fcn.004311b8
sub esp, 0x8c
push ebx
xor ebx, ebx
cmp byte [ecx + 0x3c], bl
je 0x40ff8b
push esi
push edi
mov dword [ebp - 0x14], ebx
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0xf003f
mov esi, SysReAllocStringLen
push edi
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00410c09
test eax, eax
je 0x40feb1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40ff7b
xor eax, eax
cmp dword [ebp - 0x14], ebx
je 0x40fea3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x40ff7b
lea eax, [ebp - 0x15]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x70]
call fcn.004014ff
lea eax, [ebp - 0xd]
push 1
push eax
push 0x448574
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0040ba66
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x70]
push eax
mov byte [ebp - 4], 2
call fcn.00410c47
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0040191f
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0x44049c
mov dword [ebp - 0x28], 0x440494
call fcn.00401581
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x40ff2d
mov eax, 0x4404b4
push eax
lea eax, [ebp - 0x48]
push str.__s_
push eax
call fcn.00410f2c
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.004016f0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push str.__ISSetupPrerequisistes
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040191f
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.0040191f
cmp dword [ebp - 0x14], ebx
pop edi
pop esi
je 0x40ff8b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41092c
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x43dbab
call fcn.004311b8
mov eax, 0x10a0
call fcn.004318e0
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x21]
mov ebx, 0x44049c
mov edi, 0x440494
push esi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], edi
call fcn.00401581
or dword [ebp - 0x20], 0xffffffff
push 1
pop eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push eax
push SysReAllocStringLen
mov byte [ebp - 4], 2
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x410a5c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xac]
push eax
call fcn.0042e358
pop ecx
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x10ac]
push 0x1000
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4109e9
push dword [ebp + 0xc]
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.0042e380
add esp, 0xc
cmp dword [ebp + 0xc], esi
ja 0x4109ad
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042e41e
movzx eax, byte [ebp - 0xd]
pop ecx
pop ecx
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call fcn.00410f2c
add esp, 0x48
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.0040b9d3
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x410a8c
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x410a8c
push dword [ebp - 0x20]
call eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040191f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x413089
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 SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4130e0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x44e4c8
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4130d7
mov byte [0x44f4c8], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x413299
Capabilities:
Hide graphical window

Disassembly:
push dword [0x44f4d8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4132c5
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x44f4d8]
call esi
push 0
push dword [0x44f4cc]
call esi
pop esi
ret

Function at 0x4132c6
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 [0x44f4d8]
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.0041ed29
cmp dword [eax], 1
je 0x413330
cmp dword [eax + 4], ebx
je 0x413385
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 0x413385
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 [0x44f4d8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413a64
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00414509
test eax, eax
pop ecx
jne 0x413bc1
mov esi, 0x44ff28
push esi
call fcn.004145ee
test eax, eax
pop ecx
jne 0x413bc1
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x44ff28]
push 0x44ff1c
mov dword [eax], ecx
call fcn.00414559
test eax, eax
pop ecx
jne 0x413bc1
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x44ff1c]
mov dword [ebx], eax
cmp dword [0x44ff28], 1
jne 0x413ac7
xor eax, eax
jmp 0x413bc1
lea eax, [ebp + 8]
push eax
push 0x44ff20
call fcn.00413a50
test eax, eax
jne 0x413bc1
mov eax, dword [0x44ff28]
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 [0x44ff2c], eax
jne 0x413b06
push 0xfffffffffffffffc
pop eax
jmp 0x413bc1
push esi
call fcn.00414677
mov edi, eax
pop ecx
test edi, edi
je 0x413b3c
push dword [0x44ff2c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x44ff2c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x413bbf
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x44ff18], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x44fd0c], eax
movzx eax, word [ebp + 0x14]
push 0x413df0
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x44fd0c]
test eax, eax
je 0x413b7f
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x413b88
xor edi, edi
jmp 0x413b90
cmp edi, 2
jne 0x413b90
or edi, 0xffffffff
mov eax, dword [0x44ff2c]
test eax, eax
je 0x413bb8
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x44ff2c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x44ff1c], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4140a5
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 0x41422c
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 0x41422c
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x414117
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 0x41422c
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.00414869
push 1
push 0x4489e8
push esi
mov edi, eax
call fcn.00414869
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 0x41422c
test edi, edi
je 0x41422c
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 0x4141b6
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 0x4141bc
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4141cc
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x41422c
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 0x415dfe
Capabilities:
Check os version

Disassembly:
mov eax, 0x43e1f0
call fcn.004311b8
sub esp, 0x3e8
push ebx
push esi
lea eax, [ebp - 0xe8]
push edi
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 0xe8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xe4], 5
jne 0x415f5a
cmp dword [ebp - 0xe0], 2
jne 0x415f5a
cmp byte [ebp - 0x4e], 1
je 0x415f5a
push 0x448d70
push dword [ebp + 8]
call fcn.00431a80
pop ecx
pop ecx
test eax, eax
push 1
je 0x415f48
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.004014ff
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
je 0x415f3a
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.0041ac14
mov dword [ebp - 0x14], ebx
xor esi, esi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x415f2f
mov eax, dword [ebp - 0x1c]
push 0x28
sub eax, ecx
pop edi
cdq
idiv edi
cmp dword [ebp - 0x14], eax
jae 0x415f2f
add ecx, esi
call fcn.004016f0
push eax
lea eax, [ebp - 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1ec]
push str.dotnetfxsp1.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2f0]
push 1
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.00418d00
test eax, eax
je 0x415f0c
inc dword [ebp - 0x14]
add esi, edi
jmp 0x415eab
mov ecx, dword [ebp - 0x10]
call fcn.0041a96e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0041b020
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040191f
xor eax, eax
jmp 0x415f49
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0041b020
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040191f
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x448d70
push dword [ebp + 8]
call fcn.00431a80
pop ecx
test eax, eax
pop ecx
jne 0x415f46
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x3f4]
push 1
push eax
push str.dotnetfxsp1.exe
call fcn.00418d00
test eax, eax
jne 0x415f46
mov ecx, dword [ebp - 0x10]
call fcn.0041a96e
jmp 0x415f2b
Function at 0x41647a
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x43e204
call fcn.004311b8
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 0x4164f5
cmp ecx, 0xbc2
je 0x4164f5
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x4164bc
cmp ecx, 0x642
jne 0x4164c8
cmp dword [ebp + 0x18], ebx
je 0x4164c8
mov dword [eax], ebx
jmp 0x4165ef
cmp ecx, ebx
je 0x4165ef
cmp ecx, 0x1008
je 0x4165ef
mov ecx, dword [ebp - 0x10]
mov dword [0x450be0], 0x66d
call fcn.0041a96e
xor eax, eax
jmp 0x4165f1
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 0x448f74
push str.DotNetDelayReboot
push dword [0x440694]
call fcn.00401046
mov ecx, eax
add ecx, 0x4030
call fcn.0040239d
cmp byte [ebp - 0x20], 0x59
mov byte [ebp + 0x17], bl
je 0x416540
cmp byte [ebp - 0x20], 0x79
jne 0x416544
mov byte [ebp + 0x17], 1
call fcn.0042a380
test eax, eax
jne 0x416566
cmp dword [ebp + 8], 0xbc2
jne 0x41655b
cmp byte [ebp + 0x17], bl
je 0x416566
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x416570
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.00410c09
test eax, eax
jne 0x4165e0
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 0x4165ef
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