joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e0a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r15d, r15d
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x21], 7
mov dword [rbp - 0x79], r15d
mov qword [rbp - 0x29], r15
mov word [rbp - 0x39], r15w
mov ebx, r15d
nop word [rax + rax]
lea rcx, [rbp - 0x59]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r14
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], r15
mov word [rbp - 0x59], r15w
call fcn.140007850
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rbp - 0x19]
mov edx, eax
call fcn.14001e960
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x59]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140007710
cmp qword [rbp - 1], 8
jb 0x14000e149
mov rcx, qword [rbp - 0x19]
call fcn.1400910f4
cmp qword [rbp - 0x41], 8
mov rax, qword [rbp - 0x49]
lea rdx, [rbp - 0x59]
cmovae rdx, qword [rbp - 0x59]
lea rdx, [rdx + rax*2]
lea rax, [rbp - 0x59]
cmovae rax, qword [rbp - 0x59]
test rdx, rdx
jne 0x14000e172
mov rdx, r15
jmp 0x14000e178
sub rdx, rax
sar rdx, 1
mov r9d, 0x5f
lea rcx, [rbp - 0x59]
lea r8d, [r9 - 0x5e]
call fcn.14000eec0
mov ecx, 0x8000
call fcn.14002a520
lea rcx, [rbp - 0x19]
mov edx, eax
call fcn.14001e960
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x59]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140007710
cmp qword [rbp - 1], 8
jb 0x14000e1c4
mov rcx, qword [rbp - 0x19]
call fcn.1400910f4
cmp qword [rbp - 0x41], 8
lea rax, [rbp - 0x59]
lea r8, [rbp - 0x19]
cmovae rax, qword [rbp - 0x59]
lea rdx, [rbp + 7]
mov rcx, rsi
mov qword [rbp - 0x69], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x19], xmm0
call fcn.140005570
lea rcx, [rbp - 0x39]
cmp rcx, rax
je 0x14000e213
lea rcx, [rbp - 0x39]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
call fcn.140007850
cmp qword [rbp + 0x1f], 8
jb 0x14000e223
mov rcx, qword [rbp + 7]
call fcn.1400910f4
cmp qword [rbp - 0x21], 8
lea rcx, [rbp - 0x39]
cmovae rcx, qword [rbp - 0x39]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000e25c
cmp qword [rbp - 0x41], 8
jb 0x14000e24d
mov rcx, qword [rbp - 0x59]
call fcn.1400910f4
inc ebx
cmp ebx, 0x32
jl 0x14000e0f0
xor bl, bl
jmp 0x14000e28a
lea rax, [rbp - 0x39]
cmp rdi, rax
je 0x14000e278
lea rdx, [rbp - 0x39]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rdi
call fcn.140007850
cmp qword [rbp - 0x41], 8
jb 0x14000e288
mov rcx, qword [rbp - 0x59]
call fcn.1400910f4
mov bl, 1
cmp qword [rbp - 0x21], 8
jb 0x14000e29a
mov rcx, qword [rbp - 0x39]
call fcn.1400910f4
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140091a70
mov rbx, qword [rsp + 0x118]
add rsp, 0xd0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e2c0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 8
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
jb 0x14000e2f8
mov rsi, qword [rcx]
jmp 0x14000e2fb
mov rsi, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000e326
test al, 0x10
je 0x14000e314
mov al, 1
jmp 0x14000e3bb
test rbx, rbx
je 0x14000e31f
mov dword [rbx], 0xfffffff7
xor al, al
jmp 0x14000e3bb
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1400052d0
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140008b20
test eax, eax
jne 0x14000e353
test rbx, rbx
je 0x14000e3a0
mov dword [rbx], 0xfffffffc
xor bl, bl
jmp 0x14000e3a6
lea rcx, [rsp + 0x28]
mov rdx, rbx
call fcn.14000e2c0
test al, al
jne 0x14000e368
xor bl, bl
jmp 0x14000e3a6
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000e3a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x14000e392
mov rcx, rdi
call fcn.14000da40
test al, al
jne 0x14000e3a4
test rbx, rbx
je 0x14000e3a0
mov ecx, esi
call fcn.140023ba0
mov dword [rbx], eax
xor bl, bl
jmp 0x14000e3a6
mov bl, 1
cmp qword [rsp + 0x40], 8
jb 0x14000e3b8
mov rcx, qword [rsp + 0x28]
call fcn.1400910f4
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140091a70
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14000e700
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x60], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x48], r12d
cmp qword [rcx + 0x18], 8
mov esi, r8d
mov r15, rdx
jb 0x14000e72a
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, r12
mov rbx, rax
mov qword [rsp + 0x40], r12
test rax, rax
je 0x14000e816
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x40]
mov edi, eax
call fcn.14000ee20
cmp rbx, 0xffffffffffffffff
je 0x14000e7cc
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x40], rbx
call fcn.14001f8a0
mov rcx, qword [0x1400d7778]
mov r14, qword [rsp + 0x88]
mov rbp, rax
test rcx, rcx
jne 0x14000e7b0
call fcn.14001f8b0
mov rcx, qword [0x1400d7778]
mov r10, qword [rcx]
lea r8, [rsp + 0x40]
mov r9, r14
mov rdx, rbx
mov qword [rsp + 0x20], rbp
call qword [r10 + reloc.OLEAUT32.dll_VariantClear]
mov r14, qword [rsp + 0x58]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x40]
lea rax, [rdi + 1]
test rax, 0xfffffffffffffffe
je 0x14000e816
lea r9, [rsp + 0x48]
mov r8d, esi
mov rdx, r15
mov rcx, rdi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000e811
mov ebx, dword [rsp + 0x48]
cmp ebx, esi
jne 0x14000e811
mov rdi, qword [rsp + 0x40]
jmp 0x14000e819
mov rdi, qword [rsp + 0x40]
or ebx, 0xffffffff
mov r15, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000e892
call fcn.14001f8a0
mov rcx, qword [0x1400d7778]
mov rbp, qword [rsp + 0x88]
mov rsi, rax
test rcx, rcx
jne 0x14000e855
call fcn.14001f8b0
mov rcx, qword [0x1400d7778]
mov r10, qword [rcx]
lea r8, [rsp + 0x40]
mov r9, rbp
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [r10 + 0x10]
mov rcx, qword [0x1400d7778]
mov rdi, qword [rsp + 0x40]
test rcx, rcx
jne 0x14000e889
call fcn.14001f8b0
mov rcx, qword [0x1400d7778]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8]
mov eax, ebx
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000e8b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
lea rdx, [rbp - 0x80]
xor esi, esi
mov ecx, 0x104
mov word [rbp - 0x80], si
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14000ea9a
mov qword [rsp + 0x2b8], rbx
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
cmp word [rbp - 0x80], si
jne 0x14000e926
mov r8d, esi
jmp 0x14000e93a
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], si
jne 0x14000e930
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140008160
cmp qword [rsp + 0x78], 8
mov r8, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
cmovae rdx, qword [rsp + 0x60]
mov word [rsp + 0x40], si
test r8, r8
jne 0x14000e985
mov rbx, rsi
mov word [rsp + 0x40], si
mov qword [rsp + 0x50], rbx
jmp 0x14000e994
lea rcx, [rsp + 0x40]
call fcn.140008160
mov rbx, qword [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140006420
cmp rax, 0xffffffffffffffff
je 0x14000e9ba
lea rcx, [rsp + 0x40]
or r8, 0xffffffffffffffff
mov rdx, rax
call fcn.140006370
mov rbx, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 8
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], 7
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
test rbx, rbx
jne 0x14000e9ef
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
jmp 0x14000e9fc
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.140008160
lea rcx, [rsp + 0x20]
call fcn.140006420
mov rbx, qword [rsp + 0x2b8]
cmp rax, 0xffffffffffffffff
je 0x14000ea25
lea rcx, [rsp + 0x20]
or r8, 0xffffffffffffffff
mov rdx, rax
call fcn.140006370
lea rcx, [rsp + 0x20]
call fcn.140005ce0
lea rax, [rsp + 0x20]
cmp rdi, rax
je 0x14000ea4d
lea rdx, [rsp + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rdi
call fcn.140007850
cmp qword [rsp + 0x38], 8
jb 0x14000ea5f
mov rcx, qword [rsp + 0x20]
call fcn.1400910f4
cmp qword [rsp + 0x58], 8
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
jb 0x14000ea84
mov rcx, qword [rsp + 0x40]
call fcn.1400910f4
cmp qword [rsp + 0x78], 8
jb 0x14000ea96
mov rcx, qword [rsp + 0x60]
call fcn.1400910f4
mov al, 1
jmp 0x14000ea9c
xor al, al
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140091a70
lea r11, [rsp + 0x2a0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000eac0
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14000eace
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14000eae0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140005ac0
test al, al
jne 0x14000eb6d
mov rcx, rbx
call fcn.140005ac0
test al, al
jne 0x14000eb6d
cmp qword [rdi + 0x10], 0x104
jae 0x14000eb6d
cmp qword [rbx + 0x10], 0x104
jae 0x14000eb6d
cmp qword [rbx + 0x18], 8
jb 0x14000eb23
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14000eb2d
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000eb6d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000eb6d
test al, 1
je 0x14000eb60
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000eb80
Capabilities:
Check if file exists
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0x104
mov rdi, rdx
mov rbx, rcx
jae 0x14000ec73
cmp qword [rdx + 0x10], 0x104
jae 0x14000ec73
cmp qword [rdx + 0x18], 8
jb 0x14000ebb6
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14000ebc0
mov rcx, qword [rcx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14000ebdd
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
xor sil, sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
mov ebp, eax
jb 0x14000ebfe
mov rcx, qword [rbx]
jmp 0x14000ec01
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ec52
shr eax, 4
and al, 1
je 0x14000ec52
mov r8b, 1
mov rdx, rdi
mov rcx, rbx
call fcn.14000d3e0
test al, al
je 0x14000ec4f
mov dl, 1
mov rcx, rbx
call fcn.14000d1e0
test al, al
je 0x14000ec4f
mov rbp, qword [rsp + 0x38]
mov sil, 1
movzx eax, sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor sil, sil
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x38]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140005ac0
test al, al
jne 0x14001ae3a
mov rcx, rbx
call fcn.140005ac0
test al, al
jne 0x14001ae3a
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000eb80
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000fb40
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x1400d77dc], 0
jne 0x14000fb53
int3
mov ecx, 1
call fcn.14009400c
int3
Function at 0x140014050
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [0x1400d76a0], 0
je 0x140014081
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140091a70
add rsp, 0x58
ret
mov ecx, 0x40
mov qword [rsp + 0x50], rbx
call fcn.140091088
xor ebx, ebx
test rax, rax
je 0x1400140aa
xor edx, edx
mov rcx, rax
call fcn.140013bf0
mov qword [0x1400d76a0], rax
jmp 0x1400140b1
mov qword [0x1400d76a0], rbx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp word [rax], bx
je 0x1400140dd
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400140d3
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140008160
mov rcx, qword [0x1400d76a0]
lea rdx, [rsp + 0x20]
call fcn.1400157d0
cmp qword [rsp + 0x38], 8
mov rbx, qword [rsp + 0x50]
jb 0x140014115
mov rcx, qword [rsp + 0x20]
call fcn.1400910f4
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140091a70
add rsp, 0x58
ret

Function at 0x1400157d0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rdi, rcx
lea rcx, str._t_n_v_f_r
mov dword [rsp + 0x20], ebx
mov r10, rdx
or rax, 0xffffffffffffffff
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x140015820
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r8d, 3
mov rcx, r10
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140010640
cmp qword [rsp + 0x50], rbx
je 0x140015893
cmp qword [rsp + 0x58], 8
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x40]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rsp + 0x20]
mov rcx, rdi
mov r8, rax
mov rbx, rax
call fcn.140014170
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rsp + 0x58], 8
jb 0x1400158a5
mov rcx, qword [rsp + 0x40]
call fcn.1400910f4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140091a70
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140018950
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x140018b80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov rbx, r8
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov rcx, qword [rcx]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018bf0
mov ecx, dword [rsp + 0x50]
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x140018beb
cmp dword [rsp + 0x68], 4
jne 0x140018beb
mov ecx, dword [rsp + 0x30]
mov dword [rbx], ecx
add rsp, 0x40
pop rbx
ret
mov eax, 0x3f4
add rsp, 0x40
pop rbx
ret

Function at 0x140018c00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov rbx, r8
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], eax
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x50], ntohl
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x68], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140018c76
mov ecx, dword [rsp + 0x50]
add ecx, 0xfffffffd
test ecx, 0xfffffff7
jne 0x140018c71
cmp dword [rsp + 0x68], 8
jne 0x140018c71
mov rcx, qword [rsp + 0x30]
mov qword [rbx], rcx
add rsp, 0x40
pop rbx
ret
mov eax, 0x3f4
add rsp, 0x40
pop rbx
ret

Function at 0x140018c80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1050
call fcn.140092250
sub rsp, rax
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rax, [rsp + 0x30]
mov rsi, r8
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140018d90
mov ecx, dword [rsp + 0x34]
cmp ecx, 1
jne 0x140018d22
cmp word [rsp + 0x40], bx
je 0x140018d0e
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140018d04
lea rdx, [rsp + 0x40]
mov r8, rbx
mov rcx, rsi
call fcn.140008160
mov eax, edi
jmp 0x140018d90
cmp ecx, 2
jne 0x140018d8b
lea rdx, [rsp + 0x840]
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
dec eax
cmp eax, 0x3ff
ja 0x140018d84
cmp word [rsp + 0x840], bx
je 0x140018d6d
lea rax, [rsp + 0x840]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140018d63
lea rdx, [rsp + 0x840]
mov r8, rbx
mov rcx, rsi
call fcn.140008160
mov eax, edi
jmp 0x140018d90
mov eax, 0xea
jmp 0x140018d90
mov eax, 0x3f4
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140091a70
add rsp, 0x1050
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r9
mov r9, qword [rsp + 0x60]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret

Function at 0x140018de0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140018e20
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r10, rcx
mov dword [rsp + 0x40], 0
or rax, 0xffffffffffffffff
cmp word [r8 + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140018e33
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140018e70
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
mov r9d, dword [rsp + 0x60]
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140018ea0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.advapi32.dll
mov esi, r8d
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rbx
mov rcx, rdi
test rax, rax
je 0x140018ef8
xor r9d, r9d
mov r8d, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140019800
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x14001985b
mov edx, dword [rbx + 8]
test edx, edx
js 0x14001985b
lea rax, [r11 + 0x10]
lea r8, [rbx + 0xc]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001985b
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov word [rbx + 0xc], di
mov rbx, qword [rsp + 0x60]
xor al, al
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, r8
mov r10, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
or r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x1400198f9
mov rcx, qword [rdi]
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
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x88], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14001990e
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp 0x140019800
mov eax, dword [rsp + 0x88]
mov rcx, rdi
dec eax
mov dword [rdi + 8], eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp 0x140019800
Function at 0x140019870
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x14001985b
mov edx, dword [rbx + 8]
test edx, edx
js 0x14001985b
lea rax, [r11 + 0x10]
lea r8, [rbx + 0xc]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001985b
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov word [rbx + 0xc], di
mov rbx, qword [rsp + 0x60]
xor al, al
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, r8
mov r10, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
or r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x1400198f9
mov rcx, qword [rdi]
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
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x88], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14001990e
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
mov qword [rdi], rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp 0x140019800
mov eax, dword [rsp + 0x88]
mov rcx, rdi
dec eax
mov dword [rdi + 8], eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp 0x140019800