joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4045d0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
call fcn.004031b0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jne 0x404614
call fcn.004031b0
push str.uns::OpenSCManager_Failed
push 0x411a34
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push 0x100a4
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x404657
call fcn.004031b0
push str.uns::OpenService_Failed
push 0x411a34
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x404693
call fcn.004031b0
push str.uns::QueryServiceStatus_Failed
push 0x411a34
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20], 1
je 0x404775
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0
call edi
push 0
push 0
push 0
push 0
call fcn.00403510
add esp, 0x10
lea edx, [ebp - 0x24]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
call ebx
push 0
push 0
mov dword [ebp + 8], eax
call edi
push 0
push 0
push 0
push 0
call fcn.00403510
add esp, 0x10
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40473b
cmp dword [ebp - 0x3c], 1
je 0x40473b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, dword [ebp + 8]
cmp eax, 0x2710
jae 0x40473b
push 0
push 0
call edi
push 0
push 0
push 0
push 0
call fcn.00403510
add esp, 0x10
lea ecx, [ebp - 0x40]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4046f9
mov eax, dword [ebp - 8]
test eax, eax
jne 0x404772
call fcn.004031b0
push str.uns::ControlService__WaitServiceStatus__SERVICE_CONTROL_STOP__Failed
push 0x411a34
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [ebp - 4]
push edx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
call fcn.004031b0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a30
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
mov edx, dword [ebp + 0x10]
push 0
mov eax, dword [ebp + 0xc]
push 0
push 0
lea ecx, [ebp - 0x104]
push 0
push ecx
mov ecx, dword [ebp + 8]
push 1
push 2
push 0x10
push 0xf01ff
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esp, ebp
pop ebp
ret
Function at 0x403bd0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405a28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
push str..PhysicalDrive0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00405402
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403c95
push edi
push 0
push 0
push reloc.USER32.dll_IsIconic
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x200
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x403c95
push ebx
call fcn.00403bc0
add esp, 4
mov dword [esp + 0x18], 0xffffffff
test eax, eax
lea ecx, [esp + 8]
je 0x403ca1
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403cc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x405a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp]
push esi
push eax
call fcn.00403b40
add esp, 4
push str.XSBInst.exe
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::operator_1
mov esi, dword [sym.imp.MSVCRT.dll__access]
push 0
push str.C:OKGFilembrbk
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x403d56
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
push str.__restoreC:OKGFilembrbk__hd0_
push ecx
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
jmp 0x403da8
push 0
push str.C:OKGFilembr1
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x403dad
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
push str.__restoreC:OKGFilembr1__hd0_
push ecx
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4049d0
Capabilities:
Create process on windows

Disassembly:
push esi
push 0
push 0
push str._UnregServer
push str.C:OKGFileOKSvr.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
push str.OKGCon.exe
call fcn.00404760
push str.InitData.exe
call fcn.00404760
push str.TadMan.exe
call fcn.00404760
add esp, 0xc
push 0x1f4
call esi
push str.OKSvr.exe
call fcn.00404760
add esp, 4
pop esi
ret

Function at 0x404a30
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareMicroSoftWindowsCurrentVersionUninstall
push 0x80000002
mov dword [esp + 0x20], esi
call edi
test eax, eax
jne 0x404a5f
mov esi, dword [esp + 0xc]
push 0x408310
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x404a7a
push esi
call ebx
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0xf003f
push 0
push str.SoftwareMicroSoftWindowsCurrentVersionRun
push 0x80000002
call edi
test eax, eax
jne 0x404aa9
test esi, esi
je 0x404aa5
push esi
call ebx
mov esi, dword [esp + 0xc]
push str.OKGInit
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test esi, esi
je 0x404abc
push esi
call ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x404da0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x554
push esi
mov esi, dword [esp + 0x55c]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x404ecc
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x35c]
push esi
push ecx
call edi
lea edx, [esp + 0x35c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
mov byte [eax + 1], 0
test byte [esp + 0x14], 0x10
je 0x404e6d
lea eax, [esp + 0x40]
push 0x408358
push eax
call ebp
test eax, eax
je 0x404e98
lea ecx, [esp + 0x40]
push 0x408354
push ecx
call ebp
test eax, eax
je 0x404e98
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push str..
push eax
call esi
lea ecx, [esp + 0x154]
push ecx
call fcn.00404da0
add esp, 4
jmp 0x404e98
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404e04
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x554
ret
Function at 0x404ee0
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x405c2b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, str._USERPROFILE_
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x40506e
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x40506e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
push esi
push str.ProfilesDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._c:_s_s
push ecx
mov dword [esp + 0x248], esi
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xd]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x234], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x405300
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405c7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x10]
push str..PhysicalDrive0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], 0
call fcn.00405402
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40539c
push 0
push 0
push reloc.USER32.dll_IsIconic
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x403a27
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0047c4ed
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0047c4ed
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0047c4ed
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 4
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x403ae4
push 6
call fcn.0047c4f3
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403afd
push ebx
call fcn.0047c4e7
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 5
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x403b2c
push 6
call fcn.0047c4f3
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x537338
mov eax, 6
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x403b56
push 6
call fcn.0047c4f3
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 7
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x403bea
push 6
call fcn.0047c4f3
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 8
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x403c0f
push 6
call fcn.0047c4f3
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x403c17
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403c28
push ebx
call fcn.0047c4e7
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0047c4e7
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0047c4e7
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0047c4e7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x4708e4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 8
call fcn.0047c4ed
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0047c4ed
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
push 0x10
call fcn.0047c4ed
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x20], esp
mov eax, 0x50
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x4709a1
push 6
call fcn.0047c4f3
add esp, 4
mov dword [ebp - 4], eax
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4709ba
push ebx
call fcn.0047c4e7
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], esp
lea eax, [ebp - 0xc]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x51
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x4709e9
push 6
call fcn.0047c4f3
add esp, 4
mov dword [ebp - 0x20], esp
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x537338
mov eax, 0x52
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x470a13
push 6
call fcn.0047c4f3
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x20]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx], 2
mov dword [ebp - 0x20], esp
mov eax, 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push 0x1c
push dword [ebp - 0x14]
push 0
push dword [ebp - 0xc]
mov eax, 0x53
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x470aa7
push 6
call fcn.0047c4f3
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
mov eax, 0x54
call fcn.0047c4f9
cmp dword [ebp - 0x20], esp
je 0x470acc
push 6
call fcn.0047c4f3
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x470ad4
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x470ae5
push ebx
call fcn.0047c4e7
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0047c4e7
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0047c4e7
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.0047c4e7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x48a450
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x52c1eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005205da
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x48a4d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0051dc05
mov eax, dword [eax]
push 0x5a92a4
push eax
call fcn.004fc3e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00520865
test bl, bl
je 0x48a4d2
push 0x5a92a4
lea ecx, [esp + 0xc]
call fcn.00520bf5
push 0x5ace2c
lea ecx, [esp + 0xc]
call fcn.00520bf5
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x48a50e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00520865
jmp 0x48a5d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x48a592
lea edx, [esp + 0x7c]
push 0x5ace28
push edx
call fcn.004fc3e4
add esp, 8
test eax, eax
je 0x48a592
lea eax, [esp + 0x7c]
push 0x5ace24
push eax
call fcn.004fc3e4
add esp, 8
test eax, eax
je 0x48a592
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48a522
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00520865
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x48add0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x48ae32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc