joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fd00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584d26
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 1
push 0xbb8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45fd80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
push eax
push str._CdromDetect_Wait_trace_thread_fail__ret_d__err_d._n
push 0x5e5744
call fcn.0040c050
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x45fd9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
push eax
push str._CdromDetect_Wait_trace_thread_thread_exit_OK..._n
push str.CLocalPortMonitor::CLocalPortMonitor
call fcn.0040c050
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x2c
call fcn.0045fce0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.0045fce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x45fdf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x4c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x45fe70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
cmp dword [edx], 0xffffffff
je 0x45fe3e
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4620a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584cb6
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 1
push 0xbb8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x462120
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
push eax
push str._CParallelMonitor_Wait_trace_thread_fail__ret_d__err_d._n
push 0x5e5440
call fcn.0040c050
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x46213d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
push eax
push str._CParallelMonitor_Wait_trace_thread_thread_exit_OK..._n
push str.CParallelMonitor::CParallelMonitor
call fcn.0040c050
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call fcn.0040d0c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0040d0c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4621c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x462580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x4621fe
mov eax, 1
jmp 0x462207
xor eax, eax
jmp 0x462207
mov esp, ebp
pop ebp
ret
Function at 0x462430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58290b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x5c], str.HARDWAREDEVICEMAPPARALLEL_PORTS_
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x462492
xor al, al
jmp 0x462562
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 0x19
mov dword [ebp - 0x38], 0x19
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x90], edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x90]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x58], 0
je 0x4624f9
cmp dword [ebp - 0x58], 0xea
jne 0x46253f
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x88]
call fcn.00405ef0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp + 8]
call fcn.00477350
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00405f70
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x58], 0
je 0x4624ae
cmp dword [ebp - 0x58], 0xea
je 0x4624ae
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 4
Function at 0x462a10
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584ceb
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 1
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x462ac1
push 0xbb8
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x462a98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str._CReportSystemInfo_Wait_trace_thread_fail__ret_d__err_d._n
push 0x5e3d68
call fcn.0040c050
add esp, 0x10
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x462ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str._CReportSystemInfo_Wait_trace_thread_thread_exit_OK..._n
push str.CReportSystemInfo::CReportSystemInfo
call fcn.0040c050
add esp, 0x10
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 0
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x60], 0
je 0x462aea
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call fcn.0046a360
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x462cc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x462d40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x462cfe
mov eax, 1
jmp 0x462d00
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x464510
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58286e
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x14], 0x20019
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x144], 0
push 0xff
push 0
lea eax, [ebp - 0x143]
push eax
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x40], 0x100
lea ecx, [ebp - 0x34]
call fcn.00405ec0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00406030
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4645ce
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405f70
jmp 0x464739
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x188], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
cmp eax, 0x103
je 0x46471a
push 0x5e43c0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x164]
push ecx
call fcn.00407b50
add esp, 0xc
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], edx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x190]
push ecx
lea edx, [ebp - 0x180]
push edx
call fcn.00407b50
add esp, 0xc
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x198]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00405f90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x180]
call fcn.00405f70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call fcn.00405f70
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x34]
call fcn.00406030
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4646cc
jmp 0x4645ce
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x148]
push edx
mov ecx, dword [ebp - 0x184]
call fcn.00464760
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.00562540
add esp, 0xc
mov dword [ebp - 0x40], 0x100
cmp dword [ebp - 0x148], 0
je 0x464715
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4645ce
cmp dword [ebp - 0x10], 0
je 0x46472a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405f70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 8
Function at 0x46e660
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 4], 1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0
je 0x46e6eb
push 0xbb8
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46e6c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str._CReportSystemStatus_Wait_trace_thread_fail__ret_d__err_d._n
push 0x5e39ac
call fcn.0040c050
add esp, 0x10
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x46e6df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str._CReportSystemStatus_Wait_trace_thread_thread_exit_OK..._n
push str.CReportSystemStatus::CReportSystemStatus
call fcn.0040c050
add esp, 0x10
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret

Function at 0x46e750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x46e7a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x46e78e
mov eax, 1
jmp 0x46e790
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x46ec80
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5816e8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0x40
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov byte [ebp - 0x34], 0
xor ecx, ecx
mov dword [ebp - 0x33], ecx
mov word [ebp - 0x2f], cx
mov byte [ebp - 0x2d], cl
mov edx, dword [ebp - 0x70]
push edx
push str._i__
lea eax, [ebp - 0x34]
push eax
call fcn.0055b801
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405ef0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405f30
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405f70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 4
Function at 0x46ed40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582638
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x34]
call fcn.00405ec0
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.0046f2b0
push 0x5e3b08
lea ecx, [ebp - 0x34]
call fcn.00407ee0
xor ecx, ecx
mov word [ebp - 0x134], cx
push 0xfe
push 0
lea edx, [ebp - 0x132]
push edx
call fcn.00562540
add esp, 0xc
push 0x80
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x34]
call fcn.00459160
add eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00406030
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x140]
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.00564f70
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x14]
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
push edx
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.00564f70
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x140]
xor eax, eax
mov ecx, dword [ebp + 0x10]
push eax
push edx
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.00564f70
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x13c]
xor eax, eax
mov ecx, dword [ebp + 0x10]
push eax
push edx
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
call fcn.00564f70
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x144], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405f70
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f350
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584cb6
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x615000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 1
push 0x3e8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x46f3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
push eax
push str._CSerialMonitor_Wait_trace_thread_fail__ret_d__err_d._n
push 0x5e36ac
call fcn.0040c050
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x46f3ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
push eax
push str._CSerialMonitor_Wait_trace_thread_thread_exit_OK..._n
push str.CSerialMonitor::CSerialMonitor
call fcn.0040c050
add esp, 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call fcn.0040d0c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.0040d0c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x46f440
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x46f670
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffff
je 0x46f47e
mov eax, 1
jmp 0x46f487
xor eax, eax
jmp 0x46f487
mov esp, ebp
pop ebp
ret
Function at 0x46f490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583e36
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0x5c], str.HARDWAREDEVICEMAPSERIALCOMM_
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x46f4f2
xor al, al
jmp 0x46f64e
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 0x19
mov dword [ebp - 0x38], 0x19
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0xb4], edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x60]
add ecx, 1
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x58], 0
je 0x46f55d
cmp dword [ebp - 0x58], 0xea
jne 0x46f62b
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
jne 0x46f5d4
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 5
jne 0x46f5d2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x90]
call fcn.00405ef0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00477350
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00405f70
jmp 0x46f622
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xac]
call fcn.00405ef0
mov dword [ebp - 4], 1
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp + 8]
call fcn.00477350
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00405f70
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x70], 0xffffffff
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x58], 0
je 0x46f50e
cmp dword [ebp - 0x58], 0xea
je 0x46f50e
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 4
Function at 0x46fb10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], ecx
cmp dword [ebp + 8], 0
jne 0x46fb48
push str.Error:_HWND_param_is_NULL__OUT__n
push 0x5dd150
call fcn.0040c050
add esp, 8
xor eax, eax
jmp 0x46fce9
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x58], ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 8]
mov dword [edx + 0x5c], eax
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00562540
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x5dd170
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x5dd184
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
push str.Wtsapi32.dll_path_s_n
push 0x5dd1cc
call fcn.0040c050
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46fc04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x210]
push edx
push 0x5dd1f0
push 0x5dd230
call fcn.0040c050
add esp, 0x10
push str.WTSRegisterSessionNotification
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x214]
mov dword [ecx + 0xc0], eax
mov edx, dword [ebp - 0x214]
cmp dword [edx + 0xc0], 0
jne 0x46fc47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_WTSRegisterSessionNotification__err_d_n
push 0x5dd2e4
call fcn.0040c050
add esp, 0xc
push str.WTSUnRegisterSessionNotification
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x214]
mov dword [ecx + 0xc4], eax
mov edx, dword [ebp - 0x214]
cmp dword [edx + 0xc4], 0
jne 0x46fc8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_WTSUnRegisterSessionNotification__err_d_n
push 0x5dd3a0
call fcn.0040c050
add esp, 0xc
push 0
mov eax, dword [ebp - 0x214]
add eax, 0x10
push eax
call fcn.0040d0e0
add esp, 8
mov ecx, dword [ebp - 0x214]
add ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x2c
call fcn.00405f90
mov ecx, dword [ebp - 0x214]
add ecx, 0x10
call fcn.00406030
push eax
push str.Get_local_ip_addr_S_n
push str.CSessionMon::IniSessionMonitor
call fcn.0040c050
add esp, 0xc
mov edx, dword [ebp - 0x214]
mov dword [edx + 4], 1
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret 8