joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1060b66
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x10c07f6
call fcn.0106f6c0
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
xor ebx, ebx
push 0x100d598
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::operator_1
push 0x100437c
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString_4
push 0x100551c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
call fcn.0104b905
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 0x1060d21
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10c0841
call fcn.0106f6c0
sub esp, 0x20c
and dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0x270f
jl 0x1060d8c
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x218]
push eax
push 0x100a5c4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp + 0xc]
inc esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42u.DLL_CString::CString_5
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], esi
call sub.MFC42u.DLL_CString::CString
pop esi
jmp 0x1060e0e
call fcn.010207b0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_3
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x100a4b8
push eax
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10626e7
Capabilities:
Create directory

Disassembly:
mov eax, 0x10c0a09
call fcn.0106f6c0
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov esi, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0106e90a
push 0x3a
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
lea ecx, [esi + 2]
cmp eax, ecx
jne 0x106287b
cmp word [esi + 4], 0x5c
jne 0x106287b
mov edi, 0x10045a8
push edi
lea ecx, [ebp - 0x10]
call fcn.0106e90a
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_1
mov ebx, 0x1004284
push ebx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_1
mov ax, word [esi]
and word [ebp - 0x16], 0
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
mov word [ebp - 0x1a], 0x24
mov word [ebp - 0x18], 0x5c
call sub.MFC42u.DLL_CString::operator_1
add esi, 6
push esi
lea ecx, [ebp - 0x14]
call fcn.0106e90a
push 2
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
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 + 0xc]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
test esi, esi
jne 0x106287b
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_2
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x106284a
push esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
inc esi
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0106e8f8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
xor esi, esi
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1062837
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x106287d
push ebx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_1
push 0x5c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::Find_2
mov esi, eax
cmp esi, 0xffffffff
jne 0x10627d1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_2
xor esi, esi
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1062876
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x106287d
xor esi, esi
inc esi
jmp 0x106287d
xor esi, esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
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
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x106796d
Capabilities:
Start service

Disassembly:
mov eax, 0x10c1505
call fcn.0106f6c0
sub esp, 0xc
push edi
push 0x100f78c
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
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 0x10679e0
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 0x10679d4
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10679d1
mov dword [ebp - 0x10], 1
jmp 0x10679d4
push ebx
call esi
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x10], edi
pop esi
pop ebx
jne 0x10679f5
push 1
push edi
push 0x30
push edi
push 0x4ede
push 0xfa9
call fcn.0104f905
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 0x1067a11
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x100f78c
lea ecx, [ebp - 4]
call sub.MFC42u.DLL_CString::CString_4
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 0x1067a76
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 0x1067a72
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1067a6f
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
Function at 0x1069a2f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 1
mov edi, ecx
call sub.MFC42u.DLL_CWnd::UpdateData
xor eax, eax
xor esi, esi
cmp dword [edi + 0x68], esi
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a170
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1069a92
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x100f5f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x106fb86
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push 0x20
push 2
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x106fbc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x106fbde
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 4], edi
je 0x106fd0e
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push 4
push 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.NTMSAPI.dll_GetNtmsObjectSecurity
cmp eax, ebx
je 0x106fc1a
cmp eax, 0x7a
jne 0x106fd0e
mov esi, dword [ebp - 0x14]
jmp 0x106fbcf
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp word [eax + 4], bx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
jbe 0x106fcd8
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
sub ecx, ebx
je 0x106fc87
dec ecx
jne 0x106fd0e
mov esi, eax
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x106fcbe
cmp dword [ebp + 0x14], 2
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0x18]
jne 0x106fca5
or dword [esi + 4], eax
jmp 0x106fcbe
mov esi, eax
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x106fcbe
xor eax, eax
inc eax
cmp dword [ebp + 0x14], eax
mov dword [ebp - 0xc], eax
jmp 0x106fc7d
not eax
and dword [esi + 4], eax
jne 0x106fcbe
push edi
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
dec edi
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax + 4]
inc edi
cmp edi, ecx
jb 0x106fc42
cmp dword [ebp - 0xc], ebx
je 0x106fcd8
cmp dword [ebp - 0x10], ebx
je 0x106fced
cmp dword [ebp + 0x14], 1
jne 0x106fced
push dword [ebp - 8]
push dword [ebp + 0x18]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push dword [ebp - 4]
push 4
push 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.NTMSAPI.dll_SetNtmsObjectSecurity
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
jmp 0x106fd11
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x107307e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10c1973
call fcn.0106f6c0
sub esp, 0x78
push esi
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a170
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10730e8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0x100dd0c
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10730df
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
jne 0x1073117
push esi
lea ecx, [ebp - 0x84]
call fcn.01062d8c
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], esi
call fcn.0104f986
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1073124
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10c1988
call fcn.0106f6c0
sub esp, 0xa8
push esi
lea eax, [ebp - 0x1c]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a170
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10731af
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
mov edi, 0x100ae58
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x107319f
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10731a5
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp dword [ebp - 0x10], esi
jne 0x10731de
push esi
lea ecx, [ebp - 0xb4]
call fcn.0104faa8
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 4], esi
call fcn.0104f986
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x10731eb
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10c199d
call fcn.0106f6c0
sub esp, 0xb0
push esi
push edi
lea eax, [ebp - 0x24]
push eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a170
push 0x80000001
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10732c1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
mov edi, 0x100a13c
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x28
call ebx
test eax, eax
je 0x1073270
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1073276
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
mov edi, 0x100c7f4
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0x28
call ebx
test eax, eax
pop ebx
je 0x10732b2
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10732b8
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
cmp dword [0x10d73c0], esi
jne 0x10732cf
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x18], esi
jne 0x10732dc
cmp dword [0x10d73c4], esi
je 0x10732e7
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.01071bc8
cmp dword [ebp - 0x10], esi
jne 0x1073352
push dword [ebp + 8]
call fcn.01071891
test al, al
je 0x1073352
push esi
lea ecx, [ebp - 0xbc]
call fcn.0104b20c
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 4], esi
call fcn.0104f986
cmp eax, edi
jne 0x1073343
cmp dword [ebp - 0x50], esi
je 0x1073324
push dword [ebp + 8]
call fcn.01071bc8
cmp dword [ebp - 0x54], esi
je 0x1073343
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x100a13c
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call sub.MFC42u.DLL_CDialog::CDialog
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1077b8c
Capabilities:
Create thread

Disassembly:
push ecx
push 0xf
push dword [0x10ceff4]
call sub.NTMSAPI.dll_OpenNtmsNotification
cmp eax, 0xffffffff
mov dword [0x10d73d8], eax
je 0x1077bbf
lea eax, [esp]
push eax
xor eax, eax
push eax
push eax
push 0x1076594
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10d73d0], eax
pop ecx
ret
Function at 0x1078d29
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1078da2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 8]
push eax
push 0
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x1078d9d
push esi
add eax, 5
push edi
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x1078d9b
lea edi, [esi + 4]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x1078d93
cmp byte [esi + 5], 0x3a
jne 0x1078d93
mov al, byte [edi]
push esi
mov byte [esi + 3], 0x3d
mov byte [esi], 0x3d
mov byte [esi + 1], al
mov byte [esi + 2], 0x3a
call dword [sym.imp.msvcrt.dll__putenv]
test eax, eax
pop ecx
je 0x1078d9b
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
or eax, 0xffffffff
leave
ret

Function at 0x1078dc9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1078de8
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 2
or eax, 0xffffffff
ret
test al, 1
je 0x1078e01
test byte [esp + 8], 2
je 0x1078e01
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xd
jmp 0x1078de4
xor eax, eax
ret

Function at 0x1078e04
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1078e16
or eax, eax
ret
test byte [esp + 8], 0x80
je 0x1078e22
and eax, 0xfffffffe
jmp 0x1078e25
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
dec eax
ret

Function at 0x10790d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x220]
push 0x10045a8
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push 0xf003f
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x107915b
push esi
push edi
push 4
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x1079156
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1079153
cmp dword [ebp - 0x1c], 4
jne 0x1079153
mov dword [ebp - 4], 1
push edi
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
cmp dword [ebp - 4], eax
pop ebx
setne al
leave
ret 8
Function at 0x107cf2e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
lea eax, [ebp - 0x204]
push 0x10d8d98
push eax
xor ebx, ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x204]
push 0x1004284
push eax
call esi
lea eax, [ebp - 0x204]
push 0x1010688
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0x18
push 1
call esi
push ebx
push 0x80
push 4
push ebx
push ebx
mov dword [ebp - 4], eax
push 0xc0000000
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x107cfb6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x107cfc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
jne 0x107cfc4
xor ebx, ebx
inc ebx
push dword [ebp - 4]
call esi
pop esi
mov byte [0x10cf170], bl
mov ax, bx
pop ebx
leave
ret

Function at 0x107d310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
and dword [0x10dba2c], 0
push 0xa
pop ecx
push 0xa
or eax, 0xffffffff
mov edi, 0x10db9d4
rep stosd dword es:[edi], eax
pop ecx
or eax, 0xffffffff
mov edi, 0x10d9198
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push 0
push 0x100a170
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x107d3ad
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x10cf130
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10106c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x107d3a4
mov eax, dword [0x10cf130]
cmp eax, edi
jae 0x107d38b
mov eax, edi
cmp eax, 0x64
jbe 0x107d393
push 0x64
pop eax
imul eax, eax, 0xf4240
mov dword [0x10cf130], eax
mov dword [0x10dba2c], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [0x10db9cc], 0xffffffff
pop edi
leave
ret
Function at 0x107d489
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.0107d3b7
xor esi, esi
sub eax, esi
je 0x107d61b
dec eax
jne 0x107d663
mov ecx, dword [0x10db9cc]
cmp ecx, 0xffffffff
je 0x107d607
cmp dword [0x10dba0c], esi
jne 0x107d607
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [0x10cf168]
sub dword [ebp + 0x10], edx
cmp dword [0x10dba10], esi
jne 0x107d4df
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [0x10dba00]
mov ecx, dword [0x10cf12c]
cmp eax, ecx
jbe 0x107d4f4
sub eax, ecx
inc eax
inc eax
jmp 0x107d4fc
cmp eax, 2
jbe 0x107d4fc
push 2
pop eax
mov ecx, dword [ebp + 0x10]
shr ecx, 9
cmp ecx, eax
jae 0x107d508
mov eax, ecx
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push dword [ebp + 0x18]
mov ecx, eax
and ecx, 1
sub eax, ecx
shl eax, 9
push edi
mov ebx, eax
push ebx
push dword [ebp + 0xc]
push dword [0x10db9cc]
call esi
cmp dword [edi], 0
mov dword [ebp + 0x10], eax
jne 0x107d57d
call fcn.0107d1b4
mov ecx, dword [0x10dba00]
mov eax, ecx
shl eax, 9
cmp eax, ebx
jae 0x107d583
mov eax, dword [0x10cf12c]
cmp ecx, eax
jbe 0x107d557
sub ecx, eax
jmp 0x107d55e
push 2
pop eax
cmp ecx, eax
ja 0x107d560
mov eax, ecx
push dword [ebp + 0x18]
mov ecx, eax
and ecx, 1
push edi
sub eax, ecx
shl eax, 9
push eax
push dword [ebp + 0xc]
push dword [0x10db9cc]
call esi
mov dword [ebp + 0x10], eax
mov ecx, dword [0x10dba00]
cmp dword [ebp + 0x10], 0
pop ebx
je 0x107d58e
and dword [ebp + 0x10], 0
mov eax, dword [edi]
xor edx, edx
div dword [0x10cf168]
mov esi, eax
cmp dword [0x10dba04], esi
jae 0x107d5af
call fcn.0107d1b4
mov ecx, dword [0x10dba00]
jmp 0x107d5b5
sub dword [0x10dba04], esi
cmp ecx, esi
jbe 0x107d5c1
sub ecx, esi
mov dword [0x10dba00], ecx
cmp ecx, dword [0x10cf12c]
jae 0x107d5d3
mov dword [0x10dba20], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add dword [0x10dba10], esi
cmp dword [0x10dba2c], 0
mov dword [0x10d95c0], eax
je 0x107d663
mov eax, dword [0x10dba34]
add eax, dword [edi]
cmp eax, dword [0x10cf130]
mov dword [0x10dba34], eax
jbe 0x107d663
and dword [ebp + 0x10], 0
jmp 0x107d659
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], esi
mov dword [eax], esi
mov dword [0x10d95c0], 0x13
jmp 0x107d663
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0107d3d5
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x10dba2c], esi
mov dword [ebp + 0x10], eax
je 0x107d663
mov eax, dword [0x10dba34]
add eax, dword [edi]
cmp eax, dword [0x10cf130]
mov dword [0x10dba34], eax
jbe 0x107d663
mov dword [ebp + 0x10], esi
mov dword [0x10dba30], 1
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0x14