joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp dword [0x438f84], 0
push esi
push edi
je 0x401bf9
push 0x434210
push 0x428174
push 0x4337d8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, 0x4331b8
call fcn.00411e10
test eax, eax
jne 0x401c1d
mov dword [0x4331d0], 2
mov dword [0x4341f0], 1
jmp 0x401c2a
cmp dword [0x4341f0], 1
jne 0x401cf5
cmp dword [0x43420c], 0
mov dword [0x4331cc], 1
jne 0x401ced
cmp dword [0x438f84], 0
je 0x401c78
cmp dword [0x431dd0], 0
je 0x401ced
mov eax, dword [0x438f88]
mov ecx, dword [0x438fe4]
push 0x10
push eax
push ecx
xor eax, eax
call fcn.00409070
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x438f04]
push 0
push 0xf060
push 0
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [0x438f04]
call fcn.00405b70
mov eax, dword [0x438f04]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x64
push eax
call esi
mov ecx, dword [0x438f04]
push 0xc8
push ecx
call esi
mov edx, dword [0x438f0c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call esi
mov eax, dword [0x438fe4]
mov ecx, dword [0x438f20]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x438f20]
push 5
push edx
call esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x4331b8
call fcn.00412af0
add esp, 4
test eax, eax
jne 0x401dc4
mov dword [0x4331d0], 3
cmp dword [0x43420c], eax
jne 0x401dc4
cmp dword [0x438f84], eax
je 0x401d4f
cmp dword [0x431dd0], eax
je 0x401dc4
mov eax, dword [0x438f88]
mov ecx, dword [0x438fe4]
push 0x10
push eax
push ecx
xor eax, eax
call fcn.00409070
add esp, 0xc
jmp 0x401dc4
mov edx, dword [0x438f04]
push 0
push 0xf060
push 0
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [0x438f04]
call fcn.00405b70
mov eax, dword [0x438f04]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x64
push eax
call esi
mov ecx, dword [0x438f04]
push 0xc8
push ecx
call esi
mov edx, dword [0x438f0c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call esi
mov eax, dword [0x438fe4]
mov ecx, dword [0x438f20]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x438f20]
push 5
push edx
call esi
pop edi
mov dword [0x4331cc], 1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401de0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov ecx, 0x4331b8
call fcn.00411e10
test eax, eax
jne 0x401e0c
mov dword [0x4331d0], 2
mov dword [0x4341f0], 1
jmp 0x401e19
cmp dword [0x4341f0], 1
jne 0x401ee4
cmp dword [0x43420c], 0
mov dword [0x4331cc], 1
jne 0x401edc
cmp dword [0x438f84], 0
je 0x401e67
cmp dword [0x431dd0], 0
je 0x401edc
mov eax, dword [0x438f88]
mov ecx, dword [0x438fe4]
push 0x10
push eax
push ecx
xor eax, eax
call fcn.00409070
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x438f04]
push 0
push 0xf060
push 0
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [0x438f04]
call fcn.00405b70
mov eax, dword [0x438f04]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x64
push eax
call esi
mov ecx, dword [0x438f04]
push 0xc8
push ecx
call esi
mov edx, dword [0x438f0c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call esi
mov eax, dword [0x438fe4]
mov ecx, dword [0x438f20]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x438f20]
push 5
push edx
call esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x4331b8
call fcn.00412af0
add esp, 4
test eax, eax
jne 0x401fb3
mov dword [0x4331d0], 3
cmp dword [0x43420c], eax
jne 0x401fb3
cmp dword [0x438f84], eax
je 0x401f3e
cmp dword [0x431dd0], eax
je 0x401fb3
mov eax, dword [0x438f88]
mov ecx, dword [0x438fe4]
push 0x10
push eax
push ecx
xor eax, eax
call fcn.00409070
add esp, 0xc
jmp 0x401fb3
mov edx, dword [0x438f04]
push 0
push 0xf060
push 0
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [0x438f04]
call fcn.00405b70
mov eax, dword [0x438f04]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 0x64
push eax
call esi
mov ecx, dword [0x438f04]
push 0xc8
push ecx
call esi
mov edx, dword [0x438f0c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call esi
mov eax, dword [0x438fe4]
mov ecx, dword [0x438f20]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x438f20]
push 5
push edx
call esi
pop edi
mov dword [0x4331cc], 1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a60
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x44
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [0x438f54]
sub eax, dword [0x438f50]
lea ecx, [esp]
push eax
push str.K7Installer:_Elapsed_Time:__lu_ms_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00416a72
add esp, 0x44
ret

Function at 0x4038b0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x400
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4038d3
pop esi
pop ebx
pop ecx
ret
push 0x400
push 0
push esi
call fcn.0041a140
add esp, 0xc
lea eax, [esp + 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403951
push 0x400
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403910
mov ecx, dword [esp + 8]
push edi
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push str.VirusSecuritySetup
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403942
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x403960
Capabilities:
Shutdown system

Disassembly:
push ecx
call fcn.004038b0
lea eax, [esp]
push eax
push 0
push 0x4329b8
call fcn.004143b0
test eax, eax
jne 0x4039b9
push esi
push 0x1000
call fcn.00418868
mov ecx, dword [0x435e84]
push 0x432db8
mov esi, eax
push ecx
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x438f88]
push 0x40
push edx
push esi
xor eax, eax
call fcn.00409070
push esi
call fcn.00418597
add esp, 0x20
pop esi
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x438f88]
mov eax, dword [0x435e54]
push 0x24
push edx
push eax
xor eax, eax
call fcn.00409070
add esp, 0xc
cmp eax, 6
jne 0x4039fc
call fcn.0040b920
push 0
push 0x16
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
pop ecx
ret
Function at 0x403a60
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403ab4
mov ecx, dword [esp + 4]
push eax
push eax
push eax
push eax
push str.VirusSecuritySetup
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403aa5
mov edx, dword [esp + 4]
push str.VirusSecuritySetup
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 4]
test eax, eax
je 0x403ab4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00403a00
mov eax, dword [0x438f70]
push 0
push 0x402ab0
push 0
push 0x65
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 0xffffffff
je 0x403ae7
cmp eax, 5
jne 0x403adf
call fcn.00403960
mov eax, 1
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret

Function at 0x4040d0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [0x438f70]
push edi
push str.BINDATA
push 0x71
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40419c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x4041a6
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40417b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40417b
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x434e38
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40417b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40417b
cmp dword [esp + 0x10], 0
mov esi, 1
jne 0x40417f
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp ebx, 0xffffffff
je 0x404192
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4043e0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x508
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x504], eax
push ebx
push ebp
push esi
push edi
push 0x400
push 0x434a38
push 0
mov ebx, 1
mov byte [0x434a38], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x434a38
call fcn.004176b0
add esp, 8
test eax, eax
je 0x40442c
mov byte [eax], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.K7DATA
push 0x434a38
lea eax, [esp + 0x11c]
push 0x428160
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
lea ecx, [esp + 0x114]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x4044b2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x114]
push edx
push 0x435a38
call edi
push str.K7PreInstScan.cab
push 0x435a38
lea eax, [esp + 0x11c]
push 0x428160
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x114]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x4044b2
lea edx, [esp + 0x114]
push edx
push 0x435238
call edi
mov byte [esp + 0x10], 0
call fcn.00414870
test eax, eax
jne 0x404521
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
push ecx
call fcn.00414940
add esp, 4
cmp byte [0x435638], 0
jne 0x404501
push str.K7TSInsRes.dll
lea edx, [esp + 0x14]
push edx
push 0x4284bc
push 0x435638
call esi
add esp, 0x10
jmp 0x404503
xor ebx, ebx
cmp byte [0x434e38], 0
jne 0x4045a4
push str.K7TSInsFont.ttf
lea eax, [esp + 0x14]
push eax
push 0x4284bc
jmp 0x40459a
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x428550
lea edx, [esp + 0x14]
push edx
call edi
push str.TEMP
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.00414940
add esp, 4
cmp byte [0x435638], 0
jne 0x404580
push str.K7TSInsRes.dll
lea edx, [esp + 0x14]
push edx
push 0x428160
push 0x435638
call esi
add esp, 0x10
jmp 0x404582
xor ebx, ebx
cmp byte [0x434e38], 0
jne 0x4045a4
push str.K7TSInsFont.ttf
lea eax, [esp + 0x14]
push eax
push 0x428160
push 0x434e38
call esi
add esp, 0x10
test ebx, ebx
je 0x4045d4
push 0x435638
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 0xffffffff
je 0x4045c1
push 0x435638
call esi
push 0x434e38
call ebp
cmp eax, 0xffffffff
je 0x4045d4
push 0x434e38
call esi
mov ecx, dword [esp + 0x514]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00416a72
add esp, 0x508
ret
Function at 0x404720
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push ecx
xor esi, esi
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404770
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push esi
push esi
push esi
push edi
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404770
mov edx, dword [esp + 4]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x404770
lea esi, [eax + 1]
mov eax, dword [esp + 4]
test eax, eax
je 0x40477f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x406de0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x118
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x11c]
push ebx
push ebp
push eax
push ecx
push 0xc
push esi
test edi, edi
jne 0x406e29
mov eax, dword [0x435eec]
push eax
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00416a72
add esp, 0x118
ret
mov ecx, dword [0x435eec]
push ecx
xor ebp, ebp
call dword [sym.imp.USER32.dll_CallWindowProcA]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
cmp ebx, 0x100
jle 0x406e71
lea edx, [ebx + 0x10]
push edx
call fcn.00416def
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406e8f
lea eax, [ebx + 1]
push eax
push ebp
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov dword [esp + 8], ebp
jmp 0x406e8f
push 0x100
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esp + 0x1c], 0
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 0x10]
mov dword [esp + 8], edx
mov ecx, dword [esp + 8]
push edi
push ebx
push ecx
lea eax, [edi + 0x39]
mov ecx, esi
call fcn.004080f0
add esp, 0xc
cmp byte [edi + 0x27], 0
je 0x406ec6
mov edx, dword [edi + 0x96]
mov eax, dword [edi + 0x92]
push 6
push edx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [edi + 1], 0x20
jne 0x406ed2
cmp byte [edi + 0x1f], 0
je 0x406ee9
mov ecx, dword [esp + 8]
push edi
push ebx
push ecx
lea eax, [edi + 0x9e]
mov ecx, esi
call fcn.004080f0
add esp, 0xc
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
test ebp, ebp
je 0x406f01
push ebp
call fcn.00416ce5
add esp, 4
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
xor ecx, esp
call fcn.00416a72
add esp, 0x118
ret
Function at 0x409bb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push edi
push str.Updates
push str.CommonInfo
push str.SoftwareK7_ComputingK7TotalSecurity
mov ebx, ecx
lea ecx, [esp + 0x20]
push str._s_s_s
push ecx
mov dword [esp + 0x24], eax
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x14]
push edx
push 0x80000002
call fcn.00414a40
mov dword [esp + 0xc], eax
test eax, eax
jne 0x409c2e
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00416a72
add esp, 0x110
ret
push esi
push 0x1d0
call fcn.00418868
mov esi, eax
add esp, 4
test esi, esi
je 0x409cd6
push 0x1d0
push 0
push esi
call fcn.0041a140
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esi + 0xc]
push edi
call ebx
push ebp
lea eax, [esi + 0x110]
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esi + 0x190]
push edx
call ebx
push 0
call fcn.00418e8e
xor eax, 0x12345678
add esp, 4
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 8], eax
mov ecx, 0x71
jmp 0x409ca0
mov eax, dword [esi + 4]
xor dword [edi], eax
mov eax, dword [edi]
mov edx, dword [esi + 8]
xor edx, eax
mov dword [edi], edx
add edi, 4
sub ecx, 1
jne 0x409ca0
mov eax, dword [esp + 0x10]
push 0x1d0
push esi
push str.ProxyInfo
push eax
call fcn.00414bc0
push esi
mov edi, eax
call fcn.00418597
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416a72
add esp, 0x110
ret
Function at 0x409e80
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x218
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x220]
push esi
lea ecx, [esp + 8]
push ecx
push 0x426540
push 1
push 0
push 0x426560
mov dword [esp + 0x24], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x409f78
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0xc]
push ecx
push 0x426570
push eax
call edx
mov esi, eax
test esi, esi
jl 0x409f6c
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push ebp
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push str._upgradenow
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push 0
push eax
call edx
push 0x104
lea eax, [esp + 0x18]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x21c]
xor eax, eax
test esi, esi
pop esi
sete al
pop ebp
xor ecx, esp
call fcn.00416a72
add esp, 0x218
ret
Function at 0x409fa0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x435e50]
test eax, eax
je 0x40a0c6
cmp byte [eax], 0
je 0x40a0c6
push edi
push 0x3000
call fcn.00418868
mov edi, eax
add esp, 4
test edi, edi
je 0x40a0bf
push ebx
push esi
push 0
lea esi, [edi + 0x7d0]
push 0x19
lea ebx, [esi + 0x7d0]
push ebx
push 0
mov byte [ebx], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x7d0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, esi
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40a000
lea eax, [edi + 0x7d0]
push 0x5c
push eax
call fcn.004176b0
add esp, 8
test eax, eax
je 0x40a022
mov byte [eax], 0
cmp byte [ebx], 0
je 0x40a0ad
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x428550
push ebx
call ebp
mov eax, dword [0x435e50]
push eax
push ebx
call ebp
mov esi, dword [0x435e40]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40a069
lea eax, [edi + 0x7d0]
push esi
push eax
call fcn.00409e80
add esp, 8
test eax, eax
jne 0x40a0ac
mov esi, ebx
mov byte [ebx], 0
call fcn.0040b0a0
cmp byte [ebx], 0
je 0x40a0ac
push 0x428550
push ebx
call ebp
mov ecx, dword [0x435e50]
push ecx
push ebx
call ebp
mov esi, dword [0x435e40]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40a0ac
lea eax, [edi + 0x7d0]
push esi
push eax
call fcn.00409e80
add esp, 8
pop ebp
push edi
call fcn.00418597
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
ret
mov eax, 1
pop edi
ret
mov eax, 1
ret
Function at 0x40a0d0
Capabilities:
Get common file path
Get file size

Disassembly:
sub esp, 0x51c
mov eax, dword [0x42f560]
xor eax, esp
mov dword [esp + 0x518], eax
mov eax, dword [str._rename__r_n]
mov dx, word [0x429104]
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x429100]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov al, byte [0x429106]
push 0x104
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0x20], dx
mov byte [esp + 0x22], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40a16d
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.00416a72
add esp, 0x51c
ret
push edi
push esi
push 0x429118
lea ecx, [esp + 0x12c]
push str._hs_hs_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push ebp
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
lea edx, [esi + 0x10e]
push edx
push 0
push 4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x40a257
push ebx
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x40a24f
push ebx
mov byte [ebx + esi], 0
call fcn.0041941c
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.00418380
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40a20f
lea ecx, [esp + 0x18]
push ecx
lea eax, [ebx + esi]
push 0x429128
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, eax
lea edi, [ebx + esi]
jmp 0x40a22a
mov eax, dword [esp + 0x10]
add edi, 0xa
mov edx, ebx
sub edx, edi
add edx, esi
push edx
lea ecx, [edi + eax]
push edi
push ecx
call fcn.00418ee0
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x12c]
push eax
push edi
call fcn.0041a520
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
add esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push 0
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x524]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00416a72
add esp, 0x51c
ret
Function at 0x40a290
Capabilities:
Delete file
Delete registry value
Move file
Set file attributes

Disassembly:
push esi
push edi
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
mov edi, eax
call fcn.00414a40
mov esi, eax
test esi, esi
je 0x40a2cb
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40a36f
push 0x400
call fcn.00418868
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a2e9
pop edi
pop esi
ret
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
xor edi, edi
push edi
push ebx
push str._s.u_d
push esi
call ebp
push esi
call fcn.00414910
add esp, 0x14
test eax, eax
je 0x40a312
inc edi
cmp edi, 0x3e8
jl 0x40a2f2
pop ebp
cmp edi, 0x3e8
je 0x40a366
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
push edi
push esi
push ebx
push str.MoveFile:_s_s_d_n
call fcn.0040b8e0
add esp, 0x10
test edi, edi
je 0x40a366
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40a35b
mov ecx, esi
call fcn.0040a0d0
push esi
call fcn.00418597
add esp, 4
pop edi
mov eax, 1
pop esi
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call fcn.00418597
add esp, 4
pop edi
mov eax, 1
pop esi
ret