joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
or esi, 0xffffffff
push str.CONIN_
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
jne 0x408e6d
mov eax, esi
jmp 0x408ee8
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x408e85
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x408ece
cmp dword [ebp - 8], 1
jne 0x408ece
movzx eax, byte [ebp - 4]
mov dword [ebp - 0x10], eax
cmp eax, 0xa
jne 0x408ece
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x408ece
cmp dword [ebp - 8], 1
jne 0x408ece
movzx eax, byte [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x408ede
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409013
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40905e
push 0xea60
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40905e
push str.Child_process_is_still_running.
call fcn.00410675
pop ecx
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret

Function at 0x409074
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa008
call fcn.00410740
mov eax, dword [0x423410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xa004]
push 0xa000
push eax
call fcn.00403132
pop ecx
pop ecx
test eax, eax
je 0x4090f0
mov esi, dword [ebp - 0x9fc8]
lea esi, [ebp + esi - 0xa004]
movzx eax, word [esi + 0x14]
lea ebx, [eax + esi + 0x18]
xor eax, eax
xor edi, edi
cmp ax, word [esi + 6]
jae 0x4090f0
mov dword [ebp - 0xa008], ebx
push str..rsrc
push dword [ebp - 0xa008]
call fcn.0040b400
pop ecx
pop ecx
test eax, eax
je 0x409103
movzx eax, word [esi + 6]
add dword [ebp - 0xa008], 0x28
inc edi
cmp edi, eax
jl 0x4090ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor edx, edx
pop ebx
call fcn.0040da8f
leave
ret
imul edi, edi, 0x28
lea esi, [edi + ebx]
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.Payload_Size__lx_from__lx_n
call fcn.00410675
mov eax, dword [esi + 0x14]
add esp, 0xc
add eax, dword [esi + 0x10]
jmp 0x4090f2
Function at 0x4096ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.0040ff81
pop ecx
pop ecx
test eax, eax
jne 0x4097d2
mov ecx, esi
call fcn.0040926a
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4097ce
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4097cd
cmp dword [ebp - 4], 0
lea esi, [ebx + 0x28]
jne 0x40977b
lea edx, [ebp - 0x1c]
call fcn.004086b7
cmp dword [ebp - 0xc], 0
jne 0x409757
cmp dword [ebp - 8], 0
jne 0x409757
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x24], eax
jmp 0x409762
lea esi, [ebx + 0x20]
lea edx, [ebp - 0xc]
call fcn.004086b7
cmp dword [ebp - 0x14], 0
jne 0x40976e
cmp dword [ebp - 0x10], 0
je 0x4097b4
lea esi, [ebx + 0x30]
lea edx, [ebp - 0x14]
call fcn.004086b7
jmp 0x4097cd
lea edi, [ebp - 0x1c]
call fcn.00408719
cmp dword [ebp - 0xc], 0
jne 0x40979d
cmp dword [ebp - 8], 0
jne 0x40979d
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x24], eax
jmp 0x4097a8
lea esi, [ebx + 0x20]
lea edi, [ebp - 0xc]
call fcn.00408719
cmp dword [ebp - 0x14], 0
jne 0x4097c2
cmp dword [ebp - 0x10], 0
jne 0x4097c2
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x34], eax
jmp 0x4097cd
lea esi, [ebx + 0x30]
lea edi, [ebp - 0x14]
call fcn.00408719
pop edi
xor eax, eax
jmp 0x409829
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x409826
test al, 0x10
je 0x409826
push 0x38
push 0
push ebx
call fcn.0040e4c0
push 0x210000
call fcn.00403814
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
shl eax, 7
not eax
and eax, 0x80
add esp, 0x10
or eax, 0x4100
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x24], edx
mov word [ebx + 6], ax
jmp 0x4097ce
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x40982d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x423410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x350]
push eax
mov esi, 0x104
push esi
push edi
call fcn.004091ac
cmp dword [ebp - 0x350], 0x101
jbe 0x40986c
or eax, 0xffffffff
jmp 0x40995f
push ebx
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00409124
push 0x41e684
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00409159
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x40995e
lea eax, [ebp - 0x320]
push 0x41dc5c
push eax
call fcn.0040b400
pop ecx
pop ecx
test eax, eax
je 0x409937
lea eax, [ebp - 0x320]
push 0x41e680
push eax
call fcn.0040b400
pop ecx
pop ecx
test eax, eax
je 0x409937
push edi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00409124
push 0x41e67c
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00409159
lea eax, [ebp - 0x320]
push eax
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00409159
test byte [ebp - 0x34c], 0x10
je 0x40992a
lea eax, [ebp - 0x108]
push eax
call fcn.0040982d
pop ecx
test eax, eax
js 0x40996d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x34c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4098ae
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040da8f
leave
ret
or eax, 0xffffffff
jmp 0x40995e
Function at 0x40da8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423410]
jne 0x40da99
repz ret
jmp fcn.00414962

Function at 0x418e30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041273b
and dword [ebp - 0x14], 0
cmp dword [0x424e18], 0
mov dword [ebp - 0x18], eax
jne 0x418ee3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418f8b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x418f8b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x424e18], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x424e1c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x424e20], eax
call edi
push eax
call esi
mov dword [0x424e28], eax
test eax, eax
je 0x418ee3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x424e24], eax
mov eax, dword [0x424e24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418f3c
cmp dword [0x424e28], ecx
je 0x418f3c
push eax
call esi
push dword [0x424e28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418f3c
test ebx, ebx
je 0x418f3c
call edi
test eax, eax
je 0x418f33
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418f33
test byte [ebp - 8], 1
jne 0x418f3c
or dword [ebp + 0x10], 0x200000
jmp 0x418f6f
mov eax, dword [0x424e1c]
cmp eax, dword [ebp - 0x18]
je 0x418f6f
push eax
call esi
test eax, eax
je 0x418f6f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418f6f
mov eax, dword [0x424e20]
cmp eax, dword [ebp - 0x18]
je 0x418f6f
push eax
call esi
test eax, eax
je 0x418f6f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x424e18]
call esi
test eax, eax
je 0x418f8b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418f8d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040da8f
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x41bca6
call fcn.0040d953
and dword [eax], 0
call fcn.0040d940
mov dword [eax], 0x16
call fcn.00411ca3
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41bcc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d966
pop ecx
jmp 0x41bca1
test byte [ebp + 0xc], 0x80
je 0x41bcce
and eax, 0xfffffffe
jmp 0x41bcd1
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x41bcb4
xor eax, eax
pop ebp
ret
Function at 0x10037012
Capabilities:
Packed with generic packer

Disassembly:
pushal
call fcn.10037021
nop
outsb dx, byte [esi]
add eax, dword [eax]
jmp 0x10037227
popal
jmp loc.100020e0
Function at 0x48acb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
xor ebx, ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f34
mov eax, dword [ebp - 8]
call fcn.00404f34
mov eax, dword [ebp - 0xc]
call fcn.00404f34
xor eax, eax
push ebp
push 0x48ae63
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x48ae08
lea eax, [ebp - 0x1c]
mov edx, 0x105
call fcn.004050d0
push 0
push 0x10
mov eax, dword [ebp - 0x1c]
call fcn.00404f44
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
mov eax, dword [ebp - 0x1c]
call fcn.00404f44
mov edx, eax
lea eax, [ebp - 0x128]
call fcn.004037b8
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x28]
call fcn.00404ce8
push dword [ebp - 0x28]
push 0x48ae78
push dword [ebp - 4]
push 0x48ae84
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404e04
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.0040530c
lea edx, [ebp - 0x10]
mov eax, dword [0x48e62c]
call fcn.00462860
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, 0x48ae8c
call fcn.004065bc
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov ecx, 0x48ae9c
call fcn.004065bc
mov eax, dword [ebp - 0xc]
call fcn.00404f44
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea edx, [ebp - 0x12c]
mov eax, dword [0x48e8ac]
mov eax, dword [eax]
call fcn.004604ac
mov eax, dword [ebp - 0x12c]
call fcn.00404f44
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 8]
call fcn.00404f44
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push 0
mov eax, dword [ebp - 0x20]
call fcn.0040531c
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ae6a
lea eax, [ebp - 0x12c]
call fcn.00404a84
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404aa8
lea eax, [ebp - 0x20]
call fcn.004051b8
lea eax, [ebp - 0x1c]
call fcn.00404a84
lea eax, [ebp - 0x18]
call fcn.00406578
lea eax, [ebp - 0x14]
call fcn.00406578
lea eax, [ebp - 0x10]
call fcn.00406578
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404aa8
ret
Function at 0x10045c0
Capabilities:
Create directory
Get disk information
Get file attributes

Disassembly:
mov eax, 0x100bf78
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString
mov esi, dword [ebp + 8]
push ebx
push ebx
push ebx
push 4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.MSVCRT.dll__wsplitpath]
add esp, 0x14
or esi, 0xffffffff
lea ecx, [ebp - 0x10]
push esi
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
je 0x100461c
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x1004628
push esi
push ebx
push 0xef68
jmp 0x10046cd
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
cmp eax, esi
jne 0x10046a7
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push 0xef6a
push eax
call sub.MFC42u.DLL_AfxFormatString1
push ebx
push 4
push dword [ebp - 0x14]
call sub.MFC42u.DLL_AfxMessageBox_1
cmp eax, 7
je 0x100467e
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100468c
push esi
push ebx
push 0xef6b
call sub.MFC42u.DLL_AfxMessageBox
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0100b582
jmp 0x10046d2
push dword [ebp + 8]
call edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0100b582
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x10046c6
test al, 0x10
je 0x10046c6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0100b582
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0100b582
push 1
pop eax
jmp 0x10046ea
push esi
push ebx
push 0xef69
call sub.MFC42u.DLL_AfxMessageBox
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0100b582
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0100b582
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x1004c52
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100bff4
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov ecx, edi
mov dword [ebp - 4], esi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 5
push esi
push esi
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0100b582
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x1004ca2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100c008
call sub.MSVCRT.dll__EH_prolog
push ecx
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 5
push 0
push 0
push dword [ebp - 0x10]
push 0x1001c48
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0100b582
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x1004cf6
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100c01c
call sub.MSVCRT.dll__EH_prolog
push ecx
push edi
mov edi, ecx
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call sub.MFC42u.DLL_CWnd::GetWindowTextW
push 5
push 0
push 0
push dword [ebp - 0x10]
push 0x1001c58
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0100b582
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x10053ad
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
lea eax, [ebp - 0x134]
push edi
push eax
mov dword [ebp - 0x134], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005481
cmp dword [ebp - 0x124], 2
jne 0x1005443
xor esi, esi
push 0x80000000
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x1005481
push 4
push 0x1001ed4
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 7
mov esi, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1005432
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x1005483
cmp dword [ebp - 0x124], 1
jne 0x1005481
xor esi, esi
push 0x1001eb8
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, esi
je 0x100547d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
sub esi, 0xb7
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1005483
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10059db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x100c1a8
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov esi, dword [ebp + 0xc]
mov eax, 0x208
push 1
push eax
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [ebp + 8]
push eax
push 2
push 0xbb9
push esi
call fcn.0100b249
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call sub.MFC42u.DLL_CString::ReleaseBuffer
test esi, esi
je 0x1005a43
push dword [ebp - 0x10]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005a43
test al, 0x10
je 0x1005a43
push 1
pop esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0100b582
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0100b582
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 8

Function at 0x10080f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 1
call sub.MFC42u.DLL_CWnd::UpdateData
mov eax, dword [esi + 0x440]
xor ebx, ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20006
mov edi, 0x1002b1c
push ebx
mov esi, 0x80000001
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x1008150
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push 0x1001874
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1008170
lea eax, [ebp - 8]
push 4
push eax
push 4
push ebx
push 0x1002b04
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
pop ebx
leave
ret

Function at 0x1008175
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 4
xor edi, edi
pop eax
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1002b1c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x10081bd
push edi
push edi
push 0x14e
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10081fd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x1002b04
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
push edi
jne 0x10081e2
push dword [ebp - 0x10]
jmp 0x10081e3
push edi
push 0x14e
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x10096f6
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov eax, 0x100c9c4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x21c
push esi
lea eax, [ebp - 0x14]
push edi
push eax
xor esi, esi
push 0x20019
push esi
push 0x1002e44
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x1009763
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x1002e2c
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x1009767
xor eax, eax
jmp 0x10097af
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_1
push 0x1002e10
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0100ba1a
push esi
push esi
push 0x1002dfc
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0100b582
push 0x20
pop eax
cmp eax, esi
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x1009a3b
Capabilities:
Get hostname

Disassembly:
mov eax, 0x100ca34
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x114
lea ecx, [ebp - 0x18]
call fcn.0100a245
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0100a2bf
cmp eax, 2
je 0x1009a68
xor eax, eax
jmp 0x1009ab5
mov ecx, dword [ebp + 8]
push 0xef3f
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x120]
push 0x105
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0100b582
push 1
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1009cc9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push eax
push 0x20019
push 0
push 0x1003164
mov esi, ecx
push 0x80000002
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], 0x105
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1009d11
push 0xffffffffffffffff
push 0
push 0xef14
call sub.MFC42u.DLL_AfxMessageBox
xor eax, eax
jmp 0x1009d66
push edi
add esi, 0x54
push dword [ebp - 4]
mov ecx, esi
call sub.MFC42u.DLL_CString::GetBuffer
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1002e2c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x1009d5e
push 0xffffffffffffffff
push 0
push 0xef14
call sub.MFC42u.DLL_AfxMessageBox
xor eax, eax
test edi, edi
sete al
pop edi
pop esi
leave
ret