joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105c253
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp ecx, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
jne 0x105c271
mov dword [ebp - 8], esi
jmp 0x105c277
mov eax, dword [ecx + 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0x105c1c2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x105c2bf
call fcn.0107875a
push 0x32
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x105c2ad
inc esi
cmp esi, 0x64
jl 0x105c293
jmp 0x105c2b8
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x105c4f3
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0xc]
push eax
push 0x100cae0
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x105c568
lea eax, [ebp - 4]
push eax
push 0x2000000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x105c568
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x105c568
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x105c579
push esi
push esi
push 0x30
push esi
push 0xb3
push 0x17
call fcn.01056e47
pop esi
leave
ret
Function at 0x105fb28
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10d60d5
call fcn.0107a498
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_2
mov esi, dword [ebp + 8]
lea eax, [esi + 0x74]
xor edi, edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.01078b5e
push esi
mov ecx, ebx
call fcn.0105aa3a
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105fcfc
push esi
mov ecx, ebx
call fcn.0105f917
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105fc9d
push dword [0x10eae7c]
call fcn.01084c69
mov ecx, esi
call fcn.01076fa4
cmp dword [esi + 0x5c], edi
jne 0x105fcb7
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString_2
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call fcn.01050a95
test eax, eax
je 0x105fc6b
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::CString_2
mov byte [ebp - 4], 2
call fcn.01022d6e
add eax, 0xa2
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::operator
push dword [ebp + 8]
call fcn.010354d9
cmp eax, edi
je 0x105fc44
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::Left
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.01078b5e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
push 0x1003824
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CString::CString_3
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call sub.MFC42u.dll_CString::operator_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x105fc44
cmp eax, 5
je 0x105fc44
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
cmp dword [ebp - 0x18], edi
je 0x105fc6b
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0xa3
push eax
call sub.MFC42u.dll_CString::Format_1
add esp, 0xc
jmp 0x105fc7f
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0xf
push eax
call sub.MFC42u.dll_CString::Format_1
add esp, 0x10
push 1
push edi
push 0x40
push edi
push dword [ebp - 0x14]
push 0x17
call fcn.01056de7
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
jmp 0x105fcb7
cmp dword [esi + 0x5c], edi
jne 0x105fcb7
push 1
push edi
push 0x30
push edi
push 0x80f5
push 0xfa6
call fcn.01056e47
mov ecx, dword [ebx + 0x20]
push 0x1005428
call fcn.010550ac
push dword [0x10eae7c]
mov edi, eax
call fcn.01084c69
mov ecx, esi
call fcn.01076fa4
push 3
mov ecx, ebx
call fcn.0105a7d7
test eax, eax
je 0x105fcec
mov ecx, eax
call fcn.0107649b
push 1
mov ecx, esi
call fcn.01076f43
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1062a4e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10e607c]
push ebx
push esi
mov ebx, ecx
cmp word [ebx], 0x40
mov esi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x65c], esi
je 0x1062a82
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 0x1ff
pop ecx
jbe 0x1062a89
xor eax, eax
jmp 0x1062c12
mov ax, word [ebx + 2]
cmp ax, 0x3a
push edi
jne 0x1062ad6
mov ax, word [ebx]
and word [ebp - 0x3fe], 0
mov word [ebp - 0x404], ax
lea eax, [ebx + 4]
cmp word [eax], 0x5c
lea ecx, [ebp - 0x3fe]
mov word [ebp - 0x402], 0x3a
mov word [ebp - 0x400], 0x5c
mov dword [ebp - 0x658], ecx
jne 0x1062ad2
add ebx, 6
jmp 0x1062b4c
mov ebx, eax
jmp 0x1062b4c
push 0x5c
pop edi
cmp word [ebx], di
jne 0x1062c0f
cmp ax, di
jne 0x1062c0f
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
lea eax, [ebx + 4]
push edi
push eax
call esi
test eax, eax
pop ecx
pop ecx
je 0x1062c0f
add eax, 2
push edi
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1062c0f
mov esi, edi
sub esi, ebx
sar esi, 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x402]
mov esi, dword [ebp - 0x65c]
add esp, 0xc
and word [eax], 0
mov dword [ebp - 0x658], eax
lea ebx, [edi + 2]
mov ecx, eax
test esi, esi
je 0x1062b56
mov dword [esi], 1
mov ax, word [ebx]
test ax, ax
jne 0x1062b6c
xor eax, eax
inc eax
jmp 0x1062c11
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x664], ecx
mov dword [ebp - 0x660], ebx
xor esi, esi
jmp 0x1062b95
cmp ax, 0x5c
je 0x1062b9a
mov word [ecx], ax
inc ecx
inc ecx
inc ebx
inc ebx
inc esi
xor eax, eax
mov ax, word [ebx]
mov dword [ebp - 0x658], ecx
test ax, ax
jne 0x1062b7c
lea eax, [ebp - 0x654]
push eax
mov word [ecx], 0x2a
add ecx, 2
and word [ecx], 0
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x668], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1062c0f
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
movzx ecx, si
cmp eax, ecx
jne 0x1062bf6
lea eax, [esi + esi]
push eax
push dword [ebp - 0x664]
lea eax, [ebp - 0x628]
push eax
call fcn.01085863
test eax, eax
je 0x1062c1e
lea eax, [ebp - 0x654]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1062bc7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01078836
leave
ret
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x1062c36
mov ecx, dword [ebp - 0x654]
shr ecx, 4
and ecx, 1
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x660]
mov ecx, esi
lea esi, [ebp - 0x628]
rep movsw word es:[edi], word [esi]
mov ax, word [ebx]
mov ecx, dword [ebp - 0x658]
mov word [ecx], ax
cmp word [ebx], 0
je 0x1062b5e
mov eax, dword [ebp - 0x668]
inc ebx
inc ebx
mov dword [ebp - 0x658], eax
mov ax, word [ebx]
test ax, ax
jne 0x1062b66
jmp 0x1062b5e
Function at 0x1064846
Capabilities:
Access the windows event log
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x10ede38], ebx
push esi
jne 0x106488d
push 0x50
mov esi, 0x10edd98
push esi
push 0x17d4
call fcn.0106abf7
push 0x10e5728
push 0x10edc08
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
cmp eax, ebx
mov dword [0x10ede38], eax
je 0x10648f2
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
xor edi, edi
cmp dword [ebp + 0x10], ebx
jle 0x10648d4
lea ebx, [ebp + 0x10]
add ebx, 4
mov eax, dword [ebx]
test eax, eax
lea esi, [ebp + edi*4 - 0x28]
mov dword [esi], eax
je 0x10648cc
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
jne 0x10648cc
push 0x10055e8
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x10648a2
xor ebx, ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [0x10ede38]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10696b5
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10d6e1f
call fcn.0107a498
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString_2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_2
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x18]
push ecx
push 0x2000000
lea edi, [esi + 4]
mov eax, dword [edi]
push 0
push eax
push dword [esi]
mov byte [ebp - 4], 1
call ebx
test eax, eax
je 0x106978a
push 0x5c
mov ecx, edi
call sub.MFC42u.dll_CString::ReverseFind
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x10697dc
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call sub.MFC42u.dll_CString::Mid
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.01078b5e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x24]
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call sub.MFC42u.dll_CString::Mid_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.01078b5e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
lea eax, [ebp - 0x18]
push eax
push 0x2000000
push 0
push dword [ebp - 0x14]
push dword [esi]
call ebx
test eax, eax
je 0x106978a
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call sub.MFC42u.dll_CString::operator
jmp 0x10697e1
mov ecx, dword [ebp + 8]
mov eax, 0x200
push eax
mov dword [ebp - 0x1c], eax
call sub.MFC42u.dll_CString::GetBuffer
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 0x1c]
neg esi
sbb esi, esi
shr eax, 1
and word [edi + eax*2], 0
push 0xffffffffffffffff
inc esi
call sub.MFC42u.dll_CString::ReleaseBuffer
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10697e1
call sub.MFC42u.dll_AfxThrowUserException
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x106980f
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d6e3e
call fcn.0107a498
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10043bc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString_3
push 0x100db34
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::operator_1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator_2
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10698c5
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d6e3e
call fcn.0107a498
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10043bc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::CString_3
push 0x10055e8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::operator_1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::operator_2
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x106997b
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d6e5d
call fcn.0107a498
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString_3
xor ebx, ebx
push 0x100db40
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.dll_CString::operator_1
push 0x10043bc
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::CString_3
push 0x10055e8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::operator_1
call fcn.01052ae7
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.dll_CString::operator_1
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x64], 0x44
push ebx
mov word [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1069b68
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10d6ec6
call fcn.0107a498
sub esp, 0x218
mov eax, dword [0x10e607c]
and dword [ebp - 0x220], 0
cmp dword [ebp + 0xc], 0x270f
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x224], esi
jl 0x1069bf3
push edi
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x100a98c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42u.dll_CString::CString_3
xor edi, edi
lea eax, [ebp - 0x21c]
inc edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call sub.MFC42u.dll_CString::CString_5
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
pop edi
jmp 0x1069c8f
call fcn.01022d84
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call sub.MFC42u.dll_CString::CString_3
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 2
call sub.MFC42u.dll_CString::CString_2
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push 0x100a880
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.dll_CString::Format
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
call sub.MFC42u.dll_CString::operator_2
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call sub.MFC42u.dll_CString::CString_5
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x220], 1
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::CString
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.01078836
leave
ret 8
Function at 0x106b958
Capabilities:
Create directory

Disassembly:
mov eax, 0x10d7103
call fcn.0107a498
sub esp, 0x18
mov eax, dword [0x10e607c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], eax
call sub.MFC42u.dll_CString::CString_2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::CString_2
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::operator
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x106baf5
cmp word [esi + 4], 0x5c
jne 0x106baf5
mov edi, 0x10045e8
push edi
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::operator
push ebx
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::operator_1
mov ebx, 0x1003824
push ebx
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::operator_1
mov ax, word [esi]
and word [ebp - 0x12], 0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x16], 0x24
mov word [ebp - 0x14], 0x5c
call sub.MFC42u.dll_CString::operator_1
add esi, 6
push esi
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CString::operator
push 2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::Left
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
mov esi, eax
call sub.MFC42u.dll_CString::CString
test esi, esi
jne 0x106baf5
push 0x5c
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CString::Find_2
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x106bac4
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CString::Left
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::operator_2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
inc esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CString::Mid_1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.01078b5e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::CString
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x106bab1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x106baf7
push ebx
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::operator_1
push 0x5c
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x106ba4b
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42u.dll_CString::operator_2
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x106baf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x106baf7
xor esi, esi
inc esi
jmp 0x106baf7
xor esi, esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01078836
leave
ret 8
Function at 0x1071345
Capabilities:
Start service

Disassembly:
mov eax, 0x10d7a84
call fcn.0107a498
sub esp, 0xc
push edi
push 0x100fd34
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString_3
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x10713b8
push ebx
push esi
push 0x10
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
je 0x10713ac
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10713a9
mov dword [ebp - 0x10], 1
jmp 0x10713ac
push ebx
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], edi
pop esi
pop ebx
jne 0x10713cd
push 1
push edi
push 0x30
push edi
push 0x4ede
push 0xfa9
call fcn.01056e47
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.dll_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x10713ee
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x100fd34
lea ecx, [ebp - 4]
call sub.MFC42u.dll_CString::CString_3
xor esi, esi
push 4
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x1071455
push edi
push 4
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1071451
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x107144e
xor eax, eax
cmp dword [ebp - 0x20], 4
sete al
mov dword [ebp - 8], eax
push edi
call esi
push ebx
call esi
pop edi
lea ecx, [ebp - 4]
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret