joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404220
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov edx, dword [ebp + 0x1c]
sub edx, 6
xor eax, eax
cmp edx, eax
push esi
push edi
jle 0x40424e
mov esi, dword [esp + 0x44]
mov ecx, edx
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp edx, eax
mov dword [esp + 0x10], eax
jle 0x404298
lea esi, [ecx + 8]
jmp 0x404260
mov edi, dword [esp + 0x10]
cmp edi, dword [ebp + 0x1c]
jg 0x404298
cmp ecx, edx
jge 0x404286
lea ecx, [ecx]
cmp eax, 4
jge 0x404289
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [esi + eax]
inc ecx
inc eax
cmp ecx, edx
mov dword [ebp + edi*4], ebx
jl 0x404270
cmp eax, 4
jne 0x404294
inc dword [esp + 0x10]
add esi, 4
xor eax, eax
cmp ecx, edx
jl 0x404260
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x1c]
jg 0x4043d6
mov esi, 0x5b65d0
jmp 0x4042b4
mov esi, dword [esp + 0x14]
movzx edi, byte [esp + edx*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [edi + str.cw]
add esi, 4
mov byte [esp + 0x18], cl
movzx edi, byte [esp + edx*4 + 0x16]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x19], bl
movzx edi, byte [esp + edx*4 + 0x17]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x1a], bl
movzx edi, byte [esp + edx*4 + 0x14]
xor cl, byte [esi - 4]
movzx ebx, byte [edi + str.cw]
xor byte [esp + 0x1b], bl
mov byte [esp + 0x18], cl
mov dword [esp + 0x14], esi
mov ecx, 1
cmp edx, 8
je 0x404322
cmp edx, ecx
jle 0x404383
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
inc ecx
cmp ecx, edx
jl 0x404313
jmp 0x404383
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
inc ecx
cmp ecx, 4
jl 0x404322
movzx ecx, byte [esp + 0x24]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x25]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x26]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + 0x27]
movzx ecx, byte [ecx + str.cw]
xor byte [esp + 0x2b], cl
mov ecx, 5
mov esi, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], esi
inc ecx
cmp ecx, 8
jl 0x404375
xor ecx, ecx
test edx, edx
jle 0x4043c9
mov esi, dword [esp + 0x10]
lea esi, [esi*4 + 8]
mov edi, dword [esp + 0x10]
cmp edi, dword [ebp + 0x1c]
jg 0x4043c9
cmp ecx, edx
jge 0x4043b7
cmp eax, 4
jge 0x4043ba
mov ebx, dword [esp + ecx*4 + 0x18]
lea edi, [esi + eax]
inc ecx
inc eax
cmp ecx, edx
mov dword [ebp + edi*4], ebx
jl 0x4043a1
cmp eax, 4
jne 0x4043c5
inc dword [esp + 0x10]
add esi, 4
xor eax, eax
cmp ecx, edx
jl 0x404394
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebp + 0x1c]
jle 0x4042b0
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051973e
add esp, 0x2c
ret 8
Function at 0x4043f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 1
cmp dword [edx + 0x1c], ecx
jle 0x4044da
push esi
lea eax, [edx + 0x32]
push edi
jmp 0x404410
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x5b61d0]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x5b59d0]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x5b5dd0]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x5b55d0]
inc ecx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x5b61d0]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x5b5dd0]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x5b59d0]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x5b55d0]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x5b61d0]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x5b5dd0]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x5b59d0]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x5b55d0]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x5b61d0]
xor esi, dword [edi*4 + 0x5b5dd0]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x5b59d0]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x5b55d0]
mov dword [eax - 6], esi
cmp ecx, dword [edx + 0x1c]
jl 0x404410
pop edi
pop esi
ret
Function at 0x409d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51ae8b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], ecx
push eax
lea ecx, [esi + 0xc]
mov dword [esi + 8], edx
call fcn.00409b30
xor eax, eax
mov dword [esp + 0x14], eax
mov cl, byte [esp + 0x2c]
mov byte [esi + 0x30], cl
mov byte [esi + 0x31], al
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14
Function at 0x40e8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51ae8b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], ecx
push eax
lea ecx, [esi + 0xc]
mov dword [esi + 8], edx
call fcn.0040e780
xor eax, eax
mov dword [esp + 0x14], eax
mov cl, byte [esp + 0x2c]
mov byte [esi + 0x30], cl
mov byte [esi + 0x31], al
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14
Function at 0x412cf0
Capabilities:
Access the windows event log

Disassembly:
push 0xffffffffffffffff
push 0x521ed9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
mov eax, dword [0x5b0500]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x412d5d
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x413030
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x210], eax
mov ecx, dword [esp + 0x224]
xor edx, edx
push ebx
push esi
mov eax, dword [esp + 0x228]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
push edi
mov edx, ecx
shr edx, 0x18
push edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
push edx
mov esi, dword [esp + 0x230]
mov edx, ecx
shr edx, 8
mov edi, dword [esp + 0x22c]
movzx edx, dl
push edx
movzx ecx, cl
push ecx
mov edx, eax
shr edx, 0x18
push edx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
push edx
mov ecx, eax
shr ecx, 8
movzx edx, cl
push edx
movzx eax, al
push eax
mov ecx, esi
shr ecx, 0x10
push ecx
movzx edx, si
push edx
push edi
lea eax, [esp + 0x48]
push str.AppID_08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
push eax
mov bl, 1
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x34
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x28]
push edx
push bind
call esi
test eax, eax
jne 0x413180
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push str.AuthenticationLevel
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x10], 0
jne 0x41311d
xor bl, bl
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
test bl, bl
jne 0x4131cb
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push 0
lea edx, [esp + 0x28]
push edx
push bind
call esi
test eax, eax
jne 0x4131ae
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.AuthenticationLevel
push ecx
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x413188
mov ecx, dword [esp + 0xc]
push ecx
mov bl, 1
call edi
jmp 0x4131cb
push eax
push str.ERROR:_could_not_open_AppId_key_in_registry._Error__d
jmp 0x4131b4
mov ecx, dword [0x5b6bb0]
mov edx, dword [ecx]
push eax
mov eax, dword [edx]
push str.ERROR:_could_not_set_authentication_level_in_registry._Error__d
push str.CheckAuthenticationLevel
push 1
push ecx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x14
push ecx
call edi
jmp 0x4131cb
push eax
push str.ERROR:_could_not_open_AppId_key_for_writing_to_registry._Error__d
mov ecx, dword [0x5b6bb0]
mov edx, dword [ecx]
mov eax, dword [edx]
push str.CheckAuthenticationLevel
push 1
push ecx
call eax
add esp, 0x14
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0051973e
add esp, 0x214
ret
Function at 0x414120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x51cd11
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, 1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x60], 0
je 0x414186
mov dword [esi + 0xc], 0x53c55c
mov dword [esi + method.ServerToolkit::CRefObject.virtual_0], vtable.ServerToolkit::CRefObject.0
mov dword [esi + 0x1b4], 0
mov byte [esp + 0x20], 2
mov dword [esp + 8], eax
push 0
sub esp, 0x1c
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esp + 0x40], 3
sub esp, 0x1c
lea edx, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [esp + 0x5c], 4
mov byte [esp + 0x5c], 2
mov ecx, esi
call fcn.004c0ba0
mov dword [esp + 0x20], 5
mov eax, dword [esi + 0xc]
mov dword [esi], vtable.ServerToolkit::COPCServerNodeHandler.3.0
mov dword [esi + 4], vtable.ServerToolkit::COPCServerNodeHandler.2.0
mov dword [esi + 8], vtable.ServerToolkit::COPCServerNodeHandler.1.0
mov ecx, dword [eax + 4]
mov dword [ecx + esi + 0xc], vtable.ServerToolkit::COPCServerNodeHandler.0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0x3c
Function at 0x414900
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x51cdea
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x20]
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.00517990
add esp, 4
mov dword [esp + 0x18], 0
mov ecx, esi
mov dword [esp + 8], 1
call dword [sym.imp.MSVCP90.dll_public:_bool___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::empty_void_const]
test al, al
jne 0x414970
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 4

Function at 0x414990
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x51ce33
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x5b339c]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push esi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x418]
mov dword fs:[0], eax
mov dword [esp + 0x420], 0
mov esi, dword [esp + 0x428]
mov ebx, ecx
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x420], 0
push 0x200
lea eax, [esp + 0x18]
push eax
push str.CommonProgramFiles
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x414a53
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push str.MatrikonOPCCommon_
mov ecx, esi
call dword [0x539464]
add ebx, 0x384
push ebx
mov ecx, esi
call dword [0x539434]
push str..EXE
mov ecx, esi
call dword [0x539464]
mov eax, esi
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.0051973e
add esp, 0x418
ret 4
Function at 0x414e40
Capabilities:
Access peb ldr_data
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x51d379
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x5b6bb0]
push str..PSTServer.cpp
push 0x3f5
push str.CPSTServer::ShutdownConfigShell
call fcn.00402490
lea eax, [esi + 0x148]
push eax
lea ecx, [esi + 0x384]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
mov dword [esp + 0x30], 0
mov ecx, eax
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push edi
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x350]
cmp eax, 0xffffffff
je 0x414f33
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x414f26
mov eax, dword [0x5b6bb0]
mov ecx, dword [eax]
mov edx, dword [ecx]
push str.Configuration_shell_did_not_shutdown_cleanly___clobbering
push str.CPSTServer::ShutdownConfigShell
push 1
push eax
call edx
mov eax, dword [esi + 0x350]
add esp, 0x10
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esi + 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x5b6bb0]
push 0
push 0x57ef93
push str..PSTServer.cpp
push 0x40a
push str.CPSTServer::ShutdownConfigShell
call fcn.00402520
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x415570
Capabilities:
Access the windows event log

Disassembly:
push 0xffffffffffffffff
push 0x532299
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5b339c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], 0
mov eax, dword [0x5b6bb0]
mov edi, dword [eax]
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov ecx, dword [0x5b6bb0]
mov edx, dword [edi]
push eax
push 0x53cbc4
push 0
push 9
push ecx
call edx
add esp, 0x14
cmp byte [esi + 0x374], 1
jne 0x415619
lea ecx, [esi + 0x180]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x415619
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x1c
Function at 0x4171c0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x498]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x417213
mov eax, dword [0x5b6bb0]
mov edx, dword [eax]
push str.Alias_event_thread_did_not_exit_properly___terminating
push str.CPSTServer::StopAliasEventScanning
push 1
push eax
mov eax, dword [edx]
call eax
mov ecx, dword [esi + 0x498]
add esp, 0x10
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x49c]
test eax, eax
je 0x41722e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x49c], 0
mov ecx, dword [0x5b6bb0]
push 0
push 0x57ef93
push str..PSTServer.cpp
push 0xff4
push str.CPSTServer::StopAliasEventScanning
call fcn.00402520
pop esi
ret
Function at 0x41a880
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
cmp byte [esi + 0x489], 0
je 0x41a915
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x5b6bbc]
cmp ecx, eax
jbe 0x41a8ab
sub eax, ecx
dec eax
jmp 0x41a8ad
sub eax, ecx
cmp eax, 0x3e8
jbe 0x41a914
call edi
mov dword [0x5b6bbc], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 0x408]
call fcn.00410370
push 0xb
push 0
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jl 0x41a909
mov ecx, esi
call fcn.00416a60
cmp word [esp + 0x10], 0xffff
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
sete cl
movzx ecx, cl
push ecx
mov ecx, eax
call edx
lea eax, [esp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop edi
pop esi
add esp, 0x10
ret

Function at 0x41aba0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x49c], eax
test eax, eax
jne 0x41abe3
mov eax, dword [0x5b6bb0]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5b6bb0]
mov edx, dword [esi]
push eax
push str.Error___d__occurred_creating_alias_event_thread_kill_event.
push str.CPSTServer::StartAliasEventScanning
push 1
push ecx
call edx
jmp 0x41ac52
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x417c90
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x498], eax
test eax, eax
jne 0x41ac35
mov ecx, dword [0x5b6bb0]
mov esi, dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x5b6bb0]
push eax
mov eax, dword [esi]
push str.Could_not_create_alias_event_thread___error__d
push str.CPSTServer::StartAliasEventScanning
push 1
push edx
jmp 0x41ac50
mov edx, dword [esp + 4]
mov eax, dword [0x5b6bb0]
mov ecx, dword [eax]
push edx
push str.Started_alias_event_thread___u_
push str.CPSTServer::StartAliasEventScanning
push 7
push eax
mov eax, dword [ecx]
call eax
mov ecx, dword [0x5b6bb0]
add esp, 0x14
push 0
push 0x57ef93
push str..PSTServer.cpp
push 0xfde
push str.CPSTServer::StartAliasEventScanning
call fcn.00402520
pop esi
pop ecx
ret