joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b30
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x404
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
add eax, 0xfffffffc
cmp eax, 0x15
ja case.0x401b63.5
movzx eax, byte [eax + 0x401cd8]
jmp dword [eax*4 + 0x401cac]
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x6e
push edx
jmp 0x401c75
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call esi
cmp eax, 0x404
je 0x401bb2
call esi
cmp eax, 0xc04
je 0x401bb2
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x73
push ecx
jmp 0x401c75
push 0x200
lea edx, [esp + 8]
push edx
push 0x74
jmp 0x401c6f
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x6b
push edx
jmp 0x401c75
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x6a
push ecx
jmp 0x401c75
push 0x200
lea edx, [esp + 8]
push edx
push 0x70
jmp 0x401c6f
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x6c
push edx
jmp 0x401c75
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x6f
push ecx
jmp 0x401c75
push 0x200
lea edx, [esp + 8]
push edx
push 0x71
jmp 0x401c6f
mov edx, dword [0x4274fc]
push 0x200
lea ecx, [esp + 8]
push ecx
push 0x72
push edx
jmp 0x401c75
mov ecx, dword [0x4274fc]
push 0x200
lea eax, [esp + 8]
push eax
push 0x69
push ecx
jmp 0x401c75
push 0x200
lea edx, [esp + 8]
push edx
push 0x68
mov eax, dword [0x4274fc]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x427500
lea ecx, [esp + 8]
push ecx
push 0x200
push edi
call fcn.0040a9a0
mov ecx, dword [esp + 0x414]
add esp, 0x10
pop esi
xor ecx, esp
call fcn.0040a922
add esp, 0x404
ret

Function at 0x401df0
Capabilities:
Create thread

Disassembly:
push ecx
push 0x400
push 0
push 0x427500
call fcn.00410510
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e10
sub eax, edx
sar eax, 1
cmp eax, 0x1ff
jae 0x401e39
push esi
push 0x200
push 0x427500
call fcn.0040a931
add esp, 0xc
push 0
push 0
push 0
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x427a98], eax
lea eax, [esp]
push eax
push 0
push 0
push 0x401dc0
push 0
push 0
call fcn.0040aabf
mov eax, dword [0x427a98]
add esp, 0x18
test eax, eax
je 0x401e7f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x427a98]
test eax, eax
je 0x401ea1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x427a98], 0
pop ecx
ret
Function at 0x403a20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41dc3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4251ac]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00409f6f
push 4
mov dword [esp + 0x20], 0
call fcn.0040adf2
mov edi, eax
add esp, 4
test edi, edi
je 0x403a9e
call fcn.0040a2bf
mov dword [edi], eax
call fcn.0040a0ed
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0040a011
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403a93
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0040a039
jmp 0x403aa0
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 [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x408160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v2.0.50727
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4081f6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push str.Install
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 4
mov dword [esp + 0x30], esi
call edi
cmp dword [esp + 0xc], esi
je 0x4081e3
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
push 0x421b84
push edx
call edi
mov esi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x408200
Capabilities:
Create process on windows
Read .ini file

Disassembly:
mov eax, 0x10a4
call fcn.004195b0
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x10a0], eax
xor eax, eax
push esi
push 0x44
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00410510
push 0x400
lea ecx, [esp + 0xb0]
push 0
push ecx
mov dword [esp + 0x30], 0x44
call fcn.00410510
push 0x400
lea edx, [esp + 0x4bc]
push 0
push edx
call fcn.00410510
add esp, 0x24
push 0x200
lea eax, [esp + 0x4a4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x4a0]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408290
sub eax, edx
sar eax, 1
dec eax
test eax, eax
jle 0x4082cb
mov ecx, 0x5c
lea esp, [esp]
cmp word [esp + eax*2 + 0x4a0], cx
je 0x4082c1
dec eax
test eax, eax
jg 0x4082b0
jmp 0x4082cb
xor ecx, ecx
mov word [esp + eax*2 + 0x4a0], cx
mov edx, dword [str.Redist]
mov eax, dword [0x4219e0]
mov ecx, dword [0x4219e4]
push 0x32
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], edx
mov dx, word [0x4219e8]
lea eax, [esp + 0x72]
push 0
push eax
mov dword [esp + 0x74], ecx
mov word [esp + 0x78], dx
call fcn.00410510
add esp, 0xc
cmp byte [esp + 0x10ac], 0
je 0x408323
push str.Redist.x64
lea ecx, [esp + 0x64]
push 0x20
push ecx
call fcn.0040a931
add esp, 0xc
lea edx, [esp + 0x4a0]
push edx
lea eax, [esp + 0x8a4]
push 0x200
push eax
call fcn.0040a931
push 0x4219c4
lea ecx, [esp + 0x8b0]
push 0x200
push ecx
call fcn.0040bb4d
add esp, 0x18
lea edx, [esp + 0x8a0]
push edx
push 0x200
lea eax, [esp + 0xca8]
push eax
push 0x421a24
push str.DotNetRuntime
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x421a28
lea edx, [esp + 0xa4]
push 0x200
push edx
call fcn.0040a931
lea eax, [esp + 0x4ac]
push eax
lea ecx, [esp + 0xb0]
push 0x200
push ecx
call fcn.0040bb4d
push 0x421a2c
lea edx, [esp + 0xbc]
push 0x200
push edx
call fcn.0040bb4d
lea eax, [esp + 0xcc4]
push eax
lea ecx, [esp + 0xc8]
push 0x200
push ecx
call fcn.0040bb4d
push 0x421a28
lea edx, [esp + 0xd4]
push 0x200
push edx
call fcn.0040bb4d
add esp, 0x3c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0xc0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 8]
push ecx
call esi
cmp dword [esp + 4], 0
je 0x40846a
push 0
call fcn.0040b4fe
mov ecx, dword [esp + 0x10a4]
pop esi
xor ecx, esp
call fcn.0040a922
add esp, 0x10a4
ret
Function at 0x408500
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x218], eax
push edi
xor edi, edi
push edi
push 0x25
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Msi.dll
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040bb4d
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 8], eax
cmp eax, edi
jbe 0x408620
push ebx
push ebp
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
xor ebp, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edi
cmp esi, edi
je 0x4085cb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4085cb
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x421a2c
push esi
mov dword [esp + 0x24], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0xe]
movzx edx, word [eax + 0xc]
movzx edi, word [eax + 0xa]
movzx ebp, word [eax + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 3
jg 0x4085f2
jl 0x40860f
cmp ebp, 1
jg 0x4085f2
jl 0x40860f
mov eax, dword [esp + 0x18]
cmp eax, 0xfa0
jle 0x40860d
mov al, 1
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0040a922
add esp, 0x21c
ret
jge 0x408613
xor al, al
jmp 0x4085f4
cmp dword [esp + 0x10], 0x983
setge al
jmp 0x4085f4
mov ecx, dword [esp + 0x21c]
pop edi
xor ecx, esp
xor al, al
call fcn.0040a922
add esp, 0x21c
ret
Function at 0x408640
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41e3ab
mov eax, dword fs:[0]
push eax
sub esp, 0xa14
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0xa10], eax
push esi
push edi
mov eax, dword [0x4251ac]
xor eax, esp
push eax
lea eax, [esp + 0xa20]
mov dword fs:[0], eax
push 0x118
lea eax, [esp + 0x104]
push 0
push eax
call fcn.00410510
xor eax, eax
add esp, 0xc
push 0x44
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x108], 0x11c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00410510
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edi, edx
xor edx, edx
push 0x7fe
mov esi, eax
push edx
lea eax, [esp + 0x226]
push eax
mov dword [esp + 0x10c], 6
mov word [esp + 0x228], dx
call fcn.00410510
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push str.SoftwareEPSONEvent_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408868
push 0x800
push eax
lea edx, [esp + 0x224]
push edx
mov dword [esp + 0x2c], 0x800
mov dword [esp + 0x30], eax
call fcn.00410510
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push str.InstallPath1
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408781
sub eax, edx
sar eax, 1
je 0x408868
push edi
push esi
push 2
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x40882e
lea eax, [esp + 0x74]
push eax
call fcn.004026d0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0xa34], 0
call fcn.00402140
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea ecx, [esp + 0xc8]
mov dword [esp + 0xa28], 0xffffffff
call fcn.00402770
lea eax, [esp + 0xc8]
push eax
mov dword [esp + 0xcc], vtable.std::ios_base.0
call fcn.00409d2e
add esp, 4
jmp 0x408868
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x23c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0xa20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.0040a922
add esp, 0xa20
ret
Function at 0x408890
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x41e36b
mov eax, dword fs:[0]
push eax
sub esp, 0xd44
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0xd3c], eax
push esi
mov eax, dword [0x4251ac]
xor eax, esp
push eax
lea eax, [esp + 0xd4c]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [esp + 0x54e]
push ecx
mov word [esp + 0x550], ax
call fcn.00410510
xor eax, eax
add esp, 0xc
push 0x44
push eax
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.00410510
add esp, 0xc
push edi
lea eax, [esp + 0x340]
push 0x104
push eax
mov dword [esp + 0x28], 0x44
call fcn.0040a931
add esp, 0xc
push 0x421a2c
lea ecx, [esp + 0x340]
push 0x104
push ecx
call fcn.0040bb4d
add esp, 0xc
push esi
lea edx, [esp + 0x340]
push 0x104
push edx
call fcn.0040bb4d
add esp, 0xc
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x340]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x408b26
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x421a28
lea edx, [esp + 0x548]
push 0x400
push edx
call fcn.0040a931
add esp, 0xc
push ebx
lea eax, [esp + 0x548]
push 0x400
push eax
call fcn.0040bb4d
add esp, 0xc
push 0x421a28
lea ecx, [esp + 0x548]
push 0x400
push ecx
call fcn.0040bb4d
add esp, 0xc
push str.__ImportJob
lea edx, [esp + 0x548]
push 0x400
push edx
call fcn.0040bb4d
add esp, 0xc
push 0x421c64
lea eax, [esp + 0x548]
push 0x400
push eax
call fcn.0040bb4d
add esp, 0xc
lea ecx, [esp + 0x33c]
push ecx
lea edx, [esp + 0x548]
push 0x400
push edx
call fcn.0040bb4d
add esp, 0xc
push 0x421a28
lea eax, [esp + 0x548]
push 0x400
push eax
call fcn.0040bb4d
add esp, 0xc
lea ecx, [esp + 0x544]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esp + 0xd5c], 0
je 0x408adc
lea edx, [esp + 0x64]
push edx
call fcn.004026d0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54c]
push edx
lea ecx, [esp + 0x70]
mov dword [esp + 0xd60], 0
call fcn.00402140
mov eax, dword [esp + 0x18]
add esp, 0xc
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd54], 0xffffffff
call fcn.00402770
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.00409d2e
add esp, 4
jmp 0x408b26
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x564]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0xc]
push 0xea60
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0xd4c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xd3c]
xor ecx, esp
call fcn.0040a922
add esp, 0xd50
ret
Function at 0x408b50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0xd94
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0xd8c], eax
push ebx
push ebp
push esi
push edi
push 0x400
xor esi, esi
lea eax, [esp + 0x394]
push esi
push eax
call fcn.00410510
add esp, 0xc
push 0x200
lea ecx, [esp + 0x394]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x390]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x408ba0
sub eax, edx
sar eax, 1
dec eax
cmp eax, esi
jle 0x408bdb
mov ecx, 0x5c
lea esp, [esp]
cmp word [esp + eax*2 + 0x390], cx
je 0x408bd1
dec eax
cmp eax, esi
jg 0x408bc0
jmp 0x408bdb
xor edx, edx
mov word [esp + eax*2 + 0x390], dx
lea eax, [esp + 0x390]
push eax
lea ecx, [esp + 0x99c]
push 0x200
push ecx
call fcn.0040a931
add esp, 0xc
push 0x4219c4
lea edx, [esp + 0x99c]
push 0x200
push edx
call fcn.0040bb4d
add esp, 0xc
push 0x118
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00410510
add esp, 0xc
push 3
push 2
push esi
push esi
mov dword [esp + 0x38], 0x11c
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3c], 6
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
lea edx, [esp + 0x14]
push edx
push 0x20019
push esi
push str.SOFTWAREEPSONDocument_Capture
push 0x80000002
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408d92
push 0x208
lea eax, [esp + 0x18c]
push esi
push eax
mov dword [esp + 0x28], 0x208
mov dword [esp + 0x2c], esi
call fcn.00410510
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x18c]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x188]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x408cd1
sub eax, edx
sar eax, 1
je 0x408d92
lea eax, [esp + 0x998]
push eax
push esi
push str.count
push str.JobSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, eax
cmp ebp, esi
jle 0x408d6e
push esi
push 0x421ce0
lea edx, [esp + 0x150]
call fcn.004099d0
add esp, 8
lea ecx, [esp + 0x998]
push ecx
push 0x104
lea edx, [esp + 0x798]
push edx
push 0x421a24
lea eax, [esp + 0x158]
push eax
push str.JobSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x18]
push ecx
lea edi, [esp + 0x394]
lea ebx, [esp + 0x18c]
lea ecx, [esp + 0x794]
call fcn.00408890
inc esi
add esp, 4
cmp esi, ebp
jl 0x408d05
test ebp, ebp
jne 0x408d92
mov edx, dword [esp + 0x18]
push edx
lea edi, [esp + 0x394]
lea ebx, [esp + 0x18c]
mov ecx, str.Setup.jxz
call fcn.00408890
add esp, 4
mov ecx, dword [esp + 0xd9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a922
add esp, 0xd94
ret
Function at 0x408db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4251ac]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
mov ebp, dword [esp + 0x124]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareEPSONEvent_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408f21
push esi
push 0x100
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x20], eax
call fcn.00410510
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.Version
push edx
call esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x24], 0x2e
mov dword [esp + 0x28], 0
call fcn.0040b596
add esp, 0xc
mov byte [esp + 0xb], 0
test eax, eax
je 0x408e74
push eax
call fcn.0040b69a
add esp, 4
cmp eax, 3
setl byte [esp + 0xb]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push str.UIInstall
push eax
mov dword [esp + 0x24], 0x100
call esi
lea ecx, [esp + 0x20]
push 0x80
push ecx
call fcn.0040b911
add esp, 8
mov ecx, 0x421d20
lea eax, [esp + 0x20]
pop esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408edb
test dx, dx
je 0x408ed7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408edb
add eax, 4
add ecx, 4
test dx, dx
jne 0x408eb5
xor eax, eax
jmp 0x408ee0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408eeb
cmp byte [esp + 7], 0
je 0x408f16
push str.UI_INSTALLYES_SHORTCUTYES
push 0x400
push ebp
call fcn.0040a931
add esp, 0xc
mov al, 1
pop ebp
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0040a922
add esp, 0x11c
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop ebp
xor ecx, esp
xor al, al
call fcn.0040a922
add esp, 0x11c
ret

Function at 0x40a922
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4251ac]
jne 0x40a92c
repz ret
jmp fcn.0040f53a
Function at 0x419200
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f816
and dword [ebp - 4], 0
cmp dword [0x427420], 0
mov ebx, eax
jne 0x4192b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x419362
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x419362
push eax
call fcn.0040f7a4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427420], eax
call esi
push eax
call fcn.0040f7a4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427424], eax
call esi
push eax
call fcn.0040f7a4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x427428], eax
call esi
push eax
call fcn.0040f7a4
pop ecx
mov dword [0x427430], eax
test eax, eax
je 0x4192b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f7a4
pop ecx
mov dword [0x42742c], eax
mov eax, dword [0x42742c]
cmp eax, ebx
je 0x419309
cmp dword [0x427430], ebx
je 0x419309
push eax
call fcn.0040f81f
push dword [0x427430]
mov esi, eax
call fcn.0040f81f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x419309
test edi, edi
je 0x419309
call esi
test eax, eax
je 0x419300
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x419300
test byte [ebp - 0xc], 1
jne 0x419309
or dword [ebp + 0x10], 0x200000
jmp 0x419342
mov eax, dword [0x427424]
cmp eax, ebx
je 0x419342
push eax
call fcn.0040f81f
pop ecx
test eax, eax
je 0x419342
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x419342
mov eax, dword [0x427428]
cmp eax, ebx
je 0x419342
push eax
call fcn.0040f81f
pop ecx
test eax, eax
je 0x419342
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427420]
call fcn.0040f81f
pop ecx
test eax, eax
je 0x419362
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x419364
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret