joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a5cf8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x7771e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.006943cf
mov dword [ebp - 0x14], eax
cmp dword [0x7981b4], esi
jne 0x6a5deb
push 0x800
push esi
push 0x735bd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x6a5d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x6a5ecb
push esi
push esi
push 0x735bd0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x6a5ecb
push 0x735be8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x6a5ecb
push eax
call ebx
push 0x735bf4
push edi
mov dword [0x7981b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x735c04
push edi
mov dword [0x7981b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x7981bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7981c4], eax
test eax, eax
je 0x6a5de8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7981c0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x6a5e10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x6a5e03
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x6a5e25
push 4
pop eax
jmp 0x6a5ecd
cmp dword [ebp - 0x14], esi
je 0x6a5e25
push dword [0x7981b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x6a5e0a
mov eax, dword [0x7981c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x6a5e83
cmp dword [0x7981c4], edi
je 0x6a5e83
push eax
call ebx
push dword [0x7981c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x6a5e83
test eax, eax
je 0x6a5e83
call ecx
test eax, eax
je 0x6a5e78
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x6a5e78
test byte [ebp - 8], 1
jne 0x6a5e83
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x6a5eb3
mov eax, dword [0x7981b8]
cmp eax, edi
je 0x6a5eb0
push eax
call ebx
test eax, eax
je 0x6a5eb0
call eax
mov esi, eax
test esi, esi
je 0x6a5eb0
mov eax, dword [0x7981bc]
cmp eax, edi
je 0x6a5eb0
push eax
call ebx
test eax, eax
je 0x6a5eb0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x7981b4]
call ebx
test eax, eax
je 0x6a5ecb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x6a5ecd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0068f474
mov esp, ebp
pop ebp
ret
Function at 0x404220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4160a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x228], 0
push 0x103
push 0
lea eax, [ebp - 0x227]
push eax
call fcn.004076d0
add esp, 0xc
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea ecx, [ebp - 0x10f]
push ecx
call fcn.004076d0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40429a
cmp dword [ebp - 0x114], 0x104
jbe 0x4042b2
push 0
push 0
push str._Info__Cant_obtain_system_directory__assuming_upgrade_is_necessary
call fcn.00406990
add esp, 0xc
mov al, 1
jmp 0x4043e2
lea eax, [ebp - 0x110]
push eax
push 0x104
lea ecx, [ebp - 0x228]
push ecx
call fcn.004035b0
test eax, eax
jl 0x4042e8
push str.MSI.DLL
push 0x104
lea edx, [ebp - 0x228]
push edx
call fcn.00403600
test eax, eax
jge 0x404300
push 0
push 0
push str._Info__Cant_obtain_msi.dll_path__assuming_upgrade_is_necessary
call fcn.00406990
add esp, 0xc
mov al, 1
jmp 0x4043e2
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x404334
push 0
push 0
push str._Info__Cant_load_msi.dll__assuming_upgrade_is_necessary
call fcn.00406990
add esp, 0xc
mov al, 1
jmp 0x4043e2
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.00406280
add esp, 0xc
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40437d
push 0
push 0
push str._Info__Cant_obtain_version_information__assuming_upgrade_is_necessary
call fcn.00406990
add esp, 0xc
mov al, 1
jmp 0x4043e2
mov ecx, dword [ebp - 0x118]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
imul edx, edx, 0x64
mov eax, dword [ebp - 0x118]
and eax, 0xffff
movzx ecx, ax
add edx, ecx
mov dword [ebp - 0x11c], edx
mov edx, dword [ebp - 0x11c]
cmp edx, dword [ebp + 8]
jae 0x4043cf
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
push str._Info__Windows_Installer_upgrade_is_required.__System_Version___d__Minimum_Version___d._n
call fcn.004068e0
add esp, 0xc
mov al, 1
jmp 0x4043e2
push 0
push 0
push str._Info__No_upgrade_is_necessary.__System_version_meets_minimum_requirements_n
call fcn.00406990
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407687
mov esp, ebp
pop ebp
ret
Function at 0x405070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push str._Info__Running_update_package_from______s_n
call fcn.00406990
add esp, 0xc
mov dword [ebp - 0x1c], 0
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.004076d0
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.004076d0
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov eax, 5
mov word [ebp - 0x38], ax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push str.__norestart
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esi + eax + 3]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00407617
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x405112
mov dword [ebp - 0x1c], 0xe
jmp 0x4051cf
push 0x412d54
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004035b0
test eax, eax
jl 0x405169
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00403600
test eax, eax
jl 0x405169
push 0x412d58
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00403600
test eax, eax
jl 0x405169
push str.__norestart
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403600
test eax, eax
jge 0x405174
mov dword [ebp - 0x1c], 0x643
jmp 0x4051cf
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4051a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x4051cf
mov edx, dword [ebp - 0x14]
push edx
call fcn.004053e0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4051c1
jmp 0x4051cf
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0
je 0x4051e7
mov edx, dword [ebp - 4]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
push eax
call fcn.0040767c
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4051f7
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x405207
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405210
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
mov dword [ebp - 0x1c], 0
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004076d0
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.004076d0
add esp, 0xc
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov edx, 5
mov word [ebp - 0x38], dx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esi + eax + 9]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00407617
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x40529e
mov dword [ebp - 0x1c], 0xe
jmp 0x405386
push 0x412d5c
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004035b0
test eax, eax
jl 0x405320
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00403600
test eax, eax
jl 0x405320
push 0x412d60
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00403600
test eax, eax
jl 0x405320
push 0x412d64
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403600
test eax, eax
jl 0x405320
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403600
test eax, eax
jl 0x405320
push 0x412d6c
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00403600
test eax, eax
jge 0x40532b
mov dword [ebp - 0x1c], 0x643
jmp 0x405386
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40535f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x405386
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004053e0
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x405378
jmp 0x405386
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 4], 0
je 0x40539e
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 0x70]
push edx
call fcn.0040767c
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4053ae
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x4053be
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
push str._Info__Verification_of_Update_returned__d_n
call fcn.00406840
add esp, 8
mov eax, dword [ebp - 0x1c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405992
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405992
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405952
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jbe 0x40591f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 0xea
jmp 0x4059aa
push 0
push 0
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x405948
mov eax, 0x65b
jmp 0x4059aa
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x405979
mov edx, dword [ebp + 0x18]
cmp dword [edx], 1
jae 0x40596a
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov eax, 0xea
jmp 0x4059aa
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str._Resource__lpName___s__lpBuf___s_n
call fcn.00406990
add esp, 0xc
xor eax, eax
jmp 0x4059aa
push 0
mov edx, dword [ebp + 0x10]
push edx
push str._Resource__lpName___s_NOT_FOUND_n
call fcn.00406990
add esp, 0xc
mov eax, 0x716
mov esp, ebp
pop ebp
ret

Function at 0x4061a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], str.Global_MSISETUP_2956EBA1_9B5A_4679_8618_357136DA66CA
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x4061d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4061d7
mov al, 1
jmp 0x4061d9
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x406280
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4160a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0xffffffff
mov dword [ebp - 0x11c], 0xffffffff
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x4063a0
mov edx, dword [ebp - 0x120]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40631a
mov dword [ebp - 0x128], 8
jmp 0x406424
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x406388
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0x412e3c
mov eax, dword [ebp - 0x124]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x406386
cmp dword [ebp - 0x118], 0
je 0x406386
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x11c], ecx
jmp 0x40639e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x128], eax
jmp 0x406424
jmp 0x4063ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x11c]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x11c]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x110]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x110]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._s_is_version__d._d._d._d_n
push 0xff
lea edx, [ebp - 0x108]
push edx
call fcn.00403650
add esp, 0x20
push 0
lea eax, [ebp - 0x108]
push eax
push str._INFO___s
call fcn.00406990
add esp, 0xc
cmp dword [ebp - 0x124], 0
je 0x40643a
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp + 0xc], 0
je 0x40644b
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x110]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
je 0x40645c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x11c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407687
mov esp, ebp
pop ebp
ret
Function at 0x406540
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4160a8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.004076d0
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
jae 0x40658d
xor al, al
jmp 0x4065d4
push 0
push 2
push 5
call fcn.00406470
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x4065cc
push 0
push 1
push 5
call fcn.00406470
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x4065cc
push 3
push 0
push 5
call fcn.00406470
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x4065d2
mov al, 1
jmp 0x4065d4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407687
mov esp, ebp
pop ebp
ret

Function at 0x4067d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4160a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [0x416068], 0
mov byte [ebp - 0x48], 0
push 0x3f
push 0
lea eax, [ebp - 0x47]
push eax
call fcn.004076d0
add esp, 0xc
push 0x40
lea ecx, [ebp - 0x48]
push ecx
push str._MSI_WEB_BOOTSTRAP_DEBUG
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x406826
movsx edx, byte [ebp - 0x48]
cmp edx, 0x31
jne 0x406826
mov dword [0x416068], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407687
mov esp, ebp
pop ebp
ret

Function at 0x406840
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x416068], 0xffffffff
jne 0x406854
call fcn.004067d0
cmp dword [0x416068], 0
je 0x406863
cmp dword [ebp + 8], 0
jne 0x406865
jmp 0x4068d9
mov dword [ebp - 4], 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xd
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00407617
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40689f
jmp 0x4068d9
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00403650
add esp, 0x10
test eax, eax
jge 0x4068cf
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040767c
add esp, 4
jmp 0x4068d9
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x4068e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x416068], 0xffffffff
jne 0x4068f4
call fcn.004067d0
cmp dword [0x416068], 0
je 0x406903
cmp dword [ebp + 8], 0
jne 0x406905
jmp 0x40697d
mov dword [ebp - 4], 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x19
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00407617
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40693f
jmp 0x40697d
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00403650
add esp, 0x14
test eax, eax
jge 0x406973
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040767c
add esp, 4
jmp 0x40697d
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret
Function at 0x406990
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x416068], 0xffffffff
jne 0x4069a4
call fcn.004067d0
cmp dword [0x416068], 0
je 0x4069b3
cmp dword [ebp + 8], 0
jne 0x4069b8
jmp 0x406ace
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x4069da
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x24], eax
jmp 0x4069e1
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], 0
je 0x4069fc
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x28], eax
jmp 0x406a03
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 4], 0
jne 0x406a1e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x406ace
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea edx, [eax + ecx + 1]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00407617
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jne 0x406a4e
jmp 0x406ace
cmp dword [ebp - 0xc], 0
jne 0x406a90
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00403650
add esp, 0x10
test eax, eax
jge 0x406a84
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040767c
add esp, 4
jmp 0x406ace
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x406ace
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00403650
add esp, 0x14
test eax, eax
jge 0x406ac4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0040767c
add esp, 4
jmp 0x406ace
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esp, ebp
pop ebp
ret