joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ee58
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x10], 0
mov dword [rax - 0x10], 2
xor edi, edi
and qword [rax - 0x18], rdi
and dword [rax - 0x20], edi
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call fcn.140079cec
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005eea1
xor eax, eax
jmp 0x14005eeed
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movabs rcx, 0xfffffffff
mov ebx, eax
cmp rbx, rcx
jne 0x14005eecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov edi, eax
jmp 0x14005eed6
or eax, 0xffffffff
cmp dword [rsp + 0x58], edi
cmovne ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14005eeeb
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14005f928
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rbx, r9
mov rdi, r8
mov rcx, qword [str.P5_n_]
lea rbp, str.P5_n_
cmp rcx, rbp
je 0x14005f975
test byte [rcx + 0x1c], 4
je 0x14005f975
cmp byte [rcx + 0x19], 5
jb 0x14005f975
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008ec8]
mov edx, 0x30
call fcn.14000ffa8
lea rcx, [0x1400a3f10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r11, qword [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], 0
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14005f9e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rbp
je 0x14005fa2b
test byte [rcx + 0x1c], 4
je 0x14005fa2b
cmp byte [rcx + 0x19], 2
jb 0x14005fa2b
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x31]
lea r8, [0x140008ec8]
mov r9d, eax
call fcn.1400100e0
jmp 0x14005fa2b
call fcn.14005f710
test eax, eax
jne 0x14005fa27
mov rax, qword [str.P5_n_]
cmp rax, rbp
je 0x14005fa27
test byte [rax + 0x1c], 4
je 0x14005fa27
cmp byte [rax + 0x19], 2
jb 0x14005fa27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140008ec8]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x32
call fcn.1400100e0
mov ebx, dword [rsp + 0x48]
lea rcx, [0x1400a3f10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rdi, rdi
jne 0x14005fa45
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14006f83c
Capabilities:
Get geographical location

Disassembly:
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], r12
mov r13, rdx
mov r12, rcx
lea rsi, str.P5_n_
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x14006f894
test byte [rcx + 0x1c], 4
je 0x14006f894
cmp byte [rcx + 0x19], 5
jb 0x14006f894
mov edx, 0xf
lea r8, [0x140008e78]
mov rcx, qword [rcx + 0x10]
call fcn.14000ffa8
xor ebx, ebx
mov r8d, dword [r12 + 0x30]
lea rdx, [0x14000c970]
mov rcx, r13
call fcn.14007b1f0
cmp eax, ebx
jne 0x14006f8f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x14006fa9b
test byte [rcx + 0x1c], 4
je 0x14006fa9b
cmp byte [rcx + 0x19], 2
jb 0x14006fa9b
mov edx, 0x10
mov r9d, eax
lea r8, [0x140008e78]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x14006fa9b
mov r8d, dword [r12 + 0x34]
lea rdx, [0x14000c988]
mov rcx, r13
call fcn.14007b1f0
cmp eax, ebx
jne 0x14006f958
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x14006fa9b
test byte [rcx + 0x1c], 4
je 0x14006fa9b
cmp byte [rcx + 0x19], 2
jb 0x14006fa9b
mov edx, 0x11
mov r9d, eax
lea r8, [0x140008e78]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x14006fa9b
mov r8d, ebx
cmp dword [r12 + 0x2c], ebx
setne r8b
lea rdx, [0x14000c9a0]
mov rcx, r13
call fcn.14007b1f0
cmp eax, ebx
jne 0x14006f9c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x14006fa9b
test byte [rcx + 0x1c], 4
je 0x14006fa9b
cmp byte [rcx + 0x19], 2
jb 0x14006fa9b
mov edx, 0x12
mov r9d, eax
lea r8, [0x140008e78]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x14006fa9b
cmp dword [r12 + 0x2c], ebx
jne 0x14006fa29
mov r8d, dword [r12 + 0x28]
lea rdx, [0x14000c9b8]
mov rcx, r13
call fcn.14007b1f0
cmp eax, ebx
jne 0x14006fa95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x14006fa9b
test byte [rcx + 0x1c], 4
je 0x14006fa9b
cmp byte [rcx + 0x19], 2
jb 0x14006fa9b
mov edx, 0x13
mov r9d, eax
lea r8, [0x140008e78]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
jmp 0x14006fa9b
cmp qword [r12 + 0x20], 8
jb 0x14006fa38
mov r9, qword [r12 + 8]
jmp 0x14006fa3d
lea r9, [r12 + 8]
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14000c9d0]
mov edx, 1
mov rcx, r13
call fcn.14007b2b4
cmp eax, ebx
jne 0x14006fa95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, rsi
je 0x14006fa93
test byte [rcx + 0x1c], 4
je 0x14006fa93
cmp byte [rcx + 0x19], 2
jb 0x14006fa93
mov edx, 0x14
mov r9d, eax
lea r8, [0x140008e78]
mov rcx, qword [rcx + 0x10]
call fcn.1400100e0
nop
jmp 0x14006fa9b
jmp 0x14006fa9b
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop r13
ret
Function at 0x140077584
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov r12, rcx
mov dword [rsp + 0x68], ebx
mov rcx, qword [str.P5_n_]
lea r14, str.P5_n_
lea r15, [0x140008e48]
cmp rcx, r14
je 0x1400775d4
test byte [rcx + 0x1c], 2
je 0x1400775d4
cmp byte [rcx + 0x19], 5
jb 0x1400775d4
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
mov r8, r15
call fcn.14000ffa8
cmp rdi, rbx
jne 0x1400775e3
mov eax, 0x57
jmp 0x140077764
cmp dword [rdi], 0x14
jne 0x1400775d9
lea rdx, [rsp + 0x68]
mov rcx, r12
mov dword [rdi + 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp eax, ebx
jne 0x140077643
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x140077762
test byte [rcx + 0x1c], 2
je 0x140077762
cmp byte [rcx + 0x19], 2
jb 0x140077762
mov rcx, qword [rcx + 0x10]
mov edx, 0xb
mov r9d, eax
mov r8, r15
call fcn.1400100e0
jmp 0x140077762
mov rcx, rsi
call fcn.140076a54
mov rbp, rax
cmp rax, rbx
jne 0x140077689
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007767f
test byte [rcx + 0x1c], 2
je 0x14007767f
cmp byte [rcx + 0x19], 2
jb 0x14007767f
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
mov r9d, esi
mov r8, r15
call fcn.1400100e0
mov eax, 8
jmp 0x140077764
mov edx, dword [rsp + 0x68]
mov r9, rax
mov r8d, esi
mov rcx, r12
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
jne 0x1400776d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007775a
test byte [rcx + 0x1c], 2
je 0x14007775a
cmp byte [rcx + 0x19], 2
jb 0x14007775a
mov edx, 0xd
jmp 0x140077714
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x78]
lea rdx, [0x14000cf2c]
mov rcx, rbp
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
jne 0x140077725
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
cmp rcx, r14
je 0x14007775a
test byte [rcx + 0x1c], 2
je 0x14007775a
cmp byte [rcx + 0x19], 2
jb 0x14007775a
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.1400100e0
jmp 0x14007775a
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 dword [rdi + 4], 1
mov word [rdi + 0xe], ax
mov rcx, rbp
call fcn.140076afc
mov eax, ebx
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007777c
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [str.P5_n_]
lea rdi, str.P5_n_
cmp rcx, rdi
je 0x1400777cb
test byte [rcx + 0x1c], 2
je 0x1400777cb
cmp byte [rcx + 0x19], 5
jb 0x1400777cb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e48]
mov edx, 0xf
call fcn.14000ffa8
lea rcx, [rsp + 0x24]
xor edx, edx
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
cmp eax, ecx
jne 0x140077837
mov rax, qword [str.P5_n_]
cmp rax, rdi
je 0x140077833
test byte [rax + 0x1c], 2
je 0x140077833
cmp byte [rax + 0x19], 2
jb 0x140077833
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140008e48]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x10
call fcn.1400100e0
xor eax, eax
jmp 0x140077841
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x150
pop rdi
ret
Function at 0x140077df4
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], r12
push r13
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [str.P5_n_]
lea r12, str.P5_n_
lea r13, [0x140008e38]
cmp rcx, r12
je 0x140077e47
test byte [rcx + 0x1c], 2
je 0x140077e47
cmp byte [rcx + 0x19], 5
jb 0x140077e47
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r13
call fcn.14000ffa8
mov edx, 0x25
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rcx, rsi
test rax, rax
jne 0x140077ea3
call fcn.140077860
test rax, rax
jne 0x140077f81
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140077f7f
test byte [rcx + 0x1c], 2
je 0x140077f7f
cmp byte [rcx + 0x19], 2
jb 0x140077f7f
lea edx, [rax + 0x18]
mov rcx, qword [rcx + 0x10]
mov r8, r13
call fcn.14000ffa8
jmp 0x140077f7f
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
jne 0x140077ef5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140077f7f
test byte [rcx + 0x1c], 2
je 0x140077f7f
cmp byte [rcx + 0x19], 2
jb 0x140077f7f
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x19]
mov r9d, eax
mov r8, r13
call fcn.1400100e0
jmp 0x140077f7f
inc edi
mov ecx, edi
add rcx, rcx
call fcn.140076a54
mov rbx, rax
test rax, rax
jne 0x140077f29
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140077f7f
test byte [rcx + 0x1c], 2
je 0x140077f7f
cmp byte [rcx + 0x19], 2
jb 0x140077f7f
lea edx, [rax + 0x1a]
jmp 0x140077e92
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140077f45
cmp eax, edi
ja 0x140077f45
mov rax, rbx
jmp 0x140077f81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
cmp rcx, r12
je 0x140077f77
test byte [rcx + 0x1c], 2
je 0x140077f77
cmp byte [rcx + 0x19], 2
jb 0x140077f77
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r9d, eax
mov r8, r13
call fcn.1400100e0
mov rcx, rbx
call fcn.140076afc
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
add rsp, 0x20
pop r13
ret
Function at 0x140077fa4
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rdx
mov r12, r8
mov rsi, rcx
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
lea edx, [rax - 1]
cmp edx, 0x103
ja 0x140078060
dec edi
lea r8, [rsp + 0x30]
mov edx, 1
mov r9d, edi
mov ecx, 0x800
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x140078060
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
mov ebx, eax
sub ebx, edi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, ebx
cmp eax, 0x104
jge 0x140078060
lea r8, [rsi + rdi*2]
mov r9, rbp
mov edx, 0x104
mov qword [rsp + 0x20], r8
lea r8, [0x14000a148]
mov rcx, r12
call fcn.1400118ac
xor ecx, ecx
cmp eax, ecx
setge cl
mov eax, ecx
jmp 0x140078062
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008c5b0
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400781f0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x160
mov rax, qword [0x14009e140]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, r9
mov rbp, r8
mov rcx, qword [str.P5_n_]
lea r13, str.P5_n_
cmp rcx, r13
je 0x140078251
test byte [rcx + 0x1c], 2
je 0x140078251
cmp byte [rcx + 0x19], 5
jb 0x140078251
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e38]
mov edx, 0x1c
call fcn.14000ffa8
mov edi, dword [rsp + 0x1a0]
xor r9d, r9d
mov r8, rbp
xor edx, edx
mov ecx, 0x800
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebx, eax
test eax, eax
jne 0x140078281
xor eax, eax
jmp 0x140078323
test edi, edi
jne 0x14007828c
add eax, eax
jmp 0x140078323
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400782e2
mov rax, qword [str.P5_n_]
cmp rax, r13
je 0x14007827a
test byte [rax + 0x1c], 2
je 0x14007827a
cmp byte [rax + 0x19], 2
jb 0x14007827a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.P5_n_]
lea r8, [0x140008e38]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x1d
call fcn.1400100e0
jmp 0x14007827a
cmp dword [rsp + 0x40], 2
jne 0x140078321
cmp dword [rsp + 0x34], 5
jb 0x140078321
mov rdx, rsi
mov ecx, 0x800
call fcn.14007ea50
test eax, eax
je 0x140078321
xor r9d, r9d
mov r8, rbp
mov ecx, 0x800
lea edx, [r9 + 0x20]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008c5b0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x14007a724
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
xor r15d, r15d
mov rsi, r8
mov r12, rdx
mov ebx, r15d
mov rdi, r15
mov dword [rax + 0x20], r15d
mov r13, r15
mov dword [rax + 8], r15d
mov rbp, rcx
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14007a78b
test byte [rcx + 0x1c], 2
je 0x14007a78b
cmp byte [rcx + 0x19], 5
jb 0x14007a78b
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x19]
lea r8, [0x140008e08]
call fcn.14000ffa8
cmp r15w, word [rbp]
jne 0x14007a79c
mov eax, 0x57
jmp 0x14007a96a
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x98]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov rdx, rbp
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, r15d
jne 0x14007a824
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov ebx, eax
cmove ebx, r15d
cmp ebx, r15d
je 0x14007a824
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14007a953
test byte [rcx + 0x1c], 2
je 0x14007a953
cmp byte [rcx + 0x19], 2
jb 0x14007a953
mov edx, 0x1a
jmp 0x14007a92f
mov ecx, dword [rsp + 0x98]
call fcn.140076a54
mov rdi, rax
cmp rax, r15
jne 0x14007a878
mov ebx, 8
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14007a953
test byte [rcx + 0x1c], 2
je 0x14007a953
cmp byte [rcx + 0x19], 2
jb 0x14007a953
mov r9d, dword [rsp + 0x98]
lea edx, [rbx + 0x13]
jmp 0x14007a932
mov ecx, dword [rsp + 0x80]
add rcx, rcx
call fcn.140076a54
mov r13, rax
cmp rax, r15
jne 0x14007a8cc
mov ebx, 8
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14007a953
test byte [rcx + 0x1c], 2
je 0x14007a953
cmp byte [rcx + 0x19], 2
jb 0x14007a953
mov r9d, dword [rsp + 0x80]
lea edx, [rbx + 0x14]
jmp 0x14007a932
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x98]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov rdx, rbp
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
cmp eax, r15d
jne 0x14007a944
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.P5_n_]
lea rax, str.P5_n_
cmp rcx, rax
je 0x14007a953
test byte [rcx + 0x1c], 2
je 0x14007a953
cmp byte [rcx + 0x19], 2
jb 0x14007a953
mov edx, 0x1d
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140008e08]
call fcn.1400100e0
jmp 0x14007a953
mov qword [r12], rdi
cmp rsi, r15
je 0x14007a953
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, r13
call fcn.140076afc
cmp ebx, r15d
je 0x14007a968
mov rcx, rdi
call fcn.140076afc
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14007afe4
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 r12
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov r12d, r9d
mov rsi, r8
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 2
jne 0x14007b06a
lea r9d, [rax + 2]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x28], 4
mov dword [rsi], r12d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14007b063
lea rcx, [0x14000d2c0]
jmp 0x14007b07c
mov eax, 1
jmp 0x14007b091
test eax, eax
jne 0x14007b075
cmp dword [rsp + 0x34], 4
je 0x14007b063
lea rcx, [0x14000d3b0]
mov r8d, eax
mov rdx, rdi
call fcn.14007e7a0
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 r12
ret

Function at 0x14007b0b4
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
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
mov rdi, r8
mov qword [r11 - 0x20], rax
lea r9, [r11 - 0x18]
xor ebx, ebx
and qword [r11 - 0x28], rbx
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14007b138
cmp eax, 2
jne 0x14007b10b
lea ecx, [rbx + 1]
mov dword [rsp + 0x68], ecx
jmp 0x14007b153
lea rcx, [0x14000d1e0]
mov edx, eax
call fcn.14007e7a0
mov rcx, rbx
call fcn.140076afc
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp dword [rsp + 0x30], 3
jne 0x14007b121
mov eax, dword [rsp + 0x68]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov ecx, eax
mov dword [rsp + 0x68], eax
inc ecx
call fcn.140076a54
mov rbx, rax
test rax, rax
je 0x14007b119
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x68]
mov byte [rcx + rbx], 0
test eax, eax
je 0x14007b1d7
cmp eax, 2
jne 0x14007b10b
mov eax, dword [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14007b1d7
lea rcx, [0x14000d2c0]
mov r8d, eax
mov rdx, rsi
call fcn.14007e7a0
jmp 0x14007b119
test rdi, rdi
je 0x14007b1e2
mov eax, dword [rsp + 0x68]
mov dword [rdi], eax
mov rax, rbx
jmp 0x14007b123
Function at 0x14007b1f0
Capabilities:
Set registry value

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

Function at 0x14007b258
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]
cmovne rax, r8
mov r9d, 3
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov rbx, rdx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14007b2a3
lea rcx, [0x14000d2c0]
mov r8d, eax
mov rdx, rbx
call fcn.14007e7a0
xor eax, eax
jmp 0x14007b2a8
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x14007b2b4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, r8
mov r10, rcx
test r9, r9
je 0x14007b2dd
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r9
repne scasw ax, word [rdi]
not rcx
add rcx, rcx
jmp 0x14007b2df
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r9
mov r9d, edx
mov rdx, rbx
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14007b314
lea rcx, [0x14000d2c0]
mov r8d, eax
mov rdx, rbx
call fcn.14007e7a0
xor eax, eax
jmp 0x14007b319
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14007b32c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
xor ebx, ebx
mov eax, r8d
mov r12, r9
and dword [rsp + 0x60], ebx
xor ebp, ebp
neg eax
sbb r13d, r13d
mov r14d, r8d
and r13d, 6
lea r9d, [r13 + 0x20019]
call fcn.14007ac98
mov rsi, rax
test rax, rax
je 0x14007b4a2
and qword [rsp + 0x58], rbx
and qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rbx
and qword [rsp + 0x38], rbx
and qword [rsp + 0x30], rbx
lea rax, [rsp + 0xb0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14007b3cf
lea rcx, [0x14000d400]
jmp 0x14007b492
mov r9, qword [rsp + 0xc0]
mov r8d, dword [rsp + 0x64]
xor edx, edx
mov rcx, rsi
call r12
test eax, eax
je 0x14007b499
mov eax, dword [rsp + 0xb0]
add eax, 4
mov dword [rsp + 0xb0], eax
cmp eax, 0x7ffffffe
ja 0x14007b499
lea ecx, [rax + 1]
add rcx, rcx
call fcn.140076a54
mov rbx, rax
test rax, rax
je 0x14007b499
mov r8, rax
xor edx, edx
mov r9d, dword [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14007b484
lea r9d, [r13 + 0x20019]
mov r8d, r14d
mov rdx, rbx
mov rcx, rsi
call fcn.14007ac98
mov rdi, rax
test rax, rax
je 0x14007b475
mov r9, qword [rsp + 0xc0]
mov r8d, ebp
mov rdx, rbx
mov rcx, rax
call r12
mov rcx, rdi
test eax, eax
je 0x14007b47c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov r8, rbx
mov edx, ebp
jmp 0x14007b420
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007b499
cmp eax, 0x103
je 0x14007b499
lea rcx, [0x14000d440]
mov edx, eax
call fcn.14007e7a0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140076afc
lea r11, [rsp + 0x70]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret