joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c8b48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x280
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
or rdi, 0xffffffffffffffff
xor r13d, r13d
mov qword [rdx], rdi
mov rcx, rdx
mov r12, r8
mov dword [r8], r13d
mov rbp, rdx
call fcn.1000c7294
cmp rbx, r13
jne 0x1000c8bd9
mov edi, reloc.certcli.dll_Ordinal_246
lea rdx, [rsp + 0x60]
lea rcx, [0x100026cd0]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, r13d
je 0x1000c8bc2
cmp eax, edi
jae 0x1000c8bc2
lea r8, [0x10002a878]
lea edx, [rdi + 0xe]
jmp 0x1000c8c6b
mov edi, 0x80070002
xor r9d, r9d
mov edx, 0x4f70191
mov r8d, edi
xor ecx, ecx
jmp 0x1000c8c9a
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, r13
jne 0x1000c8c7a
mov rcx, rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov edi, reloc.certcli.dll_Ordinal_260
not rcx
inc rcx
cmp rcx, rdi
jb 0x1000c8c1d
mov edi, 0x800700ce
mov edx, 0x5030191
mov r8d, edi
mov rcx, rbx
jmp 0x1000c8c97
lea r8, [0x10002a894]
lea rax, [rsp + 0x60]
mov rdx, rdi
sub r8, rax
lea rcx, [rsp + 0x60]
lea rax, [rdx + 0x7ffffefa]
cmp rax, r13
je 0x1000c8c58
movzx eax, word [r8 + rcx]
cmp ax, r13w
je 0x1000c8c58
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1000c8c34
cmp rdx, r13
jne 0x1000c8c61
sub rcx, 2
mov word [rcx], r13w
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.100038a50
lea rbx, [rsp + 0x60]
mov rdx, rbx
mov rcx, rbp
call fcn.1000c74a4
mov rcx, rbx
mov edi, eax
cmp eax, r13d
je 0x1000c8ca4
mov r8d, eax
mov edx, 0x50b0191
xor r9d, r9d
call fcn.1000b51b8
jmp 0x1000c8d5d
mov esi, 2
jmp 0x1000c8cd5
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edi, eax
cmp eax, 0xe0000100
jne 0x1000c8d86
cmp esi, 2
jne 0x1000c8d86
mov esi, 1
mov rcx, rbx
lea r9, [rsp + 0x40]
mov r8d, esi
xor edx, edx
mov dword [rsp + 0x40], r13d
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov qword [rbp], rax
mov eax, dword [rsp + 0x40]
mov dword [r12], eax
cmp qword [rbp], 0xffffffffffffffff
je 0x1000c8cab
lea rax, [rsp + 0x48]
lea rdx, [0x10002a8a0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
call fcn.1000c7ecc
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov r9d, 0x3b2
xor r8d, r8d
mov edx, 0x536
mov ecx, 0x191
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 1
call fcn.1000d708c
mov edi, r13d
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1000ef870
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [r12], r13d
mov r9d, 0x3b3
mov r8d, eax
cmove r12, r13
mov edx, 0x526
mov ecx, 0x191
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 1
call fcn.1000d708c
mov edx, 0x5270191
jmp 0x1000c8c15
Function at 0x1000cbf04
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x290
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x280], rax
and qword [rsp + 0x20], 0
and dword [r8], 0
mov rsi, r9
mov r12, r8
mov r13, rcx
test r9, r9
je 0x1000cbf41
and qword [r9], 0
lea r9, [rsp + 0x20]
xor r8d, r8d
call fcn.1000b2490
mov ebx, eax
test eax, eax
je 0x1000cbf6b
xor r9d, r9d
mov r8d, eax
mov edx, 0x8c0197
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000cbff3
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1000cbfe2
test byte [rsp + 0x30], 0x10
jne 0x1000cbfcd
mov dword [r12], 1
test rsi, rsi
je 0x1000cbfcd
lea r9, [rsp + 0x28]
lea rdx, [rsp + 0x5c]
xor r8d, r8d
mov rcx, r13
call fcn.1000b2490
mov ebx, eax
test eax, eax
jne 0x1000cc027
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.1000ccafc
test eax, eax
jne 0x1000cbfdf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jmp 0x1000cbf82
mov qword [rsi], rbx
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x1000cbff3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rsp + 0x20], 0
je 0x1000cc006
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0x290
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, eax
mov edx, 0xa30197
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000cbfe4
Function at 0x1000cc7e4
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x490
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r10, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r10
mov ebx, 1
repne scasw ax, word [rdi]
mov edi, reloc.certcli.dll_Ordinal_260
not rcx
sub rcx, rbx
add rcx, 4
cmp rcx, rdi
jb 0x1000cc84b
xor r9d, r9d
mov edx, 0x35b0197
mov r8d, 0x8007006f
mov rcx, r10
call fcn.1000b51b8
jmp 0x1000cc8ea
lea rax, [rsp + 0x270]
mov rdx, rdi
lea rcx, [rsp + 0x270]
sub r10, rax
xor esi, esi
lea rax, [rdx + 0x7ffffefa]
cmp rax, rsi
je 0x1000cc885
movzx eax, word [r10 + rcx]
cmp ax, si
je 0x1000cc885
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x1000cc863
cmp rdx, rsi
jne 0x1000cc88e
sub rcx, 2
mov word [rcx], si
lea r8, [0x10002ac28]
lea rcx, [rsp + 0x270]
mov rdx, rdi
call fcn.100038a50
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1000cc8ea
test byte [rsp + 0x20], 0x10
je 0x1000cc8df
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, esi
jne 0x1000cc8c4
jmp 0x1000cc8e1
mov ebx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000ef870
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1000cc918
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbp, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
mov ebx, reloc.certcli.dll_Ordinal_260
repne scasw ax, word [rdi]
not rcx
mov r13, rcx
lea rax, [rcx + 3]
cmp rax, rbx
jb 0x1000cc980
mov esi, 0x8007006f
mov edx, 0x3830197
mov ebx, esi
mov r8d, esi
jmp 0x1000ccab5
lea rax, [rsp + 0x270]
mov rdi, rbp
mov rdx, rbx
sub rdi, rax
xor esi, esi
lea rcx, [rsp + 0x270]
lea rax, [rdx + 0x7ffffefa]
cmp rax, rsi
je 0x1000cc9bd
movzx eax, word [rdi + rcx]
cmp ax, si
je 0x1000cc9bd
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1000cc99b
cmp rdx, rsi
jne 0x1000cc9c6
sub rcx, 2
mov word [rcx], si
lea r8, [0x10002ac28]
lea rcx, [rsp + 0x270]
mov rdx, rbx
call fcn.100038a50
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
mov r14, rbx
lea r15, [rsp + r13*2 + 0x270]
sub r14, r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1000cca2b
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov ebx, eax
cmp eax, esi
je 0x1000cca2b
mov r8d, eax
mov edx, 0x38f0197
xor ecx, ecx
jmp 0x1000ccab8
mov ebx, esi
mov esi, 0x8007006f
test byte [rsp + 0x20], 0x10
jne 0x1000cca8e
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x4c]
repne scasw ax, word [rdi]
not rcx
dec rcx
add rcx, r13
cmp rcx, reloc.certcli.dll_Ordinal_260
jb 0x1000cca70
xor r9d, r9d
mov r8d, esi
mov edx, 0x39a0197
mov rcx, rbp
mov ebx, esi
call fcn.1000b51b8
jmp 0x1000cca8e
lea r8, [rsp + 0x4c]
mov rdx, r14
mov rcx, r15
call fcn.100038b1c
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000cca32
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x1000ccac0
mov r8d, ebx
mov edx, 0x3a20197
mov rcx, rbp
xor r9d, r9d
call fcn.1000b51b8
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000ef870
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1000ccb54
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, edx
lea r8, [rsp + 0x20]
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1000ccb80
test byte [rsp + 0x20], 0x10
jne 0x1000ccbae
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000ccbae
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov ebx, eax
cmp eax, 0x800700b7
je 0x1000ccbae
mov r8d, eax
mov edx, 0x3e10197
jmp 0x1000ccc00
mov rcx, rdi
call fcn.1000cc7e4
test eax, eax
jne 0x1000ccc0d
mov rcx, rdi
test esi, esi
jne 0x1000ccbd1
mov r8d, 0x80070091
mov edx, 0x3eb0197
mov ebx, r8d
jmp 0x1000ccc03
call fcn.1000cc918
mov rcx, rdi
mov ebx, eax
test eax, eax
je 0x1000ccbe9
mov r8d, eax
mov edx, 0x3ee0197
jmp 0x1000ccc03
call fcn.1000cc7e4
test eax, eax
jne 0x1000ccc0d
mov r8d, 0x80070091
mov edx, 0x3f30197
mov ebx, r8d
mov rcx, rdi
xor r9d, r9d
call fcn.1000b51b8
jmp 0x1000ccc0f
xor ebx, ebx
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1000cd638
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and qword [r9], 0
lea rax, [r11 + 0x20]
mov rbp, r9
mov rbx, r8
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
lea r9, [r11 - 0x28]
xor r8d, r8d
mov rsi, rdx
mov r12, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000cd69a
mov ecx, eax
call fcn.1000b7bec
xor r9d, r9d
mov edx, 0x5ab0197
mov r8d, eax
mov rcx, rsi
mov ebx, eax
call fcn.1000b51b8
jmp 0x1000cd73e
mov edx, dword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x1000cd6bd
mov ebx, 0x8007000e
mov edx, 0x5b20197
mov r8d, ebx
jmp 0x1000cd71b
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000cd6fd
mov ecx, eax
call fcn.1000b7bec
xor r9d, r9d
mov edx, 0x5b90197
mov ebx, eax
mov r8d, eax
mov rcx, rsi
jmp 0x1000cd720
lea r8, [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
call fcn.1000b2838
mov ebx, eax
test eax, eax
je 0x1000cd727
mov r8d, eax
mov edx, 0x5bd0197
xor r9d, r9d
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000cd730
mov rax, qword [rsp + 0x38]
mov qword [rbp], rax
test rdi, rdi
je 0x1000cd73e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1000cde30
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r15, qword [rsp + 0x328]
and qword [rsp + 0x50], 0
mov r13d, ecx
mov rcx, qword [rsp + 0x330]
mov rax, r9
mov r12, rdx
mov r14, r8
mov qword [rsp + 0x58], rcx
lea r9, [rsp + 0x50]
mov rcx, r12
xor r8d, r8d
mov rdx, rax
call fcn.1000b2490
mov ebx, eax
test eax, eax
je 0x1000cdeac
xor r9d, r9d
mov r8d, eax
mov edx, 0x71e0197
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000cdf52
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1000cdedf
mov rcx, qword [rsp + 0x50]
mov ebx, 0x80070002
xor r9d, r9d
mov r8d, ebx
mov edx, 0x7240197
jmp 0x1000cdf97
mov ebp, dword [rsp + 0x320]
test byte [rsp + 0x60], 0x10
jne 0x1000cdf2f
mov rax, qword [rsp + 0x58]
lea r9, [rsp + 0x8c]
mov r8, r14
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x7c]
mov rdx, r12
mov ecx, r13d
mov dword [rsp + 0x20], eax
call fcn.1000cdab4
mov ebx, eax
test eax, eax
jne 0x1000cdf8a
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000cdee6
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x1000cdf52
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rsp + 0x50], 0
je 0x1000cdf65
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1000ef870
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
xor r9d, r9d
mov r8d, eax
mov edx, 0x7380197
xor ecx, ecx
call fcn.1000b51b8
jmp 0x1000cdf43

Function at 0x1000ce26c
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rsi
sub rsp, 0x40
and qword [r11 - 0x18], 0
and qword [r11 + 0x10], 0
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x10]
lea r9, [r11 + 0x18]
lea rdx, [0x10000d4b0]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
mov r8d, 2
mov rsi, rcx
call fcn.1000dd344
mov ebx, eax
test eax, eax
je 0x1000ce2bd
mov edx, 0x7dc0197
mov rcx, rsi
jmp 0x1000ce2dc
mov rcx, qword [rsp + 0x58]
lea rdx, [0x10002aca8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x1000ce2e7
mov edx, 0x7df0197
xor ecx, ecx
xor r9d, r9d
mov r8d, eax
call fcn.1000b51b8
cmp qword [rsp + 0x58], 0
je 0x1000ce2fa
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1000ce30a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rsi
ret
Function at 0x1000cf768
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r12d, r12d
mov edi, ecx
mov ebx, r8d
mov rbp, rdx
lea rcx, [rsp + 0x30]
lea r9d, [r12 + 1]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, r12d
jne 0x1000cf7cc
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xc3f0197
jmp 0x1000cf835
cmp edi, 1
je 0x1000cf7d6
cmp edi, 0x10
jbe 0x1000cf7db
mov edi, reloc.WLDAP32.dll_Ordinal_16
mov rcx, qword [rsp + 0x30]
lea eax, [rbx - 1]
lea r8, [rsp + 0x38]
cmp edi, eax
cmova edi, eax
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, r12d
jne 0x1000cf80d
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xc4d0197
jmp 0x1000cf835
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x48]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, r12d
jne 0x1000cf849
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0xc520197
xor r9d, r9d
mov r8d, eax
xor ecx, ecx
mov ebx, eax
call fcn.1000b51b8
jmp 0x1000cf8de
lea r8d, [rdi + 1]
mov ebx, edi
xor edx, edx
mov rcx, rbp
add r8, r8
mov esi, 0x59
shr ebx, 3
call sub.msvcrt.dll_memset
cmp edi, r12d
jbe 0x1000cf8db
mov r8, r12
mov r9d, edi
lea r14d, [rsi - 0x1b]
movzx eax, byte [rsp + r8 + 0x38]
xor edx, edx
div esi
movzx eax, byte [rsp + r8 + 0x48]
mov r10d, edx
xor edx, edx
div edi
movsxd rcx, edx
cmp r12w, word [rbp + rdx*2]
je 0x1000cf8ac
inc edx
inc rcx
cmp edx, edi
jne 0x1000cf8a4
mov edx, r12d
mov rcx, r12
cmp r12w, word [rbp + rcx*2]
jne 0x1000cf895
lea r11, [0x10000c4b0]
mov ecx, edx
movzx eax, word [r11 + r10*2]
mov word [rbp + rcx*2], ax
cmp r10d, r14d
jb 0x1000cf8d2
cmp ebx, r12d
jbe 0x1000cf8ce
dec ebx
cmp ebx, r12d
cmove esi, r14d
inc r8
sub r9, 1
jne 0x1000cf873
mov ebx, r12d
xor eax, eax
lea rdi, [rsp + 0x38]
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x1000cf8fc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1000ef870
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000d0f94
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x6a0
mov rax, qword [0x10010f190]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor ebx, ebx
xor eax, eax
mov rdi, rbp
mov qword [rdx], rbx
repne scasw ax, word [rdi]
mov esi, reloc.certcli.dll_Ordinal_260
mov r14, rdx
not rcx
mov r12d, ebx
add rcx, 5
cmp rcx, rsi
jb 0x1000d0ffd
mov edx, 0xf010197
mov r8d, 0x8007006f
mov rcx, rbp
jmp 0x1000d11d1
lea rax, [rsp + 0x270]
mov rdi, rbp
mov rdx, rsi
sub rdi, rax
lea rcx, [rsp + 0x270]
lea rax, [rdx + 0x7ffffefa]
cmp rax, rbx
je 0x1000d1038
movzx eax, word [rdi + rcx]
cmp ax, bx
je 0x1000d1038
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1000d1016
cmp rdx, rbx
jne 0x1000d1041
sub rcx, 2
mov word [rcx], bx
lea r8, [0x10002ad70]
lea rcx, [rsp + 0x270]
mov rdx, rsi
call fcn.100038a50
lea r8, [0x100004d50]
lea rcx, [rsp + 0x270]
mov rdx, rsi
call fcn.100038a50
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1000d11c4
test byte [rsp + 0x20], 0x10
je 0x1000d10ad
lea rdx, [rsp + 0x20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x1000d1092
jmp 0x1000d1119
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x4c]
repne scasw ax, word [rdi]
lea r12d, [rax + 1]
not rcx
dec rcx
cmp rcx, rsi
jb 0x1000d10d4
mov edx, 0xf130197
jmp 0x1000d0fef
lea rdx, [rsp + 0x4c]
lea rax, [rsp + 0x480]
lea rcx, [rsp + 0x480]
sub rdx, rax
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x1000d110d
movzx eax, word [rdx + rcx]
cmp ax, bx
je 0x1000d110d
mov word [rcx], ax
add rcx, 2
sub rsi, r12
jne 0x1000d10ec
cmp rsi, rbx
jne 0x1000d1116
sub rcx, 2
mov word [rcx], bx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp r12d, ebx
je 0x1000d11c4
cmp r12d, 1
jbe 0x1000d1145
mov ebx, 0x8007010b
mov edx, 0xf240197
mov r8d, ebx
xor ecx, ecx
jmp 0x1000d11d4
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x480]
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea rdi, [rdx + rcx + 1]
xor ecx, ecx
lea rdx, [rdi + rdi]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
cmp rax, rbx
jne 0x1000d118f
mov ebx, 0x8007000e
mov edx, 0xf2c0197
jmp 0x1000d113b
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.100038b1c
mov rcx, qword [r14]
lea r8, [0x100014f4c]
mov rdx, rdi
call fcn.100038a50
mov rcx, qword [r14]
lea r8, [rsp + 0x480]
mov rdx, rdi
call fcn.100038a50
jmp 0x1000d11dc
mov r8d, 0x80070002
mov edx, 0xf1f0197
xor ecx, ecx
mov ebx, r8d
xor r9d, r9d
call fcn.1000b51b8
mov eax, ebx
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1000ef870
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1000d9b20
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor esi, esi
mov rbp, rcx
lea rdx, [rax - 0x28]
and dword [rax + 0x10], esi
and qword [rax - 0x28], rsi
lea ecx, [rsi + 2]
xor edi, edi
call fcn.1000b1b88
xor ecx, ecx
mov ebx, eax
test eax, eax
je 0x1000d9b5a
mov edx, 0x21b0199
jmp 0x1000d9c6f
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x1000d9bac
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x2280199
jmp 0x1000d9c6b
mov edx, dword [rsp + 0x78]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1000d9bd8
mov r8d, 0x8007000e
mov edx, 0x2310199
xor ecx, ecx
mov ebx, r8d
jmp 0x1000d9c72
mov edx, dword [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov rdi, rax
test rax, rax
jne 0x1000d9c01
mov r8d, 0x8007000e
mov edx, 0x23a0199
mov ebx, r8d
jmp 0x1000d9c72
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1000d9c4a
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x2470199
jmp 0x1000d9c6b
lea rdx, [rbp + 0x78]
mov rcx, rdi
call fcn.1000db768
test eax, eax
jne 0x1000d9c7a
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edx, 0x24f0199
mov ebx, eax
xor ecx, ecx
mov r8d, eax
xor r9d, r9d
call fcn.1000b51b8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1000db3b4
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x40], 0
mov rsi, rdx
xor ebx, ebx
lea r8, [rsp + 0x40]
mov rdx, rbx
mov ecx, 1
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1000db3fd
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
call fcn.1000b7bec
mov edi, eax
test rbx, rbx
jne 0x1000db440
cmp eax, 0x800700ea
jne 0x1000db440
test rbx, rbx
jne 0x1000db44a
mov edx, dword [rsp + 0x40]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1000db3cd
mov edi, 0x8007000e
mov edx, 0x9d101c9
mov r8d, edi
xor r9d, r9d
xor ecx, ecx
call fcn.1000b51b8
test rbx, rbx
je 0x1000db44f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1000db44f
mov r8d, eax
mov edx, 0x9c601c9
jmp 0x1000db426
mov qword [rsi], rbx
xor edi, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret