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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588acb
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x61b000]
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 0x464132
xor al, al
jmp 0x464202
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 0x464199
cmp dword [ebp - 0x58], 0xea
jne 0x4641df
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x88]
call fcn.00406050
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp + 8]
call fcn.0047b730
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.004060d0
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x58], 0
je 0x46414e
cmp dword [ebp - 0x58], 0xea
je 0x46414e
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.00560c61
mov esp, ebp
pop ebp
ret 4

Function at 0x464650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov dword [0x6408a0], 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x464eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0xffffffff
je 0x464690
mov eax, 1
jmp 0x464692
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4650e0
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11c4
call fcn.0056b140
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x11c4], ecx
lea eax, [ebp - 0x1c0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x46512f
push 0x5eb938
push 0x5eb960
call fcn.0040c230
add esp, 8
mov eax, 1
jmp 0x4652c5
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x11c4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x11c4]
cmp dword [edx + 4], 0xffffffff
jne 0x465179
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x5eb980
push 0x5eb9c4
call fcn.0040c230
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x4652c5
mov dword [ebp - 0x30], 0x10
push 0x5eb9e4
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov eax, 2
mov word [ebp - 0x28], ax
push 0xea64
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
mov byte [ebp - 0x29], 1
push 1
lea ecx, [ebp - 0x29]
push ecx
push 4
push 0xffff
mov edx, dword [ebp - 0x11c4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x11c4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x465215
push 0x5eb9f0
push 0x5eba0c
call fcn.0040c230
add esp, 8
mov ecx, dword [ebp - 0x11c4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
jmp 0x4652c5
mov byte [ebp - 0x11c0], 0
push 0xfff
push 0
lea eax, [ebp - 0x11bf]
push eax
call fcn.00568440
add esp, 0xc
mov ecx, dword [ebp - 0x11c4]
cmp dword [ecx], 0
jne 0x4652ad
push 0x1000
push 0
lea edx, [ebp - 0x11c0]
push edx
call fcn.00568440
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xfff
lea edx, [ebp - 0x11c0]
push edx
mov eax, dword [ebp - 0x11c4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x465296
push 0x5eba2c
push str.CRegistryMonitor::UdpServerFunc
call fcn.0040c230
add esp, 8
jmp 0x4652ad
push 2
lea edx, [ebp - 0x11c0]
push edx
push 0x73
push 5
call fcn.00434820
add esp, 0x10
jmp 0x465232
mov eax, dword [ebp - 0x11c4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x4652e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0x5eba70
push 0x5eba80
call fcn.0040c230
add esp, 8
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0x465390
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x465337
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5ebaa8
push str.CRegistryMonitor::StartRegistryMonitor
call fcn.0040c230
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4655f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 0x1c], 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x465660
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x465627
xor eax, eax
jmp 0x465636
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x465680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1c], 0
jne 0x46576f
push 0
call fcn.0044b6e0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x14]
sbb ecx, dword [edx + 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jl 0x465733
jg 0x4656e2
cmp dword [ebp - 0x24], 0x3c
jb 0x465733
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov word [ebp - 8], dx
mov ecx, dword [ebp - 0x1c]
call fcn.00406190
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push 0x5eb6dc
push 0x5eb6e0
push 0x5eb6f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x10]
push ecx
call fcn.0056510e
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x20], 0
jne 0x465749
push str.wmic_RDTOGGLE_WHERE_ServerName_COMPUTERNAME__call_SetAllowTSConnections_0
call fcn.00560cc1
add esp, 4
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x20], 1
jne 0x46575f
push str.wmic_RDTOGGLE_WHERE_ServerName_COMPUTERNAME__call_SetAllowTSConnections_1
call fcn.00560cc1
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4656a2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret
Function at 0x465890
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b19b
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x61b000]
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 0x465941
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 0x465918
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 0x5e9ed8
call fcn.0040c230
add esp, 0x10
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x465935
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.0040c230
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 0x46596a
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.0046d850
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x465b40
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 0x465b90
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 0x465b7e
mov eax, 1
jmp 0x465b80
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x467380
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588a2e
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x61b000]
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.00568440
add esp, 0xc
mov dword [ebp - 0x40], 0x100
lea ecx, [ebp - 0x34]
call fcn.00406020
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.00406190
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 0x46743e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004060d0
jmp 0x4675a9
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 0x46758a
push 0x5ea530
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x164]
push ecx
call fcn.00407cc0
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.00407cc0
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.004060f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x180]
call fcn.004060d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call fcn.004060d0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x34]
call fcn.00406190
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 0x46753c
jmp 0x46743e
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x148]
push edx
mov ecx, dword [ebp - 0x184]
call fcn.004675d0
push 0x100
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.00568440
add esp, 0xc
mov dword [ebp - 0x40], 0x100
cmp dword [ebp - 0x148], 0
je 0x467585
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46743e
cmp dword [ebp - 0x10], 0
je 0x46759a
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.004060d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret 8
Function at 0x4729a0
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 0x472a2b
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 0x472a02
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 0x5e9b1c
call fcn.0040c230
add esp, 0x10
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x472a1f
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.0040c230
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 0x472a90
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 0x472b10
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 0x472ace
mov eax, 1
jmp 0x472ad0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x473000
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5876e8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x61b000]
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.00561878
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406050
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406090
mov eax, dword [ebp - 0x78]
or eax, 1
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004060d0
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.00560c61
mov esp, ebp
pop ebp
ret 4
Function at 0x4730c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588798
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x61b000]
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.00406020
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00473630
push 0x5e9c78
lea ecx, [ebp - 0x34]
call fcn.00408050
xor ecx, ecx
mov word [ebp - 0x134], cx
push 0xfe
push 0
lea edx, [ebp - 0x132]
push edx
call fcn.00568440
add esp, 0xc
push 0x80
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x34]
call fcn.004061b0
add eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00406190
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.0056ae70
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.0056ae70
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.0056ae70
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.0056ae70
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.004060d0
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.00560c61
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4736d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b1d6
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x61b000]
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 0x473750
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 0x5e981c
call fcn.0040c230
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x47376d
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.0040c230
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.00413d80
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00413d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4737c0
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 0x473a10
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 0x4737fe
mov eax, 1
jmp 0x473807
xor eax, eax
jmp 0x473807
mov esp, ebp
pop ebp
ret
Function at 0x473830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a266
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x61b000]
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 0x473892
xor al, al
jmp 0x4739ee
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 0x4738fd
cmp dword [ebp - 0x58], 0xea
jne 0x4739cb
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 0x473974
mov dword [ebp - 0x74], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 5
jne 0x473972
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x90]
call fcn.00406050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0047b730
mov dword [eax], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.004060d0
jmp 0x4739c2
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0xac]
call fcn.00406050
mov dword [ebp - 4], 1
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp + 8]
call fcn.0047b730
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004060d0
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 0x4738ae
cmp dword [ebp - 0x58], 0xea
je 0x4738ae
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.00560c61
mov esp, ebp
pop ebp
ret 4