joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x409a89
xor eax, eax
jmp 0x409b42
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x409af7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
push eax
call dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 6
jne 0x409af0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
push edx
call fcn.004094c0
test eax, eax
jne 0x409af0
mov eax, 2
jmp 0x409b42
mov eax, dword [ebp - 0x10]
jmp 0x409b42
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x409b32
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [ebp + 8]
jmp 0x409b42
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
and eax, 4
add eax, 2
mov esp, ebp
pop ebp
ret 8
Function at 0x40cb90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push eax
call fcn.0040c730
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40cbb2
mov eax, 2
jmp 0x40cc1f
push 0x42c13c
call dword [sym.imp.DENKIPM.dll_Ordinal_1251]
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
push 2
push str.Config
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.DENKIPM.dll_Ordinal_1478]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40cbe5
mov eax, dword [ebp - 8]
jmp 0x40cc1f
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40cc30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c7e0
add esp, 8
movzx edx, al
test edx, edx
jne 0x40cc54
mov eax, 2
jmp 0x40ccc1
push 0x42c13c
call dword [sym.imp.DENKIPM.dll_Ordinal_1251]
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 2
push str.Config
mov ecx, dword [ebp - 0x14]
call dword [sym.imp.DENKIPM.dll_Ordinal_1478]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40cc87
mov eax, dword [ebp - 8]
jmp 0x40ccc1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40e6c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x42c3e8
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [0x42f694]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40e6ed
xor al, al
jmp 0x40e79f
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [0x42f694]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40e70d
xor al, al
jmp 0x40e79f
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x42f694]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e72b
xor al, al
jmp 0x40e79f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e742
xor al, al
jmp 0x40e79f
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40e76b
xor al, al
jmp 0x40e79f
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40e798
xor al, al
jmp 0x40e79f
cmp dword [ebp - 0x14], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x40e840
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 0x40c], 0x400
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 4], 0
mov dword [ebp - 0x410], 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1154]
jmp 0x40e88c
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1156]
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1155]
movzx edx, al
test edx, edx
jne 0x40e914
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1159]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x414], eax
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x418]
push edx
call fcn.0040e7b0
add esp, 8
mov eax, dword [ebp - 0x418]
cmp eax, dword [ebp - 0x414]
jne 0x40e8e6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x40e8f5
mov edx, dword [ebp - 0x410]
add edx, 1
mov dword [ebp - 0x410], edx
mov eax, dword [ebp + 0x10]
push eax
push 0x42b726
mov ecx, dword [ebp - 0x418]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40e883
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
sub edx, 0x7d4
mov dword [ebp - 0x41c], edx
cmp dword [ebp - 0x41c], 0x36
ja case.0x40e94b.1
mov eax, dword [ebp - 0x41c]
movzx ecx, byte [eax + 0x40ea40]
jmp dword [ecx*4 + 0x40ea34]
cmp dword [ebp - 4], 0
je 0x40e977
cmp dword [ebp - 0x410], 0
je 0x40e977
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0x7e8
jae 0x40e977
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x7e8
jmp 0x40e9bf
cmp dword [ebp - 4], 0
je 0x40e99c
cmp dword [ebp - 0x410], 0
jne 0x40e99c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0x7e9
jae 0x40e99c
mov edx, dword [ebp + 0x14]
mov dword [edx], 0x7e9
jmp 0x40e9bf
cmp dword [ebp - 4], 0
jne 0x40e9bf
cmp dword [ebp - 0x410], 0
je 0x40e9bf
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x7ea
jae 0x40e9bf
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0x7ea
jmp case.0x40e94b.1
cmp dword [ebp - 4], 0
je 0x40e9e6
cmp dword [ebp - 0x410], 0
je 0x40e9e6
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0x809
jae 0x40e9e6
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x809
jmp case.0x40e94b.1
cmp dword [ebp - 4], 0
je 0x40ea0b
cmp dword [ebp - 0x410], 0
jne 0x40ea0b
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0x80a
jae 0x40ea0b
mov edx, dword [ebp + 0x14]
mov dword [edx], 0x80a
jmp case.0x40e94b.1
cmp dword [ebp - 4], 0
jne case.0x40e94b.1
cmp dword [ebp - 0x410], 0
je case.0x40e94b.1
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x80b
jae case.0x40e94b.1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0x80b
mov esp, ebp
pop ebp
ret
Function at 0x40f390
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1219]
test eax, eax
jge 0x40f3b2
xor al, al
jmp 0x40f4da
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1075]
push str.7.00
lea ecx, [ebp - 0x10]
call dword [sym.imp.DENKIPM.dll_Ordinal_1077]
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1244]
movzx eax, al
test eax, eax
je 0x40f42a
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
call dword [sym.imp.DENKIPM.dll_Ordinal_1086]
movzx eax, al
test eax, eax
je 0x40f42a
push 0x42c290
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x40f41e
mov eax, dword [ebp - 0x14]
and eax, 0x10
je 0x40f41e
jmp 0x40f42a
push 0
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push str.8.00
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1077]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1244]
movzx edx, al
test edx, edx
je 0x40f498
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.DENKIPM.dll_Ordinal_1086]
movzx edx, al
test edx, edx
je 0x40f498
mov eax, dword [ebp + 0xc]
push eax
push 0x42c488
push str.NetSetup__s_s
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40f4b8
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1276]
push eax
push str.NetSetup__s_s
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov byte [ebp - 0x15], 1
lea ecx, [ebp - 4]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
lea ecx, [ebp - 0x10]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
mov al, byte [ebp - 0x15]
mov esp, ebp
pop ebp
ret
Function at 0x410b30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
mov ecx, dword [ebp + 8]
call fcn.00412020
push eax
lea ecx, [ebp - 0x14c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1077]
push str.8.00
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1077]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x14c]
push ecx
call dword [sym.imp.DENKIPM.dll_Ordinal_1086]
movzx edx, al
test edx, edx
je 0x410b90
mov ecx, dword [ebp + 8]
call fcn.00416360
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x258]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
jmp 0x410ba6
push 0x42c550
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0xffffffff
jne 0x410bf0
mov byte [ebp - 0x371], 0
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
lea ecx, [ebp - 0x14c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
mov al, byte [ebp - 0x371]
jmp 0x410cd9
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
call sub.msi.dll_MsiSetPropertyW
mov byte [ebp - 0x259], 0
lea ecx, [ebp - 0x11c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x268]
call fcn.00409840
lea ecx, [ebp - 0x370]
push ecx
lea ecx, [ebp - 0x268]
call fcn.00416d80
movzx edx, al
test edx, edx
je 0x410c7e
lea eax, [ebp - 0x268]
push eax
mov ecx, dword [ebp + 8]
call fcn.00416380
movzx ecx, al
test ecx, ecx
je 0x410c7e
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00416310
mov byte [ebp - 0x259], 1
lea ecx, [ebp - 0x268]
call fcn.00416ce0
jmp 0x410ca5
lea ecx, [ebp - 0x268]
call fcn.00416ce0
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410c09
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x259]
mov byte [ebp - 0x372], al
lea ecx, [ebp - 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
lea ecx, [ebp - 0x14c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1078]
mov al, byte [ebp - 0x372]
mov esp, ebp
pop ebp
ret
Function at 0x410ce0
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
cmp dword [ebp + 0x14], 0
je 0x410d08
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x410d08
mov al, 1
jmp 0x410f04
mov dword [ebp - 0x21c], 0x42c54c
mov dword [ebp - 0x474], 0x42c054
mov dword [ebp - 0x368], 0x42c050
mov byte [ebp - 0x361], 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x410d47
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x360]
push ecx
lea edx, [ebp - 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x410d83
xor al, al
jmp 0x410f04
jmp 0x410da1
lea eax, [ebp - 0x360]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
setne dl
mov byte [ebp - 0x361], dl
movzx eax, byte [ebp - 0x361]
test eax, eax
je 0x410ef8
lea ecx, [ebp - 0x334]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov ecx, dword [ebp - 0x360]
and ecx, 0x10
je 0x410e5f
mov edx, dword [ebp - 0x474]
push edx
lea eax, [ebp - 0x334]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x410e07
mov ecx, dword [ebp - 0x368]
push ecx
lea edx, [ebp - 0x334]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x410e0c
jmp 0x410d85
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x470]
push eax
call fcn.00410ce0
add esp, 0x10
movzx ecx, al
test ecx, ecx
jne 0x410e5a
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x410f04
jmp 0x410ef3
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0041a3a0
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x470]
push edx
call fcn.00413ca0
add esp, 8
test eax, eax
setne al
mov byte [ebp - 0x361], al
movzx ecx, byte [ebp - 0x361]
test ecx, ecx
jne 0x410ec0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x410f04
mov eax, dword [ebp - 0x360]
and eax, 1
je 0x410eee
mov ecx, dword [ebp - 0x360]
xor ecx, 1
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x478]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.0040e680
jmp 0x410d85
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4123d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov byte [ebp - 0x30], 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
push 1
push 4
push 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
push eax
call sub.msi.dll_MsiSourceListAddMediaDiskA
mov dword [ebp - 8], eax
movsx ecx, byte [ebp - 0x30]
test ecx, ecx
jne 0x412418
xor al, al
jmp 0x4124e8
push str.LocalPackage
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004124f0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41245d
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x412451
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x41245d
lea edx, [ebp - 4]
push edx
call fcn.00428990
add esp, 4
push 0x42c570
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.004124f0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4124d0
push 0x20
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4124c4
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.00428790
add esp, 4
movzx eax, al
test eax, eax
jne 0x4124c4
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
call fcn.00428990
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00428790
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x412760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
add eax, 0x6c
push eax
call fcn.00411d30
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.NetSetupSelectableFeatures
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41279d
xor al, al
jmp 0x412895
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x412889
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
jmp 0x4127f3
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
jae 0x41287f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x412829
jmp 0x41287f
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412848
jmp 0x4127ea
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00411c20
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], 0
je 0x41287a
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x6c
call fcn.00411d10
jmp 0x4127ea
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x413500
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov dword [ebp - 0x31c], ecx
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 0x31c]
call fcn.00413400
movzx eax, al
test eax, eax
je 0x41352e
mov byte [ebp - 1], 1
jmp 0x41364f
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0x31c]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x413572
cmp dword [ebp - 0xc], 0x19
jg 0x413572
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathBuildRootA]
lea edx, [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x413572
mov byte [ebp - 0xd], 1
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4135b9
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 8]
push eax
push 0x41
push 0xbc0
push 0x7fb
mov ecx, dword [ebp - 0x31c]
mov ecx, dword [ecx]
call fcn.00413990
push eax
call fcn.00428bd0
add esp, 0x18
cmp eax, 1
je 0x4135b4
jmp 0x41364f
jmp 0x41364a
push 0x104
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 0x40]
push eax
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp - 0x31c]
mov eax, dword [edx + 0x44]
push eax
push 0x425
push 0x200
lea ecx, [ebp - 0x210]
push ecx
call fcn.004289c0
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
push 0x104
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x31c]
mov ecx, dword [edx]
call fcn.00413990
push eax
call fcn.00429240
add esp, 0x14
movzx eax, al
test eax, eax
jne 0x413631
jmp 0x41364f
lea ecx, [ebp - 0x318]
push ecx
mov edx, dword [ebp - 0x31c]
add edx, 0x40
push edx
call fcn.004288d0
add esp, 8
jmp 0x413513
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x413ca0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413d08
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x413d08
mov eax, dword [ebp - 8]
and eax, 1
je 0x413d08
mov ecx, dword [ebp - 8]
xor ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x413d08
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret