joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f7e0
Capabilities:
Check if file exists
Create directory
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9fc
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x9938]
push str.Start_read_resources
push str.INFO
call fcn.0040c980
mov eax, dword [edi]
mov edx, dword [eax]
push 0x104
lea esi, [edi + 0x13d8]
push esi
mov ecx, edi
call edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40f843
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f843
test al, 0x10
jne 0x40f843
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0x3e8
lea eax, [ebp - 0x7d8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x40f87d
push 0x104
lea ecx, [ebp - 0x9e0]
push ecx
lea edx, [ebp - 0x7d8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameW]
lea eax, [ebp - 0x9f4]
push eax
lea ecx, [ebp - 0x9f8]
push ecx
mov ecx, dword [edi + 0x17f4]
mov edx, str.initxml
call fcn.00412ce0
mov ebx, eax
test ebx, ebx
je 0x40f9a7
mov eax, dword [ebp - 0x9f8]
mov edx, dword [ebp - 0x9f4]
mov dword [ebp - 0x9e8], eax
inc eax
push eax
mov dword [ebp - 0x9f0], edx
mov dword [ebp - 0x9e4], eax
call fcn.0043723a
mov esi, eax
mov eax, dword [ebp - 0x9e4]
add esp, 4
push eax
push 0
push esi
call fcn.0043c0c0
mov ecx, dword [ebp - 0x9f0]
add esp, 0xc
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 0x9e8]
push 0
lea edx, [ebp - 0x9ec]
push edx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [ebp - 0x9ec]
lea ecx, [ebp - 0x9e8]
push ecx
push edx
mov eax, esi
call fcn.00407de0
push esi
mov dword [ebp - 0x9e4], eax
call fcn.00437245
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
mov ecx, edi
call edx
mov ebx, dword [ebp - 0x9e8]
test al, al
je 0x40f965
mov esi, dword [edi + 0x9938]
lea eax, [edi + 0x13d8]
push eax
mov eax, dword [ebp - 0x9e4]
push eax
call fcn.0040f390
add esp, 8
mov eax, dword [ebp - 0x9e4]
lea ecx, [ebp - 0x9ec]
push ecx
push ebx
call fcn.00408b40
push ebx
call fcn.00437245
mov esi, dword [ebp - 0x9ec]
mov ecx, dword [edi + 0x9938]
lea edx, [edi + 0x9944]
add esp, 0xc
push edx
mov edx, esi
call fcn.0040f0a0
add esp, 4
push esi
call fcn.00437245
add esp, 4
call fcn.0040f9c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x40ff10
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x208
mov dword [ebp - 0x214], esi
call fcn.0043723a
lea ecx, [esi + 0x17f8]
push ecx
push str.Software_s
push 0x104
push eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ecx, dword [ebp - 0x210]
add esi, 0xfc8
push SysReAllocString
mov ebx, 0x104
mov edi, str.exec
call fcn.00407740
add esp, 0x18
cmp word [esi], 0
je 0x40ffcc
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ff90
sub eax, edx
sar eax, 1
test eax, eax
jle 0x41001d
mov edx, dword [ebp - 0x214]
lea ecx, [edx + eax*2 + 0xfc6]
cmp word [ecx], 0x5c
je 0x40ffc0
dec eax
sub ecx, 2
test eax, eax
jg 0x40ffb0
jmp 0x41001d
xor ecx, ecx
mov word [edx + eax*2 + 0xfc6], cx
jmp 0x41001d
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 - 0x218]
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 - 0x214]
call fcn.00410210
mov edx, dword [ebp - 0x210]
push edx
call fcn.00437245
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x410040
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.0043723a
mov ebx, eax
lea eax, [edi + 0x17f8]
push eax
push str.Software_s
push 0x104
push ebx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea esi, [edi + 0x2ac]
add esp, 0x14
test esi, esi
je 0x4100d4
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 0x4100d4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4100a2
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 0x45a1a0
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 + 0xb30]
test esi, esi
je 0x4100e7
cmp dword [edi + 0xf40], 1
je 0x4100ed
lea esi, [edi + 0xd38]
test esi, esi
je 0x410152
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 0x410152
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410120
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 + 0x17ec]
test edi, edi
je 0x4101b6
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 0x4101b6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410184
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.00437245
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x469090]
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 0x458e0c
xor ecx, ecx
lea edi, [esi + 0xfc8]
push 0x104
push edi
mov word [esi + 0x11d0], cx
call ebx
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410256
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 0xfc6], 0x5c
jne 0x41028e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410275
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esi + eax*2 + 0xfc6], dx
add esi, 0x17f8
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 0x41033e
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
jmp 0x410300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410300
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.0043722b
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push esi
mov esi, ecx
call fcn.0040ff10
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, esi
call edx
movzx eax, al
neg eax
sbb eax, eax
and eax, 2
mov dword [esi + 0x993c], eax
je 0x410478
mov ecx, dword [esi + 0x9938]
push str.Installed_already
push str.INFO
call fcn.0040c980
mov ecx, esi
pop esi
jmp fcn.0040f7e0
Function at 0x411160
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, 0x17f8
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 0x4111b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ax, word [eax]
push esi
push edi
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 edi, edi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x411216
mov edi, dword [ebp - 0x29c]
mov edx, dword [ebp - 0x298]
shrd edi, edx, 0x14
shr edx, 0x14
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
cmp edi, eax
jbe 0x411235
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret
push 9
lea ecx, [esi + 0xb56c]
mov eax, str.freeSpace
call fcn.00402190
mov ecx, eax
push 1
mov eax, 0x45b178
call fcn.00402190
mov edx, dword [esi]
push 0xa
push 0x40
lea eax, [ebp - 0x94]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push eax
call fcn.00437bf5
add esp, 0x10
xor edx, edx
mov ecx, 0x45a5b2
lea esp, [esp]
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, 0x45a5f6
jl 0x411280
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040d2b0
mov eax, dword [eax]
test eax, eax
jne 0x4112bc
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.00437a91
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 edi
xor ecx, ebp
pop esi
call fcn.0043722b
mov esp, ebp
pop ebp
ret

Function at 0x411360
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 0x4113e3
push 8
call fcn.004372a1
add esp, 4
test eax, eax
je 0x411388
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov edi, eax
jmp 0x41138a
xor edi, edi
push 0x208
mov dword [edi], ebx
call fcn.0043723a
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 0x4594ac
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov eax, dword [ebx + 0x9938]
mov edi, dword [edi + 4]
mov ecx, dword [ebp + 8]
push eax
push 0
push 0x411310
push edi
push ecx
push str.finishInstallDownloadId
push 0
call fcn.0042ec40
add esp, 0x1c
call fcn.0042ea70
pop edi
pop esi
pop ecx
pop ebp
ret 4
Function at 0x4113f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
cmp dword [ebx + 0x993c], 2
push esi
push edi
je 0x411495
push 0x80000
call fcn.0043723a
add esp, 4
push eax
xor ecx, ecx
push ebx
mov dword [ebp - 4], eax
mov word [eax], cx
call fcn.00410910
push 8
call fcn.004372a1
add esp, 4
test eax, eax
je 0x41143b
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov edi, eax
jmp 0x41143d
xor edi, edi
push 0x208
mov dword [edi], ebx
call fcn.0043723a
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 0x4594ac
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov ebx, dword [ebx + 0x9938]
mov eax, dword [edi + 4]
mov edx, dword [ebp - 4]
push ebx
push 0
push 0x411310
push eax
push edx
push str.startInstallDownloadId
push edi
call fcn.0042ec40
add esp, 0x1c
call fcn.0042eb90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4126b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 4]
mov byte [esi + 0xe], 0
call fcn.004114a0
test al, al
jne 0x412726
mov ecx, dword [esi + 8]
mov ebx, 1
mov byte [esi + 0xe], bl
test ecx, ecx
je 0x4126de
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov esi, dword [esi + 4]
push edi
push 0x80000
call fcn.0043723a
mov edi, eax
xor eax, eax
mov word [edi], ax
add esp, 4
mov eax, str.reinstallCancel
cmp dword [esi + 0x993c], ebx
je 0x412708
mov eax, str.installCancel
push 0
push eax
push edi
push esi
call fcn.00410f30
push edi
mov ebx, esi
call fcn.00411360
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x412620
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x10], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4128a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x40000
xor esi, esi
call fcn.0043723a
add esp, 4
push esi
push esi
mov edi, eax
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x40000
push edi
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x412928
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x412928
xor eax, eax
test ecx, ecx
je 0x41290e
lea ecx, [ecx]
movzx edx, byte [eax + edi]
cmp word [esi*2 + 0x46bffc], dx
jne 0x412906
cmp esi, 0x19
je 0x41293c
inc esi
jmp 0x412908
xor esi, esi
inc eax
inc ebx
cmp eax, ecx
jb 0x4128f0
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push 0x40000
push edi
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4128e0
push edi
call fcn.00437245
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00437245
add esp, 4
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4131b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
push str.SoftwarePinstall_s
lea eax, [ebp - 0x204]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
add esi, 0xb08
je 0x413258
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x204]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413258
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413220
mov ecx, dword [ebp - 0x208]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.offerDate
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043722b
mov esp, ebp
pop ebp
ret

Function at 0x413270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
push str.SoftwarePinstall_s
lea eax, [ebp - 0x204]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
add esi, 0xb08
je 0x413318
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x204]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x413318
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4132e0
mov ecx, dword [ebp - 0x208]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.installDate
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x208]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043722b
mov esp, ebp
pop ebp
ret
Function at 0x413c80
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebx]
push esi
mov dword [ebp - 0x420], eax
push edi
add edx, 0x880
lea eax, [ebp - 0x41c]
mov esi, ecx
call fcn.00407d60
lea ecx, [ebp - 0x214]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413cd0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
mov ecx, esi
call fcn.00402190
mov ecx, eax
lea eax, [ebp - 0x41c]
lea edi, [eax + 2]
jmp 0x413d00
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x413d00
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x41c]
call fcn.00402190
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x413d29
mov ecx, dword [esi]
jmp 0x413d2b
mov ecx, esi
mov edx, dword [ebp - 0x420]
mov eax, dword [ebx]
push edx
push 0x412fa0
push 0
push ecx
add eax, 0x880
push eax
push str.partnerUtilId
push 0
call fcn.0042ec40
add esp, 0x1c
call fcn.0042ea70
cmp dword [esi + 0x14], edi
jb 0x413d5f
mov eax, dword [esi]
jmp 0x413d61
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413d71
test al, 0x10
je 0x413d84
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], edi
jb 0x413d7f
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0043722b
mov esp, ebp
pop ebp
ret

Function at 0x415f60
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [ecx + 0x8c0]
jmp fcn.004131b0

Function at 0x4174e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452d73
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x469090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x2c
call fcn.004372a1
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x41759d
mov ecx, dword [ebp + 0x10]
xor eax, eax
push edi
mov word [ebp - 0x30], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
call fcn.004022c0
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], edx
lea ecx, [esi + 4]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push edi
lea edx, [ebp - 0x30]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.004022c0
mov eax, dword [ebp + 0x14]
mov cl, byte [ebp + 0x18]
mov edx, dword [ebp + 8]
mov dword [esi + 0x20], eax
mov byte [esi + 0x24], cl
mov dword [esi + 0x28], edx
cmp dword [ebp - 0x1c], 8
jb 0x41758b
mov eax, dword [ebp - 0x30]
push eax
call fcn.00437245
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], cx
jmp 0x41759f
xor esi, esi
lea edx, [ebp - 0x14]
push edx
push edi
push esi
push 0x417480
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4185d0
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.004372a1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x418690
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.0042d400
jmp 0x418692
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 0x4598e4
push ecx
push esi
lea ebx, [eax + 0x28]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4186ca
push ebx
mov ecx, esi
call fcn.0042d260
add esp, 4
pop esi
mov eax, edi
mov dword [edi + 0x2c], 0
pop ebx
pop ebp
ret 0xc