joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401072
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 SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010a5
push 0xfffffffffffffffe
pop eax
jmp 0x401217
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 0x4010ce
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4010ea
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 0x4010f2
or eax, 0xffffffff
jmp 0x401217
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi], 0x42
jne 0x401200
cmp byte [esi + 1], 0x4d
jne 0x401200
push 0
sub edi, 0xe
pop eax
je 0x401120
mov cl, byte [eax + esi + 0xe]
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x401114
cmp dword [esi + 0x10], 0
je 0x40112d
push 0xfffffffffffffff0
jmp 0x401202
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 0x401169
sub eax, 3
je 0x401165
sub eax, 4
je 0x40115e
sub eax, 0x10
jne 0x401200
xor eax, eax
jmp 0x40116c
mov eax, 0x400
jmp 0x40116c
push 0x40
jmp 0x40116b
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 0x401196
mov dword [ebp + 0xc], 1
cmp word [esi + 0xe], 8
jne 0x4011c5
cmp dword [ebp + 0xc], 0
je 0x4011c5
push esi
call fcn.0040121e
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 0x4011f2
cmp dword [ebp + 0xc], 0
je 0x4011f2
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 0x401203
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 0x401447
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 0x4014a4
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 0x40149c
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.004013aa
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 0x4014aa
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.00425de7
mov esi, eax
pop ecx
test esi, esi
je 0x4014f8
xor edx, edx
test ebx, ebx
jbe 0x4014f8
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 0x4014e2
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054e3
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x4054ef
mov eax, 0x4344c8
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
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 0x40552d
cmp esi, 0xffffffff
je 0x405529
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405529
push esi
call eax
xor al, al
jmp 0x405546
mov ecx, dword [esp + 8]
cmp esi, 0xffffffff
mov dword [ecx], eax
je 0x405544
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405544
push esi
call eax
mov al, 1
pop esi
ret 4
Function at 0x406b6f
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0041ac3d
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 0x406bb0
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00406c05
test eax, eax
jne 0x406bfc
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x406bcc
push esi
push edi
mov ecx, ebx
call fcn.00406c05
test eax, eax
jne 0x406bfc
push 0x440140
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.0041f3e2
add esp, 0xc
test eax, eax
jge 0x406bfc
push edi
push esi
push 4
call fcn.0041f3e2
add esp, 0xc
test eax, eax
jge 0x406bfc
xor eax, eax
jmp 0x406bff
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x4079aa
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x431c16
call fcn.00425dc8
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00407bb8
test al, al
je 0x4079dd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x407b61
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.00407be0
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.00425de7
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x407a73
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.00407b71
jmp 0x407a75
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 0x40795e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.00425de7
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 0x407afd
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 0x407af4
cmp dword [ebp - 0x30], 0x8032
jne 0x407ae8
mov ecx, dword [ebx + 0x98]
call fcn.00407fe3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407ac1
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x407ab1
push dword [ebp + 8]
call fcn.0042541c
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 0x407b36
lea ecx, [ebx + 8]
call fcn.00407d3c
push ebx
call fcn.0042541c
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407b40
xor eax, eax
jmp 0x407b61
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 0x407f75
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 0x407f8e
xor esi, esi
jmp 0x407fbb
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.004264f0
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 0x407fd9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x407f80
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cff2
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x40f944
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 0x40f99b
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x440a1c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f992
mov byte [0x441a1c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40fb6c
Capabilities:
Hide graphical window

Disassembly:
push dword [0x441a2c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40fb98
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x441a2c]
call esi
push 0
push dword [0x441a20]
call esi
pop esi
ret
Function at 0x40fb99
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 [0x441a2c]
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.0041aa93
cmp dword [eax], 1
je 0x40fc03
cmp dword [eax + 4], ebx
je 0x40fc58
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 0x40fc58
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 [0x441a2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410337
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00410ddc
test eax, eax
pop ecx
jne 0x410494
mov esi, 0x442478
push esi
call fcn.00410ec1
test eax, eax
pop ecx
jne 0x410494
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x442478]
push 0x44246c
mov dword [eax], ecx
call fcn.00410e2c
test eax, eax
pop ecx
jne 0x410494
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x44246c]
mov dword [ebx], eax
cmp dword [0x442478], 1
jne 0x41039a
xor eax, eax
jmp 0x410494
lea eax, [ebp + 8]
push eax
push 0x442470
call fcn.00410323
test eax, eax
jne 0x410494
mov eax, dword [0x442478]
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 [0x44247c], eax
jne 0x4103d9
push 0xfffffffffffffffc
pop eax
jmp 0x410494
push esi
call fcn.00410f4a
mov edi, eax
pop ecx
test edi, edi
je 0x41040f
push dword [0x44247c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x44247c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x410492
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x442468], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x44225c], eax
movzx eax, word [ebp + 0x14]
push 0x4106c3
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x44225c]
test eax, eax
je 0x410452
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x41045b
xor edi, edi
jmp 0x410463
cmp edi, 2
jne 0x410463
or edi, 0xffffffff
mov eax, dword [0x44247c]
test eax, eax
je 0x41048b
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x44247c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x44246c], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x410978
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 0x410aff
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 0x410aff
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x4109ea
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 0x410aff
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.0041113c
push 1
push 0x43b7b8
push esi
mov edi, eax
call fcn.0041113c
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 0x410aff
test edi, edi
je 0x410aff
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 0x410a89
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 0x410a8f
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x410a9f
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x410aff
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 0x4126c8
Capabilities:
Check os version

Disassembly:
mov eax, 0x432844
call fcn.00425dc8
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 0x412824
cmp dword [ebp - 0xe0], 2
jne 0x412824
cmp byte [ebp - 0x4e], 1
je 0x412824
push 0x43bb40
push dword [ebp + 8]
call fcn.00426690
pop ecx
pop ecx
test eax, eax
push 1
je 0x412812
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 0x412804
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.004174e6
mov dword [ebp - 0x14], ebx
xor esi, esi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x4127f9
mov eax, dword [ebp - 0x1c]
push 0x28
sub eax, ecx
pop edi
cdq
idiv edi
cmp dword [ebp - 0x14], eax
jae 0x4127f9
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.0041558f
test eax, eax
je 0x4127d6
inc dword [ebp - 0x14]
add esi, edi
jmp 0x412775
mov ecx, dword [ebp - 0x10]
call fcn.004171cd
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00417905
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040191f
xor eax, eax
jmp 0x412813
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00417905
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 0x43bb40
push dword [ebp + 8]
call fcn.00426690
pop ecx
test eax, eax
pop ecx
jne 0x412810
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x3f4]
push 1
push eax
push str.dotnetfxsp1.exe
call fcn.0041558f
test eax, eax
jne 0x412810
mov ecx, dword [ebp - 0x10]
call fcn.004171cd
jmp 0x4127f5
Function at 0x412d3b
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x432858
call fcn.00425dc8
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 0x412db6
cmp ecx, 0xbc2
je 0x412db6
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x412d7d
cmp ecx, 0x642
jne 0x412d89
cmp dword [ebp + 0x18], ebx
je 0x412d89
mov dword [eax], ebx
jmp 0x412eb0
cmp ecx, ebx
je 0x412eb0
cmp ecx, 0x1008
je 0x412eb0
mov ecx, dword [ebp - 0x10]
mov dword [0x443124], 0x66d
call fcn.004171cd
xor eax, eax
jmp 0x412eb2
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 0x43bd44
push str.DotNetDelayReboot
push dword [0x43466c]
call fcn.00401046
mov ecx, eax
add ecx, 0x4020
call fcn.00402344
cmp byte [ebp - 0x20], 0x59
mov byte [ebp + 0x17], bl
je 0x412e01
cmp byte [ebp - 0x20], 0x79
jne 0x412e05
mov byte [ebp + 0x17], 1
call fcn.0041fc29
test eax, eax
jne 0x412e27
cmp dword [ebp + 8], 0xbc2
jne 0x412e1c
cmp byte [ebp + 0x17], bl
je 0x412e27
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x412e31
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.0040f9b2
test eax, eax
jne 0x412ea1
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 0x412eb0
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
Function at 0x4139dc
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x4328df
call fcn.00425dc8
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.004014ff
and dword [ebp - 4], 0
mov eax, 0x43be10
mov ecx, eax
mov dword [ebp - 0x3c], 0x43447c
test ecx, ecx
mov dword [ebp - 0x1c], 0x434474
jne 0x413a50
mov eax, 0x440144
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ba8c
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00417409
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040191f
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x413b4c
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x413b2a
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004014ff
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.004014ff
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00417409
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0040191f
lea ecx, [ebp - 0x3c]
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040191f
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413aa8
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x413b4c
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.0040191f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4