joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10591b8
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov esi, 0x100c380
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [0x1004ba0]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1004ba4]
push 0x41
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
pop esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x10592b0
push edi
push edi
push 3
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x14], si
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10592ce
push edi
lea eax, [ebp - 0x28]
push eax
push 0x1e0
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x70c00
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x105929b
mov eax, dword [ebp - 0x28]
xor edx, edx
push 0x18
pop ecx
div ecx
xor edx, edx
cmp eax, edi
jbe 0x10592a1
xor ecx, ecx
lea ecx, [ecx + ecx*2]
mov ecx, dword [ebp + ecx*8 - 0x204]
cmp ecx, edi
je 0x1059289
cmp ecx, 0xb
je 0x105928e
cmp ecx, 0xc
je 0x1059289
mov dword [ebp - 0x2c], 1
jmp 0x1059291
cmp ecx, 0xb
jne 0x1059291
mov dword [ebp - 0x20], esi
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x1059268
jmp 0x10592a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 1
je 0x10592d9
jmp 0x10592ce
cmp eax, 4
jne 0x10592c0
cmp word [ebp - 0x20], di
jne 0x10592ce
mov dword [ebp - 0x20], esi
jmp 0x10592ce
cmp eax, 3
jne 0x10592ce
cmp word [ebp - 0x24], di
jne 0x10592ce
mov dword [ebp - 0x24], esi
inc esi
cmp si, 0x5a
jbe 0x10591fc
mov ecx, dword [ebp - 4]
xor eax, eax
mov ax, 0x5a
cmp ax, si
pop edi
sbb eax, eax
not eax
and eax, esi
pop esi
pop ebx
call fcn.01075bbb
leave
ret
Function at 0x10596d7
Capabilities:
Get common file path
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa24
mov eax, dword [0x10de03c]
push ebx
push edi
push 4
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.01059481
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xa18], eax
je 0x105985e
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0xa10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jge 0x1059736
xor eax, eax
jmp 0x1059864
cmp word [ebp - 0xa10], bx
mov dword [ebp - 0xa1c], ebx
je 0x105985e
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa14], eax
push dword [ebp - 0xa14]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x105982f
push 0x104
push dword [ebp - 0xa14]
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 8], bx
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x210]
push eax
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push 0x10054a8
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x1c
push ebx
push ebx
mov dword [ebp - 0xa20], 0x43
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
lea eax, [ebx + ebx]
push eax
call sub.MFC42u.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0xa24], eax
je 0x1059800
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0xa24]
cmp word [eax + 2], 0x3a
jne 0x10597f9
mov cx, word [eax]
mov word [ebp - 0xa20], cx
push eax
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ax, word [ebp - 0xa20]
cmp word [ebp - 0x210], ax
je 0x1059824
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01059376
mov dword [ebp - 0xa18], eax
cmp dword [ebp - 0xa18], 0
je 0x105985e
xor ebx, ebx
push dword [ebp - 0xa14]
call edi
pop ecx
mov ecx, dword [ebp - 0xa1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0xa1c], eax
lea eax, [ebp + eax*2 - 0xa10]
cmp word [eax], bx
mov dword [ebp - 0xa14], eax
jne 0x105975b
mov eax, dword [ebp - 0xa18]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075bbb
leave
ret 8

Function at 0x1059877
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x100c390
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.01059481
mov ecx, dword [ebp - 4]
call fcn.01075bbb
leave
ret
Function at 0x105d3cd
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10cf4a1
call fcn.01077868
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov esi, dword [ebp + 8]
lea eax, [esi + 0x74]
xor edi, edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::operator_2
push esi
mov ecx, ebx
call fcn.0105876b
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d59c
push esi
mov ecx, ebx
call fcn.0105d1bc
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d542
push dword [0x10e25b4]
call fcn.01081e97
mov ecx, esi
call fcn.01074324
cmp dword [esi + 0x5c], edi
jne 0x105d557
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call fcn.0104e929
test eax, eax
je 0x105d510
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_4
mov byte [ebp - 4], 2
call fcn.0102150d
add eax, 0xa2
push eax
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp + 8]
call fcn.0103386b
cmp eax, edi
je 0x105d4e9
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 sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push 0x1004204
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::CString_5
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.010762a4
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 0x105d4e9
cmp eax, 5
je 0x105d4e9
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 0x105d510
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0xa3
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
jmp 0x105d524
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0xf
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
push 1
push edi
push 0x40
push edi
push dword [ebp - 0x14]
push 0x17
call fcn.01054b96
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x105d557
push 1
push edi
push 0x30
push edi
push 0x80f5
push 0xfa6
call fcn.01054bf6
mov ecx, dword [ebx + 0x20]
push 0x1005368
call fcn.01052e5b
push dword [0x10e25b4]
mov edi, eax
call fcn.01081e97
mov ecx, esi
call fcn.01074324
push 3
mov ecx, ebx
call fcn.0105850a
test eax, eax
je 0x105d58c
mov ecx, eax
call fcn.0107381b
push 1
mov ecx, esi
call fcn.010742c3
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 0x10606a5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10de03c]
push ebx
push esi
mov ebx, ecx
mov si, word [ebx]
cmp si, 0x40
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x65c], edi
je 0x1060883
and dword [ebp - 0x658], 0
lea eax, [ebp - 0x658]
push eax
push 0x104
push ebx
call fcn.010600e6
test eax, eax
jl 0x1060883
cmp dword [ebp - 0x658], 0x3fe
ja 0x1060883
mov ax, word [ebx + 2]
cmp ax, 0x3a
jne 0x106074a
and word [ebp - 0x3fe], 0
mov word [ebp - 0x402], ax
lea eax, [ebx + 4]
cmp word [eax], 0x5c
lea ecx, [ebp - 0x3fe]
mov word [ebp - 0x404], si
mov word [ebp - 0x400], 0x5c
mov dword [ebp - 0x658], ecx
jne 0x1060746
add ebx, 6
jmp 0x10607c0
mov ebx, eax
jmp 0x10607c0
push 0x5c
pop edi
cmp si, di
jne 0x1060883
cmp ax, di
jne 0x1060883
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 0x1060883
add eax, 2
push edi
push eax
call esi
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1060883
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]
add esp, 0xc
and word [eax], 0
lea ebx, [edi + 2]
mov edi, dword [ebp - 0x65c]
mov dword [ebp - 0x658], eax
mov ecx, eax
test edi, edi
je 0x10607ca
mov dword [edi], 1
mov ax, word [ebx]
test ax, ax
jne 0x10607e0
xor eax, eax
inc eax
jmp 0x1060885
mov ecx, dword [ebp - 0x658]
mov dword [ebp - 0x664], ecx
mov dword [ebp - 0x660], ebx
xor esi, esi
jmp 0x1060809
cmp ax, 0x5c
je 0x106080e
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 0x10607f0
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 0x1060883
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
movzx ecx, si
cmp eax, ecx
jne 0x106086a
lea eax, [esi + esi]
push eax
push dword [ebp - 0x664]
lea eax, [ebp - 0x628]
push eax
call fcn.01082aa5
test eax, eax
je 0x1060892
lea eax, [ebp - 0x654]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x106083b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075bbb
leave
ret
mov eax, dword [ebp - 0x65c]
test eax, eax
je 0x10608aa
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 0x10607d2
mov eax, dword [ebp - 0x668]
inc ebx
inc ebx
mov dword [ebp - 0x658], eax
mov ax, word [ebx]
test ax, ax
jne 0x10607da
jmp 0x10607d2
Function at 0x1066b53
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10d01aa
call fcn.01077868
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
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 0x1066c28
push 0x5c
mov ecx, edi
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x1066c7a
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 sub.MFC42u.DLL_CString::operator_2
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 sub.MFC42u.DLL_CString::operator_2
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 0x1066c28
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CString::operator_1
jmp 0x1066c7f
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 0x1066c7f
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 0x1066cad
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d01c9
call fcn.01077868
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_5
push 0x100d524
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010762bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762a4
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 0x1066d63
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d01c9
call fcn.01077868
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
push 0x10042fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_5
push 0x100549c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.010762bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.010762a4
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 0x1066e19
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10d01e8
call fcn.01077868
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_5
xor ebx, ebx
push 0x100d530
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.010762bc
push 0x10042fc
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_5
push 0x100549c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.010762bc
call fcn.010508a4
push eax
lea ecx, [ebp + 8]
call fcn.010762bc
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 0x1067006
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10d0251
call fcn.01077868
sub esp, 0x218
mov eax, dword [0x10de03c]
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 0x1067091
push edi
push 0x100
lea eax, [ebp - 0x210]
push eax
push 0x100a54c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call sub.MFC42u.DLL_CString::CString_5
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_3
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
pop edi
jmp 0x106712d
call fcn.01021518
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_5
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_4
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push 0x100a440
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
call fcn.010762a4
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
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.01075bbb
leave
ret 8
Function at 0x1068dfd
Capabilities:
Create directory

Disassembly:
mov eax, 0x10d048e
call fcn.01077868
sub esp, 0x18
mov eax, dword [0x10de03c]
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_4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_4
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x1068f9a
cmp word [esi + 4], 0x5c
jne 0x1068f9a
mov edi, 0x1004528
push edi
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::operator_1
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010762bc
mov ebx, 0x1004204
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010762bc
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 fcn.010762bc
add esi, 6
push esi
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::operator_1
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 0x1068f9a
push 0x5c
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Find_2
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x1068f69
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 fcn.010762a4
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 sub.MFC42u.DLL_CString::operator_2
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 0x1068f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068f9c
push ebx
lea ecx, [ebp - 0x1c]
call fcn.010762bc
push 0x5c
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x1068ef0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.010762a4
xor esi, esi
push esi
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x1068f95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1068f9c
xor esi, esi
inc esi
jmp 0x1068f9c
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.01075bbb
leave
ret 8
Function at 0x106e77b
Capabilities:
Start service

Disassembly:
mov eax, 0x10d10d7
call fcn.01077868
sub esp, 0xc
push edi
push 0x100f724
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_5
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 0x106e7ee
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 0x106e7e2
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x106e7df
mov dword [ebp - 0x10], 1
jmp 0x106e7e2
push ebx
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], edi
pop esi
pop ebx
jne 0x106e803
push 1
push edi
push 0x30
push edi
push 0x4ede
push 0xfa9
call fcn.01054bf6
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 0x106e824
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x100f724
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString_5
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 0x106e88b
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 0x106e887
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x106e884
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