joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
push str.CErisProbe::Probe__Start__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
jne 0x43772f
jmp 0x437790
mov ecx, dword [ebp - 0x14]
call fcn.00436c30
mov ecx, dword [ebp - 0x14]
push ecx
push 0x437620
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437785
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
push 0xea60
push 0
lea edx, [ebp - 0x10]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 8], eax
push str.CErisProbe::Probe__Exit__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret

Function at 0x43b740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x466cc0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentversionExplorerPrnportsMRU
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43b8d1
xor ecx, ecx
mov word [ebp - 0x218], cx
mov dword [ebp - 0x220], 0x208
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
push str.MRUList
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43b8c7
mov dword [ebp - 0x224], 0x208
xor ecx, ecx
mov eax, dword [ebp - 0x224]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x234], 0
jmp 0x43b814
mov ecx, dword [ebp - 0x234]
add ecx, 1
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
movzx eax, word [ebp + edx*2 - 0x218]
test eax, eax
je 0x43b8a3
mov ecx, dword [ebp - 0x234]
mov dx, word [ebp + ecx*2 - 0x218]
mov word [ebp - 0x230], dx
xor eax, eax
mov word [ebp - 0x22e], ax
mov dword [ebp - 0x238], 0
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x228], ecx
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43b89e
mov ecx, dword [ebp - 0x22c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403300
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x43b805
cmp dword [ebp - 0x22c], 0
je 0x43b8c7
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.004056d8
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
setg al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00414810
mov esp, ebp
pop ebp
ret
Function at 0x43d6a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
push 2
movzx eax, word [ebp + 8]
push eax
call fcn.00402370
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x43d6cc
xor eax, eax
jmp 0x43d74d
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402370
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0043d1d0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x43d737
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
cmp ecx, 1
jne 0x43d737
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0xe]
cmp eax, 8
jge 0x43d737
movzx ecx, word [ebp + 8]
push ecx
call fcn.00402370
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x14]
push edx
call fcn.00402f80
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x43d9c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x10]
call fcn.00403700
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 0xc], 0
je 0x43d9f0
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x43da01
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x43db5e
lea ecx, [ebp - 0x1c]
call fcn.00403700
push 5
call dword [sym.imp.USER32.dll_GetSystemMetrics]
shl eax, 1
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0x7fffffff
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043d8b0
add esp, 8
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea ecx, [ebp - 0x10]
call fcn.00402330
sub eax, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], eax
jl 0x43dabf
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x20]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 4
lea ecx, [ebp - 0x10]
call fcn.00402350
push eax
lea ecx, [ebp - 0x10]
call fcn.00402330
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00402330
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
add esi, ecx
push esi
mov edx, dword [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00402330
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
mov edx, dword [ebp - 0x10]
sub edx, ecx
add edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x43db05
cmp dword [ebp + 0x10], 0
je 0x43db05
push 2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x20]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 4
lea ecx, [ebp - 0x10]
call fcn.00402350
push eax
lea ecx, [ebp - 0x10]
call fcn.00402330
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x10]
call fcn.00402330
sub eax, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], eax
jl 0x43db53
lea ecx, [ebp - 0x10]
call fcn.00402330
sub eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
jmp 0x43db59
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
jmp 0x43db60
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43e110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x466cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x218], 0
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.004018f0
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
cmp eax, 0x3a
jne 0x43e175
push 0
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
test eax, eax
jne 0x43e175
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x43e204
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x43e18b
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x43e1a3
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
cmp ecx, 0x2f
je 0x43e204
mov edx, dword [ebp + 8]
movzx eax, word [edx + 2]
cmp eax, 0x5c
je 0x43e204
push 0x208
lea ecx, [ebp - 0x210]
push ecx
call fcn.00402370
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x43e1d1
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x43e1e8
mov eax, dword [ebp + 8]
push eax
push 0x102
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004018f0
jmp 0x43e204
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.00402810
add esp, 4
push eax
call fcn.004018c0
add esp, 8
push 0
push 0x83
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x214], 0xffffffff
je 0x43e317
push 0
lea edx, [ebp - 0x234]
push edx
push 0xe
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x22a]
push edx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x230], eax
push 0
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x22a]
sub edx, 0xe
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e2e6
mov edx, dword [ebp - 0x22a]
sub edx, 0xe
cmp dword [ebp - 0x234], edx
jne 0x43e2e6
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x240]
call fcn.0043d1d0
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x230], 0
je 0x43e30a
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x23c]
push eax
call fcn.004056d8
add esp, 4
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414810
mov esp, ebp
pop ebp
ret 8
Function at 0x43ef60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x43ef8a
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x14
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
jae 0x43f041
lea ecx, [ebp - 4]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43efdc
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43f03c
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x43f032
cmp dword [ebp - 0x14], 0
jne 0x43f032
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43ef78
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43f200
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x466cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
movzx eax, word [0x46aefc]
test eax, eax
jne 0x43f32d
push 0x208
push 0
lea ecx, [ebp - 0x210]
push ecx
call fcn.00414d80
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
push 0x45a530
call fcn.004018b0
mov ecx, dword [eax + 0x48]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.0043eb40
test eax, eax
je 0x43f2a6
cmp dword [ebp - 0x214], 0
jbe 0x43f2a6
lea edx, [ebp - 0x210]
push edx
call fcn.004018e0
mov word [0x46aefc], ax
movzx eax, word [0x46aefc]
test eax, eax
je 0x43f2a4
mov ax, word [0x46aefc]
jmp 0x43f333
jmp 0x43f321
mov dword [ebp - 0x214], 0x102
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x45a688
call fcn.004018b0
mov eax, dword [eax + 0x48]
push eax
mov ecx, dword [ebp - 0x218]
call fcn.0043eb40
test eax, eax
je 0x43f321
cmp dword [ebp - 0x214], 0
jbe 0x43f321
mov ecx, 0x30
mov word [ebp - 0x210], cx
mov edx, 0x78
mov word [ebp - 0x20e], dx
lea eax, [ebp - 0x210]
push eax
call fcn.004018e0
mov word [0x46aefc], ax
movzx ecx, word [0x46aefc]
test ecx, ecx
je 0x43f321
mov ax, word [0x46aefc]
jmp 0x43f333
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [0x46aefc], ax
mov ax, word [0x46aefc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414810
mov esp, ebp
pop ebp
ret
Function at 0x449260
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0x208
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x103
jne 0x4492f1
cmp dword [ebp - 8], 0
je 0x4492ec
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004056d8
add esp, 4
jmp 0x4493b8
xor eax, eax
cmp dword [ebp - 0x14], 0
sete al
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x449388
cmp dword [ebp - 8], 0
je 0x44931f
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004056d8
add esp, 4
mov eax, dword [ebp - 4]
add eax, dword [ebp - 4]
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x14], eax
xor ecx, ecx
cmp dword [ebp - 0x14], 0
sete cl
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x4493a0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
jmp 0x4493b8
cmp dword [ebp - 8], 0
je 0x4493b8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004056d8
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x20
Function at 0x449760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], 0x103
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetEnum
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44994a
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jbe 0x449940
mov eax, dword [ebp - 0xc]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x449940
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x449928
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x449928
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push str.Service
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x1c], 0
jbe 0x44991e
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x44991e
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push str.Service
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449906
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00401840
add esp, 8
test eax, eax
je 0x4498ee
cmp dword [ebp + 0x14], 0
je 0x4498ee
mov ecx, dword [ebp - 0xc]
add ecx, 2
cmp ecx, dword [ebp + 0x18]
ja 0x4498ee
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004018f0
mov dword [ebp - 8], 0
jmp 0x4498f5
mov dword [ebp - 8], 0x7a
cmp dword [ebp + 0x1c], 0
je 0x449906
mov edx, dword [ebp - 0xc]
add edx, 1
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
cmp dword [ebp - 0x20], 0
je 0x44991e
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004056d8
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x449940
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
jmp 0x5505e0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x449b90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x466cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x144], ecx
push 0x114
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.00414d80
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], 0
cmp dword [ebp - 0x11c], 6
jae 0x449bfb
cmp dword [ebp - 0x11c], 5
jne 0x449c05
cmp dword [ebp - 0x118], 0
jbe 0x449c05
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x128], 0
jmp 0x449c20
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 4
jae 0x449d9c
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx*8 + 0x45c67c]
push edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax*8 + 0x45c678]
push ecx
mov ecx, dword [ebp - 0x144]
call fcn.00449960
cmp eax, 0x7a
jne 0x449d97
mov edx, dword [ebp - 0x12c]
push edx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x449d97
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx*8 + 0x45c67c]
push edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax*8 + 0x45c678]
push ecx
mov ecx, dword [ebp - 0x144]
call fcn.00449960
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x449d02
cmp dword [ebp - 0x134], 0x103
jne 0x449d73
mov edx, dword [ebp - 0x130]
cmp dword [edx], 0
jbe 0x449d73
mov dword [ebp - 0x138], 0
jmp 0x449d1d
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x138]
cmp edx, dword [ecx]
jae 0x449d73
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x130]
mov edx, dword [ecx + eax*4 + 4]
push edx
push str.DeviceClassName
mov ecx, dword [ebp - 0x144]
call fcn.004496a0
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x130]
mov eax, dword [edx + ecx*4 + 4]
push eax
mov ecx, dword [ebp - 0x144]
call fcn.00449170
jmp 0x449d0e
cmp dword [ebp - 0x130], 0
je 0x449d97
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
push edx
call fcn.004056d8
add esp, 4
jmp 0x449c11
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414810
mov esp, ebp
pop ebp
ret
Function at 0x44ad10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 0
push 0x7fffffff
mov eax, dword [ebp + 8]
push eax
call fcn.004496d0
add esp, 8
mov esi, eax
push 0x7fffffff
push str.SYSTEMCurrentControlSetENUM
call fcn.004496d0
add esp, 8
lea ecx, [esi + eax + 0x106]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004056cd
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push str.SYSTEMCurrentControlSetENUM
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.004018f0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0044a900
test eax, eax
je 0x44ae2e
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44ae2e
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x45c530
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44ae24
push str.EPSON1394D3
mov edx, dword [ebp - 8]
push edx
call fcn.00414afc
add esp, 8
test eax, eax
je 0x44ae17
push str.PnpPrinters
mov eax, dword [ebp - 8]
push eax
call fcn.00414afc
add esp, 8
test eax, eax
je 0x44ae17
mov dword [ebp - 0x24], 0
jmp 0x44ae1e
mov dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x44ae46
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004056d8
add esp, 4
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret 4