joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406810
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 0x406842
mov bl, byte [esi + 1]
mov dl, 0x3a
cmp bl, dl
jne 0x406842
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 0x406874
pop esi
pop ebx
add esp, 0x28
ret
lea eax, [esp + 0x10]
push 0x422420
push eax
call fcn.00413b00
add esp, 8
test eax, eax
jne 0x4068b6
mov eax, dword [esp + 0x34]
cmp eax, 0xc
jne 0x4068a6
push 3
push 8
push esi
call fcn.00406980
add esp, 0xc
pop esi
pop ebx
add esp, 0x28
ret
push eax
push esi
call fcn.00406930
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
lea ecx, [esp + 0x10]
push str.HPFS
push ecx
call fcn.00413b00
add esp, 8
test eax, eax
je 0x406917
lea edx, [esp + 0x10]
push str.HPFS386
push edx
call fcn.00413b00
add esp, 8
test eax, eax
je 0x406917
lea eax, [esp + 0x10]
push str.NTFS
push eax
call fcn.00413b00
add esp, 8
test eax, eax
jne 0x40690c
mov ecx, dword [esp + 0x34]
push ecx
push esi
call fcn.00406930
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.00406930
add esp, 8
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x406da0
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 0x406e1b
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 0x406e1b
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x406e0a
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jmp 0x406e16
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 0x406e3b
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 0x406e75
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 0x406e97
imul eax, dword [esp + 0x20]
jmp 0x406e9a
imul eax, esi
mov edi, dword [esp + 0x10]
imul eax, edi
cdq
test edx, edx
jl 0x406eaf
jg 0x406ee0
cmp eax, 0x7a11f8
ja 0x406ee0
push 0
push 0x80
push edx
push eax
call fcn.004146a0
test esi, esi
je 0x406ee0
test edi, edi
je 0x406ee0
test ebx, ebx
je 0x406ee0
test edx, edx
jl 0x406ee0
jg 0x406ed3
test eax, eax
jb 0x406ee0
test edx, edx
jg 0x406ee0
jl 0x406ee7
cmp eax, 0x3d08fc00
jbe 0x406ee7
mov eax, 0x3d08fc00
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret

Function at 0x406f60
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov ecx, 0x4e
xor eax, eax
mov edi, 0x426db8
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, 0x426dba
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 0x406fb9
lea ecx, [esi - 2]
push esi
push ecx
push ebx
call fcn.00406ef0
add esp, 0xc
mov edx, dword [esp + 0x10]
add esi, 0xc
inc edx
cmp esi, 0x426ef2
mov dword [esp + 0x10], edx
jl 0x406f91
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x406fe0
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.00413640
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 0x40703d
cmp eax, 2
je 0x40703d
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 0x407071
push eax
push esi
call edi
cmp byte [eax], 0x20
je 0x407062
push eax
call ebx
mov byte [eax], 0
mov cl, byte [esi]
mov eax, esi
test cl, cl
je 0x4070b1
mov edi, dword [esp + 0xc]
cmp cl, 0x5c
jne 0x407087
cmp byte [edi], 0x20
je 0x4070a5
push eax
mov edi, eax
call ebx
mov cl, byte [eax]
test cl, cl
jne 0x40707d
push esi
call fcn.00406810
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.00406810
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x407280
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.00406fe0
add esp, 4
test eax, eax
jne 0x4072fa
mov eax, dword [0x42852c]
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.00414790
mov ebx, eax
mov eax, dword [esp + 0x348]
add esp, 4
sub ebx, 0x61
test eax, eax
je 0x407323
call fcn.00406f60
jmp 0x407345
lea eax, [ebx + ebx*2]
mov cl, bl
shl eax, 2
add cl, 0x61
lea edx, [eax + 0x426dba]
lea eax, [eax + 0x426db8]
push edx
push eax
push ecx
call fcn.00406ef0
add esp, 0xc
lea edx, [ebx + 0x41]
lea eax, [esp + 0xc]
push edx
push 0x422458
push eax
call fcn.00413640
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 + 0x426db8]
push 0xa
push edx
push ecx
call fcn.004155b0
mov eax, dword [0x42852c]
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 0x408860
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 0x40889a
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 0x40891f
test eax, eax
jne 0x408937
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 0x4088d9
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 0x409a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x42852c]
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 0x409a2d
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [0x42852c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409a46
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 0x409a5a
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.00413e50
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409a78
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push ebx
push esi
call fcn.004098b0
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x409ab7
cmp word [ebx], 0x4d42
je 0x409ab2
push ebx
call fcn.00413db0
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.00413e50
mov edx, dword [esp + 0x20]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x409ae0
push ebx
call fcn.00413db0
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.00413db0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x409bb0
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 0x409c45
mov eax, dword [0x42852c]
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.00413640
add esp, 0xc
lea edx, [esp + 0x88]
push 0x2000
push 0x4285d4
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 0x40aa10
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [0x429118]
sub esp, 0x114
test eax, eax
push esi
mov esi, ecx
je 0x40aa7e
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 0x40aa8c
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 0x40aa8c
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x40aac5
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 0x40b110
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 0x40b137
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b14b
mov edi, 0x42900c
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 0x40b195
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 0x40b195
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 0x40b1e0
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 0x40b1f9
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b20d
mov edi, 0x42900c
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 0x40b262
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 0x40b262
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 0x40b2a0
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 0x40b2c0
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 0x40b2d9
mov edx, 0x80000002
mov edi, dword [esp + 0x11c]
lea ebp, [esp + 0x14]
test edi, edi
jne 0x40b2ed
mov edi, 0x42900c
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 0x40b342
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 0x40b342
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 0x40b366
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 0x40c780
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 0x40c96d
lea ecx, [esp + 0x60]
lea edx, [esp + 0x36c]
push ecx
push 0
push 0x422cc0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40c96d
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.00414520
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.004150c0
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 0x40c96d
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.00415090
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 0x4220bc
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 0x40c96d
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 0x40c980
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41e56b
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.0040b0f0
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 0x40c9f4
lea ecx, [esp + 0x14]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040b100
mov eax, ebx
jmp 0x40cb5a
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 0x40cb44
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 0x40cb73
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.00413d30
add esp, 8
test eax, eax
je 0x40cab4
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [0x42852c]
lea ecx, [esp + 0x228]
push 0x200
push ecx
push 0x473
push eax
call edi
mov edx, dword [0x422c78]
lea eax, [esp + 0x228]
or edx, 0x104
push edx
push 0x4285d4
push eax
push 0
call ebp
cmp eax, 7
je 0x40cb95
mov ebx, 1
lea ecx, [esp + 0x20]
push str.Visual_InterDev_6.0_v6.0.0.0.0227
push ecx
call fcn.00413d30
add esp, 8
test eax, eax
je 0x40cb17
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [0x42852c]
lea ecx, [esp + 0x228]
push 0x200
push ecx
push 0x474
push eax
call edi
mov edx, dword [0x422c78]
lea eax, [esp + 0x228]
or edx, 0x104
push edx
push 0x4285d4
push eax
push 0
call ebp
cmp eax, 7
je 0x40cb95
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 0x40ca38
lea ecx, [esp + 0x14]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040b100
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.0040b100
mov eax, 1
jmp 0x40cb5a
lea ecx, [esp + 0x14]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040b100
xor eax, eax
jmp 0x40cb5a
Function at 0x40cfc0
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 0x40d02a
mov edi, 0x4220bc
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 0x40d07a
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x110
ret
push edi
call fcn.00413e50
mov esi, eax
add esp, 4
test esi, esi
jne 0x40d096
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 0x40d0be
push esi
call fcn.00413db0
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 0x40d0ed
push esi
call fcn.00413db0
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.00413db0
add esp, 4
mov ax, di
pop edi
pop esi
pop ebx
add esp, 0x110
ret