joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e1b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4329c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x400
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x147
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
test esi, esi
js 0x40e2c2
push dword [esi*8 + 0x44ada8]
lea ecx, [ebp - 0x1c]
push str.Update_pending:__s
push 1
push 3
push 0xb7
push str.CUpdateDialog::OnButtonAsk
push str.DialogsUpdateDialog.cpp
call fcn.0041e2e0
push eax
call fcn.0041e500
mov eax, dword [esi*8 + 0x44adac]
imul eax, eax, 0x3e8
add esp, 0x14
push 0
push eax
push 0x3e8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
push dword [esi*8 + 0x44ada8]
lea eax, [ebp - 0x10]
push 0x7d
push eax
call fcn.0040e530
mov esi, dword [ebp - 0x10]
add esp, 4
mov ecx, edi
push dword [0x44adcc]
push esi
call fcn.0040e450
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e2c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e2e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c0
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3b8
lea eax, [ebp - 0x3bc]
push 0
push eax
call fcn.00421940
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [ebp - 0x3bc], eax
lea eax, [ebp - 0x3c0]
push eax
push 2
mov dword [ebp - 0x3c0], 0x3bc
mov dword [ebp - 0x3b8], 0x64
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0x3e8
push dword [esi + 4]
mov dword [esi + 0x5c], 0
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041fe49
mov esp, ebp
pop ebp
ret 8
Function at 0x40f0c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432b46
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov eax, dword [0x44adcc]
add eax, 0xfffffff0
push eax
call fcn.004028c0
add eax, 0x10
add esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [edi + 0x14], 1
mov dword [edi + 0x18], eax
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 2
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 3
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403130
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jge 0x40f18e
or ecx, 0xffffffff
jmp 0x40f1ac
push 0x43d81c
push eax
call fcn.004202a7
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x40f1a7
or ecx, 0xffffffff
jmp 0x40f1ac
sub ecx, dword [ebp - 0x18]
sar ecx, 1
xor eax, eax
cmp ecx, 0xffffffff
setne al
push 1
xorps xmm0, xmm0
push 0x43d824
lea ecx, [edi + 0xc]
movq qword [ebp - 0x2c], xmm0
mov dword [edi + 0x10], eax
call fcn.004032b0
lea ecx, [ebp - 0x2c]
call fcn.0041d030
test eax, eax
je 0x40f1f3
push 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041cdc0
mov byte [ebp - 4], 5
mov ebx, 1
jmp 0x40f20c
push 0x43b150
lea ecx, [ebp - 0x1c]
call fcn.00403130
mov dword [ebp - 4], 6
mov ebx, 2
mov eax, dword [eax]
lea ecx, [edi + 0xc]
push dword [eax - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call fcn.004032b0
or esi, 0xffffffff
mov dword [ebp - 4], 5
test bl, 2
je 0x40f24e
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
and ebx, 0xfffffffd
mov dword [ebp - 0x14], ebx
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f24e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 4
test bl, 1
je 0x40f276
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f276
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40f294
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f3f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [esi + 4], 1
test eax, eax
je 0x40f424
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
test eax, eax
je 0x40f424
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov edx, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test edx, edx
jne 0x40f43d
xor ecx, ecx
jmp 0x40f451
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f442
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.00402440
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x40f466
xor ecx, ecx
jmp 0x40f47f
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x40f470
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f470
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x20]
call fcn.00402440
cmp dword [ebp + 0x10], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x14], 1
jne 0x40f4b2
mov ecx, esi
call fcn.0040f510
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0
push 0
push esi
push 0x40f4f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x40f4d9
mov eax, 6
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor eax, eax
cmp dword [esi + 0x18], eax
pop edi
mov ecx, 7
pop esi
cmove eax, ecx
pop ebx
pop ebp
ret 0xc
Function at 0x40fcf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x10], 0
jne 0x40fda2
mov eax, dword [edi + 0x28]
cmp dword [eax], 0
jne 0x40fd47
push 0xfc01
mov dword [eax], 0xfc00
call fcn.00420b5d
mov ecx, dword [edi + 0x24]
add esp, 4
mov dword [ecx], eax
mov ebx, dword [edi + 0x28]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebx]
lea eax, [esi + edx]
cmp eax, ecx
jae 0x40fd5d
mov ecx, esi
jmp 0x40fd5f
sub ecx, edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x40fd82
mov eax, dword [ebx]
push ecx
push dword [ebp + 8]
sub eax, edx
push eax
mov eax, dword [edi + 0x24]
mov eax, dword [eax]
add eax, edx
push eax
call fcn.0041fe58
mov ecx, dword [ebp - 0x10]
add esp, 0x10
xor edx, edx
mov eax, 5
cmp ecx, esi
cmove eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x10]
cmp dword [ebx], 0
jne 0x40fe44
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
push 0
push 0x80
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x20]
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040ef50
push eax
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x40fe3c
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x40fe1b
push dword [edi + 0x20]
mov eax, dword [ecx]
push 6
call dword [eax + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0040eef0
mov eax, 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x2c]
call fcn.0040eef0
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
cmp dword [ebp - 0x10], esi
mov eax, 6
cmove eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410470
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432b88
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4104d6
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004026b0
mov esi, dword [ebp - 0x10]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [esi - 8]
push esi
call fcn.00420547
add esp, 8
test eax, eax
js 0x4105ec
cmp eax, dword [esi - 8]
jg 0x4105ec
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [esi - 0xc]
or edi, 0xffffffff
test eax, eax
je 0x4105f6
cmp eax, 0xe6
jg 0x4105f6
lea ecx, [eax - 1]
test ecx, ecx
js 0x4105ec
cmp ecx, eax
jg 0x4105ec
cmp word [esi + ecx*2], 0x5c
je 0x410548
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.00407d30
mov esi, dword [ebp - 0x10]
push str..exe
lea ecx, [ebp - 0x18]
call fcn.00403130
push 0x43e638
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00403130
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 2
xor edi, edi
nop
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push esi
push str._s_s_i_s
push ebx
call fcn.004025d0
inc edi
add esp, 0x18
cmp edi, 0x3e8
jge 0x41059c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410570
xor ebx, ebx
cmp edi, 0x3e8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
setne bl
add edx, 0xfffffff0
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4105ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4105f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4105f8
push 0x80070057
call fcn.00402950
xor ebx, ebx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x410616
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f80
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432d48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push ecx
push 0x410f50
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x2710
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x411008
push str.InstallThread_timeout
push 3
push 3
push 0xd9
push str.InstallAsync
push str.Installer.cpp
lea ecx, [ebp - 0x1c]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test esi, esi
je 0x411013
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411360
Capabilities:
Access peb ldr_data
Get ntdll base address
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e97
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [edi], vtable.CInstallingStrategy.1.0
mov dword [edi + 4], vtable.CInstallingStrategy.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov eax, dword [0x448020]
mov ecx, 0x448020
mov dword [ebp - 0x138], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 1
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 2
mov dword [edi + 0x24], 0
mov eax, dword [0x448020]
mov ecx, 0x448020
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x34], vtable.CMiniDialog.0
mov dword [edi + 0x48], 0
push edi
lea ecx, [edi + 0x4c]
mov byte [ebp - 4], 5
call fcn.0040f0c0
mov byte [ebp - 4], 6
lea ecx, [edi + 0x80]
mov dword [edi + 0x78], 0
call fcn.00417b30
lea ecx, [edi + 0xa8]
call fcn.00414ba0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xdc], 0
mov byte [ebp - 4], 9
lea ecx, [edi + 0xe8]
mov dword [edi + 0xe4], 1
call fcn.0041b060
lea ecx, [edi + 0x118]
mov byte [ebp - 4], 0xa
call fcn.00408380
mov byte [ebp - 4], 0xb
xorps xmm0, xmm0
lea eax, [ebp - 0x15c]
push eax
movq qword [ebp - 0x15c], xmm0
movq qword [ebp - 0x154], xmm0
movq qword [ebp - 0x14c], xmm0
movq qword [ebp - 0x144], xmm0
mov dword [ebp - 0x13c], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x15c], 9
sete bl
push pe_nt_image_headers32
lea eax, [ebp - 0x130]
push 0
push eax
mov dword [ebp - 0x134], 0x11c
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x130]
movzx eax, word [ebp - 0x20]
shl ecx, 8
add ecx, dword [ebp - 0x12c]
shl ecx, 8
add ecx, eax
movzx eax, word [ebp - 0x1e]
shl ecx, 8
add ecx, eax
push ecx
movzx eax, bl
push eax
push str.OS_Info__isX64__dwOSVersion_:__u__0x_x
push 2
push 0x29
push str.CInstallingStrategy::CInstallingStrategy
push str.InstallingStrategy.cpp
lea ecx, [ebp - 0x168]
call fcn.0041e2e0
push eax
call fcn.0041e4d0
add esp, 0x14
mov ecx, edi
push esi
call fcn.004117c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041fe49
mov esp, ebp
pop ebp
ret 4
Function at 0x411e70
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x411ec5
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0xa
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0xa
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov ecx, 0x44add0
mov dword [esi + 0x78], eax
call fcn.00402300
cmp dword [esi + 8], 1
jne 0x412e15
mov ecx, str.73534974_C058_4AAD_B0CD_CF8A011A87EA
call fcn.004154f0
test eax, eax
jne 0x412e0e
mov ecx, str.8000D876_0620_4072_AD0A_7D402167FF98
call fcn.004154f0
test eax, eax
je 0x412e18
mov eax, 1
jmp 0x412e18
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 0
mov dword [0x449418], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0xe0], 0
jne 0x412e3e
mov ecx, esi
call fcn.00412ec0
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push esi
push 0x412eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xdc], eax
test eax, eax
jne 0x412e95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_creating_working_thread__error:__u.
push 3
push 3
push 0x1e3
push str.CInstallingStrategy::Continue
push str.InstallingStrategy.cpp
lea ecx, [ebp - 0xc]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4158a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
je 0x4158c2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4158d6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], 0
push 0x43bf90
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4158f4
pop edi
xor al, al
pop esi
pop ebp
ret 0xc
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4159ac
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4159ac
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x4159a5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4159a5
push ebx
push dword [ebp + 8]
push eax
call fcn.00421fe0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push 0
push dword [esi]
mov dword [ebp + 8], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4159a5
mov ecx, dword [ebp + 8]
call fcn.00415850
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4159a5
mov eax, dword [ecx + 8]
mov dword [ecx + 8], 0
test eax, eax
jne 0x41599e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
mov dword [esi + 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
xor al, al
pop esi
pop ebp
ret 0xc

Function at 0x415c40
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x18]
push str.InstallPrereq_d
call fcn.00402990
add esp, 8
mov ecx, esi
push 0
push dword [esi + 0x70]
call fcn.0041d3c0
test eax, eax
jne 0x415c90
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
jne 0x415c83
push dword [esi + 0x18]
push str.InstallPrereq_dFail
call fcn.00402990
add esp, 8
call fcn.004146a0
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop esi
ret
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
ret

Function at 0x415ca0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], 1
test eax, eax
je 0x415cd8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x415cd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x415cf0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 0x10]
mov dword [esi], vtable.CInstActionBase.0
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x20], 1
test eax, eax
je 0x415d32
push 0xffffffffffffffff
push eax
call ebx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x415d32
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
push 0xffffffffffffffff
push dword [esi + 0x14]
call ebx
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi + 0x70]
sub edx, 0x10
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x415d61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x54]
sub edx, 0x10
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415d7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x50]
sub edx, 0x10
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415d99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x4c]
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x415db3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x1c]
call fcn.0040f2b0
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x415dd2
push eax
call edi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x415de3
push eax
call edi
mov dword [esi + 0x10], 0
pop edi
pop esi
pop ebx
ret