joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406850
Capabilities:
Get disk information

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x34]
xor al, al
mov byte [esp + 8], al
mov cl, byte [esi]
test cl, cl
je 0x406882
mov bl, byte [esi + 1]
mov dl, 0x3a
cmp bl, dl
jne 0x406882
mov al, cl
mov byte [esp + 9], dl
mov byte [esp + 8], al
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], 0
lea ecx, [esp + 0x10]
push 0x20
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
neg al
push ecx
lea edx, [esp + 0x18]
sbb eax, eax
push 0
push 0
and eax, edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4068b4
pop esi
pop ebx
add esp, 0x28
ret
lea eax, [esp + 0x10]
push 0x425420
push eax
call fcn.00414c40
add esp, 8
test eax, eax
jne 0x4068f6
mov eax, dword [esp + 0x34]
cmp eax, 0xc
jne 0x4068e6
push 3
push 8
push esi
call fcn.004069c0
add esp, 0xc
pop esi
pop ebx
add esp, 0x28
ret
push eax
push esi
call fcn.00406970
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x10]
push str.HPFS
push ecx
call fcn.00414c40
add esp, 8
test eax, eax
je 0x406957
lea edx, [esp + 0x10]
push str.HPFS386
push edx
call fcn.00414c40
add esp, 8
test eax, eax
je 0x406957
lea eax, [esp + 0x10]
push str.NTFS
push eax
call fcn.00414c40
add esp, 8
test eax, eax
jne 0x40694c
mov ecx, dword [esp + 0x34]
push ecx
push esi
call fcn.00406970
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
mov eax, 1
pop esi
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x34]
push edx
push esi
call fcn.00406970
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x406de0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
xor ebx, ebx
push 1
xor ebp, ebp
mov dword [esp + 0x2c], ebx
call esi
push str.Kernel32.dll
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.GetDiskFreeSpaceExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406e5b
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x406e5b
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x406e4a
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jmp 0x406e56
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x14]
push edx
call esi
test ebx, ebx
je 0x406e7b
mov eax, ebp
mov edx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 1
call esi
mov edi, eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push edi
mov ebx, eax
call esi
test ebx, ebx
jne 0x406eb5
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov eax, ebx
mov esi, dword [esp + 0x1c]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
test ecx, ecx
je 0x406ed7
imul eax, dword [esp + 0x20]
jmp 0x406eda
imul eax, esi
mov edi, dword [esp + 0x10]
imul eax, edi
cdq
test edx, edx
jl 0x406eef
jg 0x406f20
cmp eax, 0x7a11f8
ja 0x406f20
push 0
push 0x80
push edx
push eax
call fcn.004157e0
test esi, esi
je 0x406f20
test edi, edi
je 0x406f20
test ebx, ebx
je 0x406f20
test edx, edx
jl 0x406f20
jg 0x406f13
test eax, eax
jb 0x406f20
test edx, edx
jg 0x406f20
jl 0x406f27
cmp eax, 0x3d08fc00
jbe 0x406f27
mov eax, 0x3d08fc00
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x406fa0
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov ecx, 0x4e
xor eax, eax
mov edi, 0x429e90
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0xd], 0x3a
mov byte [esp + 0xe], 0x5c
mov byte [esp + 0xf], al
mov dword [esp + 0x10], eax
mov esi, 0x429e92
mov bl, byte [esp + 0x10]
lea eax, [esp + 0xc]
add bl, 0x61
push eax
mov byte [esp + 0x10], bl
call edi
cmp eax, 3
mov dword [esi + 2], eax
jne 0x406ff9
lea ecx, [esi - 2]
push esi
push ecx
push ebx
call fcn.00406f30
add esp, 0xc
mov edx, dword [esp + 0x10]
add esi, 0xc
inc edx
cmp esi, 0x429fca
mov dword [esp + 0x10], edx
jl 0x406fd1
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x407020
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, dword [esp + 0x118]
push edi
push esi
lea eax, [esp + 0x14]
push str.__s_
push eax
call fcn.00414780
mov cl, byte [esi]
mov dl, byte [esi + 1]
mov al, byte [esi + 2]
add esp, 0xc
mov byte [esp + 0xc], cl
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40707d
cmp eax, 2
je 0x40707d
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
not ecx
dec ecx
add ecx, esi
push ecx
push esi
call edi
mov cl, byte [eax]
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
cmp cl, 0x20
jne 0x4070b1
push eax
push esi
call edi
cmp byte [eax], 0x20
je 0x4070a2
push eax
call ebx
mov byte [eax], 0
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x4070f1
mov edi, dword [esp + 0xc]
cmp cl, 0x5c
jne 0x4070c7
cmp byte [edi], 0x20
je 0x4070e5
push eax
mov edi, eax
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x4070bd
push esi
call fcn.00406850
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
push esi
call fcn.00406850
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x4072c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x330
lea eax, [esp + 0x12c]
push esi
mov esi, dword [esp + 0x338]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
push eax
push 0x418
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x134]
push ecx
call fcn.00407020
add esp, 4
test eax, eax
jne 0x40733a
mov eax, dword [0x42b604]
lea edx, [esp + 0x34]
push 0xff
push edx
push 0x12
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x34]
push eax
push 0x41b
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x330
ret
movsx ecx, byte [esp + 0x134]
push ebx
push ecx
call fcn.004158d0
mov ebx, eax
mov eax, dword [esp + 0x348]
add esp, 4
sub ebx, 0x61
test eax, eax
je 0x407363
call fcn.00406fa0
jmp 0x407385
lea eax, [ebx + ebx*2]
mov cl, bl
shl eax, 2
add cl, 0x61
lea edx, [eax + 0x429e92]
lea eax, [eax + 0x429e90]
push edx
push eax
push ecx
call fcn.00406f30
add esp, 0xc
lea edx, [ebx + 0x41]
lea eax, [esp + 0xc]
push edx
push 0x425458
push eax
call fcn.00414780
lea ecx, [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x10], ecx
lea eax, [ebx + ebx*2]
xor ecx, ecx
lea edx, [esp + 0x18]
mov cx, word [eax*4 + 0x429e90]
push 0xa
push edx
push ecx
call fcn.004166f0
mov eax, dword [0x42b604]
add esp, 0xc
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push 0xff
push ecx
push 0x17
push eax
mov dword [esp + 0x24], edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x23c]
push edx
push 0xff
push eax
push 0
lea ecx, [esp + 0x48]
push 0
push ecx
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x23c]
push edx
push 0x41b
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop ebx
pop edi
pop esi
add esp, 0x330
ret
Function at 0x4088a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDlls
push 0x80000002
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4088da
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ecx
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x34]
push eax
push ecx
mov ebp, 8
push 0
push edx
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
je 0x40895f
test eax, eax
jne 0x408977
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ecx, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea esi, [esi + ecx + 0x10]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x34]
inc edi
push ecx
push edx
push edi
push eax
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
jne 0x408919
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret

Function at 0x409a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x42b604]
push ebx
push ebp
push esi
push edi
and ecx, 0xffff
push 0xc8
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x409a6d
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [0x42b604]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409a86
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x409a9a
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, dword [esi]
mov edi, dword [esp + 0x18]
push eax
mov dword [edi], eax
call fcn.00414f90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409ab8
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push ebx
push esi
call fcn.004098f0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x409af7
cmp word [ebx], 0x4d42
je 0x409af2
push ebx
call fcn.00414ef0
mov edx, dword [esp + 0x20]
mov dword [edi], 0
add esp, 4
mov eax, dword [edx]
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ebp, 0xe
mov ecx, dword [edi]
sub ecx, ebp
push ecx
call fcn.00414f90
mov edx, dword [esp + 0x20]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x409b20
push ebx
call fcn.00414ef0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [edi]
mov edi, eax
sub ecx, ebp
lea esi, [ebp + ebx]
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00414ef0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x409bf0
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0x180
mov ecx, 0x11
xor eax, eax
push esi
push edi
mov edi, edx
mov esi, dword [esp + 0x190]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x198]
mov ecx, dword [esp + 0x18c]
push eax
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
push esi
push ecx
mov dword [edx], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
jne 0x409c85
mov eax, dword [0x42b604]
lea edx, [esp + 8]
push 0x80
push edx
push 0x20
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 8]
push esi
lea ecx, [esp + 0x8c]
push eax
push ecx
call fcn.00414780
add esp, 0xc
lea edx, [esp + 0x88]
push 0x2000
push 0x42b6ac
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, edi
pop edi
pop esi
add esp, 0x180
ret 0x10
Function at 0x40aa50
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [0x42c1f0]
sub esp, 0x114
test eax, eax
push esi
mov esi, ecx
je 0x40aabe
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40aacc
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40aacc
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40ab05
mov edx, dword [esi + 0x3c]
lea ecx, [esp + 0x18]
push 0xff
push ecx
push 0x23
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
add esi, 0xe4
push 0x2030
lea eax, [esp + 0x1c]
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0x114
ret
mov eax, 1
pop esi
add esp, 0x114
ret

Function at 0x40b150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x104
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
push edi
test edx, edx
mov ebx, ecx
mov dword [esp + 0x10], eax
jne 0x40b177
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b18b
mov edi, 0x42c0e4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40b1d5
push ebx
push 0x2001f
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b1d5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
mov eax, dword [esp + 0x128]
lea edx, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [ebx]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
pop edi
test eax, eax
sete cl
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x104
ret 0x18
Function at 0x40b220
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x40b239
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b24d
mov edi, 0x42c0e4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40b2a2
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
push ebx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b2a2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x124]
push ecx
mov ecx, dword [esp + 0x124]
push edx
mov edx, dword [ebx]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40b2e0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 0x18

Function at 0x40b300
Capabilities:
Delete registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
test edx, edx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
jne 0x40b319
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b32d
mov edi, 0x42c0e4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x40b382
lea ecx, [esp + 0x10]
lea eax, [esp + 0x14]
push ecx
push ebx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40b382
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0xc
mov ecx, dword [esp + 0x120]
mov edx, dword [ebx]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40b3a6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0xc
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret 0xc
Function at 0x40c7c0
Capabilities:
Create process on windows
Delete file
Get common file path
Resume thread
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x850
lea eax, [esp + 0x364]
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40c9ad
lea ecx, [esp + 0x60]
lea edx, [esp + 0x36c]
push ecx
push 0
push 0x425cc0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40c9ad
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x268]
push 0
lea edx, [esp + 0x168]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call fcn.00415660
add esp, 0x14
lea edx, [esp + 0x268]
lea eax, [esp + 0x164]
lea ecx, [esp + 8]
push str..BAT
push edx
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.00416200
add esp, 0x14
lea eax, [esp + 0x60]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c9ad
lea ecx, [esp + 0x164]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x164]
lea eax, [esp + 0x268]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x268]
push 0x5c
push ecx
call fcn.004161d0
add esp, 8
mov byte [eax], 0
lea edx, [esp + 0x60]
lea eax, [esp + 0x164]
push edx
lea ecx, [esp + 0x168]
push eax
push ecx
lea edx, [esp + 0x47c]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp + 0x470]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x478]
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x4250bc
push 0
push 0x44
push 0
push 0
push 0
push edx
push 0
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x70], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c9ad
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push eax
call edi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
add esp, 0x850
ret
Function at 0x40c9c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4212bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0040b130
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftMS_Setup__ACME_Table_Files
push 0x80000002
mov dword [esp + 0x444], esi
mov dword [esp + 0x30], esi
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40ca34
lea ecx, [esp + 0x14]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040b140
mov eax, ebx
jmp 0x40cb9a
mov eax, dword [esp + 0x10]
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0x30]
push ecx
push edx
push esi
push eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x38], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x40cb84
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jne 0x40cbb3
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
inc edx
push str.Microsoft_Visual_J_6.0_v6.0.0.0.0227
push ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0x208
call fcn.00414e70
add esp, 8
test eax, eax
je 0x40caf4
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [0x42b604]
lea ecx, [esp + 0x228]
push 0x200
push ecx
push 0x473
push eax
call edi
mov edx, dword [0x425c78]
lea eax, [esp + 0x228]
or edx, 0x104
push edx
push 0x42b6ac
push eax
push 0
call ebp
cmp eax, 7
je 0x40cbd5
mov ebx, 1
lea ecx, [esp + 0x20]
push str.Visual_InterDev_6.0_v6.0.0.0.0227
push ecx
call fcn.00414e70
add esp, 8
test eax, eax
je 0x40cb57
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [0x42b604]
lea ecx, [esp + 0x228]
push 0x200
push ecx
push 0x474
push eax
call edi
mov edx, dword [0x425c78]
lea eax, [esp + 0x228]
or edx, 0x104
push edx
push 0x42b6ac
push eax
push 0
call ebp
cmp eax, 7
je 0x40cbd5
mov ebx, 1
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x40ca78
lea ecx, [esp + 0x14]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040b140
mov eax, ebx
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x424
ret
mov edx, dword [esp + 0x10]
push edx
call esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040b140
mov eax, 1
jmp 0x40cb9a
lea ecx, [esp + 0x14]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040b140
xor eax, eax
jmp 0x40cb9a
Function at 0x40d000
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x18]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x40d06a
mov edi, 0x4250bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Kernel32.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x40d0ba
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push edi
call fcn.00414f90
mov esi, eax
add esp, 4
test esi, esi
jne 0x40d0d6
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push esi
push edi
lea edx, [esp + 0x20]
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40d0fe
push esi
call fcn.00414ef0
add esp, 4
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40d12d
push esi
call fcn.00414ef0
add esp, 4
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push esi
mov di, word [edx]
call fcn.00414ef0
add esp, 4
mov ax, di
pop edi
pop esi
pop ebx
add esp, 0x110
ret