joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045ce4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
mov rcx, qword [str.___t_]
lea rbp, str.___t_
lea r14, [0x140083a78]
cmp rcx, rbp
je 0x140045d28
test byte [rcx + 0x1c], 4
je 0x140045d28
cmp byte [rcx + 0x19], 5
jb 0x140045d28
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r14
call fcn.140001024
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140002610]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140045d9c
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x140045e80
test byte [rax + 0x1c], 4
je 0x140045e80
cmp byte [rax + 0x19], 2
jb 0x140045e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rbx + 0x35]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x140045e80
mov r8d, 0x4e20
mov ecx, 3
call fcn.14002323c
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140045e1b
cmp eax, 0x102
jne 0x140045df6
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x140045dee
test byte [rcx + 0x1c], 4
je 0x140045dee
cmp byte [rcx + 0x19], 5
jb 0x140045dee
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov r8, r14
call fcn.140001024
mov r8d, 0x7530
jmp 0x140045da2
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x140045e77
test byte [rax + 0x1c], 4
je 0x140045e77
cmp byte [rax + 0x19], 2
jb 0x140045e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x38
jmp 0x140045e50
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x140045e68
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x140045e77
test byte [rax + 0x1c], 4
je 0x140045e77
cmp byte [rax + 0x19], 2
jb 0x140045e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x36
mov rcx, qword [str.___t_]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x140045e77
mov ecx, dword [rsp + 0x50]
test ecx, ecx
sete bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x14004b908
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, ebx
mov rcx, qword [str.___t_]
lea rsi, str.___t_
cmp rcx, rsi
je 0x14004b94f
test byte [rcx + 0x1c], 4
je 0x14004b94f
cmp byte [rcx + 0x19], 5
jb 0x14004b94f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083c00]
mov edx, 0x8f
call fcn.140001024
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140047ad0]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140098410], rax
test rax, rax
jne 0x14004b9c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14004b9b5
test byte [rcx + 0x1c], 4
je 0x14004b9b5
cmp byte [rcx + 0x19], 2
jb 0x14004b9b5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083c00]
mov edx, 0x90
mov r9d, eax
call fcn.140001048
test edi, edi
je 0x14004b9c3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
mov rsi, qword [rsp + 0x50]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14004da64
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and dword [rax - 0x20], 0
mov edx, 0x80000000
and dword [rax + 0x10], 0
mov r8d, 1
mov dword [rax - 0x28], 3
call fcn.140065c60
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004da9c
xor eax, eax
jmp 0x14004dac2
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
or eax, 0xffffffff
cmp dword [rsp + 0x58], 0
cmovne ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14004e4e4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, r9
mov rsi, r8
xor edi, edi
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x14004e533
test byte [rcx + 0x1c], 4
je 0x14004e533
cmp byte [rcx + 0x19], 5
jb 0x14004e533
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x140083c80]
call fcn.140001024
lea rcx, [0x1400982b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8, rsi
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14004e58b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14004e5d1
test byte [rcx + 0x1c], 4
je 0x14004e5d1
cmp byte [rcx + 0x19], 2
jb 0x14004e5d1
lea edx, [rbx + 0x31]
jmp 0x14004e5be
call fcn.14004e2dc
test eax, eax
jne 0x14004e5d1
mov rax, qword [str.___t_]
cmp rax, r14
je 0x14004e5d1
test byte [rax + 0x1c], 4
je 0x14004e5d1
cmp byte [rax + 0x19], 2
jb 0x14004e5d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083c80]
mov r9d, eax
call fcn.140001048
lea rcx, [0x1400982b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x14004e5eb
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x14005cd94
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r14
mov r14, rdx
mov rsi, rcx
lea r15, str.___t_
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005cdeb
test byte [rcx + 0x1c], 4
je 0x14005cdeb
cmp byte [rcx + 0x19], 5
jb 0x14005cdeb
mov edx, 0xf
lea r8, [0x140084790]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
xor ebx, ebx
mov r8d, dword [rsi + 0x30]
lea rdx, str.CountryCode
mov rcx, r14
call fcn.1400670a4
test eax, eax
jne 0x14005ce4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005cfa2
test byte [rcx + 0x1c], 4
je 0x14005cfa2
cmp byte [rcx + 0x19], 2
jb 0x14005cfa2
mov edx, 0x10
mov r9d, eax
lea r8, [0x140084790]
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x14005cfa2
mov r8d, dword [rsi + 0x34]
lea rdx, str.AreaCode
mov rcx, r14
call fcn.1400670a4
test eax, eax
jne 0x14005ce97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005cfa2
test byte [rcx + 0x1c], 4
je 0x14005cfa2
cmp byte [rcx + 0x19], 2
jb 0x14005cfa2
mov edx, 0x11
jmp 0x14005ce35
mov r8d, ebx
cmp dword [rsi + 0x2c], ebx
setne r8b
lea rdx, str.UseGroup
mov rcx, r14
call fcn.1400670a4
test eax, eax
jne 0x14005ceea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005cfa2
test byte [rcx + 0x1c], 4
je 0x14005cfa2
cmp byte [rcx + 0x19], 2
jb 0x14005cfa2
mov edx, 0x12
jmp 0x14005ce35
cmp dword [rsi + 0x2c], ebx
jne 0x14005cf38
mov r8d, dword [rsi + 0x28]
lea rdx, str.DeviceID
mov rcx, r14
call fcn.1400670a4
test eax, eax
jne 0x14005cfa2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005cfa2
test byte [rcx + 0x1c], 4
je 0x14005cfa2
cmp byte [rcx + 0x19], 2
jb 0x14005cfa2
mov edx, 0x13
jmp 0x14005ce35
cmp qword [rsi + 0x20], 8
jb 0x14005cf45
mov r9, qword [rsi + 8]
jmp 0x14005cf49
lea r9, [rsi + 8]
lea r8, str.GroupName
mov edx, 1
mov rcx, r14
call fcn.140067168
test eax, eax
jne 0x14005cf9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005cf9a
test byte [rcx + 0x1c], 4
je 0x14005cf9a
cmp byte [rcx + 0x19], 2
jb 0x14005cf9a
mov edx, 0x14
mov r9d, eax
lea r8, [0x140084790]
mov rcx, qword [rcx + 0x10]
call fcn.140001048
nop
jmp 0x14005cfa2
jmp 0x14005cfa2
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140063dc4
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov dword [rsp + 0x68], ebx
mov r14, rcx
mov rcx, qword [str.___t_]
lea r12, str.___t_
lea r13, [0x140084c98]
cmp rcx, r12
je 0x140063e14
test byte [rcx + 0x1c], 2
je 0x140063e14
cmp byte [rcx + 0x19], 5
jb 0x140063e14
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
mov r8, r13
call fcn.140001024
test rdi, rdi
je 0x140063f9c
cmp dword [rdi], 0x14
jne 0x140063f9c
lea rdx, [rsp + 0x68]
mov dword [rdi + 4], ebx
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140063e78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140063e71
test byte [rcx + 0x1c], 2
je 0x140063e71
cmp byte [rcx + 0x19], 2
jb 0x140063e71
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r9d, eax
mov r8, r13
call fcn.140001048
mov eax, ebx
jmp 0x140063fa1
mov rcx, rsi
call fcn.140063430
mov rbp, rax
test rax, rax
jne 0x140063ebc
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140063eb2
test byte [rcx + 0x1c], 2
je 0x140063eb2
cmp byte [rcx + 0x19], 2
jb 0x140063eb2
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xc]
mov r9d, esi
mov r8, r13
call fcn.140001048
mov eax, 8
jmp 0x140063fa1
mov edx, dword [rsp + 0x68]
mov r9, rbp
mov r8d, esi
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140063f15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140063f8f
test byte [rcx + 0x1c], 2
je 0x140063f8f
cmp byte [rcx + 0x19], 2
jb 0x140063f8f
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001048
jmp 0x140063f8f
lea r9, [rsp + 0x70]
mov rcx, rbp
lea r8, [rsp + 0x78]
lea rdx, [0x140084bb8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140063f5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140063f8f
test byte [rcx + 0x1c], 2
je 0x140063f8f
cmp byte [rcx + 0x19], 2
jb 0x140063f8f
mov edx, 0xe
jmp 0x140063f04
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + 0x1c]
and eax, 1
mov dword [rdi + 0x10], eax
movzx eax, word [rcx + 0x12]
mov word [rdi + 8], ax
movzx eax, word [rcx + 0x10]
mov word [rdi + 0xa], ax
movzx eax, word [rcx + 0x16]
mov word [rdi + 0xc], ax
movzx eax, word [rcx + 0x14]
mov word [rdi + 0xe], ax
mov dword [rdi + 4], 1
mov rcx, rbp
call fcn.1400634d4
jmp 0x140063e71
mov eax, 0x57
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140063fb8
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [str.___t_]
lea rdi, str.___t_
cmp rcx, rdi
je 0x140064007
test byte [rcx + 0x1c], 2
je 0x140064007
cmp byte [rcx + 0x19], 5
jb 0x140064007
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084c98]
mov edx, 0xf
call fcn.140001024
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
test eax, eax
jne 0x140064073
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x14006406f
test byte [rax + 0x1c], 2
je 0x14006406f
cmp byte [rax + 0x19], 2
jb 0x14006406f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140084c98]
mov r9d, eax
mov edx, 0x10
mov rcx, qword [rcx + 0x10]
call fcn.140001048
xor eax, eax
jmp 0x14006407d
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x150
pop rdi
ret
Function at 0x140064580
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [str.___t_]
lea r14, str.___t_
lea r15, [0x140084db8]
cmp rcx, r14
je 0x1400645d3
test byte [rcx + 0x1c], 2
je 0x1400645d3
cmp byte [rcx + 0x19], 5
jb 0x1400645d3
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r15
call fcn.140001024
mov edx, 0x25
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rcx, rsi
test rax, rax
jne 0x140064623
call fcn.14006409c
test rax, rax
jne 0x14006470a
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140064708
test byte [rcx + 0x1c], 2
je 0x140064708
cmp byte [rcx + 0x19], 2
jb 0x140064708
lea edx, [rax + 0x18]
jmp 0x1400646a4
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
jne 0x140064675
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140064708
test byte [rcx + 0x1c], 2
je 0x140064708
cmp byte [rcx + 0x19], 2
jb 0x140064708
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x19]
mov r9d, eax
mov r8, r15
call fcn.140001048
jmp 0x140064708
inc ebx
mov ecx, ebx
add rcx, rcx
call fcn.140063430
mov rdi, rax
test rax, rax
jne 0x1400646b2
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140064708
test byte [rcx + 0x1c], 2
je 0x140064708
cmp byte [rcx + 0x19], 2
jb 0x140064708
lea edx, [rax + 0x1a]
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.140001024
jmp 0x140064708
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400646ce
cmp eax, ebx
ja 0x1400646ce
mov rax, rdi
jmp 0x14006470a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140064700
test byte [rcx + 0x1c], 2
je 0x140064700
cmp byte [rcx + 0x19], 2
jb 0x140064700
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r9d, eax
mov r8, r15
call fcn.140001048
mov rcx, rdi
call fcn.1400634d4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14006472c
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov rbp, r8
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [rax - 1]
cmp esi, 0x103
ja 0x140064872
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
mov r9d, esi
mov qword [rsp + 0x20], rbx
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x140064872
xor r14d, r14d
mov r11d, 0x7fffffff
mov r10d, r14d
mov ecx, r14d
test rbx, rbx
je 0x1400647ec
mov r8d, r11d
mov rax, rbx
cmp word [rax], r14w
je 0x1400647cc
add rax, 2
sub r8, 1
jne 0x1400647bc
mov rax, r8
mov r9d, 0x80070057
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x1400647f5
mov r10, r11
sub r10, r8
jmp 0x1400647f5
mov r9d, 0x80070057
mov edx, r9d
test edx, edx
js 0x140064872
test rdi, rdi
je 0x14006482e
mov r8, r11
mov rax, rdi
cmp word [rax], r14w
je 0x140064814
add rax, 2
sub r8, 1
jne 0x140064804
mov rax, r8
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x140064831
mov rcx, r11
sub rcx, r8
jmp 0x140064831
mov edx, r9d
test edx, edx
js 0x140064872
mov r8d, esi
sub rcx, r8
add rcx, r10
cmp rcx, 0x104
jae 0x140064872
lea r8, [rbx + rsi*2]
mov r9, rdi
mov qword [rsp + 0x20], r8
mov edx, 0x104
lea r8, str._s_s
mov rcx, rbp
call fcn.1400029e8
test eax, eax
js 0x140064872
mov eax, 1
jmp 0x140064874
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140066634
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rdx
mov rsi, r8
xor edx, edx
mov r14, rcx
mov ebx, edx
mov dword [rbp + 0x48], edx
mov edi, edx
mov dword [rbp + 0x30], edx
mov r15d, edx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14006669a
test byte [rcx + 0x1c], 2
je 0x14006669a
cmp byte [rcx + 0x19], 5
jb 0x14006669a
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x19]
lea r8, [0x140084e20]
call fcn.140001024
xor edx, edx
cmp dx, word [r14]
jne 0x1400666aa
mov eax, 0x57
jmp 0x14006684a
lea rax, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14006673c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov ebx, eax
mov rax, rdi
cmove ebx, eax
test ebx, ebx
je 0x14006673c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140066834
test byte [rcx + 0x1c], 2
je 0x140066834
cmp byte [rcx + 0x19], 2
jb 0x140066834
mov edx, 0x1a
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084e20]
call fcn.140001048
jmp 0x140066834
mov ecx, dword [rbp + 0x48]
call fcn.140063430
mov rdi, rax
test rax, rax
jne 0x140066783
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140066834
test byte [rcx + 0x1c], 2
je 0x140066834
cmp byte [rcx + 0x19], 2
jb 0x140066834
mov r9d, dword [rbp + 0x48]
lea edx, [rdi + 0x1b]
jmp 0x140066727
mov ecx, dword [rbp + 0x30]
add rcx, rcx
call fcn.140063430
mov r15, rax
test rax, rax
jne 0x1400667c8
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140066834
test byte [rcx + 0x1c], 2
je 0x140066834
cmp byte [rcx + 0x19], 2
jb 0x140066834
mov r9d, dword [rbp + 0x30]
lea edx, [rbx + 0x14]
jmp 0x140066727
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140066826
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140066834
test byte [rcx + 0x1c], 2
je 0x140066834
cmp byte [rcx + 0x19], 2
jb 0x140066834
mov edx, 0x1d
jmp 0x140066724
mov qword [r12], rdi
test rsi, rsi
je 0x140066834
mov eax, dword [rbp - 0x10]
mov dword [rsi], eax
mov rcx, r15
call fcn.1400634d4
test ebx, ebx
je 0x140066848
mov rcx, rdi
call fcn.1400634d4
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140066eac
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov dword [rsp + 0x30], 4
mov qword [r11 - 0x20], rax
mov r14d, r9d
mov qword [r11 - 0x28], r8
lea r9, [r11 - 0x14]
mov rsi, r8
mov rdi, rdx
xor r8d, r8d
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 2
jne 0x140066f32
mov dword [rsp + 0x28], 4
lea r9d, [rax + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rsi], r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140066f2b
lea rcx, str.RegSetValueEx___failed__s___ec_d
jmp 0x140066f44
mov eax, 1
jmp 0x140066f59
test ebx, ebx
jne 0x140066f3d
cmp dword [rsp + 0x34], 4
je 0x140066f2b
lea rcx, str.RegQueryValueEx___failed__s___ec_d
mov r8d, ebx
mov rdx, rdi
call fcn.140069168
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140066f7c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov rsi, r8
mov qword [r11 - 0x30], rax
xor ebx, ebx
mov dword [rbp - 0x10], 3
and qword [r11 - 0x38], rbx
lea r9, [rbp - 0x10]
xor r8d, r8d
mov rdi, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140066ff5
cmp eax, 2
je 0x140067002
mov edx, eax
lea rcx, str.RegQueryValueEx___failed__ec_d
call fcn.140069168
mov rcx, rbx
call fcn.1400634d4
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
cmp dword [rbp - 0x10], 3
jne 0x140066fe0
mov eax, dword [rbp + 0x38]
test eax, eax
jne 0x14006700a
mov eax, 1
mov dword [rbp + 0x38], eax
lea ecx, [rax + 1]
call fcn.140063430
mov rbx, rax
test rax, rax
je 0x140066fd8
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x38]
mov byte [rcx + rbx], 0
test eax, eax
je 0x14006708b
cmp eax, 2
jne 0x140066fca
mov eax, dword [rbp + 0x38]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14006708b
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140069168
jmp 0x140066fd8
test rsi, rsi
je 0x140067095
mov eax, dword [rbp + 0x38]
mov dword [rsi], eax
mov rax, rbx
jmp 0x140066fe2
Function at 0x1400670a4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x30
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400670f6
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140069168
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400670fb
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14006710c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
sub rsp, 0x30
test r9d, r9d
mov dword [r11 - 0x10], r9d
lea rax, [r11 + 0x20]
mov r9d, 3
cmovne rax, r8
mov rbx, rdx
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140067157
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140069168
xor eax, eax
jmp 0x14006715c
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140067168
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, r8
test r9, r9
je 0x140067194
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], di
jne 0x140067180
lea rax, [rax*2 + 2]
jmp 0x140067197
mov rax, rdi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], r9
mov r9d, edx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400671c9
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140069168
xor eax, eax
jmp 0x1400671ce
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret