joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401642a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1401642ce
or r9d, 0x20019
mov r8d, r9d
call fcn.140164250
mov rbx, rax
jmp 0x1401642d1
mov rbx, rcx
test rbx, rbx
je 0x140164365
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164358
cmp dword [rsp + 0x58], 4
jne 0x140164358
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164358
cmp rbx, rdi
je 0x140164343
mov rcx, rbx
call fcn.140164280
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x140164365
mov rcx, rbx
call fcn.140164280
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140164380
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1401643ae
or r9d, 0x20019
mov r8d, r9d
call fcn.140164250
mov rbx, rax
jmp 0x1401643b1
mov rbx, rcx
test rbx, rbx
je 0x14016444f
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164442
cmp dword [rsp + 0x30], 3
jne 0x140164442
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x140164442
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164442
cmp rbx, rdi
je 0x14016442d
mov rcx, rbx
call fcn.140164280
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x14016444f
mov rcx, rbx
call fcn.140164280
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140164470
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x14016449e
or r9d, 0x20019
mov r8d, r9d
call fcn.140164250
mov rbx, rax
jmp 0x1401644a1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x140164553
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164546
cmp dword [rsp + 0x30], 3
jne 0x140164546
mov ecx, dword [rsp + 0x58]
call fcn.140007b3c
mov rdi, rax
test rax, rax
je 0x140164546
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14016453e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x140164537
mov rcx, rbx
call fcn.140164280
mov eax, 1
jmp 0x140164555
mov rcx, rdi
call fcn.140007b34
cmp rbx, rsi
je 0x140164553
mov rcx, rbx
call fcn.140164280
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret

Function at 0x140164670
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x1401646a3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.140164250
mov rsi, rax
jmp 0x1401646a6
mov rsi, qword [rcx]
test rsi, rsi
je 0x140164742
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14016471f
test edi, edi
je 0x14016471a
dec edi
je 0x140164702
sub edi, 2
je 0x1401646f8
dec edi
jne 0x14016471f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x14016471f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x14016471f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x14016471a
cmp eax, 2
je 0x14016471a
cmp eax, 6
je 0x14016471a
cmp eax, 7
jne 0x14016471f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x14016472d
mov rcx, rsi
call fcn.140164280
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x140164670
Function at 0x140164760
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x140164785
or r8d, 0x20019
call fcn.140164250
mov rdi, rax
jmp 0x140164788
mov rdi, rcx
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbp
call fcn.14000b4c0
test rdi, rdi
je 0x1401648c2
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1401648b5
cmp dword [rsp + 0x60], ebx
jbe 0x1401648b5
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
call fcn.140007b3c
mov rbp, rax
test rax, rax
je 0x1401648b5
cmp dword [rsp + 0x60], ebx
jbe 0x140164899
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.14014a4d0
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140164891
mov rdx, qword [rsi + 0x10]
mov r8, rbp
mov rcx, rsi
call fcn.14000b8b0
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140164850
mov rcx, rbp
call fcn.140007b34
cmp rdi, r12
je 0x1401648ae
mov rcx, rdi
call fcn.140164280
mov eax, 1
jmp 0x1401648c4
cmp rdi, r12
je 0x1401648c2
mov rcx, rdi
call fcn.140164280
xor eax, eax
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140164760
Function at 0x140164970
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x140164785
or r8d, 0x20019
call fcn.140164250
mov rdi, rax
jmp 0x140164788
mov rdi, rcx
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbp
call fcn.14000b4c0
test rdi, rdi
je 0x1401648c2
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1401648b5
cmp dword [rsp + 0x60], ebx
jbe 0x1401648b5
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
call fcn.140007b3c
mov rbp, rax
test rax, rax
je 0x1401648b5
cmp dword [rsp + 0x60], ebx
jbe 0x140164899
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.14014a4d0
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140164891
mov rdx, qword [rsi + 0x10]
mov r8, rbp
mov rcx, rsi
call fcn.14000b8b0
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140164850
mov rcx, rbp
call fcn.140007b34
cmp rdi, r12
je 0x1401648ae
mov rcx, rdi
call fcn.140164280
mov eax, 1
jmp 0x1401648c4
cmp rdi, r12
je 0x1401648c2
mov rcx, rdi
call fcn.140164280
xor eax, eax
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140164760

Function at 0x140164980
Capabilities:
Query or enumerate registry key

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.140164970
Function at 0x140164990
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x1401646a3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.140164250
mov rsi, rax
jmp 0x1401646a6
mov rsi, qword [rcx]
test rsi, rsi
je 0x140164742
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14016471f
test edi, edi
je 0x14016471a
dec edi
je 0x140164702
sub edi, 2
je 0x1401646f8
dec edi
jne 0x14016471f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x14016471f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x14016471f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x14016471a
cmp eax, 2
je 0x14016471a
cmp eax, 6
je 0x14016471a
cmp eax, 7
jne 0x14016471f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x14016472d
mov rcx, rsi
call fcn.140164280
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x140164670

Function at 0x140164a70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x140164a98
or r9d, 0x20019
mov r8d, r9d
call fcn.140164250
mov rbx, rax
jmp 0x140164a9b
mov rbx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rdi
test rbx, rbx
je 0x140164baf
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164ba2
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x140164af7
cmp eax, 2
je 0x140164af7
cmp eax, 6
je 0x140164af7
cmp eax, 7
jne 0x140164ba2
mov ecx, dword [rsp + 0x68]
add ecx, 2
call fcn.140007b3c
mov r8d, dword [rsp + 0x68]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.14014a4d0
lea r11, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164b83
test rsi, rsi
je 0x140164b54
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea edi, [rcx - 1]
mov rcx, qword [rsp + 0x80]
mov r8d, edi
mov rdx, rsi
call fcn.140001750
cmp rbx, rbp
je 0x140164b74
mov rcx, rbx
call fcn.140164280
mov rcx, rsi
call fcn.140007b34
mov eax, 1
jmp 0x140164bb1
mov rcx, rsi
call fcn.140007b34
mov rcx, qword [rsp + 0x80]
lea rdx, [0x1401ede58]
xor r8d, r8d
call fcn.140001750
cmp rbx, rbp
je 0x140164baf
mov rcx, rbx
call fcn.140164280
xor eax, eax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
Function at 0x140164bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rax, qword [0x140228c90]
xor rax, rbp
mov qword [rbp + 8], rax
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x140164c18
or r9d, 0x20019
mov r8d, r9d
call fcn.140164250
mov rbx, rax
jmp 0x140164c1b
mov rbx, rcx
test rbx, rbx
je 0x140164e08
call fcn.140167440
test eax, eax
je 0x140164d2f
test rsi, rsi
je 0x140164c8e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8d, [rax + 1]
cmp r8d, 0x3fffffff
jle 0x140164c50
xor esi, esi
jmp 0x140164c8e
movsxd rax, r8d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140164c69
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140149b50
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140007c48
mov rsi, rax
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140164dfb
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x140164cd6
cmp eax, 2
je 0x140164cd6
cmp eax, 6
je 0x140164cd6
cmp eax, 7
jne 0x140164dfb
mov ecx, dword [rbp]
add ecx, 2
call fcn.140007b3c
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.14014a4d0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140164de3
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.140006830
jmp 0x140164dc7
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164dfb
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x140164d77
cmp eax, 2
je 0x140164d77
cmp eax, 6
je 0x140164d77
cmp eax, 7
jne 0x140164dfb
mov ecx, dword [rbp]
add ecx, 2
call fcn.140007b3c
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.14014a4d0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164de3
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.140006700
cmp rbx, rdi
je 0x140164dd4
mov rcx, rbx
call fcn.140164280
mov rcx, r12
call fcn.140007b34
mov eax, 1
jmp 0x140164e0a
mov rcx, r12
call fcn.140007b34
mov rcx, qword [rbp + 0x40]
lea rdx, [0x1401ede58]
call fcn.140006700
cmp rbx, rdi
je 0x140164e08
mov rcx, rbx
call fcn.140164280
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.140147970
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x140165820
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.14000b364
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x1401658af
test rsi, rsi
je 0x1401658af
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.14000b328
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140166b00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140166bc8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x68]
cmp r11d, 2
jb 0x140166bbd
add r11d, 2
mov eax, 2
mov dword [rsp + 0x68], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140007b3c
mov rbx, rax
test rax, rax
je 0x140166bbd
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
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]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140166be0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140166c51
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret
Function at 0x1401672f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x1402468bc], 0
jne 0x14016740f
lea rcx, [0x140246740]
mov edi, 1
mov dword [0x140246740], 0x94
mov dword [0x1402468bc], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor r11d, r11d
cmp dword [0x140246750], 2
sete r11b
mov dword [0x14022ad1c], r11d
test r11d, r11d
je 0x1401673ef
lea rcx, [0x1402467e0]
mov qword [rsp + 0x30], rbx
mov dword [0x1402467e0], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProductInfo
mov rcx, rbx
mov qword [0x140246738], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov qword [0x1402468b0], rax
mov rax, qword [0x140246738]
lea rcx, [0x140246880]
test rax, rax
je 0x1401673b9
call rax
jmp 0x1401673bf
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1402467e4]
cmp eax, 6
jae 0x1401673d8
cmp eax, 5
jne 0x1401673ef
cmp dword [0x1402467e8], 2
jb 0x1401673ef
mov ecx, dword [0x140246730]
cmp word [0x140246880], 9
cmove ecx, edi
mov dword [0x140246730], ecx
lea rdx, [0x140246748]
lea rcx, [0x140246744]
call fcn.140166e60
call fcn.140166fd0
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140167540
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140228c90]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rsi, r8
mov edi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.14014a4d0
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401675bb
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call fcn.140150464
test rax, rax
je 0x1401675a7
mov byte [rax], 0
lea r8, [rsp + 0x20]
mov r9, rsi
mov edx, edi
mov rcx, rbx
call fcn.1401674a0
jmp 0x1401675c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x1402468c0], eax
test eax, eax
je 0x1401675d5
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140147970
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
jmp 0x140167540
Function at 0x140167600
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140228c90]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rsi, r8
mov edi, edx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.14014a4d0
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401675bb
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call fcn.140150464
test rax, rax
je 0x1401675a7
mov byte [rax], 0
lea r8, [rsp + 0x20]
mov r9, rsi
mov edx, edi
mov rcx, rbx
call fcn.1401674a0
jmp 0x1401675c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x1402468c0], eax
test eax, eax
je 0x1401675d5
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140147970
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
jmp 0x140167540

Function at 0x140167c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x140167c73
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140167c73
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x140167c85
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x140167c60
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rbx, dword [rsp + 0x50]
lea rdx, [rax + 2]
mov rcx, rsi
mov r8, rbx
call fcn.140167880
test eax, eax
jne 0x140167ca3
mov byte [rbx + rsi - 1], al
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
dec eax
add rsp, 0x20
pop rdi
ret
Function at 0x140168b90
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140246d24]
test ecx, ecx
jne 0x140168d50
mov eax, dword [0x140246d20]
cmp eax, 3
ja 0x140168d50
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x140246d20], eax
call fcn.140167440
test eax, eax
je 0x140168bd6
lea rcx, str.wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x140168be3
lea rcx, [0x1401e0b30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x140168bf5
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.WTSOpenServerA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSOpenServerW
mov rcx, rbx
mov qword [0x140246cb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSCloseServer
mov rcx, rbx
mov qword [0x140246cb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSFreeMemory
mov rcx, rbx
mov qword [0x140246cc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsA
mov rcx, rbx
mov qword [0x140246cc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateSessionsW
mov rcx, rbx
mov qword [0x140246cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSTerminateProcess
mov rcx, rbx
mov qword [0x140246cd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesA
mov rcx, rbx
mov qword [0x140246ce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSEnumerateProcessesW
mov rcx, rbx
mov qword [0x140246ce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageA
mov rcx, rbx
mov qword [0x140246cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSSendMessageW
mov rcx, rbx
mov qword [0x140246cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationA
mov rcx, rbx
mov qword [0x140246d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSQuerySessionInformationW
mov rcx, rbx
mov qword [0x140246d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WTSWaitSystemEvent
mov rcx, rbx
mov qword [0x140246d10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x140246d18], rax
mov dword [0x140246d24], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret