joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3030
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.1400c62f0
mov r8b, 1
lea rdx, str.layoutdisks
lea rcx, [rdi + 0x638]
call fcn.1400c38b0
mov r8b, 1
mov qword [rdi + 0xa68], rax
lea rdx, str.diskspace
lea rcx, [rdi + 0x638]
call fcn.1400c38b0
mov rcx, rdi
mov qword [rdi + 0xa70], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400a3030
push rdi
sub rsp, 0x240
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1402767a0
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1400a30c3
movzx eax, word [rsp + 0x20]
mov qword [rsp + 0x258], rbx
lea rbx, [rsp + 0x20]
test ax, ax
je 0x1400a30bb
nop dword [rax + rax]
movzx edx, ax
mov rcx, rdi
call fcn.1400a2cd0
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400a30a0
lea rbx, [rbx + rax*2]
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400a3090
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x240
pop rdi
ret

Function at 0x1400a3a70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, qword [rcx + 0xc]
mov rbx, rcx
mov rcx, qword [rcx + 4]
xor esi, esi
mov qword [rsp + 0x30], rsi
call fcn.14005f7e0
test eax, eax
je 0x1400a3acd
mov rdx, qword [rbx + 0xc]
lea rax, [rsp + 0x30]
mov rcx, qword [rbx + 4]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a3bb3
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400a3bb3
mov edx, dword [rbx + 0x1c]
mov qword [rsp + 0x68], rdi
sub edx, 1
je 0x1400a3b5e
sub edx, 2
je 0x1400a3b3f
cmp edx, 1
je 0x1400a3b17
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
cmp qword [rbx + 0x38], 8
lea rcx, [rbx + 0x20]
mov edi, 4
jb 0x1400a3b2a
mov rcx, qword [rcx]
call fcn.1402884cc
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x38]
jmp 0x1400a3b76
mov edi, dword [rbx + 0x30]
lea rcx, [rbx + 0x20]
add edi, edi
cmp qword [rcx + 0x18], 8
jb 0x1400a3b52
mov rcx, qword [rcx]
call fcn.14004c110
mov rcx, qword [rsp + 0x30]
jmp 0x1400a3b76
cmp qword [rbx + 0x38], 8
mov eax, dword [rbx + 0x30]
lea edi, [rax*2 + 2]
lea rax, [rbx + 0x20]
jb 0x1400a3b76
mov rax, qword [rax]
mov r9d, dword [rbx + 0x1c]
xor r8d, r8d
mov rdx, qword [rbx + 0x14]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test rcx, rcx
je 0x1400a3ba2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
test ebx, ebx
cmove esi, eax
mov eax, esi
jmp 0x1400a3afa
xor eax, eax
jmp 0x1400a3aff
Function at 0x1400a3bc0
Capabilities:
Delete registry value

Disassembly:
push rdi
push r14
sub rsp, 0x268
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x250], rax
movzx eax, byte [rcx + 0x40]
xor r14d, r14d
mov rdi, rcx
test al, al
jne 0x1400a3bf5
call fcn.1400a3a70
jmp 0x1400a3d61
cmp al, 1
jne 0x1400a3c0b
mov rdx, qword [rcx + 0xc]
mov rcx, qword [rcx + 4]
call fcn.140060030
jmp 0x1400a3d61
cmp al, 2
jne 0x1400a3c21
mov rdx, qword [rcx + 0xc]
mov rcx, qword [rcx + 4]
call fcn.140060230
jmp 0x1400a3d61
mov qword [rsp + 0x288], rbx
cmp al, 3
jne 0x1400a3cd0
mov rbx, qword [rcx + 0x65]
cmp rbx, qword [rcx + 0x6d]
je 0x1400a3d56
mov qword [rsp + 0x290], rbp
mov qword [rsp + 0x260], rsi
nop
cmp qword [rbx + 0x18], 8
jb 0x1400a3c5c
mov rsi, qword [rbx]
jmp 0x1400a3c5f
mov rsi, rbx
mov rdx, qword [rdi + 0xc]
lea rax, [rsp + 0x30]
mov rcx, qword [rdi + 4]
mov r9d, 0x20006
mov r8d, 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
test eax, eax
jne 0x1400a3ca9
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
mov ebp, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
mov eax, r14d
sete al
add rbx, 0x20
cmp rbx, qword [rdi + 0x6d]
jne 0x1400a3c50
mov rsi, qword [rsp + 0x260]
mov rbp, qword [rsp + 0x290]
jmp 0x1400a3d59
cmp al, 4
jne 0x1400a3d56
mov rbx, qword [rcx + 0x65]
cmp rbx, qword [rcx + 0x6d]
je 0x1400a3d56
mov r9, qword [rdi + 0xc]
test r9, r9
je 0x1400a3d17
cmp qword [rbx + 0x18], 8
jb 0x1400a3cf7
mov rax, qword [rbx]
jmp 0x1400a3cfa
mov rax, rbx
lea r8, [0x140333728]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14004e9f0
jmp 0x1400a3d3c
cmp qword [rbx + 0x18], 8
jb 0x1400a3d23
mov r9, qword [rbx]
jmp 0x1400a3d26
mov r9, rbx
lea r8, [0x140332ff4]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.14004e9f0
mov rcx, qword [rdi + 4]
lea rdx, [rsp + 0x40]
call fcn.140060030
add rbx, 0x20
cmp rbx, qword [rdi + 0x6d]
jne 0x1400a3ce2
jmp 0x1400a3d59
mov eax, r14d
mov rbx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x268
pop r14
pop rdi
ret
Function at 0x1400a3d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x70], rsi
xor r9d, r9d
xor esi, esi
mov edx, 0x52e
mov qword [rsp + 0x38], rsi
mov edi, 1
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x30], esi
mov r8, qword [rcx + 0xc]
mov rcx, qword [0x140456df8]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rcx + 0xc]
mov rcx, qword [rcx + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a3f28
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, qword [rdx + 0x14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a3f28
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400a3f28
add eax, 4
mov qword [rsp + 0x68], rbx
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.140125a94
mov rbx, rax
test rax, rax
je 0x1400a3f23
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1402767a0
mov rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, qword [rdx + 0x14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a3f1b
cmp dword [rsp + 0x30], esi
jbe 0x1400a3f1b
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x40]
cmp dword [rax + 0x1c], ecx
jne 0x1400a3f1b
sub ecx, edi
je 0x1400a3f00
sub ecx, 2
je 0x1400a3ed5
cmp ecx, edi
jne 0x1400a3f1b
cmp qword [rax + 0x38], 8
lea rcx, [rax + 0x20]
jb 0x1400a3ec8
mov rcx, qword [rcx]
call fcn.1402884cc
cmp eax, dword [rbx]
jne 0x1400a3f1b
mov edi, esi
jmp 0x1400a3f1b
cmp qword [rax + 0x38], 8
lea rcx, [rax + 0x20]
jb 0x1400a3ee3
mov rcx, qword [rcx]
call fcn.14004c110
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call fcn.140276950
test eax, eax
jne 0x1400a3f1b
mov edi, esi
jmp 0x1400a3f1b
cmp qword [rax + 0x38], 8
lea rcx, [rax + 0x20]
jb 0x1400a3f0e
mov rcx, qword [rcx]
mov rdx, rbx
call fcn.1402779b8
test eax, eax
cmove edi, esi
mov rcx, rbx
call fcn.140125e14
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x70]
test rcx, rcx
je 0x1400a3f3d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x50
pop rdi
ret
Function at 0x1400a3f60
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x270
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x48], 0x208
xor ebx, ebx
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov r8, qword [rcx + 0xc]
mov edx, 0x52e
mov rcx, qword [0x140456df8]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x280]
lea rax, [rsp + 0x40]
lea r9d, [rbx + 8]
mov qword [rsp + 0x20], rax
lea r8d, [rbx + 4]
mov rdx, qword [rcx + 0xc]
mov rcx, qword [rcx + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a3fd7
xor eax, eax
jmp 0x1400a401c
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x270
pop rbx
ret

Function at 0x1400a4040
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x480
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor edi, edi
mov dword [rsp + 0x4c], 0x104
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov dword [rsp + 0x48], 0x104
mov edx, 0x52e
mov r8, qword [rcx + 0xc]
mov ebx, edi
mov rcx, qword [0x140456df8]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x490]
lea rax, [rsp + 0x40]
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 4]
mov rdx, qword [rcx + 0xc]
mov rcx, qword [rcx + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a40c9
xor eax, eax
jmp 0x1400a4173
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x260]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1400a4166
inc ebx
cmp dword [rsp + 0x48], edi
ja 0x1400a4161
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x260]
mov qword [rsp + 0x28], rdi
mov edx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x4c], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x1400a4108
jmp 0x1400a4166
mov edi, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret
Function at 0x1400a4c10
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400a4d17
test rdx, rdx
je 0x1400a4d17
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a4d17
xor eax, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea edx, [rax + 1]
lea r8d, [rax + 3]
mov rcx, rbx
call fcn.140052070
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400a4ca9
lea r9, [rsp + 0x48]
mov r8, rbx
lea rdx, [0x1400a4b50]
mov rcx, rax
call fcn.140052330
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
mov rbx, qword [rsp + 0x48]
sub rax, rbx
sar rax, 5
test rax, rax
je 0x1400a4cf4
cmp rbx, rdx
je 0x1400a4cf4
cmp qword [rbx + 0x18], 8
jb 0x1400a4cd3
mov rcx, qword [rbx]
jmp 0x1400a4cd6
mov rcx, rbx
mov r8, rsi
mov rdx, rdi
call fcn.1400a4860
add rbx, 0x20
mov rdx, qword [rsp + 0x50]
cmp rbx, rdx
jne 0x1400a4cc7
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1400a4d17
mov rcx, rbx
call fcn.140056290
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
sub r8, rdx
sar r8, 5
call fcn.140056110
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a5900
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x320], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rdx
mov r14, rcx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1400a5953
mov eax, 1
jmp 0x1400a5af1
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a5949
mov r8, r14
lea rdx, [0x140333990]
lea rcx, [rsp + 0x58]
call fcn.14004bce0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a5ad2
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400a5ac8
xor r15d, r15d
test byte [rbp - 0x80], 0x10
jne 0x1400a5ab3
lea rdx, [0x140333978]
lea rcx, [rbp - 0x54]
call fcn.1402779b8
test eax, eax
je 0x1400a5ab3
lea r9, [rbp - 0x54]
mov r8, r14
lea rdx, [0x1403339e8]
lea rcx, [rsp + 0x38]
call fcn.14004bce0
mov rdi, rax
lea rax, [rsp + 0x58]
cmp rax, rdi
je 0x1400a5a3b
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400a5a19
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14004e100
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r15
mov word [rsp + 0x58], r15w
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14004dce0
nop
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1400a5a58
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14004e100
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x1400a5a6a
mov rcx, rbx
call fcn.140056010
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
test rcx, rcx
je 0x1400a5aae
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], r15
cmp qword [rcx + 0x18], 8
jb 0x1400a5a95
mov rax, qword [rcx]
jmp 0x1400a5a98
mov rax, rcx
mov word [rax], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
call fcn.14004e170
nop
add qword [rbx + 8], 0x20
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400a59b5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x1400a5aef
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14004e100
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x320]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a5b20
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x310], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x1400a5b74
mov eax, 1
jmp 0x1400a5d62
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a5b6a
mov r8, rdi
lea rdx, [0x1403339d8]
lea rcx, [rsp + 0x60]
call fcn.14004bce0
nop
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400a5d43
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400a5d39
nop dword [rax]
nop word [rax + rax]
lea r9, [rbp - 0x54]
mov r8, rdi
lea rdx, [0x1403339c8]
lea rcx, [rsp + 0x40]
call fcn.14004bce0
mov rdi, rax
lea rax, [rsp + 0x60]
cmp rax, rdi
je 0x1400a5c45
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x1400a5c22
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.14004e100
mov qword [rsp + 0x78], 7
xor eax, eax
mov qword [rsp + 0x70], rax
mov word [rsp + 0x60], ax
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.14004dce0
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1400a5c62
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14004e100
lea rcx, [rbp - 0x54]
test byte [rbp - 0x80], 0x10
je 0x1400a5cb3
lea rdx, [0x14031ff6c]
call fcn.1402779b8
test eax, eax
je 0x1400a5d1f
lea rdx, [0x140333a30]
lea rcx, [rbp - 0x54]
call fcn.1402779b8
test eax, eax
je 0x1400a5d1f
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov rdx, rbx
call fcn.1400a5b20
jmp 0x1400a5d1f
lea rdx, [0x140333a18]
call fcn.1402779b8
test eax, eax
je 0x1400a5d1f
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 8], rax
jne 0x1400a5cd5
mov rcx, rbx
call fcn.140056010
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rcx
test rcx, rcx
je 0x1400a5d1a
xor edx, edx
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x1400a5d02
mov rax, qword [rcx]
jmp 0x1400a5d05
mov rax, rcx
mov word [rax], dx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.14004e170
nop
add qword [rbx + 8], 0x20
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov rdi, qword [rsp + 0x20]
jne 0x1400a5be0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x1400a5d60
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.14004e100
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a6fc0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x1400a6fea
xor eax, eax
jmp 0x1400a70de
cmp dword [0x140455d78], ebx
je 0x1400a7052
movzx ecx, word [0x140455b60]
call fcn.14007f830
test eax, eax
je 0x1400a6fe3
mov r9d, 1
lea rax, [rsp + 0x60]
lea rdx, str.PESYSTEMControlSet001_services
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r8d, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a7048
mov rcx, qword [rsp + 0x60]
mov rdx, rdi
call fcn.14005ff10
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14007f940
jmp 0x1400a70dc
xor edx, edx
mov qword [rsp + 0x88], rsi
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r8d, 2
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400a70c6
mov qword [rsp + 0x50], rbx
xor r9d, r9d
mov qword [rsp + 0x48], rbx
or edx, 0xffffffff
mov qword [rsp + 0x40], rbx
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 3]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rsi, rsi
je 0x1400a70d4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x88]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1400a7400
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x538], rbx
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, r9
mov rdi, rcx
mov r10d, dword [0x140455b64]
test r10d, r10d
jne 0x1400a763e
mov r11, qword [0x140457fe8]
mov rdx, r11
mov r8, qword [0x140457fe0]
sub rdx, r8
movabs rax, 0x7b301ecc07b301ed
imul rdx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400a763e
mov qword [rbp + 0x180], r8
cmp r8, r11
je 0x1400a763e
test r10d, r10d
jne 0x1400a763e
lea r9, [r8 + 0x28]
cmp qword [r9 + 0x18], 8
jb 0x1400a74a7
mov r9, qword [r9]
mov r8, rdi
lea rdx, [0x140333d78]
lea rcx, [rbp + 0x188]
call fcn.14004bce0
nop
lea rcx, [rbp + 0x188]
cmp qword [rbp + 0x1a0], 8
cmovae rcx, qword [rbp + 0x188]
lea rdx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a75f1
nop
cmp dword [0x140455b64], 0
jne 0x1400a75e7
mov rdx, qword [rbp + 0x180]
add rdx, 0x28
cmp qword [rdx + 0x18], 8
jb 0x1400a7512
mov rdx, qword [rdx]
xor r8d, r8d
lea rcx, [rbp + 0x1dc]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a75cf
lea rcx, [rsp + 0x30]
lea rax, [rbp + 0x1b0]
mov edx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400a7540
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
mov r9, rsi
lea r8, [rbp + 0x180]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400a72d0
lea rdx, [rbp + 0x1b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400a74f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov r8, qword [rbp + 0x1a0]
cmp r8, 8
jb 0x1400a7614
inc r8
mov rdx, qword [rbp + 0x188]
lea rcx, [rbp + 0x188]
call fcn.14004e100
mov r8, qword [rbp + 0x180]
add r8, 0x85
mov qword [rbp + 0x180], r8
cmp r8, qword [0x140457fe8]
je 0x1400a763e
mov r10d, dword [0x140455b64]
jmp 0x1400a7490
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x538]
add rsp, 0x510
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a8ef0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
mov qword [rsp + 0x50], rdi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 2]
lea r8d, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, 2
jne 0x1400a8fb2
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400a8ff5
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
lea r9d, [rdi + 2]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 4]
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1400a8ff7
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400a8ff5
lea rax, str.d:pagefile.sys_0_0
mov dword [rsp + 0x28], Ordinal_46
lea r9d, [rbx + 7]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.PagingFiles
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140125a70
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret