joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067460
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x100
movzx eax, byte [rcx + 0x1c]
test al, al
jne 0x140067595
xorps xmm1, xmm1
mov byte [rcx + 0x1c], 1
movups xmmword [rsp + 0x70], xmm1
xor eax, eax
xor ebx, ebx
movups xmmword [rsp + 0x80], xmm1
mov qword [r11 - 0x38], rax
mov edx, 0xf6
movups xmmword [r11 - 0x68], xmm1
lea rcx, [r11 - 0x28]
mov qword [rsp + 0x60], rax
movups xmmword [r11 - 0x58], xmm1
movups xmmword [r11 - 0x78], xmm1
movups xmmword [r11 - 0x48], xmm1
mov dword [rsp + 0x70], WSAGetLastError
xorps xmm0, xmm0
mov dword [r11 - 0x5c], 1
mov word [r11 - 0x58], bx
movups xmmword [rsp + 0x50], xmm0
call fcn.1400175a0
cmp qword [rax + 0x18], 0x10
jb 0x1400674e1
mov rax, qword [rax]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rcx
xor r8d, r8d
lea rcx, [rsp + 0x70]
mov rdx, rax
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdx, qword [rsp + 0xf8]
test eax, eax
sete bl
cmp rdx, 0x10
jb 0x140067560
mov rcx, qword [rsp + 0xe0]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006755b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400675a0
call fcn.140133e68
test bl, bl
jne 0x140067595
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x100
pop rbx
ret
xor al, al
add rsp, 0x100
pop rbx
ret
call fcn.1401462a8
int3
Function at 0x140068e20
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x40
cmp qword [rdx + 8], 0
mov rdi, rdx
ja 0x140068e38
xor al, al
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor bl, bl
cmp qword [rcx + 0x18], 0x10
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
jb 0x140068e53
mov rcx, qword [rcx]
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140068eba
mov r8d, dword [rdi + 8]
lea r9, [rsp + 0x58]
mov rdx, qword [rdi]
mov rcx, rax
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x58]
mov eax, 1
cmp rcx, qword [rdi + 8]
movzx ebx, bl
cmove ebx, eax
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140069fc0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, edx
mov ebx, 1
cdq
mov r14d, r8d
idiv r8d
mov ebp, ecx
mov r15d, eax
cmp eax, ebx
jle 0x14006a037
nop
test ebp, ebp
je 0x14006a027
xor edx, edx
mov r8d, ebp
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14006a027
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x14006a052
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, r15d
jl 0x140069ff0
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov al, 1
jmp 0x14006a039
Function at 0x14006a060
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov ecx, dword [0x14070a508]
test ecx, ecx
jne 0x14006a08e
call fcn.14002e1d0
mov ecx, ebx
test al, al
setne cl
inc ecx
mov dword [0x14070a508], ecx
cmp ecx, 1
lea rcx, [rbp - 0x40]
mov edx, 0x15e
je 0x14006a0a1
mov edx, 0x15d
call fcn.1400177a0
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x48]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14006a0ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a0fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a288
call fcn.140133e68
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov edx, 3
lea rcx, [rbp - 0x20]
call fcn.1400177a0
nop
cmp qword [rax + 0x18], 8
jb 0x14006a128
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14006a175
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a170
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a282
call fcn.140133e68
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], ebx
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rbp + 0x20], 1
sete dil
je 0x14006a234
mov qword [rbp + 0x38], rbx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006a234
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], ebx
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
lea rdx, [0x1404163cc]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x20], 1
sete dil
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006a257
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14006a273
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, dil
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
int3
Function at 0x14006a2a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov ecx, dword [0x14070a508]
test ecx, ecx
jne 0x14006a2ce
call fcn.14002e1d0
mov ecx, ebx
test al, al
setne cl
inc ecx
mov dword [0x14070a508], ecx
cmp ecx, 1
lea rcx, [rbp - 0x40]
mov edx, 0x15e
je 0x14006a2e1
mov edx, 0x15d
call fcn.1400177a0
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x48]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14006a33f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a33a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a4c8
call fcn.140133e68
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov edx, reloc.WS2_32.dll_ntohl
lea rcx, [rbp - 0x20]
call fcn.1400177a0
nop
cmp qword [rax + 0x18], 8
jb 0x14006a368
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14006a3b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a3b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a4c2
call fcn.140133e68
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], ebx
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rbp + 0x20], 1
sete dil
je 0x14006a474
mov qword [rbp + 0x38], rbx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006a474
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], ebx
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
lea rdx, [0x1404163cc]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x20], 1
sete dil
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006a497
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14006a4b3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, dil
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
int3
Function at 0x14006a4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov ecx, dword [0x14070a508]
test ecx, ecx
jne 0x14006a50e
call fcn.14002e1d0
mov ecx, ebx
test al, al
setne cl
inc ecx
mov dword [0x14070a508], ecx
cmp ecx, 1
lea rcx, [rbp - 0x40]
mov edx, 0x15e
je 0x14006a521
mov edx, 0x15d
call fcn.1400177a0
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x48]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14006a57f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a57a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a708
call fcn.140133e68
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov edx, 4
lea rcx, [rbp - 0x20]
call fcn.1400177a0
nop
cmp qword [rax + 0x18], 8
jb 0x14006a5a8
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14006a5f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a5f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a702
call fcn.140133e68
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], ebx
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rbp + 0x20], 1
sete dil
je 0x14006a6b4
mov qword [rbp + 0x38], rbx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006a6b4
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
mov dword [rbp + 0x20], ebx
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
lea rdx, [0x1404163cc]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x20], 1
sete dil
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006a6d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14006a6f3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, dil
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
int3
Function at 0x14006a720
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov ecx, dword [0x14070a508]
test ecx, ecx
jne 0x14006a74e
call fcn.14002e1d0
mov ecx, ebx
test al, al
setne cl
inc ecx
mov dword [0x14070a508], ecx
cmp ecx, 1
lea rcx, [rbp - 0x40]
mov edx, 0x15e
je 0x14006a761
mov edx, 0x15d
call fcn.1400177a0
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x48]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14006a7bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a7ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a914
call fcn.140133e68
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov edx, 6
lea rcx, [rbp - 0x20]
call fcn.1400177a0
nop
cmp qword [rax + 0x18], 8
jb 0x14006a7e8
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14006a835
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a830
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006a90e
call fcn.140133e68
mov dword [rbp + 0x20], ebx
mov qword [rbp + 0x38], rbx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006a8b8
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14006a8ae
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp + 0x20], 1
sete dil
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006a8e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14006a8ff
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, dil
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
int3
Function at 0x14006a920
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov ecx, dword [0x14070a508]
test ecx, ecx
jne 0x14006a94e
call fcn.14002e1d0
mov ecx, ebx
test al, al
setne cl
inc ecx
mov dword [0x14070a508], ecx
cmp ecx, 1
lea rcx, [rbp - 0x40]
mov edx, 0x15e
je 0x14006a961
mov edx, 0x15d
call fcn.1400177a0
nop
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rdx, qword [rbp - 0x40]
lea rcx, [rbp + 0x38]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14006a9bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a9ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ab37
call fcn.140133e68
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov edx, 7
lea rcx, [rbp - 0x20]
call fcn.1400177a0
nop
cmp qword [rax + 0x18], 8
jb 0x14006a9e8
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400064d0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14006aa35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006aa30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ab31
call fcn.140133e68
xor dil, dil
mov dword [rbp + 0x20], ebx
mov qword [rbp - 0x48], rbx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006aae3
mov dword [rbp + 0x30], 4
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x14006aad9
mov dword [rbp + 0x20], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dil, 1
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006ab06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14006ab22
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, dil
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
int3
Function at 0x14006ab50
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], 4
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.1400177a0
nop
cmp qword [rax + 0x18], 8
jb 0x14006ab7e
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400064d0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x68]
lea r8, [0x1404163cc]
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006abdd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14006ac1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ac16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ac20
call fcn.140133e68
add rsp, 0x58
ret
call fcn.1401462a8
int3

Function at 0x14006ac30
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], 4
mov edx, 9
lea rcx, [rsp + 0x30]
call fcn.1400177a0
nop
cmp qword [rax + 0x18], 8
jb 0x14006ac5e
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400064d0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x68]
lea r8, [0x1404163cc]
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006acbd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14006acfb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006acf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006ad00
call fcn.140133e68
add rsp, 0x58
ret
call fcn.1401462a8
int3
Function at 0x14006ad10
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, r8
lea rax, [r11 + 0x18]
mov r14, rdx
mov qword [r11 - 0x48], rax
mov rdx, qword [rdx]
xor ebp, ebp
xor r8d, r8d
mov qword [r11 + 0x18], rbp
mov r9d, 0x20206
mov rdi, rcx
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14006ad9b
cmp eax, 2
jne 0x14006adde
mov rdx, qword [r14]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rcx, rdi
mov dword [rsp + 0x28], 0x20206
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14006adde
mov r8, qword [rsi]
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
lea rdx, [0x1404163cc]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
test ebx, ebx
mov ebx, 0xffffffff
sete dil
mov eax, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006ae05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14006ae20
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rbx, qword [rsp + 0x70]
movzx eax, dil
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret