joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009ddb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x22c
push 0x10040e58
call fcn.100370a0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x238], eax
xor esi, esi
mov dword [ebp - 0x228], esi
mov edi, 0x208
push edi
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100207d0
add esp, 0xc
mov dword [ebp - 4], esi
lea eax, [ebp - 0x230]
push eax
push 0x20019
push esi
push dword [ebp - 0x22c]
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10009e5a
or esi, 0xffffffff
jmp 0x10009efc
mov eax, dword [ebp + 0x14]
dec eax
je 0x10009e9d
dec eax
je 0x10009e9d
dec eax
je 0x10009e73
dec eax
jne 0x10009f02
mov dword [ebp - 0x22c], edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x238]
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp - 0x234]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x10009efc
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp - 0x234]
mov dword [ebp - 0x22c], edi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009efc
push 0x1003d50c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10009e52
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.10009f1c
mov eax, esi
call fcn.100370e8
ret

Function at 0x10009f33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x14]
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10009f61
xor al, al
jmp 0x10009fc9
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10009fa8
push dword [ebp - 8]
call fcn.10019ca9
pop ecx
mov dword [ebx], eax
cmp eax, esi
je 0x10009fa8
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call edi
test eax, eax
je 0x10009fb5
push dword [ebx]
call fcn.1001d3d4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x10009fc8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009fcd
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 2
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a020
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1000a013
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x1000a022
xor al, al
pop ebx
leave
ret

Function at 0x1000a025
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10038230
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x10045390]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x10045390]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
xor ebx, ebx
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000a19b
mov dword [esp + 0x18], 0x104
jmp 0x1000a138
push dword [esp + 0x1c]
xor eax, eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
call fcn.1000d237
lea eax, [esp + 0x20]
push 0x1003d9d0
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x298], ebx
call fcn.1000ddd6
lea ecx, [esp + 0x7c]
push ecx
push eax
lea eax, [esp + 0x68]
mov byte [esp + 0x2a0], 1
call fcn.1000ddd6
add esp, 0x10
mov byte [esp + 0x290], 2
cmp dword [eax + 0x14], 8
jb 0x1000a106
mov eax, dword [eax]
push eax
call fcn.1000a025
pop ecx
push 1
xor edi, edi
lea esi, [esp + 0x5c]
call fcn.1000d2c7
push 1
lea esi, [esp + 0x40]
call fcn.1000d2c7
or dword [esp + 0x290], 0xffffffff
push 1
lea esi, [esp + 0x24]
call fcn.1000d2c7
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x88]
push eax
push ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1000a09a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x1c]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [esp + 0x1c]
push ecx
push 0x1003d9d4
push 0x1004b570
call fcn.1000de5f
add esp, 0xc
push eax
call fcn.1000de5f
push eax
call fcn.10007c85
add esp, 0xc
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.1001c645
mov esp, ebp
pop ebp
ret
Function at 0x1000a2fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
push str.wininet.dll
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.InternetOpenW
push ebx
call esi
push str.InternetOpenUrlW
push ebx
mov dword [ebp - 0x14], eax
call esi
push str.InternetCloseHandle
push ebx
mov dword [ebp - 0x10], eax
call esi
push str.InternetReadFile
push ebx
mov dword [ebp - 0x18], eax
call esi
push edi
push edi
push edi
push edi
push str.Default_User_Agent
mov dword [ebp - 0x1c], eax
call dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x1000a371
cmp ebx, edi
je 0x1000a36a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x1000a42f
push edi
push 0x400000
push edi
push edi
push dword [ebp + 8]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x1000a35f
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x1000a40e
mov esi, 0xffff
push esi
mov dword [ebp - 4], esi
call fcn.10019ca9
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x14]
call dword [ebp - 0x1c]
test eax, eax
je 0x1000a3e4
cmp dword [ebp - 0xc], edi
je 0x1000a405
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000a3b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000a405
push dword [ebp - 8]
call fcn.1001d3d4
add dword [ebp - 4], esi
push dword [ebp - 4]
call fcn.10019ca9
pop ecx
jmp 0x1000a3b1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x14]
call dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [ebp - 0x18]
cmp ebx, edi
je 0x1000a42d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a434
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5b4
mov eax, dword [0x10045390]
xor eax, esp
mov dword [esp + 0x5b0], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, 0xb6
mov esi, ebx
lea edi, [esp + 0x10]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x2ce
mov word [esp + 0x2ec], ax
xor esi, esi
lea eax, [esp + 0x2ee]
push esi
push eax
call fcn.100207d0
add esp, 0xc
push esi
push esi
push 2
push esi
push 1
push 0x40000000
lea eax, [esp + 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000a4ab
xor eax, eax
jmp 0x1000a53d
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffd28
push eax
add ebx, 0x2d8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000a4a4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1000a507
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x2f0]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x1000a51d
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x14]
sub eax, esi
je 0x1000a52b
dec eax
jne 0x1000a53a
push esi
jmp 0x1000a52d
push 5
lea ecx, [esp + 0x2ec]
call fcn.1000a552
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x5bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001c645
mov esp, ebp
pop ebp
ret
Function at 0x1000a552
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x10045390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
push esi
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0xa08], edi
call fcn.100207d0
push 0x2e
push edi
call fcn.1001e371
mov edi, eax
add esp, 0x14
cmp edi, ebx
jne 0x1000a59d
xor al, al
jmp 0x1000a776
xor eax, eax
push 0x206
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.100207d0
push 0x20
push edi
call fcn.1001e371
add esp, 0x14
push edi
test eax, eax
je 0x1000a5de
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x1000a5d7
cmp word [edi + eax*2], 0x20
je 0x1000a5e4
dec eax
cmp eax, ebx
jg 0x1000a5d0
jmp 0x1000a5fa
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1001ddc3
add esp, 0x10
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
lea eax, [ebp - 0x414]
push eax
mov edi, SysReAllocString
push edi
call fcn.10009ddb
add esp, 0x18
test eax, eax
je 0x1000a596
push 0x3e8
lea eax, [ebp - 0xa04]
push ebx
push eax
call fcn.100207d0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa04]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100207d0
xor eax, eax
push 0x206
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push ebx
push eax
call fcn.100207d0
push esi
lea eax, [ebp - 0x61c]
push eax
push 2
push ebx
lea eax, [ebp - 0xa04]
push eax
push edi
call fcn.10009ddb
add esp, 0x48
test eax, eax
je 0x1000a596
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push 0x1003db28
push eax
call fcn.1001e39f
pop ecx
pop ecx
cmp eax, ebx
jne 0x1000a705
lea eax, [ebp - 0x20c]
push 0x1003db30
push eax
call fcn.1001e39f
pop ecx
pop ecx
cmp eax, ebx
jne 0x1000a705
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1003db38
lea eax, [ebp - 0x20c]
push eax
call esi
push dword [ebp - 0xa08]
lea eax, [ebp - 0x20c]
push eax
call esi
jmp 0x1000a712
push dword [ebp - 0xa08]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40
lea eax, [ebp - 0xa48]
push ebx
push eax
call fcn.100207d0
add esp, 0xc
mov dword [ebp - 0xa4c], 0x44
cmp dword [ebp + 8], ebx
je 0x1000a73f
mov dword [ebp - 0xa44], str.WinSta0Default
jmp 0x1000a752
xor eax, eax
mov dword [ebp - 0xa20], 1
mov word [ebp - 0xa1c], ax
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0xa4c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c645
leave
ret
Function at 0x1000a8d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x694
mov eax, dword [0x10045390]
xor eax, esp
mov dword [esp + 0x690], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
lea eax, [esp + 0x494]
push 0
push eax
mov dword [esp + 0x1c], esi
call fcn.100207d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
mov dword [esp + 0xc], 0x1003d9d0
jne 0x1000a92a
mov dword [esp + 0xc], 0x1003d50c
push 0x25
pop ebx
push 0x73
pop edi
mov eax, ebx
mov word [esp + 0x278], ax
mov eax, edi
mov word [esp + 0x27a], ax
push 0x2a
mov eax, ebx
mov word [esp + 0x280], ax
mov eax, edi
mov word [esp + 0x282], ax
pop eax
push 0x2e
mov word [esp + 0x284], ax
pop eax
push 0x2a
mov word [esp + 0x286], ax
pop eax
push dword [esp + 0xc]
mov word [esp + 0x288], ax
xor eax, eax
mov word [esp + 0x28a], ax
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x280]
push eax
lea eax, [esp + 0x49c]
push eax
call esi
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x1000a9c6
xor al, al
jmp 0x1000aaa1
mov eax, ebx
mov word [esp + 0x268], ax
mov eax, edi
mov word [esp + 0x26a], ax
mov eax, ebx
mov word [esp + 0x26c], ax
mov eax, edi
mov word [esp + 0x26e], ax
xor eax, eax
mov word [esp + 0x270], bx
mov word [esp + 0x272], di
mov word [esp + 0x274], ax
cmp word [esp + 0x44], 0x2e
je 0x1000aa75
test byte [esp + 0x18], 0x10
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x270]
push dword [esp + 0x18]
push eax
lea eax, [esp + 0x298]
push eax
je 0x1000aa48
call esi
lea eax, [esp + 0x29c]
push eax
call fcn.1000a8d0
add esp, 0x18
jmp 0x1000aa75
call esi
add esp, 0x14
test byte [esp + 0x18], 1
je 0x1000aa67
push 0x80
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000aa08
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov ecx, dword [esp + 0x69c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001c645
mov esp, ebp
pop ebp
ret

Function at 0x1000aab6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.1000160d
cmp esi, 0xffffffff
jne 0x1000aad9
xor al, al
jmp 0x1000aae0
mov eax, esi
shr eax, 4
and al, 1
pop esi
pop ebp
ret
Function at 0x1000aca8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 0xc]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1000acfd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.1001ff30
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebp
jmp dword [sym.imp.USER32.dll_CloseClipboard]

Function at 0x1000ae46
Capabilities:
Check mutex on windows

Disassembly:
push 0
mov eax, 0x1003792d
call fcn.10020675
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], 1
jle 0x1000ae6e
push dword [eax - 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.10001706
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x1000ae89
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.1000160d
mov eax, esi
call fcn.10020714
ret

Function at 0x1000b73c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x10045390]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x4c8], eax
mov dword [ebp - 0x4c4], ecx
cmp eax, edi
je 0x1000b850
cmp ecx, edi
je 0x1000b850
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1000b83e
mov dword [ebp - 0x4c0], edi
cmp word [ebp - 0x4bc], di
je 0x1000b83e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea esi, [ebp - 0x4bc]
push 0x1003dc14
push esi
call ebx
test eax, eax
je 0x1000b81e
push 0x1003dc1c
push esi
call ebx
test eax, eax
je 0x1000b81e
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [ebp + edi - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
push 0x64
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000b850
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x4c8]
mov esi, eax
push esi
lea eax, [ebp - 0xd4]
push eax
push edi
call fcn.1001f08a
add esp, 0xc
test eax, eax
je 0x1000b861
add dword [ebp - 0x4c0], 4
mov edi, dword [ebp - 0x4c0]
add edi, edi
lea esi, [ebp + edi - 0x4bc]
cmp word [esi], 0
jne 0x1000b7ac
push dword [ebp - 0x4c8]
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c645
leave
ret
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push dword [ebp - 0x4c4]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
jmp 0x1000b852
Function at 0x1000b886
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10045390]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.100207d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
jne 0x1000b8e8
push 0x1003dc24
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c645
leave
ret
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.1000b73c
pop ecx
test eax, eax
je 0x1000b8da
xor eax, eax
inc eax
jmp 0x1000b8dc

Function at 0x1000b900
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.100207d0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000b952
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
leave
ret

Function at 0x1000bde9
Capabilities:
Enumerate processes

Disassembly:
push 0x254
mov eax, 0x1003816a
call fcn.100206de
mov eax, dword [ebp + 8]
mov dword [ebp - 0x260], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push ebx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000be3a
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.1000d2c7
mov al, bl
call fcn.10020728
ret
push 0x228
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.100207d0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push edi
mov dword [ebp - 0x258], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000beb8
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.1000cba8
push dword [ebp - 0x260]
xor ecx, ecx
lea esi, [ebp - 0x25c]
call fcn.1000cd71
cmp eax, 0xffffffff
jne 0x1000bec4
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.1000160d
cmp esi, ebx
jne 0x1000be6b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000be26
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.1000160d
mov bl, 1
jmp 0x1000be26
Function at 0x1000bee0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x43c
mov eax, 0x10037d55
call fcn.100206de
mov eax, dword [ebp + 8]
mov dword [ebp - 0x440], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x420], ax
xor ebx, ebx
lea eax, [ebp - 0x41e]
push ebx
push eax
mov dword [ebp - 0x43c], 0x104
call fcn.100207d0
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.100207d0
mov eax, dword [0x10045344]
add esp, 0x18
mov ecx, 0x10045344
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x428], ebx
mov eax, dword [ebp - 0x428]
sub eax, ebx
je 0x1000bfa7
dec eax
je 0x1000bf99
dec eax
je 0x1000bf8b
dec eax
jne 0x1000bfc6
lea eax, [ebp - 0x424]
push eax
push 0x20119
push ebx
push str.SOFTWAREWOW6432NODEMicrosoftWindowsCurrentVersionUninstall
push SysReAllocString
jmp 0x1000bfbe
lea eax, [ebp - 0x424]
push eax
push 0x20119
jmp 0x1000bfb3
lea eax, [ebp - 0x424]
push eax
push 0x20019
jmp 0x1000bf7e
lea eax, [ebp - 0x424]
push eax
push 0x20019
push ebx
push str.SOFTWAREWOW6432NODEMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], ebx
jne 0x1000c0fb
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x43c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1000c0ef
mov dword [ebp - 0x42c], ebx
cmp dword [ebp - 0x43c], ebx
jle 0x1000c0ef
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x42c]
mov esi, 0x104
push dword [ebp - 0x424]
mov dword [ebp - 0x438], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x444]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call edi
test eax, eax
jne 0x1000c0d7
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
mov dword [ebp - 0x438], esi
call fcn.100207d0
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x448]
push eax
push ebx
push str.DisplayName
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.1000cc2e
push dword [ebp - 0x440]
xor ecx, ecx
lea esi, [ebp - 0x430]
call fcn.1000cd71
cmp eax, 0xffffffff
jne 0x1000c110
mov ecx, dword [ebp - 0x440]
mov eax, esi
push eax
call fcn.1000cc98
test eax, eax
je 0x1000c110
inc dword [ebp - 0x42c]
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebp - 0x43c]
jl 0x1000c009
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x428]
cmp dword [ebp - 0x428], 4
jl 0x1000bf5f
jmp 0x1000c112
mov bl, 1
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
call fcn.1000160d
mov al, bl
call fcn.10020728
ret