joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407533
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4075d0
push ebx
push esi
call fcn.004074fc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00407490
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40757d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4075cf
push edi
push eax
call fcn.00405602
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40759d
call fcn.00405fef
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4075ce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407490
add esp, 0x20
test eax, eax
jne 0x4075bc
push edi
call fcn.00405fef
jmp 0x4075c4
push ebx
call fcn.00405fef
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40887f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fd8
push 0x410fd0
push str.FlsAlloc
push 0x1f
call fcn.0040873e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088b3
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f110]
call esi
jmp 0x4088b9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4088fd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410fe8
push 0x410fe0
push str.FlsGetValue
push 0x21
call fcn.0040873e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408934
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40893c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410ff0
push 0x410fe8
push str.FlsSetValue
push 0x22
call fcn.0040873e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408976
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f110]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40ddd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ddfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ddfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x409d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a3c4
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xa4
push str.Resources.cpp
push 1
push 0x1c
call fcn.00500b5c
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x409dc9
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov byte [ebp - 4], 1
mov ecx, esi
push edi
mov dword [esi], vtable.cafx::tstring_ex_wchar_t__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
call fcn.004022e0
mov byte [ebp - 4], 0
jmp 0x409dcb
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x409df1
push 0
push 0
push esi
push 0x409d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40af30
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a550
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
sub esp, 0x10
lea ecx, [eax + 0x30]
push 1
call fcn.0040b470
mov edi, dword [ebp + 8]
mov ebx, eax
mov edx, dword [edi]
mov esi, edx
movzx ecx, byte [esi]
mov cl, byte [ecx + 0x56d820]
test cl, cl
je 0x40af91
movzx eax, byte [esi + 2]
add esi, 2
mov al, byte [eax + 0x56d820]
test al, al
jne 0x40af80
mov dword [edi], esi
cmp esi, edx
jne 0x40afcc
lea ecx, [ebp - 0x24]
call fcn.00500a81
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], vtable.rapidxml::parse_error.0
mov dword [ebp - 0x18], str.expected_element_name
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
push 0x5a8ac8
push eax
call fcn.00502beb
sub esi, edx
mov dword [ebx], edx
sar esi, 1
mov dword [ebx + 8], esi
mov ecx, dword [edi]
movzx eax, byte [ecx]
mov al, byte [eax + 0x56d920]
test al, al
je 0x40b001
jmp 0x40aff0
movzx eax, byte [ecx + 2]
add ecx, 2
mov al, byte [eax + 0x56d920]
test al, al
jne 0x40aff0
push ebx
mov dword [edi], ecx
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0040b5a0
mov esi, dword [edi]
movzx eax, word [esi]
cmp eax, 0x3e
jne 0x40b028
mov ecx, dword [ebp - 0x10]
lea eax, [esi + 2]
push ebx
push edi
mov dword [edi], eax
call fcn.0040b910
jmp 0x40b059
cmp eax, 0x2f
jne 0x40b08a
lea eax, [esi + 2]
mov dword [edi], eax
cmp word [eax], 0x3e
je 0x40b054
push eax
push 0x56cf78
lea ecx, [ebp - 0x24]
call fcn.004096e0
push 0x5a8ac8
lea eax, [ebp - 0x24]
push eax
call fcn.00502beb
add eax, 2
mov dword [edi], eax
mov eax, dword [ebx]
mov ecx, 0x5bd894
test eax, eax
cmovne ecx, eax
je 0x40b06c
mov eax, dword [ebx + 8]
jmp 0x40b06e
xor eax, eax
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x24]
call fcn.00500a81
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], vtable.rapidxml::parse_error.0
mov dword [ebp - 0x18], 0x56cf78
jmp 0x40afb4
Function at 0x40b2a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [esi]
lea esp, [esp]
mov eax, dword [esi]
movzx edx, word [eax]
cmp edx, 0x5d
jne 0x40b2e7
cmp word [eax + 2], dx
jne 0x40b2e7
cmp word [eax + 4], 0x3e
je 0x40b2f3
test dx, dx
je 0x40b329
add eax, 2
mov dword [esi], eax
jmp 0x40b2d0
sub esp, 0x10
add ecx, 0x30
push 3
call fcn.0040b470
mov ecx, dword [esi]
xor edx, edx
sub ecx, edi
sar ecx, 1
mov dword [eax + 4], edi
mov dword [eax + 0xc], ecx
mov ecx, dword [esi]
mov word [ecx], dx
add dword [esi], 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00500a81
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], vtable.rapidxml::parse_error.0
mov dword [ebp - 0x14], str.unexpected_end_of_data
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push 0x5a8ac8
push eax
call fcn.00502beb
int3

Function at 0x40cdf0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5938c8
push 0x503130
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ac020]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], 0
jne 0x40cf18
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push str.9382
push str.localhost
push str.ncacn_ip_tcp
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
test eax, eax
jne 0x40cf18
push 0x5c0be4
push dword [ebp - 0x1c]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
test eax, eax
je 0x40ce93
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov dword [0x5c0be4], 0
jmp 0x40cf18
push dword [0x5ad3f4]
push dword [0x5c0be4]
call dword [sym.imp.RPCRT4.dll_RpcEpResolveBinding]
test eax, eax
je 0x40ceca
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
push 0x5c0be4
call dword [sym.imp.RPCRT4.dll_RpcBindingFree]
mov dword [0x5c0be4], 0
jmp 0x40cf18
mov dword [ebp - 4], 0
call fcn.005345a0
mov dword [esi + 0x30], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x40cf0e
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cf90
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x40cff5
push 0
push 0
push 0
push 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x40cfe0
push 0
push 0
push esi
push 0x40d0b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
je 0x40cfd7
mov eax, 1
pop esi
ret
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
xor eax, eax
pop esi
ret

Function at 0x40eaa0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a949
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
jne 0x40eb3d
cmp dword [esi + 0x24], 0
je 0x40eb3d
cmp dword [esi + 0x28], 0
je 0x40eb09
push ecx
mov ecx, esi
call fcn.0040ebc0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40eb04
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
jmp 0x40eb37
mov dword [ebp - 4], 0
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 4], 0xffffffff
jmp 0x40eb34
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
lea edi, [esi + 0x30]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x40eb6a
mov edx, dword [ecx]
cmp ecx, edi
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [edi + 0x10], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 2
mov dword [edi], vtable.._AV___Func_base_X___V_std__.0
mov byte [ebp - 4], 3
mov dword [edi], vtable.._AV___Func_impl_U___Callable_obj_V___Bind__00XQ6AXXZ___V_std___0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
mov dword [edi + 4], fcn.00401d20
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x10], edi
mov dword [esi + 0x20], 0
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f230
Capabilities:
Create process on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5ae14c], 0
je 0x40f362
mov ecx, dword [0x5ae148]
push esi
mov esi, dword [ecx]
cmp esi, ecx
je 0x40f361
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0
je 0x40f313
test ebx, ebx
je 0x40f313
mov edi, dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, edi
shr eax, cl
test al, 1
je 0x40f2fa
mov eax, dword [0x56dc1c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x56dc20]
mov dword [ebp - 8], eax
mov ax, word [esi + 0x10]
add ax, 0x41
push 0x38
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.005032d0
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x48], 0x400
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], 0
push eax
mov dword [ebp - 0x40], str.open
mov dword [ebp - 0x3c], 0x56c344
mov dword [ebp - 0x38], str.explorer
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
lea eax, [ebp - 0x10]
mov ecx, 0x5ae148
push eax
call fcn.0040f3f0
mov ecx, dword [0x5ae148]
mov esi, dword [eax]
jmp 0x40f357
cmp byte [esi + 0xd], 0
jne 0x40f357
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40f33c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40f357
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40f330
jmp 0x40f357
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40f355
cmp esi, dword [eax + 8]
jne 0x40f355
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40f345
mov esi, eax
cmp esi, ecx
jne 0x40f263
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret 4
Function at 0x413100
Capabilities:
Create process on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x56dc1c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x56dc20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x41
push 0
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x2c0]
push 0x2b4
push eax
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret 4
Function at 0x41c700
Capabilities:
Create process on windows
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0xc
mov edi, edx
mov esi, ecx
call fcn.004ffcfe
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 8], ecx
mov ecx, eax
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
jmp fcn.0041c420

Function at 0x41c730
Capabilities:
Create process on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c198
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], vtable.cafx::tstring_ex_wchar_t__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [ebp - 4], 1
lea eax, [edx + 0x41]
push eax
lea eax, [ebp - 0x2c]
push str._c:_
push eax
call fcn.00401a00
add esp, 0xc
lea ecx, [ebp - 0x2e0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0x2b4
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push 0x56c344
push eax
push str.Explorer.exe
push str.OPEN
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], vtable.cafx::tstring_ex_wchar_t__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x41c810
push dword [ebp - 0x28]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
Function at 0x41c840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53c1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5ac020]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
mov eax, dword [0x5ac020]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [esp + 0x54], 0
push 0xffffffffffffffff
push eax
mov dword [esp + 0x60], 0
lea ecx, [esp + 0x4c]
push 0x5bdd4c
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
call fcn.00401c40
mov dword [esp + 0x88], 0
lea ecx, [esp + 0x44]
push 0xffffffffffffffff
push 0
push 0x5bdd34
call fcn.0040e530
push 0x38
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push 0
push eax
call fcn.005032d0
xor eax, eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
mov byte [esp + 0x94], 1
mov dword [esp + 0x68], vtable.cafx::tstring_ex_wchar_t__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov byte [esp + 0x94], 2
lea eax, [esp + 0x68]
push esi
push dword [0x5bdd04]
push str._FormatDialog__u__d
push eax
call fcn.00401a00
add esp, 0x1c
mov dword [esp + 8], 0x3c
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
mov dword [esp + 0xc], 0x140
cmovae eax, dword [esp + 0x44]
cmp dword [esp + 0x74], 8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
cmovae eax, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x41c9ce
cmp dword [esp + 0x40], 0
jne 0x41c9ce
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
cmp dword [esp + 0x40], 0
je 0x41c9c3
mov byte [esp + 0x88], 0
mov dword [esp + 0x5c], vtable.cafx::tstring_ex_wchar_t__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov byte [esp + 0x88], 0
cmp dword [esp + 0x74], 8
jb 0x41c9f9
push dword [esp + 0x60]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], 0
mov word [esp + 0x60], ax
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x58], 8
jb 0x41ca2e
push dword [esp + 0x44]
call fcn.0051d3d0
add esp, 4
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
Function at 0x41cac0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x41cb4f
push edi
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x41cb45
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41cb3e
cmp dword [ebp - 0x1c], 1
je 0x41cb39
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41cb39
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jb 0x41cb00
jmp 0x41cb3e
mov ebx, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004ffcef
mov esp, ebp
pop ebp
ret

Function at 0x41cb70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x41cbd5
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cbd5
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push esi
push str.Start
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41cbcc
cmp dword [ebp + 8], 4
mov eax, 1
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41cd20
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x20]
mov edi, ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41cd84
cmp dword [ebp - 0x1c], 1
je 0x41cd84
push ebx
push esi
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41cd82
cmp dword [ebp - 0x1c], 1
je 0x41cd82
push 0xfa
call ebx
inc esi
cmp esi, 0xa
jb 0x41cd60
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
Function at 0x41cda0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ac020]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
mov edi, ecx
xorps xmm0, xmm0
push eax
push edi
movdqu xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41ce6d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41ce5a
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x41ce16
cmp eax, 7
je 0x41ce16
cmp eax, 4
jne 0x41ce3a
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41ce39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService_Failed__error___u_n
call fcn.0041d940
add esp, 8
inc esi
push 0x96
call ebx
cmp esi, 0xa
jb 0x41cde4
mov eax, dword [ebp - 0x1c]
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
call fcn.004ffcef
mov esp, ebp
pop ebp
ret