joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473168
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_PostQueuedCompletionStatus
mov eax, dword [esi + 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0x42000000
push 3
push 0
push 7
push 0xc0000000
mov eax, dword [esi + 0x68]
call fcn.004056f8
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
mov eax, esi
call fcn.0047315c
mov dword [esi + 0x44], edi
mov eax, esi
call fcn.004732f0
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4731d7
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
jne 0x4731f1
mov eax, esi
call fcn.0047315c
xor eax, eax
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x70], eax
mov eax, esi
call fcn.004732f0
jmp 0x473266
push 0
mov eax, dword [esi + 4]
push eax
push 0
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_CreateIoCompletionPort
mov ebx, eax
mov eax, esi
call fcn.0047315c
mov dword [esi + 0x70], ebx
mov eax, esi
call fcn.004732f0
xor eax, eax
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x90]
xor ecx, ecx
mov edx, 0x1000
call fcn.00403990
push 0
lea eax, [esi + 0x74]
push eax
lea eax, [esi + 0x8c]
push eax
mov eax, dword [esi + 0x88]
push eax
cmp byte [esi + 0x6c], 1
cmc
sbb eax, eax
push eax
push 0x1000
lea eax, [esi + 0x90]
push eax
mov eax, dword [esi + 0x44]
push eax
call sub.kernel32.dll_ReadDirectoryChangesW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4740f8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403990
ret
Function at 0x4744e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
xor edx, edx
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x410], edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x47475b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x474770
call fcn.0047434c
lea eax, [ebp - 0x3f0]
call fcn.00405268
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.004056f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47471c
xor eax, eax
push ebp
push 0x474715
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x4747b0
call fcn.0047434c
mov eax, dword [ebp - 0x408]
call fcn.004056f8
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4745e7
push ebp
mov eax, 0x4747dc
call fcn.0047443c
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x40c]
mov eax, 0x4747e8
call fcn.0047434c
mov eax, dword [ebp - 0x40c]
call fcn.004056f8
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x474671
push dword [ebp - 0x3f0]
push 0x474810
lea eax, [ebp - 0x410]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004054d8
push dword [ebp - 0x410]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004055fc
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x414]
mov eax, 0x47481c
call fcn.0047434c
mov eax, dword [ebp - 0x414]
call fcn.004056f8
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4746fb
push dword [ebp - 0x3f0]
push 0x474810
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004054d8
push dword [ebp - 0x418]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004055fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47471c
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.004052bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474762
lea eax, [ebp - 0x418]
mov edx, 5
call fcn.0040528c
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.0040528c
ret
Function at 0x47935c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056e8
xor eax, eax
push ebp
push 0x479497
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x479467
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004056f8
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.00409f68
test al, al
jne 0x4793d7
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00403728
lea eax, [ebp - 0x1d0]
call fcn.004034c4
call fcn.004030bc
push dword [0x50de80]
push 0x4794b0
push dword [0x50de84]
push 0x4794b0
push dword [0x50de88]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.004055fc
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.0047e2ac
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405a18
call fcn.00403de4
call fcn.004030bc
lea eax, [ebp - 0x1d0]
call fcn.004037f0
call fcn.004030bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x479471
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47949e
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.0040528c
lea eax, [ebp - 4]
call fcn.00405268
ret
Function at 0x47a378
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056e8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x47a4e0
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004737d8
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004737f8
mov ebx, eax
jmp 0x47a4b2
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004054d8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a184
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409418
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00409418
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00405690
je 0x47a492
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004054d8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00409418
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00409418
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405690
jne 0x47a4a7
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.00473818
mov ebx, eax
test ebx, ebx
jne 0x47a3f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a4e7
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040528c
lea eax, [ebp - 4]
call fcn.00405268
ret
Function at 0x47a88f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x47a8e9
mov eax, ebx
add eax, dword [eax + 0x3c]
mov edi, dword [eax + 0x78]
add edi, ebx
xor esi, esi
jmp 0x47a8e4
mov eax, dword [edi + 0x20]
lea edx, [ebx + eax]
mov eax, dword [edx + esi*4]
add eax, ebx
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x47a8e3
mov edx, dword [edi + 0x24]
lea ecx, [ebx + edx]
mov ax, word [ecx + esi*2]
movzx edx, ax
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + ecx]
mov eax, dword [eax + edx*4]
add eax, ebx
mov dword [ebp - 4], eax
inc esi
cmp esi, dword [edi + 0x18]
jb 0x47a8b0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x47b390
Capabilities:
Log keystrokes via application hook

Disassembly:
xor eax, eax
mov dword [0x50e048], eax
push 0x47b3d0
call sub.user32.dll_RegisterWindowMessageA
mov dword [0x50e048], eax
mov eax, dword [0x508320]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [0x50e04c], eax
push 0
mov eax, dword [0x50b7f8]
push eax
push 0x47b348
push 0xd
call sub.user32.dll_SetWindowsHookExA
mov dword [0x50e050], eax
ret

Function at 0x47b5f8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056e8
xor eax, eax
push ebp
push 0x47b6d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x47b6e8
mov edx, dword [ebp - 4]
call fcn.00405580
mov eax, dword [ebp - 8]
call fcn.004056f8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x47b642.0
jmp dword [eax*4 + 0x47b649]
mov eax, ebx
mov edx, 0x47b6f4
call fcn.004052bc
jmp 0x47b6b7
mov eax, ebx
mov edx, 0x47b708
call fcn.004052bc
jmp 0x47b6b7
mov eax, ebx
mov edx, 0x47b718
call fcn.004052bc
jmp 0x47b6b7
mov eax, ebx
mov edx, 0x47b72c
call fcn.004052bc
jmp 0x47b6b7
mov eax, ebx
mov edx, 0x47b73c
call fcn.004052bc
jmp 0x47b6b7
mov eax, ebx
mov edx, 0x47b750
call fcn.004052bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b6d9
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040528c
ret
Function at 0x401090
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x408c66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0xc]
push str.Sentry_cb.exe
lea eax, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov byte [esp + 0x11c], 1
push eax
push 0x8d
call fcn.00403430
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x11c], 0
call sub.MFC42.DLL_CString::CString
pop edi
test esi, esi
pop esi
je 0x401163
lea ecx, [esp + 4]
push str.Sentry_cb.exe
lea edx, [esp + 4]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 4]
mov dword [esp + 0x114], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x4014a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x408cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
lea eax, [esp + 8]
push esi
push eax
xor ebx, ebx
push 0x40e188
push 0x80000002
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x4015ef
lea ecx, [esp + 0x10]
push edi
push ecx
push 0x40e178
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0x40e160
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x1c]
push 1
push ebx
push str.DisplayIcon
push eax
call esi
push 0x40e178
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push 1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push str.DisplayName
push edx
call esi
push str.2.09
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push 1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push str.DisplayVersion
push edx
call esi
push str.C:OKGFileUninst.exe
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push 0xa
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push str.UninstallString
push edx
call esi
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ebx
push edx
push 0x40e0d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp dword [esp + 0xc], ebx
je 0x401670
push str.C:OKGFileOKGCon.exe__autoicon
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x40edfc]
mov dword [esp + 0x20], 1
cmp eax, ebx
je 0x40163b
push str.__hide
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
push 1
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push 0x40e0a8
push edx
call esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x40ed30]
push 0x40ed1c
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
pop esi
pop ebx
je 0x401698
mov eax, dword [0x40ed30]
push eax
call fcn.00402580
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x401790
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x40b680
push 1
push 0
push 0x40b670
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4018bc
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov al, byte [esp + 0x224]
test al, al
je 0x401862
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.HH.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
lea edx, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
pop edi
pop esi
pop ebx
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x40b690
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4018b2
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0x210
ret
Function at 0x4018d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x408d03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], ebx
call fcn.00408566
mov edx, dword [esp + 0x230]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
mov ebp, dword [edx - 8]
lea esi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
mov byte [esp + 0x230], 1
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
cmp eax, 1
jne 0x401987
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x401a33
sub ebp, 2
cmp ebp, ebx
jle 0x4019a0
cmp byte [esp + ebp + 0x18], 0x5c
je 0x40199e
mov byte [esp + ebp + 0x18], bl
dec ebp
cmp ebp, ebx
jg 0x40198e
cmp ebp, ebx
je 0x401a0a
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.004018d0
add esp, 4
cmp eax, ebx
je 0x401a0a
mov eax, dword [esp + 0x230]
push ebx
push eax
call esi
test eax, eax
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
je 0x401a15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x401a33
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x21c
ret
Function at 0x401ec0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x408d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
lea ecx, [esp + 4]
call fcn.00408566
mov eax, dword [esp + 0x18]
lea ecx, [esp + 4]
push eax
push 0x40e364
push ecx
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f88
mov eax, dword [esp + 0x1c]
push edi
mov ecx, eax
push 0
shr eax, 0x17
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
shl ecx, 9
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push 0
shl edx, 9
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4022d0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x402378
push 0xf01ff
push 0x40e380
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402371
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402352
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
je 0x402352
cmp dword [esp + 0x14], 3
jne 0x402352
push 0x3e8
call edi
lea edx, [esp + 0x10]
push edx
push esi
call ebx
test eax, eax
jne 0x402338
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebp
call esi
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
Function at 0x402380
Capabilities:
Create service
Get common file path
Start service

Disassembly:
push 0xffffffffffffffff
push 0x408dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0x40e388
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0
call sub.MFC42.DLL_CString::operator
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402472
mov edx, dword [esp + 8]
push 0
push 0
push 0x40ed1c
push 0
push 0
push edx
push 1
push 3
push 1
push 0xf01ff
push 0x40e380
push 0x40e380
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x402472
push ebx
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret