joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x208
call fcn.0042770a
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push str.Software_s
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4069ff
mov edx, dword [ebp - 4]
push 4
push 0x446958
push 1
push eax
push str.license
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00427715
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406a10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str._sTest
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
je 0x406a86
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
call fcn.004276fb
mov esp, ebp
pop ebp
ret

Function at 0x407b30
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov byte [esi + 0x48], 1
call edx
cmp byte [eax + 0xd], 0
je 0x407b63
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ecx, dword [esi + 4]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x407b80
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x407b8d
mov al, 1
pop esi
ret
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi - 4]
mov eax, dword [edx + 0x28]
lea ecx, [esi - 4]
call eax
xor al, al
pop esi
ret
Function at 0x407bb0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov byte [esi + 0x48], 1
call edx
cmp byte [eax + 0xc], 0
je 0x407c12
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
cmp byte [eax + 0xd], 0
jne 0x407c12
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
mov esi, eax
mov eax, dword [esi + 0x10]
mov byte [esi + 0xe], 1
test eax, eax
je 0x407c2f
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], 0
test ecx, ecx
je 0x407c2f
mov edx, dword [ecx]
mov eax, dword [edx + 8]
pop esi
jmp eax
mov esi, dword [esi + 8]
mov ecx, dword [esi + 0x24]
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov edx, dword [esi + 4]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x407cc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
call edx
cmp byte [eax + 0xd], 0
je 0x407e83
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
cmp byte [eax + 0xe], 0
jne 0x407e83
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
cmp dword [eax + 0x11880], 2
je 0x407e83
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
test al, al
je 0x407d8e
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x3c]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
cmp byte [eax + 4], 0
je 0x407d7a
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
mov ecx, esi
call eax
push eax
call fcn.00409860
jmp 0x407e83
mov edx, dword [esi]
mov eax, dword [edx + 0x2c]
push edi
mov ecx, esi
call eax
mov edi, dword [eax + 0x11878]
add edi, 4
push edi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
test eax, eax
je 0x407db9
push 0
push 0
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x40c], edx
xor ecx, ecx
mov eax, 0x447452
push ebx
lea ecx, [ecx]
movzx edx, word [eax - 2]
mov ebx, ecx
shl ebx, 5
sub ebx, ecx
add edx, ebx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax + 2]
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax + 4]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax + 6]
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax + 8]
add eax, 0xc
add ecx, edx
cmp eax, 0x447476
jl 0x407dd0
mov eax, dword [ebp - 0x40c]
add eax, 0x264
lea edx, [ebp - 0x408]
mov dword [ebp - 0x408], ecx
call fcn.00405250
mov eax, dword [eax]
pop ebx
test eax, eax
jne 0x407e4f
mov eax, 0x447450
push edi
push eax
push 0x200
lea eax, [ebp - 0x404]
push 0x200
push eax
call fcn.00427b31
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
add esp, 0x14
push 0x10
push 0
lea ecx, [ebp - 0x404]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
mov ecx, esi
call eax
mov cl, byte [eax + 0xe]
mov eax, dword [esi]
mov byte [ebp - 0x408], cl
mov edx, dword [ebp - 0x408]
push edx
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
call fcn.0040a240
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004276fb
mov esp, ebp
pop ebp
ret
Function at 0x408440
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f32b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x45407c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x24
call fcn.00427771
add esp, 4
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x40849e
mov ecx, dword [edi - 0x808]
mov ecx, dword [ecx + 8]
mov esi, dword [ecx + 0x20]
mov ecx, dword [ecx + 4]
mov edx, dword [esi + 4]
push esi
push ecx
mov ecx, dword [edi + 0x1c]
mov ebx, eax
call fcn.0040b790
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [esi + 0x1c]
mov eax, dword [edx]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov ecx, dword [esi + 8]
push 5
push ecx
call ebx
mov edx, dword [edi + 0x20]
add edx, 0x17e8
push edx
call fcn.00406990
add esp, 4
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 0x408b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebx], 0
mov eax, dword [ebp + 0xc]
push edi
je 0x408c31
push eax
push str._sinit.xml
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push str.write_init_xml_to
push str.INFO
mov ecx, esi
call fcn.00404920
lea ecx, [ebp - 0x210]
push ecx
push str.INFO
mov ecx, esi
call fcn.00404920
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408bfd
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x414]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.createInitXml__d
lea edx, [ebp - 0x410]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
push str.ERROR
mov ecx, esi
call fcn.00404920
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004276fb
mov esp, ebp
pop ebp
ret
Function at 0x4093b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x208
mov dword [ebp - 0x210], esi
call fcn.0042770a
mov edi, eax
lea eax, [esi + 0x17e8]
push eax
push str.Software_s
push 0x104
push edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push edi
add esi, 0xfc0
mov ebx, 0x104
mov edi, str.exec
call fcn.00405900
add esp, 0x18
cmp word [esi], 0
je 0x40945e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409422
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4094af
mov edx, dword [ebp - 0x210]
lea ecx, [edx + eax*2 + 0xfbe]
cmp word [ecx], 0x5c
je 0x409452
dec eax
sub ecx, 2
test eax, eax
jg 0x409442
jmp 0x4094af
xor ecx, ecx
mov word [edx + eax*2 + 0xfbe], cx
jmp 0x4094af
xor edx, edx
lea eax, [ebp - 0x20c]
push eax
push edx
push edx
push 0x26
push edx
mov word [ebp - 0x20c], dx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
push str._s_s
mov eax, edx
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x210]
call fcn.00409650
mov edx, dword [ebp - 0x218]
push edx
call fcn.00427715
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret
Function at 0x4094d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x208
mov edi, ecx
call fcn.0042770a
mov ebx, eax
lea eax, [edi + 0x17e8]
push eax
push str.Software_s
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea esi, [edi + 0x2a4]
add esp, 0x14
test esi, esi
je 0x409564
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409564
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409532
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 4]
push edx
push esi
push 1
push 0
push 0x447b8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [edi + 0xb28]
test esi, esi
jne 0x409578
lea esi, [edi + 0xd30]
test esi, esi
je 0x4095d2
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4095d2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4095a0
mov ecx, dword [ebp - 4]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.GUID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi + 0x17e4]
test edi, edi
je 0x409636
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409636
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409604
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push str.userAgent
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00427715
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push edi
push eax
mov esi, ecx
push 0x446b64
xor ecx, ecx
lea edi, [esi + 0xfc0]
push 0x104
push edi
mov word [esi + 0x11c8], cx
call ebx
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409696
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 0xfbe], 0x5c
jne 0x4096ce
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4096b5
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esi + eax*2 + 0xfbe], dx
add esi, 0x17e8
push esi
push edi
push str._s_s.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call ebx
push esi
push str.Software_s
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call ebx
add esp, 0x24
push 0
lea edx, [ebp - 0x418]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x40977e
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
jmp 0x409740
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409740
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x418]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push str.exec
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret 4

Function at 0x409940
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Read file on windows

Disassembly:
push esi
mov esi, ecx
call fcn.004093b0
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
movzx eax, al
neg eax
sbb eax, eax
and eax, 2
mov dword [esi + 0x11880], eax
je 0x409978
mov ecx, dword [esi + 0x11878]
push str.Installed_already
push str.INFO
call fcn.00404920
mov ecx, esi
pop esi
jmp fcn.00408f60
Function at 0x409fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push esi
push eax
push eax
push 0x1a
push eax
mov edi, ecx
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add edi, 0x17e8
push edi
push esi
push str._s_s
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
pop edi
pop esi
pop ebp
ret 8

Function at 0x40a020
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ax, word [eax]
push ebx
push esi
mov esi, ecx
mov word [ebp - 0x10], ax
xor eax, eax
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x2ac]
mov word [ebp - 0xa], ax
push edx
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0xe], 0x5c003a
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x40a086
mov ebx, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x298]
shrd ebx, edx, 0x14
shr edx, 0x14
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
cmp ebx, eax
jbe 0x40a0a5
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret
mov ebx, str.freeSpace
mov eax, esi
call fcn.00408e90
mov edx, dword [esi]
push 0xa
push 0x40
lea eax, [ebp - 0x94]
push eax
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
push eax
call fcn.00427fca
add esp, 0x10
xor edx, edx
mov ecx, 0x447f02
movzx eax, word [ecx - 2]
mov esi, edx
shl esi, 5
sub esi, edx
add eax, esi
mov edx, eax
shl edx, 5
sub edx, eax
movzx eax, word [ecx]
add ecx, 4
add edx, eax
cmp ecx, 0x447f46
jl 0x40a0d5
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
mov eax, edi
call fcn.00405250
mov eax, dword [eax]
test eax, eax
jne 0x40a111
mov eax, str.NOT_ENOUGH_SPACE_TO_INSTALL_YES_NO
lea ecx, [ebp - 0x94]
push ecx
push eax
push 0x100
lea edx, [ebp - 0x294]
push 0x100
push edx
call fcn.00427b31
add esp, 0x14
push 0x14
push 0
lea eax, [ebp - 0x294]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
cmp eax, 6
sete al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret

Function at 0x40a1b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0
push esi
push edi
je 0x40a233
push 8
call fcn.00427771
add esp, 4
test eax, eax
je 0x40a1d8
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov edi, eax
jmp 0x40a1da
xor edi, edi
push 0x208
mov dword [edi], ebx
call fcn.0042770a
add esp, 4
mov esi, eax
push esi
push 0x104
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
push 0
push 0x4472c4
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov eax, dword [ebx + 0x11878]
mov edi, dword [edi + 4]
mov ecx, dword [ebp + 8]
push eax
push 0
push 0x40a160
push edi
push ecx
push str.finishInstallDownloadId
push 0
call fcn.004235c0
add esp, 0x1c
call fcn.004233e0
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x40a2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x80000
mov ebx, eax
call fcn.0042770a
add esp, 4
push eax
xor ecx, ecx
push ebx
mov dword [ebp - 4], eax
mov word [eax], cx
call fcn.00409ca0
push 8
call fcn.00427771
add esp, 4
test eax, eax
je 0x40a2fe
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov edi, eax
jmp 0x40a300
xor edi, edi
push 0x208
mov dword [edi], ebx
call fcn.0042770a
add esp, 4
mov esi, eax
push esi
push 0x104
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
push 0
push 0x4472c4
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov ebx, dword [ebx + 0x11878]
mov eax, dword [edi + 4]
mov edx, dword [ebp - 4]
push ebx
push 0
push 0x40a160
push eax
push edx
push str.startInstallDownloadId
push edi
call fcn.004235c0
add esp, 0x1c
call fcn.00423510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
mov byte [esi + 0xe], 0
call fcn.0040a360
test al, al
jne 0x40a9b4
mov ecx, dword [esi + 8]
mov byte [esi + 0xe], 1
test ecx, ecx
je 0x40a97a
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov esi, dword [esi + 4]
push ebx
push edi
push 0x80000
call fcn.0042770a
add esp, 4
xor ecx, ecx
push ecx
mov edi, eax
push str.installCancel
push edi
push esi
mov word [edi], cx
call fcn.00409da0
push edi
mov ebx, esi
call fcn.0040a1b0
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x40a8d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x10], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b260
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [ecx + 0x8c0]
jmp fcn.0040c000
Function at 0x40bb40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0
push ecx
push 0x19
push 0x190
push eax
push 0xbd
push 0x50000000
push 0
mov esi, edx
mov dword [edi + 8], esi
mov dword [edi + 0xc], 0x190
mov dword [edi + 0x10], 0x19
mov dword [edi + 0x14], 0xbd
mov dword [edi + 0x18], eax
push str.Static
push 0
mov dword [edi], vtable.StageItemUIImpl.0
mov dword [edi + 0x1c], ecx
mov byte [edi + 0x28], 1
call ebx
push 0
push 0
push 0
push eax
push 0x19
push 0x17c
push 0
push 0x14
push 0x50000000
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
push eax
push str.Static
push 0
call ebx
push 1
mov dword [edi + 0x20], eax
mov ecx, dword [esi]
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x34
call fcn.00427771
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40bc00
mov edx, dword [ebp + 8]
mov eax, dword [edi + 4]
push 4
push esi
push edx
push eax
mov eax, 0xb
lea ecx, [eax - 2]
lea edx, [eax - 7]
mov esi, ebx
call fcn.00421d70
jmp 0x40bc02
xor eax, eax
mov dword [edi + 0x24], eax
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
movzx ecx, word [ebp + 0x10]
mov eax, dword [edi + 0x24]
mov esi, dword [eax + 0x1c]
push 0x4474c8
push ecx
push esi
lea ebx, [eax + 0x28]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40bc3a
push ebx
mov ecx, esi
call fcn.00421bd0
add esp, 4
pop esi
mov eax, edi
mov dword [edi + 0x2c], 0
pop ebx
pop ebp
ret 0xc

Function at 0x40bcf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x45407c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetSystemDefaultLangID]
push esi
mov esi, dword [eax + 0x1187c]
call ebx
movzx eax, ax
mov ecx, 0x419
cmp ax, cx
jne 0x40bd27
mov eax, 0x4466b4
jmp 0x40bd3b
mov edx, 0x422
cmp ax, dx
mov eax, 0x4466b8
je 0x40bd3b
mov eax, 0x4466bc
push eax
push str.messages._s
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004286c2
add esp, 0x10
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.0040dc40
mov esi, eax
test esi, esi
je 0x40bdbe
mov eax, dword [ebp - 0x48]
push edi
push eax
call fcn.0042770a
mov ecx, dword [ebp - 0x4c]
add esp, 4
push 0
push 0
push ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 0x48]
push 0
lea edx, [ebp - 0x50]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call ebx
mov edx, dword [ebp - 0x50]
movzx ecx, ax
push ecx
push edx
push edi
call fcn.00402c20
push edi
mov esi, eax
call fcn.00427715
add esp, 0x10
pop edi
test esi, esi
jne 0x40bde0
call ebx
movzx eax, ax
push eax
push 0
push 0
call fcn.00402c20
add esp, 0xc
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004276fb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004276fb
mov esp, ebp
pop ebp
ret