joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004daaf
Capabilities:
Set registry value

Disassembly:
push 0x228
mov eax, 0x102492b2
call fcn.10039bd9
xor eax, eax
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x21c], 7
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers_
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], esi
mov word [ebp - 0x230], ax
call fcn.10008a60
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 4], 2
call fcn.10004020
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.100aa4a0
add esp, 0xc
mov dword [ebp - 0x234], esi
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push esi
push ecx
push esi
push 0xf013f
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004dbc3
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp + 8]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004db71
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1004db89
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push esi
push 0x102c46e8
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.100094a0
lea ecx, [ebp + 8]
call fcn.100094a0
lea ecx, [ebp + 0x20]
call fcn.100094a0
mov al, 1
call fcn.10039b83
ret 0x30

Function at 0x1004dbe8
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x102492e2
call fcn.10039bd9
xor esi, esi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 4], esi
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.10008a60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004dc5c
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.100094a0
lea ecx, [ebp + 8]
call fcn.100094a0
call fcn.10039b83
ret 0x18
Function at 0x1004dc74
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push edi
cmovae eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ecx
push 0xf013f
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
je 0x1004dcce
push str.InprocServer32
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp + 0xc]
call fcn.100094a0
pop edi
leave
ret 0x1c

Function at 0x1004dcdb
Capabilities:
Delete registry key

Disassembly:
push 0x60
mov eax, 0x1024932f
call fcn.10039bd9
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
call fcn.1004ebd2
push eax
lea ecx, [ebp - 0x6c]
call fcn.1004d7d7
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
jmp 0x1004de11
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004dd24
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x40]
call fcn.10008a90
push str._shellexContextMenuHandlers_
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.10004090
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1004dd48
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.10008a90
push str._shellexDragDropHandlers_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10004090
xor edx, edx
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push SysReAllocString
mov dword [ebp - 0x5c], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004ddae
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, dword [ebp - 0x28]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push SysReAllocString
mov dword [ebp - 0x60], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004ddfa
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.100094a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.100094a0
add esi, 0x18
cmp esi, dword [ebp - 0x68]
jne 0x1004dd1a
lea ecx, [ebp - 0x6c]
call fcn.10040545
lea ecx, [ebp - 0x58]
call fcn.100094a0
lea ecx, [ebp + 8]
call fcn.100094a0
call fcn.10039b83
ret 0x18
Function at 0x1004de3a
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x102492e2
call fcn.10039bd9
xor esi, esi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 4], esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.10008a60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004deae
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.100094a0
lea ecx, [ebp + 8]
call fcn.100094a0
call fcn.10039b83
ret 0x18
Function at 0x1004e194
Capabilities:
Set registry value

Disassembly:
push 0x240
mov eax, 0x102493cc
call fcn.10039bd9
xor eax, eax
xor ebx, ebx
push 0x208
push eax
mov dword [ebp - 0x24c], eax
inc ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
call fcn.100aa4a0
add esp, 0xc
mov dword [ebp - 0x21c], 7
xor eax, eax
lea ecx, [ebp - 0x230]
xor esi, esi
mov word [ebp - 0x230], ax
mov dword [ebp - 0x220], esi
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
call fcn.10008a60
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x24c]
push ecx
push 0xf013f
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x230]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004e2c8
mov dword [ebp - 0x238], eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], eax
lea eax, [ebp + 0x20]
push eax
call fcn.10008bc0
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x248]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x1004e261
lea edx, [ebp - 0x218]
xor esi, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x1004e27b
sub edx, ecx
lea ecx, [ebp + 8]
sar edx, 1
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push esi
push ecx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x248]
call fcn.100094a0
jmp 0x1004e2cc
xor eax, eax
mov bl, al
lea ecx, [ebp - 0x230]
call fcn.100094a0
lea ecx, [ebp + 8]
call fcn.100094a0
lea ecx, [ebp + 0x20]
call fcn.100094a0
mov al, bl
call fcn.10039b83
ret 0x30
Function at 0x1004e82a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.100aa4a0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push 0x10253df8
push eax
call fcn.1004edfe
add esp, 0x18
lea eax, [ebp - 0x20c]
push esi
push esi
push eax
push str.regsvr32.exe
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [ebp + 8]
setg bl
call fcn.100094a0
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10039266
leave
ret 0x18

Function at 0x1004eb5d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.100aa4a0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push str._s__u___s_
push eax
call fcn.1004edfe
add esp, 0x18
lea eax, [ebp - 0x20c]
push esi
push esi
push eax
push str.regsvr32.exe
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 8]
call fcn.100094a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10039266
leave
ret 0x18
Function at 0x1004f20e
Capabilities:
Check if file exists

Disassembly:
push 0x70
mov eax, 0x10249657
call fcn.10039bd9
mov edi, ecx
mov eax, dword [ebp + 0x10]
push dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
call fcn.1004f19f
and dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov esi, eax
mov dword [ebp - 0x2c], 7
xor eax, eax
push str.UnKonw
mov word [ebp - 0x40], ax
call fcn.10008a60
and dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
and dword [ebp - 0x48], 0
xor eax, eax
push str.UnKonw
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.10008a60
mov byte [ebp - 4], 1
test esi, esi
je 0x1004f331
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1004f667
push 0x102c46e8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1004050d
test al, al
je 0x1004f2bf
push esi
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.1004f70b
push eax
lea ecx, [ebp - 0x28]
call fcn.10009250
lea ecx, [ebp - 0x70]
call fcn.100094a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004f325
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x40]
call fcn.10008a60
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.10008bc0
mov ecx, edi
call fcn.1004f097
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100094a0
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x40]
push eax
mov dword [ebx], esi
call fcn.1001d830
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x58]
push eax
call fcn.1001d830
lea ecx, [ebp - 0x58]
call fcn.100094a0
lea ecx, [ebp - 0x40]
call fcn.100094a0
call fcn.10039b83
ret 0x10
Function at 0x1004f42d
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102c46e8
mov dword [ebp - 0xa38], eax
call fcn.10008a60
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100aa4a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1004f4d1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x1004f4d1
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10008e60
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100aa4a0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1004f4e4
push ebx
call fcn.100396e1
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039266
leave
ret 8
mov eax, dword [0x10253818]
mov dword [ebp - 0xc], eax
mov ax, word [0x1025381c]
push 0x208
mov word [ebp - 8], ax
call fcn.10008e60
mov edi, eax
mov dword [ebp - 0xa34], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1004f559
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1004f5f8
push edi
call fcn.100396e1
push 2
call fcn.10008e60
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1004f5f8
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x1004f560
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100cc216
add esp, 0xc
test eax, eax
je 0x1004f5a8
mov esi, dword [ebp - 0xa34]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x1004f58a
movzx eax, word [esi]
mov dword [ebp - 0xa34], esi
test ax, ax
je 0x1004f5f8
jmp 0x1004f50c
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0xa18]
push 0x400
push eax
call fcn.10040ec0
add esp, 0x14
lea eax, [ebp - 0xa18]
lea ecx, [ebp - 0xa30]
push eax
call fcn.10008a90
mov ecx, dword [ebp - 0xa38]
push eax
call fcn.10009250
lea ecx, [ebp - 0xa30]
call fcn.100094a0
push ebx
call fcn.100396e1
push edi
call fcn.100396e1
pop ecx
pop ecx
mov al, 1
jmp 0x1004f4d3
Function at 0x1004f667
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.100aa4a0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1004f6eb
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x210]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1004f6e4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.10008a90
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10039266
leave
ret 8

Function at 0x1004f70b
Capabilities:
Enumerate processes

Disassembly:
push 0x470
mov eax, 0x102496ea
call fcn.10039bd9
mov dword [ebp - 0x478], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x47c], esi
mov edi, 0x102c46e8
mov dword [ebp - 0x21c], 7
xor ebx, ebx
mov word [ebp - 0x230], ax
push edi
mov dword [ebp - 0x220], ebx
call fcn.10008a60
push 0x22c
lea eax, [ebp - 0x474]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.100aa4a0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1004f789
push edi
mov ecx, esi
call fcn.10008a90
jmp 0x1004f8ca
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x22c
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1004f8b5
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x450]
push eax
call fcn.10008a60
mov byte [ebp - 4], 1
cmp dword [ebp - 0x46c], edi
je 0x1004f808
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.100094a0
lea eax, [ebp - 0x474]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1004f7ab
jmp 0x1004f8b5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100aa4a0
add esp, 0xc
push dword [ebp - 0x46c]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1004f8aa
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008a60
push 0x102c46e8
lea ecx, [ebp - 0x230]
call fcn.1004050d
test al, al
je 0x1004f8aa
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.1004f42d
push 0x102c46e8
lea ecx, [ebp - 0x230]
call fcn.1004050d
test al, al
je 0x1004f8aa
lea eax, [ebp - 0x450]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008a60
lea ecx, [ebp - 0x248]
call fcn.100094a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.100044a0
lea ecx, [ebp - 0x230]
call fcn.100094a0
mov eax, esi
call fcn.10039b83
ret 8
Function at 0x1004ff4f
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004ff7e
push 2
pop eax
jmp 0x10050010
push 0x102c455c
push 0x102c4570
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.1004fb54
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.100aa4a0
add esp, 0x1c
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, str.runas
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x10050006
cmp dword [ebp + 0x10], 0
je 0x10050006
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.100094a0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039266
leave
ret

Function at 0x10050643
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x10050f25
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x10050f3a
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10050f5c
mov al, 1
jmp 0x10050fed
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10008e60
push esi
mov ebx, eax
push 0
push ebx
call fcn.10003560
push dword [ebp + 8]
push esi
push ebx
call fcn.100ca847
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x10050f9b
cmp eax, 0x2f
jne 0x10050fd7
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10050fd0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10050fde
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x10050fd0
push ebx
mov ecx, eax
call fcn.10050edf
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x10050f8d
jmp 0x10050fe2
mov byte [ebp - 1], 0
push ebx
call fcn.100396e1
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10052247
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.100aa4a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x100522b2
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x100522c0
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.10008a90
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10039266
leave
ret

Function at 0x10052775
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98c
mov eax, dword [0x102de06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push edi
push 0x48
pop edi
push edi
xor ebx, ebx
mov dword [ebp - 0x968], esi
push ebx
push eax
call fcn.100aa4a0
mov dword [ebp - 0x958], edi
lea eax, [ebp - 0x94c]
mov edi, 0x800
push edi
push ebx
push eax
call fcn.100aa4a0
mov dword [ebp - 0x960], edi
lea eax, [ebp - 0x14c]
mov edi, 0x100
push edi
push ebx
push eax
call fcn.100aa4a0
push 0x10253ef0
mov dword [ebp - 0x95c], edi
mov dword [ebp - 0x954], ebx
mov dword [ebp - 0x950], ebx
mov dword [ebp - 0x964], ebx
call fcn.10052943
add esp, 0x28
test eax, eax
je 0x100528f5
push str.SeRestorePrivilege
call fcn.10052943
pop ecx
test eax, eax
je 0x100528f5
lea eax, [ebp - 0x958]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x96c]
push eax
lea eax, [ebp - 0x95c]
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x960]
push eax
lea eax, [ebp - 0x94c]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x100528f5
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x98c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x964]
xor edi, edi
push eax
push ebx
lea eax, [ebp - 0x950]
inc edi
push eax
push ebx
push ebx
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
push 3
push edi
push 0x10000000
push str.everyone
lea eax, [ebp - 0x98c]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x954]
push eax
push dword [ebp - 0x950]
lea eax, [ebp - 0x98c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x100528f5
push ebx
push ebx
push ebx
lea eax, [ebp - 0x94c]
push eax
push edi
push edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
call esi
push ebx
push dword [ebp - 0x954]
lea eax, [ebp - 0x94c]
push ebx
push eax
push 5
push edi
push dword [ebp - 0x968]
call esi
test eax, eax
cmove ebx, edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039266
leave
ret