joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002890
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x870
mov rax, qword [0x1400470b0]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x880]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.14001a614
cmp qword [rsp + 0x888], 0
je 0x140002920
lea r8, [0x1400339a4]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.14001a58c
mov r8, qword [rsp + 0x888]
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.14001a58c
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140002973
xor eax, eax
jmp 0x1400029c7
cmp qword [rsp + 0x890], 0
je 0x1400029b7
mov rcx, qword [rsp + 0x890]
call fcn.14001a680
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x890]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140019e10
add rsp, 0x870
pop rdi
ret

Function at 0x140002a50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x1400470b0]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140002ab0
mov eax, dword [rsp + 0x40]
jmp 0x140002b4e
mov dword [rsp + 0x44], pe_nt_image_headers64
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140002b2d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.140002a50
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140002b23
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
jmp 0x140002b4e
mov dword [rsp + 0x44], pe_nt_image_headers64
jmp 0x140002ab8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140019e10
add rsp, 0x278
ret
Function at 0x140007890
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x20]
mov rax, qword [0x1400470b0]
xor rax, rbp
mov qword [rbp + 0x250], rax
call fcn.140007c10
mov dword [rbp + 8], eax
xor eax, eax
mov word [rbp + 0x40], ax
lea rax, [rbp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp + 0x288]
call fcn.140009ae0
mov byte [rbp], 0
lea rcx, [rbp + 0x40]
call fcn.14001a680
test rax, rax
jbe 0x140007a26
mov dx, 0x5c
lea rcx, [rbp + 0x40]
call fcn.140002050
add rax, 2
mov qword [rbp + 0x28], rax
mov byte [rbp + 0x30], 0x48
mov byte [rbp + 0x31], 0x56
mov byte [rbp + 0x32], 0x48
mov byte [rbp + 0x33], 0xb
mov byte [rbp + 0x34], 0x5f
mov byte [rbp + 0x35], 0x1a
mov byte [rbp + 0x36], 0x25
mov byte [rbp + 0x37], 0x5a
mov byte [rbp + 0x38], 0x29
mov byte [rbp + 0x39], 0x44
mov byte [rbp + 0x3a], 0x50
mov byte [rbp + 0x3b], 0x33
mov byte [rbp + 0x3c], 0x17
mov byte [rbp + 0x3d], 0
lea rcx, [rbp + 0x30]
call fcn.14001bca0
mov r8d, 5
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400081c0
lea rax, [rbp + 0x30]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x140007984
mov qword [rbp + 0x20], 0
jmp 0x1400079f6
mov rcx, qword [rbp + 0x10]
call fcn.14001bca0
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x3fffffff
jle 0x1400079a5
mov qword [rbp + 0x18], 0
jmp 0x1400079ee
movsxd rax, dword [rbp + 4]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400079c2
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14001bd60
sub rsp, rax
lea rax, [rsp + 0x20]
mov r9d, dword [rbp + 8]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call fcn.140007b00
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x28]
call fcn.140019a90
test eax, eax
jne 0x140007a0b
mov byte [rbp], 1
lea rcx, [rbp + 0x30]
call fcn.14001bca0
mov r8d, 5
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400081c0
movzx eax, byte [rbp]
mov rcx, qword [rbp + 0x250]
xor rcx, rbp
call fcn.140019e10
lea rsp, [rbp + 0x268]
pop rdi
pop rbp
ret
Function at 0x140007cb0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140007cf6
xor eax, eax
jmp 0x140007e32
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x140007d23
xor eax, eax
jmp 0x140007e32
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0
jmp 0x140007d8c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140007e2b
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call fcn.14001bdec
test eax, eax
jne 0x140007e26
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140007e2b
jmp 0x140007d82
jmp 0x140007e2d
mov rax, qword [rsp + 0x40]
add rsp, 0x88
ret

Function at 0x1400085c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x38]
call fcn.140003a10
test eax, eax
jne 0x140008642
mov edx, 0x104
lea rcx, [rsp + 0x38]
call fcn.1400033a0
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rcx, [rsp + 0x38]
call fcn.1400032d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x140008642
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x140008642
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x38]
call fcn.140002c20
movzx eax, byte [rsp + 0x21]
add rsp, 0x58
ret
Function at 0x140008670
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400470b0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.140008940
movzx eax, al
test eax, eax
je 0x1400086cb
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
test eax, eax
je 0x14000878c
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5c
je 0x140008724
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x2f
jne 0x140008751
mov rax, qword [rsp + 0x290]
cmp qword [rsp + 0x20], rax
jbe 0x140008751
mov rax, qword [rsp + 0x20]
movzx eax, word [rax - 2]
cmp eax, 0x3a
je 0x140008751
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
jmp 0x1400086fa
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x30]
call fcn.1400089b0
mov rcx, qword [rsp + 0x290]
call fcn.1400085c0
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140019e10
add rsp, 0x280
pop rdi
ret
Function at 0x14000a260
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400470b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14000a31b
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x14000a310
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], 0
je 0x14000a32c
mov dword [rsp + 0x64], 1
jmp 0x14000a334
mov dword [rsp + 0x64], 0
movzx eax, byte [rsp + 0x64]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140019e10
add rsp, 0x88
ret
Function at 0x14000a4c0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
jmp 0x14000a4e7
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x14000a550
mov dword [rsp + 0x24], 0
jmp 0x14000a502
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jge 0x14000a54e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
lea rcx, [0x140034ea0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x24]
movsxd rdx, dword [rsp + 0x20]
imul rdx, rdx, 0x400
mov r8, qword [rsp + 0x50]
lea rdx, [r8 + rdx + 0x48]
movsxd r8, dword [rsp + 0x24]
mov eax, dword [rax + rcx*4]
mov dword [rdx + r8*4], eax
jmp 0x14000a4f8
jmp 0x14000a4dd
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
jmp 0x14000a56c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x12
jge 0x14000a5fa
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
jmp 0x14000a593
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jge 0x14000a5d3
mov eax, dword [rsp + 0x34]
shl eax, 8
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x24], eax
jl 0x14000a5d1
mov dword [rsp + 0x24], 0
jmp 0x14000a589
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x140034e50]
mov edx, dword [rsp + 0x34]
mov eax, dword [rcx + rax*4]
xor eax, edx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx*4], eax
jmp 0x14000a562
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x20], 0
jmp 0x14000a61f
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x12
jge 0x14000a661
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.14000a710
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x2c]
mov dword [rcx + rax*4], edx
jmp 0x14000a614
mov dword [rsp + 0x20], 0
jmp 0x14000a675
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 4
jge 0x14000a702
mov dword [rsp + 0x24], 0
jmp 0x14000a695
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jge 0x14000a6fd
lea r8, [rsp + 0x2c]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.14000a710
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x48]
movsxd rcx, dword [rsp + 0x24]
mov edx, dword [rsp + 0x28]
mov dword [rax + rcx*4], edx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x400
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x48]
mov ecx, dword [rsp + 0x24]
inc ecx
movsxd rcx, ecx
mov edx, dword [rsp + 0x2c]
mov dword [rax + rcx*4], edx
jmp 0x14000a68a
jmp 0x14000a66b
add rsp, 0x48
ret
Function at 0x14000b0a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400470b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x38], 0
lea rdx, [0x140037d48]
lea rcx, [rsp + 0x58]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x58]
call fcn.1400032d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000b169
lea rdx, [0x140037d80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000b15e
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [rsp + 0x38]
test eax, eax
jl 0x14000b15e
mov dword [rsp + 0x34], 1
mov byte [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14000b1bc
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.Common_Application_Data
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.140002c20
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140019e10
add rsp, 0x290
pop rdi
ret

Function at 0x14000bb00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000bbd1
mov rcx, qword [rsp + 0x88]
call fcn.14001a680
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000bbc6
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x54]
add rsp, 0x68
ret
Function at 0x14000bbe0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000bc82
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14000bc77
mov dword [rsp + 0x54], 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x54]
add rsp, 0x68
ret

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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.140002be0
nop
mov dword [rsp + 0x30], 0x1000
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400033a0
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14000bd43
cmp dword [rsp + 0x34], 1
je 0x14000bd59
cmp dword [rsp + 0x34], 2
je 0x14000bd59
lea rdx, [0x140036b8c]
lea rcx, [rsp + 0x40]
call fcn.140002fb0
jmp 0x14000bde5
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.140003470
lea rcx, [rsp + 0x40]
call fcn.140003710
cmp dword [rsp + 0x34], 2
jne 0x14000bde5
mov dword [rsp + 0x30], 0x1000
lea rcx, [rsp + 0x68]
call fcn.140002be0
nop
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400033a0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.1400032d0
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, 0xffffffff
lea rcx, [rsp + 0x68]
call fcn.140003470
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140003010
nop
lea rcx, [rsp + 0x68]
call fcn.140002c20
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xa0]
call fcn.140002c50
mov eax, dword [rsp + 0x38]
or eax, 1
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x40]
call fcn.140002c20
mov rax, qword [rsp + 0xa0]
add rsp, 0x98
ret
Function at 0x14000c120
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000c198
cmp dword [rsp + 0x30], 4
je 0x14000c189
cmp dword [rsp + 0x30], 3
jne 0x14000c198
cmp dword [rsp + 0x34], 4
jne 0x14000c198
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400110d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140011150
cmp dword [rsp + 0x34], 3
jne 0x140011150
cmp qword [rsp + 0x60], 0
je 0x14001114e
mov dword [rsp + 0x38], 1
jmp 0x140011165
cmp dword [rsp + 0x30], 0xea
je 0x140011165
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x140011180
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x2118
call fcn.14001bd60
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400470b0]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x60]
call fcn.140002be0
nop
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x2130]
mov rcx, qword [rsp + 0x2128]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001138b
mov dword [rsp + 0x4c], 0x800
mov dword [rsp + 0x44], 0x800
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x10f0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0xe0]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140011380
cmp dword [rsp + 0x50], 1
jne 0x140011361
lea rcx, [rsp + 0x60]
call fcn.1400032f0
test eax, eax
jle 0x1400112c0
lea rdx, [0x140036964]
lea rcx, [rsp + 0xc8]
call fcn.140002ce0
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x60]
call fcn.140003190
nop
lea rcx, [rsp + 0xc8]
call fcn.140002c20
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0xb0]
call fcn.140002ce0
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.140003190
nop
lea rcx, [rsp + 0xb0]
call fcn.140002c20
lea rdx, [0x14003698c]
lea rcx, [rsp + 0x80]
call fcn.140002ce0
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140003190
nop
lea rcx, [rsp + 0x80]
call fcn.140002c20
lea rdx, [rsp + 0x10f0]
lea rcx, [rsp + 0x98]
call fcn.140002ce0
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x60]
call fcn.140003190
nop
lea rcx, [rsp + 0x98]
call fcn.140002c20
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], 0x800
mov dword [rsp + 0x44], 0x800
jmp 0x140011224
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x2120]
call fcn.140002c50
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x60]
call fcn.140002c20
mov rax, qword [rsp + 0x2120]
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140019e10
add rsp, 0x2118
ret