joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100074764
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor esi, esi
mov rdi, rdx
mov byte [rsp + 0x75], 5
mov byte [rsp + 0x70], sil
mov byte [rsp + 0x71], sil
mov byte [rsp + 0x72], sil
mov byte [rsp + 0x73], sil
mov byte [rsp + 0x74], sil
mov qword [rsp + 0x68], rsi
mov ebx, esi
cmp rdx, rsi
jne 0x1000747be
mov ebx, 0x80070057
jmp 0x100074842
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov r8d, 0x20
mov dl, 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, esi
jne 0x100074822
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x100074812
mov ebx, 0x80004005
jmp 0x100074842
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
jmp 0x10007483e
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, esi
je 0x100074801
mov eax, dword [rsp + 0x60]
mov dword [rdi], eax
cmp ebx, esi
jge 0x100074873
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x100074873
test byte [rcx + 0x3c], 2
je 0x100074873
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f8e0]
mov edx, 0x2a
mov r9d, ebx
call fcn.10005c358
mov rcx, qword [rsp + 0x68]
cmp rcx, rsi
je 0x100074883
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.10027d5f4
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100081418
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0x280], rax
and qword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
mov r8d, 0x2000000
mov rbp, rdx
mov rsi, rcx
call fcn.100085348
mov rbx, qword [rsp + 0x68]
mov edi, eax
test eax, eax
js 0x100081518
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1000814c3
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x10008159e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x10008157c
dec eax
lea r8, [rsp + 0x70]
mov r9d, 0x105
mov edx, eax
mov rcx, rbx
mov dword [rsp + 0x60], eax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x100081505
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x10008159e
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.100081418
mov edi, eax
test eax, eax
jns 0x1000814c3
lea rsi, [0x1004a9500]
mov rcx, qword [0x1004a9500]
cmp rcx, rsi
je 0x100081549
test byte [rcx + 0x3c], 2
je 0x100081549
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f920]
mov edx, 0x2e
mov r9d, edi
call fcn.10005c358
test rbx, rbx
je 0x100081557
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10027d5f4
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x10008158c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1000815ae
xor edi, edi
lea rsi, [0x1004a9500]
test edi, edi
jns 0x100081549
jmp 0x10008151f
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x10008159e
mov rcx, qword [0x1004a9500]
lea rsi, [0x1004a9500]
cmp rcx, rsi
je 0x1000815a5
test byte [rcx + 0x3c], 2
je 0x1000815a5
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f920]
mov edx, 0x2c
mov r9d, edi
call fcn.10005c358
jmp 0x1000815a5
Function at 0x1000828ac
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, r9
lea rax, [r11 + 8]
and qword [r11 + 8], rbx
lea r9d, [rbx + 2]
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000828f1
xor edi, edi
jmp 0x100082903
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x100082911
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x40], rcx
jmp 0x100082916
mov rcx, qword [rsp + 0x40]
lea rbp, [0x1004a9500]
test edi, edi
jns 0x100082950
mov rax, qword [0x1004a9500]
cmp rax, rbp
je 0x100082957
test byte [rax + 0x3c], 2
je 0x100082957
mov rcx, qword [rax + 0x30]
lea r8, [0x10003f920]
mov edx, 0x29
mov r9d, edi
call fcn.10005c358
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x1004a9500]
test rcx, rcx
je 0x10008296f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
mov rax, qword [0x1004a9500]
test edi, edi
js 0x1000829ba
mov eax, dword [rsp + 0x60]
lea rdx, [0x100042258]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1000829a1
xor edi, edi
jmp 0x1000829dd
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1000829dd
mov rax, qword [0x1004a9500]
cmp rax, rbp
je 0x1000829dd
test byte [rax + 0x3c], 2
je 0x1000829dd
mov rcx, qword [rax + 0x30]
lea r8, [0x10003f920]
mov edx, 0x24
mov r9d, edi
call fcn.10005c358
test rbx, rbx
je 0x1000829eb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x100082a04
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x40
mov rbx, rdx
mov r13, r8
mov r12, rcx
lea rdx, [rax - 0x28]
mov r8d, 0x7fffffff
mov rcx, r9
mov rbp, r9
call fcn.1000857c0
lea r15, [0x1004a9500]
mov edi, eax
test eax, eax
jns 0x100082a76
mov rcx, qword [0x1004a9500]
cmp rcx, r15
je 0x100082a7d
test byte [rcx + 0x3c], 2
je 0x100082a7d
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f920]
mov edx, 0x12
mov r9d, eax
call fcn.10005c358
mov rcx, qword [0x1004a9500]
mov esi, dword [rsp + 0x30]
test edi, edi
js 0x100082b32
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov r8d, 2
mov rdx, rbx
mov rcx, r12
call fcn.100083a48
mov rbx, qword [rsp + 0x30]
mov edi, eax
test eax, eax
js 0x100082ae8
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100082ad6
xor edi, edi
jmp 0x100082b12
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x100082b12
mov rcx, qword [0x1004a9500]
cmp rcx, r15
je 0x100082b19
test byte [rcx + 0x3c], 2
je 0x100082b19
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f920]
mov edx, 0x24
mov r9d, edi
call fcn.10005c358
mov rcx, qword [0x1004a9500]
test rbx, rbx
je 0x100082b2e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1004a9500]
test edi, edi
jns 0x100082b55
cmp rcx, r15
je 0x100082b55
test byte [rcx + 0x3c], 2
je 0x100082b55
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f920]
mov edx, 0x23
mov r9d, edi
call fcn.10005c358
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r13
pop r12
ret
Function at 0x100083830
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
push r12
push r13
push r15
sub rsp, 0x50
xor r13d, r13d
mov r12, r9
mov rdi, r8
lea r9, [rax - 0x30]
lea r8d, [r13 + 1]
mov qword [rax - 0x30], r13
mov rbx, r13
call fcn.100083a48
cmp eax, r13d
mov ebp, eax
lea r15, [0x1004a9500]
jl 0x1000839d3
mov dword [rsp + 0x70], r13d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
je 0x1000838bf
movzx ebp, ax
or ebp, 0x80070000
cmp eax, r13d
cmovle ebp, eax
cmp ebp, r13d
jne 0x1000839d1
cmp rbx, r13
jne 0x100083903
mov eax, dword [rsp + 0x70]
cmp eax, r13d
jbe 0x1000838f9
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r13
jne 0x10008387d
mov rbx, r13
mov ebp, 0x8007000e
jmp 0x1000839ce
mov ebp, 0x8000ffff
jmp 0x1000839d3
cmp dword [rsp + 0x30], 1
je 0x100083914
mov ebp, 0x8007000d
jmp 0x1000839d3
mov rdi, r13
mov qword [rsp + 0x40], r13
cmp dword [rsp + 0x70], r13d
ja 0x10008392a
mov ebp, 0x8007000d
jmp 0x100083967
test byte [rsp + 0x70], 1
jne 0x100083923
mov eax, dword [rsp + 0x70]
shr eax, 1
dec eax
cmp word [rbx + rax*2], r13w
jne 0x100083923
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.10005c2cc
cmp eax, r13d
mov ebp, eax
jl 0x100083962
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
mov eax, r13d
jmp 0x1000839af
mov rdi, qword [rsp + 0x40]
mov rcx, qword [0x1004a9500]
cmp rcx, r15
je 0x100083991
test byte [rcx + 0x3c], 2
je 0x100083991
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f920]
mov edx, 0x11
mov r9d, ebp
call fcn.10005c358
cmp rdi, r13
je 0x1000839ab
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x70]
cmp ebp, r13d
jl 0x1000839d3
mov rcx, qword [rsp + 0x90]
cmp eax, r13d
cmovne rbx, r13
cmp rcx, r13
je 0x1000839ce
mov eax, dword [rsp + 0x70]
mov dword [rcx], eax
cmp ebp, r13d
jge 0x1000839fd
mov rcx, qword [0x1004a9500]
cmp rcx, r15
je 0x1000839fd
test byte [rcx + 0x3c], 2
je 0x1000839fd
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f920]
mov edx, 0x22
mov r9d, ebp
call fcn.10005c358
cmp rbx, r13
je 0x100083a16
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x38], r13
je 0x100083a28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
Function at 0x100085208
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rdx
mov edi, 0x104
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov r8d, edi
mov r12, rcx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
jne 0x100085276
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100085266
mov edi, 0x80004005
jmp 0x1000852d0
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1000852cc
cmp esi, edi
ja 0x10008528b
lea rcx, [rsp + 0x30]
mov rdx, rbp
call fcn.10005c2cc
mov edi, eax
jmp 0x1000852cc
lea r8, [rsp + 0x20]
mov rdx, rsi
xor ecx, ecx
call fcn.100085144
mov rbx, qword [rsp + 0x20]
mov edi, eax
test eax, eax
js 0x1000852d0
mov r8d, esi
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100085255
cmp eax, esi
je 0x1000852c3
mov edi, 0x8007007a
jmp 0x1000852d0
mov rax, rbx
xor ebx, ebx
mov qword [rbp], rax
test edi, edi
jns 0x100085301
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x100085301
test byte [rcx + 0x3c], 2
je 0x100085301
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f8e0]
mov edx, 0x13
mov r9d, edi
call fcn.10005c358
test rbx, rbx
je 0x10008531b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10027d5f4
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100099f78
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rax, [r11 - 0x28]
mov rbp, rcx
xor ebx, ebx
lea rdx, [0x100043060]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x28], rbx
mov esi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100099ffd
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, [0x100043080]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100099ffd
cmp dword [rsp + 0x70], 1
sete sil
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10009a00d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
lea rdx, [0x100043060]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rax
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10009a082
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, [0x1000430b0]
xor r8d, r8d
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10009a082
cmp dword [rsp + 0x70], 1
sete dil
mov rcx, qword [rsp + 0x30]
cmp rcx, rbx
je 0x10009a092
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x68]
xor ecx, ecx
call fcn.100133bf8
mov ecx, ebx
cmp eax, ebx
cmovge ecx, dword [rsp + 0x68]
cmp esi, ebx
jne 0x10009a0b3
cmp edi, ebx
je 0x10009a0b8
cmp ecx, ebx
jne 0x10009a0b8
mov ebx, 1
mov dword [rbp], ebx
mov rbx, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000b9044
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1000b909c
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000b9074
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000b908c
mov ebx, 0x80004005
jmp 0x1000b90a5
test al, 1
je 0x1000b90d6
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1000b90d6
jmp 0x1000b9063
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000b90a1
mov ebx, 0x80070057
test ebx, ebx
jns 0x1000b90d6
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000b90d6
test byte [rcx + 0x3c], 2
je 0x1000b90d6
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f500]
mov edx, 0x34
mov r9d, ebx
call fcn.10005c358
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1000bc4d8
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x1004c6748], 1
je 0x1000bc4ef
mov ebx, 0x8000ffff
jmp 0x1000bc526
mov r8, rcx
mov rcx, qword [0x1004c4778]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1000bc557
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000bc514
mov ebx, 0x80004005
jmp 0x1000bc526
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1000bc557
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000bc557
test byte [rcx + 0x3c], 2
je 0x1000bc557
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f1a0]
mov edx, 0xa
mov r9d, ebx
call fcn.10005c358
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1000be2b0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov dword [rax - 0x18], r9d
mov rsi, r8
lea r9, [rax - 0x10]
mov r8d, 2
call fcn.10005b8bc
lea rbp, [0x1004a9500]
mov edi, eax
test eax, eax
js 0x1000be328
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1000be316
xor edi, edi
jmp 0x1000be352
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x1000be352
mov rcx, qword [0x1004a9500]
cmp rcx, rbp
je 0x1000be359
test byte [rcx + 0x3c], 2
je 0x1000be359
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f540]
mov edx, 0x24
mov r9d, edi
call fcn.10005c358
mov rcx, qword [0x1004a9500]
cmp qword [rsp + 0x38], 0
je 0x1000be373
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1004a9500]
test edi, edi
jns 0x1000be39a
cmp rcx, rbp
je 0x1000be39a
test byte [rcx + 0x3c], 2
je 0x1000be39a
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f540]
mov edx, 0x23
mov r9d, edi
call fcn.10005c358
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
xor eax, eax
mov rsi, rdx
mov dword [rsp + 0x20], ebp
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov rdi, rcx
mov qword [r11 + 8], rbp
cmp rcx, rbp
jne 0x1000becb1
mov ebx, 0x80070057
jmp 0x1000bed41
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, 1
cmp eax, 0xffffffff
je 0x1000beccb
movzx eax, al
shr eax, 4
and eax, edx
jmp 0x1000beccd
mov eax, ebp
mov ebx, ebp
cmp eax, ebp
jne 0x1000bed72
cmp rsi, rbp
je 0x1000bed27
lea r8, [rsp + 0x50]
xor r9d, r9d
mov rcx, rsi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
cmp eax, ebp
jne 0x1000bed11
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x1000bed01
mov ebx, 0x80004005
jmp 0x1000bed41
movzx ebx, ax
or ebx, 0x80070000
cmp eax, ebp
cmovle ebx, eax
jmp 0x1000bed3d
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
cmp rsi, rbp
lea rdx, [rsp + 0x20]
mov rcx, rdi
cmove rdx, rbp
call fcn.1000bf448
mov ebx, eax
cmp ebx, ebp
jge 0x1000bed72
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000bed72
test byte [rcx + 0x3c], 2
je 0x1000bed72
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003f500]
mov edx, 0x1e
mov r9d, ebx
call fcn.10005c358
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x1000bed82
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1000cc29c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov rax, qword [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov eax, dword [0x1004c5f08]
mov rbp, rdx
mov r12, rcx
mov edi, 0x78
lea rcx, [rsp + 0x40]
lea rdx, [0x1004c5e90]
mov r8, rdi
mov dword [rsp + 0x34], eax
call sub.msvcrt.dll_memcpy
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8d, [rdi - 0x74]
lea rdx, [rsp + 0x34]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000cc325
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000cc3b6
mov ebx, 0x80004005
jmp 0x1000cc3ce
cmp dword [rsp + 0x30], 4
je 0x1000cc336
mov ebx, 0x8007000d
jmp 0x1000cc3ce
cmp dword [rsp + 0x34], 1
jne 0x1000cc32c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000cc30d
cmp dword [rsp + 0x30], edi
jne 0x1000cc32c
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov r8d, 0x3c
call fcn.10005c018
mov ebx, eax
test eax, eax
js 0x1000cc3ce
lea rsi, [rsp + 0x40]
lea rdi, [0x1000451a0]
mov ecx, 0x22
repe cmpsw word [rsi], word [rdi]
je 0x1000cc3c6
and qword [rsp + 0x20], 0
mov ecx, 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc00004a5
call fcn.1000582dc
mov ebx, 0x80049e59
jmp 0x1000cc3ce
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000cc3ca
mov qword [r12], rbp
test ebx, ebx
jns 0x1000cc3ff
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000cc3ff
test byte [rcx + 0x3c], 2
je 0x1000cc3ff
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003ef08]
mov edx, 0xe
mov r9d, ebx
call fcn.10005c358
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10027d5f4
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1000f5068
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
xor ebx, ebx
xor edi, edi
mov rbp, rdx
mov r12, rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
cmp dword [rcx + 0x18], ebx
jne 0x1000f50c5
call fcn.10042aabc
nop
add byte [rax], al
rol byte [rdi + rax*2 + 0x1a84304a], 0x11
and byte [rax - 0x176fb5b9], cl
add bh, byte [rdx + rax]
add byte [rax + 0x602e481c], dl
sub al, 0xa0
adc byte [r8], sil
movabs al, byte [0xdbe700001360049]
add byte [rdi], al
sub cl, 0x4c
add al, 0
add byte [rax - 0x75], cl
sub byte [r8 - 0x73], cl
xchg esp, eax
and al, 0xc8
add byte [rax], al
add bh, bh
adc eax, 0xfff0c1b1
xor byte [rdx + r11 + 0x47882011], al
nop
call fcn.100118cac
nop
sbb al, 0x48
invalid
mov rcx, qword [rcx + 0x28]
lea rdx, [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.10042aabc
nop
fld dword [0x1617400e3]
push rax
sub al, 0xa1
or al, 0xd0
push 0xffffffff85e04a61
ror byte [rdi], 0x85
xchg ebp, eax
add byte [rax], al
add al, ch
jle 0x1000f509a
invalid

Function at 0x1000f5a2c
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x88
mov eax, dword [r11 + 0x28]
xor ebx, ebx
movzx r13d, cx
lea ecx, [rbx + 5]
mov r12d, edx
mov rsi, r9
cmp eax, ecx
mov ebp, r8d
lea rdx, [r11 + 0x30]
cmova eax, ecx
mov dword [r11 + 0x28], eax
test eax, eax
je 0x1000f5a84
lea rcx, [rdx - 8]
mov r8d, eax
lea rdx, [r11 - 0x68]
add rcx, 8
mov rax, qword [rcx]
mov qword [rdx], rax
add rdx, 8
sub r8, 1
jne 0x1000f5a70
lea rdx, [0x10003eb70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
jne 0x1000f5ab1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000f5b0a
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0xe0]
mov dword [rsp + 0x30], ebp
mov word [rsp + 0x28], ax
and qword [rsp + 0x20], rbx
mov r9d, r12d
movzx edx, r13w
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1000f5b01
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test ebx, ebx
jns 0x1000f5b3f
mov rcx, qword [0x1004a9500]
lea rax, [0x1004a9500]
cmp rcx, rax
je 0x1000f5b3f
test byte [rcx + 0x3c], 2
je 0x1000f5b3f
mov rcx, qword [rcx + 0x30]
lea r8, [0x10003ebc8]
mov edx, 0xa
mov r9d, ebx
call fcn.10005c358
mov eax, ebx
add rsp, 0x88
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret