joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cdc9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47a50b
call fcn.004461a8
sub esp, 0x23c
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x246]
mov word [ebp - 0x248], si
mov dword [ebp - 0x14], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], esi
push 1
lea eax, [ebp - 0x10]
pop edi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43ce46
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x18], 0x208
mov eax, str.CommonFilesDir
je 0x43ce2f
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0x248]
mov ebx, 0x47f054
mov edi, 0x47f04c
test eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x248]
jne 0x43ce6c
mov eax, 0x49cc4c
lea ecx, [ebp + 0xf]
push esi
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00403c0d
push 0x49454c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0043ced5
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00403b7a
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401f6c
cmp dword [ebp - 0x10], 0
pop ebx
je 0x43cec5
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x43cec5
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x43d4ef
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x43d588
push edi
call fcn.00446789
push edi
push esi
push eax
mov dword [ebp + 0xc], eax
call fcn.00446a10
add esp, 0x10
push dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x43d57f
lea eax, [ebp - 0x3c]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00446a10
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp + 8]
push eax
push 0x49454c
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43d57f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push dword [ebp + 0xc]
call fcn.004466a0
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 0xc
Function at 0x43f42b
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x47a81e
call fcn.004461a8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
or dword [esi + 0x220], 0xffffffff
lea eax, [esi + 0x228]
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov byte [esi + 0x214], 1
mov byte [esi + 0x215], 1
mov byte [esi + 0x216], 1
mov dword [esi + 0x21c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x47f0d0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
call fcn.0043f5ed
pop ecx
mov dword [esi + 0x218], eax
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x20c], eax
jne 0x43f4d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
jmp 0x43f5da
push 0x2e
mov dword [esi + 0x210], 1
call fcn.004461c7
push 0x2e
push edi
push eax
mov dword [esi + 0x224], eax
call fcn.00446a10
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x218]
push dword [esi + 0x20c]
call fcn.004407e6
test eax, eax
je 0x43f5da
lea eax, [ebp - 0x14]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x43f5da
cmp dword [ebp - 0x14], edi
je 0x43f5da
mov ecx, esi
call fcn.0043fb03
test eax, eax
je 0x43f560
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
jne 0x43f5cf
push edi
push ebx
call fcn.0043f5ed
cmp eax, dword [esi + 0x218]
pop ecx
pop ecx
jbe 0x43f577
mov dword [esi + 0x218], eax
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.004407e6
test eax, eax
je 0x43f5da
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x43f5da
cmp dword [ebp - 0x14], edi
je 0x43f5da
mov ecx, esi
call fcn.0043fb03
test eax, eax
je 0x43f5da
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x43f5da
movzx eax, ax
push eax
mov ecx, esi
call fcn.004406e4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x43f8ae
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x47a854
call fcn.004461a8
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x43f9b9
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43f8f7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push str..debug
call fcn.0043fa09
pop ecx
test eax, eax
pop ecx
je 0x43f923
cmp dword [eax + 0xc], esi
jne 0x43f923
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x43f976
push edi
push str..rdata
call fcn.0043fa09
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x43f949
push edi
push str..text
call fcn.0043fa09
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x43f9b9
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x43f9b9
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x43f9c4
cmp dword [ebp + 8], 0
je 0x43f9c4
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x43f9bd
xor eax, eax
jmp 0x43f9fa
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x43f9e3
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x43f9dd
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x43f9ce
cmp dword [ebp - 0x10], 0
je 0x43f9f7
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x43f9f7
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43ff1e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x47a8d0
call fcn.004461a8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0xd]
mov ebx, 0x47e5e0
mov esi, 0x47e5d8
push 0
push eax
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.004029f5
and dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], esi
call fcn.004029f5
mov esi, 0x104
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004023dd
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00402a6a
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004024ef
lea eax, [ebp - 0x20]
push esi
push eax
mov ecx, edi
call fcn.004023dd
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00402a6a
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax]
test ecx, ecx
jne 0x43ffc8
mov ecx, 0x47e608
push eax
push 0
push 0x49756c
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004024ef
and byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00401f6c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4406e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x440761
mov esi, 0x138
push esi
call fcn.004461c7
mov ebx, eax
push esi
push 0
push ebx
call fcn.00446a10
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440761
cmp dword [ebp - 8], 0
je 0x440761
push ebx
lea ecx, [edi + 0x228]
call fcn.00440a9d
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x20c]
call fcn.004407e6
test eax, eax
je 0x440761
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x4406fd
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x440822
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
xor esi, esi
push 0x2e
lea eax, [ebp - 0x40]
push esi
mov edi, ecx
push eax
call fcn.00446a10
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.004400d2
test eax, eax
je 0x440972
push esi
push 0x80
push 3
push esi
lea eax, [edi + 4]
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
je 0x440966
cmp dword [edi + 0x230], 1
jbe 0x4408d3
mov eax, dword [edi + 0x218]
push 1
push esi
push eax
push ebx
mov ecx, edi
call fcn.004407e6
test eax, eax
je 0x440972
push dword [0x497540]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [edi + 0x230]
push esi
dec eax
mov word [ebp - 0x32], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push 0x2e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push esi
add eax, 0xfffffec8
push esi
push eax
push ebx
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.004407e6
test eax, eax
je 0x440972
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
mov ebx, dword [eax + 0x10c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0xc]
add ecx, ebx
cmp ecx, eax
jne 0x44093a
cmp dword [edi + 0x230], 1
jne 0x44092c
push esi
push esi
push dword [edi + 0x218]
mov ecx, edi
push dword [ebp + 8]
call fcn.004407e6
test eax, eax
je 0x440972
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4409f0
mov eax, dword [ebp - 8]
push esi
push 0x80
push 3
lea ebx, [ebx + eax + 0x138]
push esi
push 3
lea eax, [edi + 4]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x44097b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x21c], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 1
push esi
push ebx
push eax
mov ecx, edi
call fcn.004407e6
test eax, eax
je 0x440972
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x4409de
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push dword [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], esi
je 0x4409de
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x440]
push 0x400
push eax
push dword [ebp - 8]
jmp 0x4409a5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
mov ecx, edi
call fcn.00440a0b
push 1
pop eax
jmp 0x440974
Function at 0x4412f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov esi, 0x49cc4c
push edi
push esi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
call ebx
push esi
push dword [ebp + 0x10]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x441477
push esi
call fcn.00446789
push esi
push edi
push eax
mov dword [ebp - 8], eax
call fcn.00446a10
add esp, 0x10
push dword [ebp - 8]
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44146e
lea eax, [ebp - 0x44]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00446a10
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 8]
push eax
push 0x49454c
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4413b2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
shr ecx, 0x10
push edx
push ecx
movzx ecx, ax
shr eax, 0x10
push ecx
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00446a10
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44146e
push 0x7f
mov word [ebp - 0x244], di
mov esi, dword [ebp - 4]
pop ecx
xor eax, eax
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
xor edi, edi
shr esi, 2
test esi, esi
mov dword [ebp + 0xc], eax
jle 0x44146e
and dword [ebp - 0xc], 0
test edi, edi
jle 0x441414
add dword [ebp + 0xc], 4
push 4
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push eax
call fcn.00446cd0
movzx eax, word [ebp - 0xc]
add esp, 0xc
test edi, edi
push eax
jne 0x441445
lea eax, [ebp - 0x244]
push 0x495680
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x44145d
push dword [ebp + 0x10]
lea eax, [ebp - 0x244]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0x10]
call ebx
inc edi
cmp edi, esi
jl 0x441408
push dword [ebp - 8]
call fcn.004466a0
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4416a5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push dword [0x497574]
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push eax
call fcn.004419d2
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
lea eax, [ebp - 0x800]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4416ea
xor eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop eax
leave
ret
Function at 0x44196c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
call fcn.00441938
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
pop edi
je 0x4419cc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4419c7
cmp eax, 5
jne 0x4419cc
push 1
pop eax
jmp 0x4419ce
xor eax, eax
leave
ret 4

Function at 0x441b06
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], 1
call edi
lea eax, [eax + eax + 4]
push eax
call fcn.004461c7
pop ecx
mov esi, eax
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x49454c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x441b87
cmp word [ebx], 0x5c
jne 0x441b79
and word [ebx], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x441b74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x441b82
mov word [ebx], 0x5c
inc ebx
inc ebx
inc ebp
cmp ebp, edi
jb 0x441b50
jmp 0x441b87
and dword [esp + 0x10], 0
push esi
call fcn.004454c4
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x441b9a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x441bb2
test al, 0x10
jne 0x441bb2
push 1
pop eax
jmp 0x441bb4
xor eax, eax
ret 4

Function at 0x441bb7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x441bcf
test al, 0x10
je 0x441bcf
push 1
pop eax
jmp 0x441bd1
xor eax, eax
ret 4

Function at 0x441bd4
Capabilities:
Delete directory

Disassembly:
push edi
xor edi, edi
push dword [esp + 8]
call fcn.00441bb7
test eax, eax
je 0x441c08
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x441c03
push 1
pop edi
push 0
call esi
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x441c0e
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00441b9a
test eax, eax
jne 0x441c22
push 1
pop eax
jmp 0x441c5f
push ebx
push esi
xor ebx, ebx
call fcn.00441c63
test eax, eax
jne 0x441c5c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x441c57
push 1
pop ebx
push 0
call edi
pop edi
mov eax, ebx
pop ebx
pop esi
ret 4
Function at 0x441db4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x47aa54
call fcn.004461a8
sub esp, 0xb4
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x7c], 0x47e5a0
mov dword [ebp - 0x5c], 0x47e598
jne 0x441de6
mov eax, 0x49cc4c
lea ecx, [ebp + 0xb]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00408d43
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00446a10
push 0x44
lea eax, [ebp - 0xc0]
pop esi
push esi
push ebx
push eax
call fcn.00446a10
add esp, 0x18
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc0], esi
mov word [ebp - 0x90], bx
push 1
pop eax
mov dword [ebp - 0x94], eax
je 0x441e39
mov word [ebp - 0x90], ax
mov edi, dword [ebp - 0x74]
cmp edi, ebx
jne 0x441e45
mov edi, 0x47e5b8
push eax
lea eax, [ebp + 0xf]
mov esi, str.C:CodeBasesisdev_srcRuntimeMSISharedSetuputils.cpp
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401764
mov eax, dword [eax + 8]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x441e68
mov eax, 0x47e5b8
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x18]
push str.Attempting_to_launch:__s
push eax
mov dword [ebp - 0x14], 0x512
call fcn.00408437
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401bc7
push dword [ebp - 0x70]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x7c]
push eax
call fcn.00408e34
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00408ddf
lea ecx, [ebp - 0x2c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0xc0]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp - 0x1c]
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00408e61
cmp edi, ebx
je 0x441f89
push 0xff
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x441f1b
cmp eax, 1
jne 0x441f1b
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [ebp - 0x44], 0x11
je 0x441f1b
cmp dword [ebp - 0x44], 0x10
je 0x441f1b
cmp dword [ebp - 0x44], 0x12
jne 0x441ede
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov dword [0x4a1c0c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
lea eax, [ebp + 0xf]
push 1
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00401764
mov eax, dword [eax + 8]
mov byte [ebp - 4], 3
cmp eax, ebx
jne 0x441f5a
mov eax, 0x47e5b8
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x533
push edi
push str.Launch_result__d__exit_code__d
push eax
call fcn.00408437
add esp, 0x10
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401bc7
mov esi, dword [ebp - 0x10]
jmp 0x441f8e
mov esi, 0xcccccccc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00401bc7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8