joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408260
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x449688
push 0x4592c0
mov esi, eax
call fcn.00402620
xor edi, edi
add esp, 8
cmp dword [esi + 0x68], edi
je 0x408289
call fcn.00408350
push str._______________BeginCheckThread________________r_n
push 0x4592c0
call fcn.00402620
add esp, 8
push edi
push 4
push edi
push edi
push esi
push 0x4083b0
mov dword [ebp - 4], edi
mov dword [esi + 0x68], 1
call fcn.0042058c
mov dword [esi + 0x54], eax
mov dword [eax + 0x28], edi
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esi + 0x54]
push 0x4ff
push 0xa
push 0
add edx, 0x2c
push edx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
jne 0x408301
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x408344
add dword [ebp - 4], 0xa
jmp 0x4082d4
cmp eax, 1
jne 0x40833f
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call edi
test eax, eax
je 0x408339
lea edx, [ebp - 0x20]
push edx
call ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call edi
test eax, eax
jne 0x408317
add dword [ebp - 4], 0xa
jmp 0x4082d4
call fcn.00408350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4086c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push edi
push 0x449a88
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 8
call fcn.00417c12
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x40871d
mov dword [edi], vtable.CErisDLL.0
mov dword [edi + 4], ebx
cmp dword [0x459278], ebx
jne 0x408713
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x459278], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.004085c0
mov dword [edi + 4], eax
jmp 0x40871f
xor edi, edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x449ac8
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
mov eax, esi
pop ebx
pop ebp
ret 4
Function at 0x408750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441570
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push str.CErisProbe::CErisProbe__Start__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edi, edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00408850
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4087ab
push eax
mov dword [eax], vtable.CErisDLL.0
call fcn.00417c4c
add esp, 4
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.CErisProbe::CErisProbe__Exit__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
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 0x4087e0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.CErisProbe::Initialize__Start__n
call ebx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4087fb
cmp dword [eax + 4], 0
jne 0x408806
push str.CErisProbe::Initialize__Exit_with_false__n
call ebx
xor eax, eax
pop ebx
ret
push esi
mov esi, 0xffffff9b
call dword [0x45927c]
mov dword [edi + 4], eax
test eax, eax
je 0x40883f
push 0
push eax
call dword [0x459280]
mov esi, eax
add esp, 8
test esi, esi
je 0x40883f
mov eax, dword [edi + 4]
push eax
call dword [0x4592a8]
add esp, 4
mov dword [edi + 4], 0
push str.CErisProbe::Initialize__Exit__n
call ebx
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
ret
Function at 0x40cf80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor esi, esi
push esi
push str.SOFTWAREEPSONCXGA
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], vtable.Registry.0
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], 0x20019
je 0x40d00a
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push esi
push esi
push str.Accepted
push eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 4]
test eax, eax
je 0x40d003
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], vtable.Registry.0
test eax, eax
je 0x40d018
push eax
call ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f4d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442330
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.00410220
push str.LanguageInfo2.ini
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 4], 0
call fcn.00405ce0
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x40f557
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f557
test al, 0x10
jne 0x40f557
push str.Load_LanguageInfo_2_r_n
push 0x4592c0
call fcn.00402620
mov eax, dword [ebp - 0x14]
add esp, 8
push 2
jmp 0x40f56b
push 0x10
push str.LanguageInfo.ini
lea ecx, [ebp - 0x10]
call fcn.00402ae0
mov eax, dword [ebp - 0x10]
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00402070
add esp, 4
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.0040f5f0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f5ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f5d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441218
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
xor esi, esi
mov dword [ebp + 0xc], esi
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp + 0xc], esi
push eax
cmp dword [edi + 8], esi
jne 0x413d74
call fcn.00402070
mov ecx, eax
mov eax, dword [ebp + 8]
add esp, 4
add ecx, 0x10
mov dword [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 8
call fcn.00402070
lea ebx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x413e13
mov eax, dword [edi + 4]
lea edx, [ebp + 0xc]
push edx
push esi
push esi
push esi
push str.UUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp + 0xc]
cmp eax, esi
jbe 0x413e02
add eax, 2
push eax
call fcn.00417c41
mov esi, eax
add esp, 4
test esi, esi
je 0x413e02
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
push 0
push esi
call fcn.0042a570
mov eax, dword [edi + 4]
add esp, 0xc
lea edx, [ebp + 0xc]
push edx
push esi
push 0
push 0
push str.UUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413df9
push esi
lea ecx, [ebp - 0x10]
call fcn.00401bc0
mov ebx, dword [ebp - 0x10]
push esi
call fcn.00417c4c
add esp, 4
lea esi, [ebx - 0x10]
push esi
call fcn.00402070
add esp, 4
jmp 0x413ea7
add eax, 2
push eax
call fcn.00417c41
mov esi, eax
add esp, 4
test esi, esi
jne 0x413e5b
lea esi, [ebx - 0x10]
push esi
call fcn.00402070
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413ecb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x413ecb
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
push 0
push esi
call fcn.0042a570
mov eax, dword [edi + 4]
add esp, 0xc
lea edx, [ebp + 0xc]
push edx
push esi
push 0
push 0
push str.UUID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413e95
push esi
lea ecx, [ebp - 0x10]
call fcn.00401bc0
mov ebx, dword [ebp - 0x10]
push esi
call fcn.00417c4c
lea esi, [ebx - 0x10]
push esi
call fcn.00402070
add esp, 8
mov edi, dword [ebp + 8]
or edx, 0xffffffff
add eax, 0x10
mov dword [ebp - 4], edx
lea ecx, [esi + 0xc]
mov dword [edi], eax
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ecb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
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 8
Function at 0x413ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 8], 0
push esi
mov esi, eax
jne 0x413f04
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 4]
call fcn.00401a40
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov edx, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.UUID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
neg esi
sbb esi, esi
add eax, 0xfffffff0
inc esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x414120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4420d3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp + 8]
xor esi, esi
lea ecx, [ebx + 0x1c]
push eax
mov dword [ebp - 4], esi
call fcn.00401ea0
lea edi, [ebx + 4]
call fcn.004147c0
mov eax, dword [ebx + 0x18]
cmp dword [eax - 0xc], esi
je 0x4141ec
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4141ec
test al, 0x10
jne 0x4141ec
push 0x1c
mov byte [ebp - 4], 1
call fcn.00417c12
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp eax, esi
je 0x4141a8
mov ecx, dword [ebx + 0x18]
push ecx
mov esi, eax
call fcn.004086c0
mov edi, eax
xor esi, esi
jmp 0x4141aa
xor edi, edi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x4141ec
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x4141dc
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push ebx
lea esi, [ebp - 0x24]
mov eax, edi
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], 0x1388
mov dword [edi], ecx
call fcn.00408950
mov ecx, edi
call fcn.00408750
push edi
call fcn.00417c4c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4149f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44209a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [0x4591a8], esi
call fcn.00414d70
test eax, eax
je 0x414a6f
push 0x44b6d0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4592ac], eax
test eax, eax
je 0x414a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x414a83
push str.InitInstance_CreateMutex_ERROR_ALREADY_EXISTS__r_n
push 0x4592c0
call fcn.00402620
mov eax, dword [0x4592ac]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.InitInstance_CreateMutex_r_n
push 0x4592c0
call fcn.00402620
add esp, 8
push 0
push esi
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
push 0x4590e0
push 0x4591b0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4592bc], eax
test eax, eax
je 0x414a6f
push 0x3b0
mov dword [ebp - 4], 0
call fcn.00417c12
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x414af3
push eax
call fcn.00414e70
mov ecx, eax
jmp 0x414af5
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x414a6f
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
mov dword [0x4592b4], ecx
call eax
mov ecx, dword [0x4592bc]
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x36ee80
push 0x64
push ecx
call esi
mov edx, dword [0x4592bc]
push 0
push 0x493e0
push 0xc8
push edx
call esi
mov eax, dword [0x4592bc]
push 0
push 0xea60
push 0x12c
push eax
call esi
mov eax, 1
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 0x414d70
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push str.IsLaunchMonExe_r_n
push 0x4592c0
call fcn.00402620
add esp, 8
xor ebx, ebx
push str.kernel32
xor edi, edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x414dcf
push esi
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 8], ebx
cmp esi, ebx
je 0x414dc9
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 8]
pop esi
jmp 0x414dd1
xor eax, eax
dec eax
neg eax
sbb eax, eax
and eax, 0xffffff00
lea ecx, [ebp - 4]
push ecx
add eax, 0x100
or eax, 0x20019
push eax
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x414e13
push str.Error_RegOpenKeyEx_r_n
push 0x4592c0
call fcn.00402620
add esp, 8
jmp 0x414e33
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push str.EPPCCMON
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414e33
lea edi, [eax + 1]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x414e41
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp edi, ebx
setne dl
push edx
push str.IsLaunchMonExe__d__r_n
push 0x4592c0
call fcn.00402620
add esp, 0xc
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push str.GetMaxMonitoringPrinters_r_n
push 0x4592c0
call fcn.00402620
add esp, 8
xor edi, edi
push str.kernel32
mov ebx, 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x415162
push esi
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 8], edi
cmp esi, edi
je 0x41515c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 8]
pop esi
jmp 0x415164
xor eax, eax
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
lea ecx, [ebp - 4]
push ecx
add eax, 0x200
or eax, 0x20019
push eax
push edi
push str.SOFTWAREEPSONFirstAidKit
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4151a6
push str.Error_RegOpenKeyEx_r_n
push 0x4592c0
call fcn.00402620
add esp, 8
jmp 0x4151e2
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push str.MaxMonitoringPrinters
push ecx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x4151cf
mov ebx, dword [ebp - 0x10]
jmp 0x4151e2
push eax
push str.Error_RegQueryValueEx__d__r_n
push 0x4592c0
call fcn.00402620
add esp, 0xc
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x4151f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push str.GetMaxMonitoringPrinters__d__r_n
push 0x4592c0
call fcn.00402620
add esp, 0xc
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416b30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44289b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push edi
mov eax, dword [0x454d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CVegaMonitor::CheckConnection___r_n
push 0x4592c0
call fcn.00402620
mov eax, dword [esi + 0xa8]
sub esp, 0x18
mov edi, esp
lea edx, [edi + 4]
xor ebx, ebx
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], ebx
lea ecx, [esi + 0xac]
push edx
mov dword [edi], eax
call fcn.00416f80
mov eax, dword [esi + 0xc4]
lea ecx, [ebp - 0xc8]
push ecx
mov dword [edi + 0x1c], eax
call fcn.00403f90
push ebx
push 4
push ebx
push ebx
push esi
push 0x416d30
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.0042058c
mov dword [esi + 0xa4], eax
cmp eax, ebx
jne 0x416bd8
push str.BeginWaitThread_Failed_r_n
push 0x4592c0
call fcn.00402620
add esp, 8
jmp 0x416cc0
push str._______________BeginWaitThread________________r_n
push 0x4592c0
call fcn.00402620
add esp, 8
push ebx
push 0x81
lea ecx, [ebp - 0xc8]
call fcn.00419c3a
push ebx
lea ecx, [ebp - 0xc8]
call fcn.0041bfd8
push 5
lea ecx, [ebp - 0xc8]
call fcn.0041f581
mov edx, dword [esi + 0xa4]
mov dword [edx + 0x28], ebx
mov eax, dword [esi + 0xa4]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea esp, [esp]
mov ecx, dword [esi + 0xa4]
push 0x4ff
push 0xa
push 0
add ecx, 0x2c
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
je 0x416c40
cmp eax, 1
jne 0x416c9c
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
call edi
test eax, eax
je 0x416c40
lea eax, [ebp - 0x30]
push eax
call ebx
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
call edi
test eax, eax
jne 0x416c78
jmp 0x416c40
mov ecx, dword [esi + 0xa4]
mov edx, dword [ecx + 0x2c]
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0xc8]
call fcn.0041c93a
xor ebx, ebx
mov eax, dword [esi + 0xa4]
cmp eax, ebx
je 0x416cef
mov eax, dword [eax + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0xa4]
cmp ecx, ebx
je 0x416ce9
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0xa4], ebx
push str._______________FinishWaitThread________________r_n
push 0x4592c0
call fcn.00402620
add esp, 8
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404090
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416d80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44183c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x454d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CheckPreviewProcess_r_n
xor edi, edi
push 0x4592c0
mov esi, ecx
mov dword [ebp - 0x220], edi
call fcn.00402620
add esp, 8
mov dword [ebp - method.CPrinterControl.virtual_0], vtable.CPrinterControl.0
mov dword [ebp - 4], edi
call fcn.00417cef
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x416df0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
push 0x208
lea ecx, [ebp - 0x218]
push edi
push ecx
mov byte [ebp - 4], 1
call fcn.0042a570
add esp, 0xc
push 0x447d67
lea ecx, [ebp - 0x228]
call fcn.00401b00
lea edx, [ebp - 0x21c]
push edx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00411af0
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.00401ea0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x224]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4480cc
push str.PreviewJobEditExe
push str.CommonDrvInfo
call esi
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push edx
call fcn.00401a40
call fcn.004018b0
test eax, eax
jne 0x416f0c
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0042a570
add esp, 0xc
push edi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x4480cc
push str.PreviewExe
push str.CommonDrvInfo
call esi
push ecx
lea edx, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push edx
call fcn.00401a40
call fcn.004018b0
test eax, eax
je 0x416f16
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416f5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004267a2
mov esp, ebp
pop ebp
ret