joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.2.5.39
push str.Core_version:__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov edi, dword [0x457d08]
add esp, 0xc
push str.IIF_SETUPVERSION
add edi, 4
call fcn.004149c0
push eax
push str.Setup_version:__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push str.Command_line:__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0xc
push 0x11c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00435c00
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x12c]
push edx
mov dword [ebp - 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x12c], 1
mov eax, str.64_bit
je 0x404c37
mov eax, str.32_bit
movzx ecx, byte [ebp - 0xe]
mov edx, dword [ebp - 0x120]
push eax
movzx eax, word [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x124]
push ecx
push edx
push eax
push str.OS_data:__d__d__d__d__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
push edx
push str.System_up_time:__d_sec
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov eax, dword [0x457d08]
add eax, 0x30
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x404ca1
mov eax, dword [eax]
push eax
call fcn.00404a40
add esp, 4
test al, al
mov eax, 0x448828
jne 0x404cb8
mov eax, 0x448830
push eax
push str.Reboot_pending:__s
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x404ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
push ebx
push esi
push edi
mov esi, ecx
jb 0x404d00
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404e20
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x4a]
movzx edx, word [ebp - 0x4c]
movzx eax, word [ebp - 0x4e]
push esi
push ecx
movzx ecx, word [ebp - 0x50]
push edx
movzx edx, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x56]
push ecx
movzx ecx, word [ebp - 0x58]
push edx
push eax
push ecx
lea edx, [ebp - 0x48]
push str._d:_02d:_02d__02d:_02d:_02d:_03d:__s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x48]
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404d77
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edx
call fcn.0042d394
lea esi, [eax + 3]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bb49
mov ecx, dword [ebp + 0xc]
mov edi, eax
lea eax, [ebp + 0x10]
push eax
push ecx
push esi
push edi
call fcn.0042d51f
push 0x4488ac
push esi
push edi
call fcn.0042d53c
mov eax, edi
add esp, 0x28
lea edx, [eax + 2]
jmp 0x404df0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404df0
sub eax, edx
push 0
sar eax, 1
lea edx, [ebp - 0x5c]
push edx
add eax, eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.0042c691
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x404f90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, eax
push 0
call fcn.00404eb0
mov eax, dword [edi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x405009
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageW]
lea ebx, [ebx]
cmp byte [edi + 0xc], 0
jne 0x405008
mov eax, dword [edi + 4]
lea edx, [ebp - 0x1c]
push edx
push eax
call ebx
test eax, eax
jne 0x404ff8
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x404fd0
pop ebx
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, 0x457d28
call fcn.00419060
mov edx, dword [0x458568]
mov eax, dword [edx + 4]
push eax
mov ecx, 0x458564
call fcn.00419450
mov eax, dword [0x458568]
mov dword [eax + 4], eax
mov eax, dword [0x458568]
mov dword [eax], eax
mov eax, dword [0x458568]
mov dword [eax + 8], eax
mov dword [0x45856c], 0
mov eax, dword [edi + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405060
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ffb
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x4553d4]
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 eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], ebx
mov word [ebp - 0x830], cx
mov dword [ebp - 4], ebx
mov edx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push edx
call edi
mov esi, eax
cmp esi, ebx
je 0x40511f
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
lea esp, [esp]
push 0x400
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x830]
push ecx
lea edx, [ebp - 0x814]
push edx
mov ecx, 0x457d28
call fcn.00418f50
cmp dword [ebp - 0x81c], 8
mov eax, dword [ebp - 0x830]
jae 0x405110
lea eax, [ebp - 0x830]
push eax
push esi
call ebx
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x4050d0
cmp dword [ebp - 0x81c], 8
jb 0x405137
mov eax, dword [ebp - 0x830]
push eax
call fcn.0042c691
add esp, 4
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.0042c682
mov esp, ebp
pop ebp
ret 4
Function at 0x406420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, ebx
sub eax, 0x110
push edi
mov esi, ecx
je 0x40658c
dec eax
je 0x40646c
sub eax, 0x27
jne 0x406488
push eax
call dword [sym.imp.GDI32.dll_GetStockObject]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
movzx ecx, word [ebp + 0xc]
mov dword [esi + 0x10], ecx
mov byte [esi + 0xc], 1
jmp 0x406570
cmp ebx, 0x110
ja 0x406564
je 0x4064d4
mov eax, ebx
sub eax, 2
je 0x4064c4
dec eax
je 0x406515
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push ebx
mov ecx, esi
call fcn.00405230
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4064a0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4064a0
mov eax, dword [0x457d08]
call fcn.004096d0
test al, al
je 0x406515
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [esi + 4]
push eax
push 0
push edx
push 0x1e
push 0x5a
push 0
push 0
push 0x90000000
push str.Exit
push str.Button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x38], eax
cmp dword [esi + 0x38], 0
je 0x4064a0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
push eax
push ecx
call edi
mov eax, dword [esi + 0x38]
lea edx, [esp + 0xc]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0x15
push 0
push 0
lea eax, [ecx + edx - 0xe]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 0x38]
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4064a0
cmp ebx, 0x111
jne 0x4064a0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4064a0
cmp dword [ebp + 0x10], eax
jne 0x4064a0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405cc0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0042c682
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407450
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441797
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, 7
xor ebx, ebx
xor edx, edx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x21c], edi
mov word [edi], dx
mov dword [ebp - 4], ebx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x2c], ebx
mov word [edi + 0x1c], dx
lea esi, [edi + 0x38]
mov dword [esi + 0x14], ecx
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [esi], cx
mov edx, dword [ebp + 0xc]
push edx
push eax
lea eax, [ebp - 0x218]
push str._S___d_
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
add esp, 0x10
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4074e0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00404910
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret 8

Function at 0x4076d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 1
push 0
push 0
push str.SoftwareIntelSetup_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407725
mov edx, dword [ebp + 8]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
mov eax, dword [ebp - 4]
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4089f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
mov edi, dword [ebp + 8]
push str.IIF_CACHELOC
lea edi, [edi + 4]
call fcn.004149c0
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042d2d5
add esp, 0xc
push str.Prop.data
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Deleting_private_properties_file
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop edi
call fcn.0042c682
mov esp, ebp
pop ebp
ret 4
Function at 0x40f2b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44038b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4553d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042bc51
push 4
mov dword [ebp - 4], 0
call fcn.0042c7bb
mov edi, eax
add esp, 4
test edi, edi
je 0x40f32c
call fcn.0042c0a3
mov dword [edi], eax
call fcn.0042be62
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042bd97
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f322
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042bdbf
jmp 0x40f32e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x414460
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442870
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
push str.Name
lea ecx, [ebp - 0x2c]
mov ebx, edx
push ecx
push ebx
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], eax
call fcn.0041ebf0
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00403530
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x4144ce
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042c691
add esp, 4
push str.Value
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.0041ebf0
mov esi, dword [ebp - 0x4c]
add esi, 0x1c
mov edi, eax
mov dword [ebp - 4], 1
call fcn.00403530
or ebx, 0xffffffff
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], edi
jb 0x41450d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042c691
add esp, 4
cmp dword [esi + 0x14], edi
jb 0x414516
mov eax, dword [esi]
jmp 0x414518
mov eax, esi
mov edx, dword [ebp - 0x50]
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004151c0
mov edi, eax
mov dword [ebp - 4], 2
call fcn.00403530
mov dword [ebp - 4], ebx
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x41454c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042c691
add esp, 4
cmp dword [esi + 0x14], ebx
jb 0x414555
mov eax, dword [esi]
jmp 0x414557
mov eax, esi
push 6
push str.REG:
push eax
call fcn.0042dc89
add esp, 0xc
test eax, eax
jne 0x4145a6
cmp dword [esi + 0x14], ebx
jb 0x414574
mov eax, dword [esi]
jmp 0x414576
mov eax, esi
lea edx, [ebp - 0x48]
lea ecx, [eax + 0xc]
push edx
call fcn.00414630
add esp, 4
mov edi, eax
mov dword [ebp - 4], 3
call fcn.00403530
cmp dword [ebp - 0x34], ebx
jb 0x414605
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042c691
add esp, 4
jmp 0x414605
cmp dword [esi + 0x14], ebx
jb 0x4145af
mov eax, dword [esi]
jmp 0x4145b1
mov eax, esi
push 6
push str.FIL:
push eax
call fcn.0042dc89
add esp, 0xc
test eax, eax
jne 0x414605
cmp dword [esi + 0x14], ebx
jb 0x4145ce
mov eax, dword [esi]
jmp 0x4145d0
mov eax, esi
add eax, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, 0x4479b8
jne 0x4145e8
mov eax, 0x448704
mov ecx, eax
lea edi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4145f0
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00404910
mov ecx, dword [ebp - 0x4c]
xor eax, eax
cmp dword [ecx + 0x2c], eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret 4
Function at 0x4174c0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x414]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x418], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0x44b870
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417545
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00404910
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042c682
mov esp, ebp
pop ebp
ret

Function at 0x417580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, edx
push edi
lea edx, [ebp - 0x58]
push edx
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4176ad
push ebx
push edi
call fcn.0042bb49
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x417697
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0x448f7c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417616
mov esi, dword [ebp - 0x50]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00404910
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0x14]
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push edx
push eax
lea ecx, [ebp - 0x44]
push str._d._d._d._d
push ecx
call edi
lea eax, [ebp - 0x44]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417660
mov esi, dword [ebp - 0x4c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00404910
push ebx
call fcn.0042c691
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x4176d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x50]
push ecx
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x4177a0
push ebx
push edi
call fcn.0042bb49
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41778a
push ebx
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x4c]
push eax
push 0x448f7c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x4c]
movzx ecx, word [eax + 0x10]
movzx edx, word [eax + 0x12]
push ecx
push edx
lea eax, [ebp - 0x44]
push str._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x44]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417753
mov esi, dword [ebp - 0x48]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x44]
call fcn.00404910
push ebx
call fcn.0042c691
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
pop ebx
pop edi
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042c682
mov esp, ebp
pop ebp
ret

Function at 0x417860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 4], 1
jne 0x4178c8
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.004035a0
cmp eax, 0xffffffff
je 0x4178c8
jmp 0x4178a0
push 0xe
push str._ProgramW6432_
push eax
mov eax, 0xe
mov ecx, esi
call fcn.0040e570
push 0xe
push str._ProgramFiles_
push esi
xor eax, eax
call fcn.004035a0
cmp eax, 0xffffffff
jne 0x4178a0
cmp dword [esi + 0x14], 8
jb 0x4178d2
mov eax, dword [esi]
jmp 0x4178d4
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
mov ebx, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042bb49
mov edi, eax
add esp, 4
test edi, edi
je 0x417940
cmp dword [esi + 0x14], 8
jb 0x41790a
mov eax, dword [esi]
jmp 0x41790c
mov eax, esi
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417920
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.00404910
push edi
call fcn.0042db19
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret