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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400748d8]
xor rax, rsp
mov qword [rbp - 8], rax
xor r14d, r14d
mov rsi, r8
mov dword [rbp - 0x20], r14d
mov ebx, r14d
mov qword [rbp - 0x18], r14
test r8, r8
jne 0x140030706
mov eax, 0x80070057
jmp 0x140030871
mov dword [r8], r14d
lea r13, [0x1400720b0]
mov rdi, r14
lea r15, str.___a_
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14003072d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp - 0x18], r14
test byte [rdi + r13], 0x20
je 0x14003084a
mov rcx, qword [rdi + r13 + 8]
test rcx, rcx
je 0x14003078b
lea rdx, [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x1400307e3
call fcn.140038cd4
mov rcx, qword [str.___a_]
cmp rcx, r15
je 0x140030783
test byte [rcx + 0x1c], 1
je 0x140030783
mov rcx, qword [rcx + 0x10]
lea r8, [0x140064898]
mov edx, 0xb
mov r9d, eax
call fcn.140002534
mov ebx, r14d
jmp 0x14003084a
cmp dword [rdi + r13], 1
jne 0x1400307e3
lea rax, [rbp - 0x18]
mov dword [rbp - 0x10], r14d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], r14d
mov r9d, 0x220
mov dword [rsp + 0x40], r14d
mov r8d, 0x20
mov dword [rsp + 0x38], r14d
mov dl, 2
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140030899
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
mov dword [rbp - 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140030800
mov ebx, r14d
jmp 0x140030840
call fcn.140038cd4
mov ebx, eax
mov rcx, qword [str.___a_]
cmp rcx, r15
je 0x140030838
test byte [rcx + 0x1c], 1
je 0x140030838
mov rcx, qword [rcx + 0x10]
lea r8, [0x140064898]
mov edx, 0xa
mov r9d, eax
call fcn.140002534
mov rcx, qword [str.___a_]
test ebx, ebx
js 0x1400308d1
cmp dword [rbp - 0x20], r14d
jne 0x1400308cc
add rdi, 0x10
cmp rdi, 0x90
jb 0x14003071a
mov eax, dword [rbp - 0x20]
mov dword [rsi], eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14003086f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140040760
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.140038cd4
mov ebx, eax
mov rcx, qword [str.___a_]
cmp rcx, r15
je 0x140030860
test byte [rcx + 0x1c], 1
je 0x140030860
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140064898]
call fcn.140002534
jmp 0x140030860
mov ebx, r14d
jmp 0x14003085b
cmp rcx, r15
je 0x140030860
test byte [rcx + 0x1c], 1
je 0x140030860
mov edx, 0xd
mov r9d, ebx
jmp 0x1400308ba
Function at 0x14003145c
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400314c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070005
jne 0x1400314c2
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400314b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x1400314c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14003149d
xor ecx, ecx
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400314cc
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
call fcn.1400315cc
lea rbp, str.___a_
test eax, eax
jns 0x140031524
mov rcx, qword [str.___a_]
cmp rcx, rbp
je 0x140031524
test byte [rcx + 0x1c], 2
je 0x140031524
mov rcx, qword [rcx + 0x10]
lea r8, [0x140064918]
mov edx, 0xe
mov dword [rsp + 0x20], eax
mov r9, rsi
call fcn.140002410
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140031576
call fcn.140038cd4
mov ebx, eax
mov rcx, qword [str.___a_]
cmp rcx, rbp
je 0x1400315b2
test byte [rcx + 0x1c], 1
je 0x1400315b2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140064918]
mov dword [rsp + 0x28], eax
mov edx, 0xf
mov r9, rsi
mov qword [rsp + 0x20], rdi
call fcn.14000d5f0
jmp 0x1400315b2
mov rcx, rdi
call fcn.1400315cc
mov ebx, eax
test eax, eax
jns 0x1400315b2
mov rcx, qword [str.___a_]
cmp rcx, rbp
je 0x1400315b2
test byte [rcx + 0x1c], 1
je 0x1400315b2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140064918]
mov edx, 0x10
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140002410
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400315cc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14003162b
call fcn.140038cd4
mov ebx, eax
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x14003167a
test byte [rcx + 0x1c], 1
je 0x14003167a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140064918]
mov edx, 0x16
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140002410
jmp 0x14003167a
test dil, 7
je 0x14003167a
and edi, 0xffffb1a8
mov rcx, rsi
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14003167a
call fcn.140038cd4
mov ebx, eax
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x14003167a
test byte [rcx + 0x1c], 1
je 0x14003167a
mov rcx, qword [rcx + 0x10]
mov r9, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.1400313cc
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140035138
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400748d8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13d, r8d
mov r14d, edx
mov rax, rcx
mov qword [rbp - 0x38], rcx
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rcx
mov dword [rbp - 0x18], ecx
xor esi, esi
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140038fc8
mov edi, eax
test eax, eax
js 0x140035300
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
mov r15d, dword [rbp - 0x1c]
cmp dword [rbp - 0x2c], r14d
je 0x14003531c
mov ecx, 0x2710
mov eax, 0xcccccccd
mul dword [rbp - 0x18]
mov ebx, edx
shr ebx, 3
cmp ebx, 0x7d0
jae 0x1400351ca
mov ebx, 0x7d0
jmp 0x1400351cf
cmp ebx, ecx
cmova ebx, ecx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add esi, ebx
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140038fc8
mov edi, eax
test eax, eax
js 0x140035300
cmp dword [rbp - 0x2c], r14d
je 0x14003531c
cmp r13d, 0xffffffff
je 0x140035209
cmp r13d, esi
jb 0x1400352c1
cmp dword [rbp - 0x1c], r15d
jbe 0x14003521e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r12d, eax
mov r15d, dword [rbp - 0x1c]
jmp 0x140035262
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r12d
mov r9d, dword [rbp - 0x18]
cmp eax, r9d
jbe 0x140035262
mov rcx, qword [str.___a_]
lea rdx, str.___a_
cmp rcx, rdx
je 0x140035262
test byte [rcx + 0x1c], 4
je 0x140035262
mov edx, 0xb
mov dword [rsp + 0x20], eax
lea r8, str.eD9
mov rcx, qword [rcx + 0x10]
call fcn.1400021a4
and dword [rbp - 0x40], 0
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
movabs r10, 0x839537915cdcb870
lea rcx, [rbp - 0x40]
mov rax, qword [rax + 0x98]
call qword [0x14004a4e8]
nop
cmp dword [rbp - 0x40], 0
je 0x14003529c
cmp esi, 0x1b7740
jbe 0x14003529c
call qword [sym.imp.KERNEL32.dll_DebugBreak]
cmp dword [rbp - 0x2c], r14d
jne 0x1400351a9
test esi, esi
je 0x14003531c
mov eax, dword [rbp - 0x24]
test eax, eax
je 0x1400352f9
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14003533a
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x1400352f2
test byte [rcx + 0x1c], 1
je 0x1400352f2
mov edx, 0xa
mov r9d, r14d
lea r8, str.eD9
mov rcx, qword [rcx + 0x10]
call fcn.140002534
mov ebx, 0x800705b4
jmp 0x14003531e
mov ebx, 0x800705b4
jmp 0x14003533a
mov r9d, eax
lea r8, str.HrQueryServiceStatus
lea rdx, str._S_failed__code_0x_x
xor ecx, ecx
call fcn.14003596c
mov ebx, edi
jmp 0x14003531e
xor ebx, ebx
test edi, edi
jns 0x14003533a
mov r9d, edi
lea r8, str.UtilWaitForServiceOp
lea rdx, str._S_failed__code_0x_x
xor ecx, ecx
call fcn.14003596c
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140040760
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038f10
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
lea rax, [rax + 0x18]
mov rsi, rdx
mov dword [rsp + 0x50], edi
and dword [rax], edi
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 0x24]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140038fb6
call fcn.140038cd4
mov ebx, eax
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x140038f9d
test byte [rcx + 0x1c], 1
je 0x140038f9d
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140038e68
mov rcx, qword [str.___a_]
lea edx, [rdi + 0xc]
lea r8, [0x140065150]
mov dword [rsp + 0x20], ebx
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140002410
mov edi, 1
test dil, 1
je 0x140038fb2
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140038fb2
call fcn.140040784
mov eax, ebx
jmp 0x140038fb8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140038fc8
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
xor ebx, ebx
mov rdx, rcx
mov dword [rsp + 0x50], ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14003905b
call fcn.140038cd4
mov edi, eax
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x140039043
test byte [rcx + 0x1c], 1
je 0x140039043
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140038e68
mov rcx, qword [str.___a_]
lea edx, [rbx + 0xd]
lea r8, [0x140065150]
mov dword [rsp + 0x20], edi
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140002410
mov ebx, 1
test bl, 1
je 0x140039057
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140039057
call fcn.140040784
mov eax, edi
jmp 0x14003905d
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400392fc
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rcx
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140039398
call fcn.140038cd4
mov ebx, eax
cmp eax, 0x80070420
jne 0x140039331
lea eax, [rdi + 1]
jmp 0x14003939a
mov rax, qword [str.___a_]
lea rcx, str.___a_
cmp rax, rcx
je 0x14003937f
test byte [rax + 0x1c], 1
je 0x14003937f
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.140038e68
mov rcx, qword [str.___a_]
lea r8, [0x140065150]
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140002410
mov edi, 1
test dil, 1
je 0x140039394
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140039394
call fcn.140040784
mov eax, ebx
jmp 0x14003939a
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400393ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400748d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rdi, rcx
xorps xmm0, xmm0
mov qword [rsp + 0x30], rax
mov rdx, rcx
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
call fcn.140038fc8
test eax, eax
js 0x1400394c0
cmp dword [rsp + 0x24], 1
jne 0x1400393fe
xor eax, eax
jmp 0x1400394c0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x927c0
ja 0x1400394bb
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140038fc8
test eax, eax
js 0x1400394c0
cmp dword [rsp + 0x24], 1
je 0x1400393f7
cmp dword [rsp + 0x24], 3
je 0x140039406
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140039496
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x140039496
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x140039492
test byte [rcx + 0x1c], 1
je 0x140039492
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
lea r8, [0x140065150]
mov r9d, ebx
call fcn.140002534
mov eax, ebx
jmp 0x1400394c0
mov rcx, qword [str.___a_]
lea rax, str.___a_
mov ebx, 0x80004005
cmp rcx, rax
je 0x140039492
test byte [rcx + 0x1c], 1
je 0x140039492
mov edx, 0x12
jmp 0x14003947f
mov eax, 0x800705b4
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140040760
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140039624
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [rsp + 0x98]
xor ebx, ebx
mov rsi, rcx
mov dword [rsp + 0x88], ebx
or ecx, 0xffffffff
cmp edx, ecx
jne 0x140039657
test rax, rax
je 0x140039702
and qword [rsp + 0x50], rbx
mov r8d, edx
and qword [rsp + 0x48], rbx
mov r9d, ecx
and qword [rsp + 0x40], rbx
mov edx, ecx
and qword [rsp + 0x38], rbx
mov rcx, rsi
and qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140039702
call fcn.140038cd4
mov edi, eax
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x1400396e7
test byte [rcx + 0x1c], 1
je 0x1400396e7
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.140038e68
mov rcx, qword [str.___a_]
lea r8, [0x140065150]
mov edx, 0x16
mov dword [rsp + 0x20], edi
mov r9, qword [rax]
mov rcx, qword [rcx + 0x10]
call fcn.140002410
mov ebx, 1
test bl, 1
je 0x1400396fe
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400396fe
call fcn.140040784
mov eax, edi
jmp 0x140039704
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140039a4c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, qword [r9]
mov rdi, r9
mov eax, r14d
mov r15, r8
mov dword [rsp + 0x68], eax
mov rbp, rdx
cmp rax, r14
je 0x140039a83
mov ebx, 0x80070057
jmp 0x140039acb
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x140039b05
test rbx, rbx
je 0x140039ae6
mov eax, dword [rsp + 0x68]
cmp rax, qword [rdi]
jbe 0x140039ae6
mov ebx, 0x800700ea
mov qword [rdi], rax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov eax, dword [rsp + 0x68]
mov r9, rdi
mov qword [rdi], rax
mov rdx, r14
mov r8d, dword [r15]
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.1400399b0
jmp 0x140039acd
mov ebx, 0x80070002
cmp esi, ebx
jne 0x140039b41
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x140039acb
test byte [rcx + 0x1c], 4
je 0x140039acb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140065160]
mov edx, 0x15
mov r9, rbp
call fcn.1400022ac
jmp 0x140039acb
mov ebx, 0x800700ea
cmp esi, ebx
je 0x140039b86
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x140039b7f
test byte [rcx + 0x1c], 1
je 0x140039b7f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140065160]
mov edx, 0x16
mov dword [rsp + 0x20], esi
mov r9, rbp
call fcn.140002410
mov ebx, esi
jmp 0x140039acb
mov eax, dword [rsp + 0x68]
cmp qword [rdi], rax
jb 0x140039ac8
mov ebx, 0x8000ffff
jmp 0x140039acb

Function at 0x140039e90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x60]
mov r9d, 4
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140039f07
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x140039ef6
test byte [rcx + 0x1c], 1
je 0x140039ef6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140065160]
mov edx, 0x18
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.14000230c
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
test eax, eax
js 0x140039f09
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140039fc0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
cmp qword [rcx + 0x20], 0
mov r12, rdx
mov rdi, rcx
jne 0x140039ff3
mov eax, 0x80070057
jmp 0x14003a1ab
mov rsi, qword [rdi + 0x28]
mov r15, qword [rdi + 0x20]
mov r13, rsi
mov r14, qword [rdi + 0x18]
mov eax, esi
mov dword [rbp + 0x40], esi
cmp rax, rsi
je 0x14003a016
mov ebx, 0x80070057
jmp 0x14003a115
mov eax, r14d
cmp rax, r14
jne 0x14003a00c
mov rcx, qword [rdi + 0x10]
lea r9, [rbp + 0x40]
mov qword [rsp + 0x38], r8
mov edx, r14d
and qword [rsp + 0x30], 0
mov r8, r15
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003a0b1
mov ecx, dword [rbp + 0x40]
mov edx, 0x800700ea
inc ecx
mov dword [rbp + 0x40], ecx
test r15, r15
je 0x14003a075
mov eax, ecx
cmp rax, rsi
cmova ebx, edx
mov esi, ecx
mov eax, ebx
mov qword [rbp + 0x58], rsi
cmp ebx, edx
je 0x14003a113
cmp ebx, 0x80070103
je 0x14003a113
test ebx, ebx
js 0x14003a11d
mov r9, r15
lea r8, [rbp + 0x58]
mov rdx, r13
mov rcx, r14
call fcn.140039f14
mov rsi, qword [rbp + 0x58]
jmp 0x14003a113
cmp ebx, 0x80070103
jne 0x14003a0bd
mov eax, ebx
jmp 0x14003a113
mov edx, 0x800700ea
cmp ebx, edx
je 0x14003a0fd
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x14003a115
test byte [rcx + 0x1c], 1
je 0x14003a115
mov rcx, qword [rcx + 0x10]
lea r8, [0x140065160]
mov edx, 0x1a
mov dword [rsp + 0x20], ebx
mov r9d, r14d
call fcn.140002268
jmp 0x14003a115
mov ecx, dword [rbp + 0x40]
inc ecx
cmp rsi, rcx
jb 0x14003a10e
mov ebx, 0x8000ffff
jmp 0x14003a115
mov rsi, rcx
mov eax, edx
mov ebx, eax
test ebx, ebx
jns 0x14003a19d
cmp ebx, 0x80070103
je 0x14003a196
xor eax, eax
mov ecx, 0x800700ea
cmp ebx, ecx
cmovne eax, ebx
cmp eax, 0x8007139f
jne 0x14003a145
inc qword [rdi + 0x18]
mov r8, qword [rbp + 0x50]
jmp 0x140039ff3
test eax, eax
js 0x14003a1ab
and qword [rbp + 0x40], 0
lea rcx, [rbp + 0x40]
mov rdx, rsi
call fcn.14002ea34
mov ebx, eax
test eax, eax
js 0x14003a184
mov rcx, qword [rdi + 0x20]
mov rax, qword [rbp + 0x40]
mov r8, qword [rbp + 0x50]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rsi
test rcx, rcx
je 0x140039ff3
call fcn.140040784
jmp 0x14003a13c
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14003a192
call fcn.140040784
mov eax, ebx
jmp 0x14003a1ab
and qword [r12], 0
jmp 0x14003a1a9
mov rax, qword [rdi + 0x20]
inc qword [rdi + 0x18]
mov qword [r12], rax
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003a2f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rsi, qword [rsp + 0xa8]
mov r10, rcx
mov rcx, qword [r9]
mov r14, r9
mov eax, ecx
mov rbp, rdx
mov qword [rsp + 0x40], rcx
mov r12, qword [rsi]
mov dword [r11 + 0x20], eax
cmp rax, rcx
je 0x14003a340
mov ebx, 0x80070057
jmp 0x14003a4bf
mov eax, r12d
mov dword [rsp + 0xa8], eax
cmp rax, r12
jne 0x14003a336
mov eax, ebp
cmp rax, rbp
jne 0x14003a336
mov r13, qword [rsp + 0xb0]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x98]
mov qword [rsp + 0x30], r13
xor edi, edi
mov qword [rsp + 0x28], r8
mov rcx, r10
mov r8, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14003a457
mov edx, dword [rsp + 0x98]
mov ecx, 0x800700ea
inc edx
cmp qword [rsp + 0xa0], rdi
je 0x14003a3cb
mov eax, edx
cmp rax, qword [r14]
cmova ebx, ecx
test r13, r13
je 0x14003a3dd
mov eax, dword [rsp + 0xa8]
cmp rax, qword [rsi]
cmova ebx, ecx
mov eax, edx
mov qword [r14], rax
mov eax, dword [rsp + 0xa8]
mov qword [rsi], rax
mov eax, ebx
cmp ebx, ecx
je 0x14003a4d2
mov ecx, 0x80070103
cmp ebx, ecx
je 0x14003a4d2
test ebx, ebx
js 0x14003a4bf
mov r9, qword [rsp + 0xa0]
mov r8, r14
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.140039f14
test eax, eax
js 0x14003a4d2
mov rax, qword [rsp + 0x90]
mov r9, rsi
mov rcx, qword [rsp + 0xa0]
mov rdx, r12
mov qword [rsp + 0x20], r13
mov r8d, dword [rax]
call fcn.1400399b0
test eax, eax
cmovs edi, eax
mov eax, edi
jmp 0x14003a4d2
mov ecx, 0x80070103
cmp ebx, ecx
je 0x14003a4d0
mov ecx, 0x800700ea
cmp ebx, ecx
je 0x14003a4a0
mov rcx, qword [str.___a_]
lea rax, str.___a_
cmp rcx, rax
je 0x14003a4bf
test byte [rcx + 0x1c], 1
je 0x14003a4bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140065160]
mov edx, 0x1c
mov dword [rsp + 0x20], ebx
mov r9d, ebp
call fcn.140002268
jmp 0x14003a4bf
mov edx, dword [rsp + 0x98]
inc edx
cmp qword [r14], rdx
jb 0x14003a4c3
mov eax, dword [rsp + 0xa8]
cmp qword [rsi], rax
jb 0x14003a4c3
mov ebx, 0x8000ffff
mov eax, ebx
jmp 0x14003a4d2
mov eax, dword [rsp + 0xa8]
mov qword [rsi], rax
mov qword [r14], rdx
mov eax, ecx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret