joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53c590
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56fb10
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x20], 0
lea eax, [esp + 0x24]
push eax
push ebp
lea edi, [esp + 0x30]
mov dword [esp + 0x20], 1
call fcn.0053c620
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x53c5fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x28]
call fcn.0046fdf0
mov eax, ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x53c680
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push 0
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
push str.SOFTWAREkingsoftkwifi_fault
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x53c6f8
mov eax, dword [esp]
test eax, eax
je 0x53c706
push 0x10
lea edx, [esp + 8]
push edx
push 3
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
test eax, eax
je 0x53c706
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00569ed6
add esp, 0x18
ret

Function at 0x53c720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x1c], eax
mov ecx, dword [0x586ad4]
mov eax, dword [0x586ad0]
mov edx, dword [0x586ad8]
mov dword [esp + 0x10], ecx
lea ecx, [esp]
push ecx
push 0x20019
push 0
mov dword [esp + 0x18], eax
mov eax, dword [0x586adc]
push str.SOFTWAREkingsoftkwifi_fault
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [esp]
jne 0x53c7a6
test eax, eax
je 0x53c7a6
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
test eax, eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esi], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
je 0x53c7cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
xor ecx, esp
mov eax, esi
call fcn.00569ed6
add esp, 0x24
ret
Function at 0x53d720
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
test al, al
jne 0x53d748
push 0
push 0
push esi
push 0x53d820
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x4c], eax
xor eax, eax
pop esi
ret
Function at 0x540a70
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x56f80f
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.business::CloudAdvertMgr.0
mov dword [esp + 0x1c], 2
mov eax, dword [esi + 0x64]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
test eax, eax
jne 0x540ae0
mov ecx, dword [esi + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x64]
push 0
push edx
call edi
test eax, eax
jne 0x540ae0
mov eax, dword [esi + 0x68]
test eax, eax
je 0x540ae0
push 0xbb8
push eax
call edi
mov eax, dword [esi + 0x64]
push 0
push eax
call edi
test eax, eax
jne 0x540af7
mov ecx, dword [esi + 0x68]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x90]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov dword [esi + 0x60], vtable.kbase::KSimpleLoopThread.0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esi + 0x6c]
push eax
call ebp
mov ecx, dword [esi + 0x64]
push ecx
mov dword [esi + 0x60], vtable.kbase::KSimpleThreadBase.0
call edi
lea ebx, [esi + 0x40]
mov dword [esi + 0x60], vtable.kbase::ThreadDelegate.0
call fcn.004c4cd0
lea edx, [esi + 0x20]
push edx
call ebp
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esi], vtable.kbase::KSimpleLoopThread::Delegate.0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x546430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x575e48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x30]
add esi, 0xc
push eax
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.00546890
mov edx, dword [eax + 4]
test edx, edx
je 0x546491
mov ecx, dword [eax + 8]
sub ecx, edx
mov eax, 0x66666667
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x5464b2
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x546552
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.00546890
mov edi, eax
mov ebp, dword [edi + 8]
cmp dword [edi + 4], ebp
jbe 0x5464ce
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.00546890
mov esi, eax
mov ebx, dword [esi + 4]
cmp ebx, dword [esi + 8]
jbe 0x5464ea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebp
push edi
push ebx
push esi
call fcn.00547f40
add esp, 0x10
cmp dword [esp + 0x34], 0
je 0x546536
mov esi, dword [esp + 0x2c]
push esi
lea ecx, [esp + 0x34]
call fcn.00546700
push esi
lea ecx, [esp + 0x34]
mov dword [eax + 4], 0
call fcn.00546700
mov esi, eax
call fcn.00544780
push eax
lea ecx, [esp + 0x34]
call fcn.00546700
mov ecx, 8
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x54655e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc
Function at 0x54b480
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x54b4c5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [esi + 0x5c]
jne 0x54b4a0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x54b4be
test eax, eax
je 0x54b4c5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x5c], 0
mov edx, dword [esi + 0x38]
mov dword [ebx], edx
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0x58]
mov dword [edx], ecx
ret 4

Function at 0x54eb00
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x54eb34
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [esi]
jne 0x54eb18
push eax
jmp 0x54eb28
test eax, eax
je 0x54eb34
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov edx, dword [esp + 4]
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x54eb70
push 0
push 0
mov dword [esi + 8], edx
mov dword [esi + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi], eax
mov eax, ecx
ret 4
Function at 0x54edc0
Capabilities:
Delete file
Encode data using xor
Write file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x1c]
mov edi, dword [esi + 0x20]
xor ebp, ebp
push 0x50
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebp
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 8]
mov edx, dword [esi]
mov eax, 0x50
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x40], eax
mov al, byte [esi + 0x24]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x30], edx
mov byte [esp + 0x54], al
mov cl, al
add esp, 0xc
lea edx, [edi + 0x50]
xor eax, eax
test edi, edi
mov dword [esp + 0x44], 1
mov dword [esp + 0x18], 0x424b4c48
mov dword [esp + 0x40], edi
mov dword [esp + 0x30], edx
jle 0x54ee62
xor byte [eax + ebx], cl
add eax, 1
cmp eax, edi
jl 0x54ee58
mov eax, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x54eee7
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x50
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], 0x50
jne 0x54eed1
mov eax, dword [esp + 0x3c]
push 0
push 0
push eax
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], edi
jne 0x54eed1
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x54eee7
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00569ed6
add esp, 0x60
ret 4
Function at 0x54ef00
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
add esi, 4
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x54f041
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x50
jb 0x54f015
push edi
lea ecx, [esp + 0x14]
push ecx
push 0x50
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54f015
cmp dword [esp + 0x10], 0x50
jne 0x54f015
cmp dword [esi], 0x424b4c48
jne 0x54f015
cmp dword [esi + 0x18], ebx
jne 0x54f015
mov ecx, dword [esi + 0x24]
cmp ecx, ebx
ja 0x54f015
mov eax, dword [esi + 0x28]
lea edx, [eax + ecx]
cmp edx, ebx
ja 0x54f015
add eax, 1
push eax
call fcn.00569ecc
add esp, 4
push 0
mov edi, eax
mov eax, dword [esi + 0x24]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x54f019
mov ecx, dword [esi + 0x28]
cmp dword [esp + 0x10], ecx
jne 0x54f019
cmp dword [esi + 0x2c], 1
jne 0x54f019
mov dl, byte [esi + 0x30]
xor eax, eax
test ecx, ecx
jle 0x54effa
xor byte [eax + edi], dl
add eax, 1
cmp eax, ecx
jl 0x54eff0
mov eax, dword [esi + 0x28]
mov byte [edi + eax], 0
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x54], edi
mov ecx, dword [esi + 0x28]
mov dword [eax + 0x58], ecx
mov esi, 1
jmp 0x54f01d
mov esi, edi
jmp 0x54f01d
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x54f035
test edi, edi
je 0x54f035
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 4
Function at 0x550a20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56bc0c
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0xa8], eax
push esi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor esi, esi
push str.SOFTWAREClassesCLSID_
lea ecx, [esp + 0x18]
mov dword [esp + 0xc0], esi
call dword [0x582408]
push str.9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.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.Implemented_Categories_
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.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.AB352969_400B_4f65_B015_4B856B96E416
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
mov dword [esp + 8], esi
jae 0x550aba
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push ecx
push 1
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x550aeb
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x550b64
push 0x7e
lea edx, [esp + 0x36]
push esi
push edx
mov word [esp + 0x3c], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push str.idex
push eax
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x550b42
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [0x582408]
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov dword [esp + 0xbc], 0xffffffff
call dword [sym.imp.MSVCP80.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 + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00569ed6
add esp, 0xb8
ret
Function at 0x550c50
Capabilities:
Create thread

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
or edi, 0xffffffff
mov word [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 8]
push ecx
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.kdump.dll
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x550d02
push str.KxEOpenDumpMonitorEx2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x550d02
push esi
push 0
push 0
push eax
push 0x550b90
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
push 0xa
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x550d01
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00569ed6
add esp, 0x20c
ret

Function at 0x550ff0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x244], eax
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x4e]
push 0
push ecx
mov word [esp + 0x54], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea edx, [esp + 0x40]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp]
lea eax, [esp + 0x3c]
push ecx
mov dword [esp + 4], 0x3c
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], str.runas
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00569ed6
add esp, 0x248
ret

Function at 0x551150
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5746f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
call fcn.00418760
cmp eax, 2
jne 0x551208
xor edi, edi
lea ebx, [esp + 0x10]
call fcn.004125d0
push eax
lea eax, [esp + 0x10]
push eax
mov ebx, str.kwassistlaunch.exe
mov dword [esp + 0x24], edi
call fcn.0041a8a0
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5511cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x58c320
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x551208
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x551220
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x57a298
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
lea ebx, [esp + 0x14]
xor esi, esi
call fcn.004125d0
push 0xb
push str.knatsvc.exe
mov eax, ebx
push eax
mov dword [esp + 0x2c], esi
call fcn.00410240
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5512bd
push str.knatsvc
call fcn.0040c480
add esp, 4
test eax, eax
jne 0x5512b8
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
push str._install__name_knatsvc__description
push edx
xor ecx, ecx
call fcn.00418290
mov eax, dword [esp + 0x28]
add esp, 0x14
push esi
push esi
push esi
push str._start_knatsvc
push eax
xor ecx, ecx
call fcn.00418290
add esp, 0x14
mov esi, eax
jmp 0x5512bd
mov esi, 1
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5512e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x551680
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x57b6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.00551580
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.861D3519_D4C9_4fc1_9A69_27F64C36A8A6
mov edi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea esi, [esp + 0x30]
call fcn.0051bba0
xor esi, esi
mov dword [esp + 0x30], esi
cmp dword [esp + 0x18], esi
je 0x55176b
xor eax, eax
cmp edi, 0x394
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
jne 0x5516f1
mov dword [esp + 0x1c], edi
jmp 0x551713
cmp edi, 0x395
jne 0x5516ff
mov dword [esp + 0x1c], edi
jmp 0x551713
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], esi
lea eax, [esp + 0xc]
push eax
push 0x51bb00
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push esi
push 0x4a
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x551754
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
cmp edi, 0x394
jne 0x5517a9
call fcn.00518f90
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x551792
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x5517c3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret