joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4189c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4189ff
push str.Fail_to_open_registry_key_of_scan_driver_version
push 1
call fcn.00401310
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov byte [edx], 0
pop esi
pop ecx
ret
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push 0x4389b4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
je 0x418a4c
push str.Fail_to_get_value_of_scan_driver_version
push 1
call fcn.00401310
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0xc
mov byte [esi], 0
pop esi
pop ecx
ret

Function at 0x4196f0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
mov eax, dword [esi]
push eax
push str._s:_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push edx
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [esi + 8]
mov esi, dword [esp + 4]
cmp ecx, 0x400
jbe 0x419747
lea eax, [ecx + esi - 1]
xor edx, edx
div esi
shl eax, 0xa
jmp 0x419754
lea eax, [esi + 0x3ff]
xor edx, edx
div esi
imul eax, ecx
mov ecx, dword [esp + 8]
xor edx, edx
pop esi
lea eax, [eax + ecx - 1]
div ecx
cmp dword [esp + 8], eax
sbb eax, eax
inc eax
add esp, 0x18
ret

Function at 0x419860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432db3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0x90]
mov byte [esp + 0x18], 1
call fcn.0042eb12
mov ecx, dword [esp + 0xc]
mov byte [esi + 0xc], bl
mov byte [esi + 0x30], bl
mov byte [esi + 0x70], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419877
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x432db3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esi + 8], ebx
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0x90]
mov byte [esp + 0x18], 1
call fcn.0042eb12
mov ecx, dword [esp + 0xc]
mov byte [esi + 0xc], bl
mov byte [esi + 0x30], bl
mov byte [esi + 0x70], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41a1c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432e9b
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
call fcn.00428bf0
cmp dword [eax + 0x14], 2
sete al
xor ebx, ebx
cmp al, bl
mov eax, str.SoftWareMicrosoftWindows_NTCurrentVersion
jne 0x41a1fa
mov eax, str.SoftWareMicrosoftWindowsCurrentVersion
xor esi, esi
push ebp
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xa4], ebx
push ecx
push 1
push ebx
push eax
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [esp + 0xac]
cmp eax, ebx
jne 0x41a2aa
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push str.RegisteredOwner
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x41a26d
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
call fcn.0042ec02
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.RegisteredOrganization
push esi
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x41a2aa
mov edi, dword [esp + 0xb0]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0042ec02
jmp 0x41a2b1
mov edi, dword [esp + 0xb0]
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, dword [ebp]
cmp dword [ecx - 8], ebx
jne 0x41a2cc
push str.Default
mov ecx, ebp
call fcn.0042ec02
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
mov edx, dword [edi]
pop ebp
cmp dword [edx - 8], ebx
jne 0x41a2e7
push str.Default
mov ecx, edi
call fcn.0042ec02
cmp esi, ebx
je 0x41a2f2
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret
Function at 0x41a350
Capabilities:
Get installed programs
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x432ed1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], esi
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x18]
mov dword [esp + 0x434], ebx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 8]
lea ecx, [esp + 0x14]
add eax, 0x30
mov byte [esp + 0x430], 1
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 1
push ebx
push edx
push 0x80000002
call ebp
cmp eax, ebx
jne 0x41a42f
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push str.DisplayName
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x41a41e
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], bl
call fcn.0042ebf6
cmp esi, ebx
je 0x41a417
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x41a52a
cmp esi, ebx
je 0x41a42f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x94]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x41a50d
push str.SoftWareMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x18]
call fcn.0042ec02
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [edi + 8]
push edx
add ecx, 0x90
call fcn.0041a550
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x434], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x430], 1
call fcn.0042ebf6
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 1
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x41a503
xor eax, eax
cmp esi, ebx
je 0x41a4b6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x18], esi
jne 0x41a503
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push str.DisplayName
push esi
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x41a3fc
cmp esi, ebx
je 0x41a503
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x18], esi
cmp dword [esp + 0x20], ebx
jne 0x41a444
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], bl
call fcn.0042ebf6
cmp esi, ebx
je 0x41a528
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x41cf40
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41cf83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetVersionEx_OSVERSIONINFOEX__failed:_LastErr___lu
push 2
call fcn.00401310
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x10
xor al, al
add esp, 0x9c
ret
mov ecx, dword [esp + 0x96]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 8]
and ecx, 0xffff
push esi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
push str.IsWin2KBeforeSP3:_major_lu_minor_lu_sp_u._u
push 8
call fcn.00401310
mov esi, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push eax
call esi
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
push str.IsWin2KBeforeSP3:_szCSDVersion_s
push 8
call fcn.00401310
push eax
call esi
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, 2
pop esi
jne 0x41d009
cmp dword [esp + 4], 5
jne 0x41d009
mov eax, dword [esp + 8]
test eax, eax
jne 0x41d009
cmp word [esp + 0x94], 3
jae 0x41d009
mov eax, 1
add esp, 0x9c
ret
xor eax, eax
add esp, 0x9c
ret

Function at 0x41eb0f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41eb67
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x449060
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41eb5a
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41eb69
xor eax, eax
pop esi
leave
ret 4

Function at 0x41edf0
Capabilities:
Resume thread

Disassembly:
push esi
push 0
push 4
mov esi, ecx
push 0
push 0
push esi
push 0x41f480
call sub.MFC42.DLL_AfxBeginThread
test eax, eax
mov dword [esi + 0x80], eax
je 0x41ee4d
mov dword [eax + 0x28], 0
mov eax, dword [esi + 0x80]
mov dword [esi], 3
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x41ee53
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x41ee43
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov dword [esi + 0x80], 0
mov dword [esi], 5
pop esi
ret

Function at 0x41ee60
Capabilities:
Suspend thread

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x80]
test eax, eax
je 0x41eec7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov dword [edi + 0x88], 1
xor esi, esi
cmp dword [edi], 3
jne 0x41ee90
push 0x64
call ebx
inc esi
cmp esi, 0x14
jl 0x41ee81
mov eax, dword [edi]
pop esi
cmp eax, 3
pop ebx
jne 0x41eeb6
mov eax, dword [edi + 0x80]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [edi], 6
mov eax, 1
pop edi
ret
cmp eax, 4
je 0x41eec7
cmp eax, 5
je 0x41eec7
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x41eed0
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x80]
mov dword [ecx + 0x88], 0
mov dword [ecx], 3
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x41f060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433563
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
lea ecx, [esp + 0x1c]
lea eax, [edi + 0x24]
push eax
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CSingleLock::Lock
mov esi, dword [esp + 0x34]
mov ecx, dword [esi + 4]
mov ebp, dword [esi + 0xc]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [ecx]
call dword [eax]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
lea edx, [esp + 0x34]
push edx
push str.93dade53_df70_4e79_b6b2_604a89e53b3d
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x41f0e0
xor eax, eax
jmp 0x41f0f9
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [esp + 0x14]
push ebp
push ebx
push ecx
push eax
mov ecx, edi
call fcn.0041f280
mov ebx, eax
test ebx, ebx
je 0x41f123
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, ebx
jmp 0x41f19b
push 0x28
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x2c], 1
je 0x41f145
mov ecx, eax
call fcn.004261f0
mov ebp, eax
jmp 0x41f147
xor ebp, ebp
mov edx, dword [edi + 4]
push esi
push edx
mov ecx, ebp
mov byte [esp + 0x34], 0
call sub.PdvCommon.dll_public:_int___thiscall_CPdvDevice_class_CPdvDeviceIFForPsw__1_::Open_class_NPdv::CManager_const___class_CPdvProductId_const__
test eax, eax
jne 0x41f17e
test ebp, ebp
je 0x41f169
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
xor eax, eax
jmp 0x41f19b
push ebp
mov ecx, edi
call fcn.0041f3f0
lea ecx, [esp + 0x18]
mov esi, eax
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x41f59b
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433616
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [esi + 0x14]
push 0xa
mov ecx, ebx
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call sub.MFC42.DLL_CPtrList::CPtrList
mov dword [ebx], 0x438ad8
push fcn.0042ebf6
push sub.MFC42.DLL_CString::CString
push 4
lea ecx, [esi + 0x30]
push 4
push ecx
mov dword [esp + 0x2c], edi
call fcn.0042f558
push 0x426270
push 0x426240
push 4
lea edx, [esi + 0x44]
push 0x1c
push edx
mov byte [esp + 0x2c], 1
call fcn.0042f558
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], 0x438b50
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], 0x11
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd0], 0xa
push esi
push str.CDeviceListForAuto:_construct__08x
push 0x10
mov byte [esp + 0x24], 3
mov dword [esi + 0xd8], edi
mov dword [esi + 0xdc], edi
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x41f7c0
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x433698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00426150
mov ebx, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push esi
push str.CDeviceListForAuto::StartSearch
mov edi, eax
push str._s:__08x:_begin
push 0x10
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.CDeviceListForAuto::StartSearch
call ebx
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor ebp, ebp
mov dword [esi + 4], eax
mov dword [esp + 0x24], ebp
mov dword [esi + 8], ecx
call fcn.004202a0
test al, al
je 0x41f86c
push ebp
push 4
push ebp
push ebp
push esi
push 0x41f900
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebp
mov dword [esi + 0xc], eax
je 0x41f86f
mov dword [eax + 0x28], ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], 1
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x41f876
mov ecx, dword [esi + 0xc]
cmp ecx, ebp
je 0x41f86c
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 3
push esi
push str.CDeviceListForAuto::StartSearch
push str._s:__08x:_end
push 0x10
push edi
mov dword [esp + 0x38], 0xffffffff
call ebx
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x4202d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x420313
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Invalid_env_for_finding_devices:_GetVersionEx___failed._LastErr___lu
push 2
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x10
xor al, al
add esp, 0x9c
ret
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, 2
jne 0x420364
cmp dword [esp + 4], 6
jne 0x420364
cmp dword [esp + 8], eax
jne 0x420364
cmp byte [esp + 0x9a], al
je 0x420364
mov ecx, dword [esp + 0x98]
and ecx, 0x100
cmp ecx, 0x100
je 0x420364
push str.Invalid_env_for_finding_devices:_WinSvr2008R2_with_TS
push 2
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0xc
xor al, al
add esp, 0x9c
ret

Function at 0x420388
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x448a50
jmp 0x420370
push 0xffffffffffffffff
push 0x433752
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [esi + 0x10]
push 0xa
mov ecx, ebx
mov dword [esp + 0x14], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call sub.MFC42.DLL_CPtrList::CPtrList
mov dword [ebx], 0x438ad8
lea ebx, [esi + 0x2c]
push 0xa
mov ecx, ebx
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CPtrList::CPtrList
mov dword [ebx], 0x437e08
push fcn.0042ebf6
push sub.MFC42.DLL_CString::CString
lea ebp, [esi + 0x48]
push 0xa
mov ebx, 1
push 4
push ebp
mov byte [esp + 0x30], bl
call fcn.0042f558
push 0x426270
push 0x426240
push 0x14
lea eax, [esi + 0x74]
push 0x1c
push eax
mov byte [esp + 0x30], 2
mov dword [esi + 0x70], edi
call fcn.0042f558
push str.255.255.255.255
mov ecx, ebp
mov byte [esp + 0x20], 3
mov dword [esi + 0x2a4], edi
mov dword [esi + 0x2a8], edi
mov dword [esi + 0x70], ebx
call fcn.0042ec02
mov eax, dword [esi + 0x70]
push str.ff02::1
lea ecx, [esi + eax*4 + 0x48]
inc eax
mov dword [esi + 0x70], eax
call fcn.0042ec02
push esi
push str.CDeviceListForDirect:_construct__08x
push 0x10
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
mov ecx, dword [esp + 0x24]
add esp, 0x10
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x420520
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4337b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00426150
mov ebx, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push esi
push str.CDeviceListForDirect::StartSearch
mov edi, eax
push str._s:__08x:_begin
push 0x10
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.CDeviceListForDirect::StartSearch
call ebx
add esp, 0x14
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor ebp, ebp
mov dword [esi], eax
mov dword [esp + 0x24], ebp
mov dword [esi + 4], ecx
call fcn.004202a0
test al, al
jne 0x420596
mov dword [esi + 8], ebp
mov dword [esi + 0xc], 2
jmp 0x4205e1
push ebp
push 4
push ebp
push ebp
push esi
push 0x420680
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebp
mov dword [esi + 8], eax
je 0x4205da
mov dword [eax + 0x28], ebp
mov eax, dword [esi + 8]
mov dword [esi + 0xc], 1
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x4205e1
mov ecx, dword [esi + 8]
cmp ecx, ebp
je 0x4205d7
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 8], ebp
mov dword [esi + 0xc], 3
push esi
push str.CDeviceListForDirect::StartSearch
push str._s:__08x:_end
push 0x10
push edi
mov dword [esp + 0x38], 0xffffffff
call ebx
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x421050
Capabilities:
Get number of processors
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4338a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00426150
mov ebx, dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
push esi
push str.CDeviceListForSMB::StartSearch
mov edi, eax
push str._s:__08x:_begin
push 0x10
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.CDeviceListForSMB::StartSearch
call ebx
add esp, 0x14
mov eax, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esi + 4], eax
mov eax, dword [esp + 0x34]
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x4210bc
push eax
lea ecx, [esi + 0x64]
call fcn.0042ec02
mov ecx, dword [esp + 0x30]
push ebp
push 4
push ebp
push ebp
push esi
push 0x4212c0
mov dword [esi + 8], ecx
call sub.MFC42.DLL_AfxBeginThread
cmp eax, ebp
mov dword [esi + 0xc], eax
jne 0x4210e6
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], ebp
jmp 0x421121
mov dword [eax + 0x28], ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], 1
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x421121
mov ecx, dword [esi + 0xc]
cmp ecx, ebp
je 0x421110
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], 3
mov dword [esi + 0x14], 1
push esi
push str.CDeviceListForSMB::StartSearch
push str._s:__08x:_end
push 0x10
push edi
mov dword [esp + 0x38], 0xffffffff
call ebx
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x422410
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x433b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], esi
push eax
push 1
push esi
push ebx
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x2c]
test eax, eax
jne 0x4224d0
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push edi
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4224d0
mov edx, dword [esp + 0x28]
push edx
push edi
push ebx
push str.NCswData::CAppParams::GetDWORD:__s_s___lu__Registry_
push 8
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
mov edi, dword [esp + 0x40]
add esp, 0x18
test esi, esi
je 0x4224ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x30]
push eax
push edi
push ebx
push str.NCswData::CAppParams::GetDWORD:__s_s___lu__Default_
push 8
call fcn.00426150
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x18
test esi, esi
je 0x4224f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10