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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rsi, rcx
test rcx, rcx
je 0x1400124b6
cmp qword [rcx], 0
jne 0x1400124b6
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x208
call fcn.1400452a0
lea rax, [rsp + 0x78]
mov dword [rbp + 0x5d8], 0x104
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0x5d8]
lea rax, [rbp + 0x5e8]
xor r14d, r14d
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x390]
lea rax, [rsp + 0x60]
mov dword [rbp + 0x5d0], r14d
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x64]
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x5d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400124b6
mov eax, dword [rbp + 0x5d0]
test eax, eax
je 0x1400124a9
mov edi, r14d
nop
lea rax, [rsp + 0x78]
mov dword [rbp + 0x5e0], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x5e0]
mov qword [rsp + 0x30], r14
lea r8, [rbp - 0x70]
mov qword [rsp + 0x28], r14
mov edx, edi
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001249b
lea r8, [rbp - 0x70]
mov edx, 0xff
lea rcx, [rbp + 0x190]
call fcn.14004de9c
lea rcx, [0x140083aa0]
call fcn.14000c1c0
mov r8, rax
lea rcx, [rbp + 0x190]
mov edx, 0xff
mov rbx, rax
call fcn.14004de1c
mov rcx, rbx
call fcn.1400462d0
lea rax, [rbp - 0x80]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x190]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400124c6
inc edi
cmp edi, dword [rbp + 0x5d0]
jb 0x1400123f0
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add rsp, 0x6a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
cmp word [rax + rbx*2 + 2], r14w
lea rbx, [rbx + 1]
jne 0x1400124d1
mov edx, 2
lea rcx, [rbx + 1]
call fcn.1400462ec
lea r8, [rbp - 0x70]
mov qword [rsi], rax
lea rdx, [rbx + 1]
mov rcx, rax
call fcn.14004de9c
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x6a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140012650
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
sub rsp, 0x68
movabs rax, 0xffffffefffdfffff
mov ebx, edx
mov qword [rcx], rax
lea rdx, [0x140083c20]
lea rax, [rsp + 0x30]
mov rsi, rcx
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000003
call fcn.1400276b0
test eax, eax
je 0x14001269c
xor al, al
add rsp, 0x68
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rdi
xor dil, dil
test ebx, ebx
je 0x1400126c4
cmp ebx, 1
jne 0x1400126b6
mov rcx, qword [0x140082040]
jmp 0x1400126cb
cmp ebx, 2
jne 0x1400126c4
mov rcx, qword [0x140082048]
jmp 0x1400126cb
mov rcx, qword [0x140082028]
call fcn.14000cbd0
mov rbx, rax
test rax, rax
je 0x1400127b0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x90]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x80], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012785
mov edx, dword [0x140082064]
mov rcx, qword [0x140082068]
mov qword [rsp + 0x98], 0
call fcn.140015260
mov edx, dword [rsp + 0x80]
lea r9, [rsp + 0x98]
mov r8, rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call fcn.140014420
mov edx, dword [0x140082064]
lea rcx, [rsp + 0x38]
call fcn.14000f560
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140012785
mov rax, qword [rcx]
mov dil, 1
mov qword [rsi], rax
call fcn.1400462d0
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140012790
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.1400452a0
mov rcx, rbx
call fcn.1400462d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbx
ret

Function at 0x1400128b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140083c00]
mov rcx, 0xffffffff80000003
call fcn.1400276b0
test eax, eax
je 0x1400128eb
mov eax, 2
add rsp, 0x40
pop rdi
ret
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov edi, 2
call fcn.14000cbd0
mov rbx, rax
test rax, rax
je 0x14001296e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140012942
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.1400452a0
mov rcx, rbx
call fcn.1400462d0
test esi, esi
mov rsi, qword [rsp + 0x30]
cmove edi, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x140013170
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
sub rsp, 0x38
lea rcx, [0x140083c20]
mov rbx, rdx
call fcn.140027c80
mov rbp, rax
test rax, rax
jne 0x140013199
add rsp, 0x38
pop rbp
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov rcx, rbx
mov qword [rsp + 0x30], rdi
xor sil, sil
call fcn.14000cbd0
mov rdi, rax
test rax, rax
je 0x140013280
mov edx, dword [0x140082064]
mov rcx, qword [0x140082068]
mov qword [rsp + 0x60], 0
call fcn.140015260
lea r9, [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov r8, rax
lea rcx, [rsp + 0x50]
mov edx, 8
call fcn.140014780
mov edx, dword [0x140082064]
lea rcx, [rsp + 0x68]
mov rbx, rax
call fcn.14000f560
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140013266
mov dword [rsp + 0x28], ebx
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, 1
movzx esi, sil
test eax, eax
cmove esi, ecx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140013266
test rbx, rbx
je 0x140013258
mov r8, rbx
xor edx, edx
call fcn.1400452a0
mov rcx, qword [rsp + 0x60]
call fcn.1400462d0
mov qword [rsp + 0x60], 0
test rbx, rbx
je 0x140013278
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.1400452a0
mov rcx, rdi
call fcn.1400462d0
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x30]
movzx eax, sil
mov rsi, qword [rsp + 0x58]
add rsp, 0x38
pop rbp
pop rbx
ret
Function at 0x140013300
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140027c80
mov r14, rax
test rax, rax
je 0x1400134a3
mov rdx, rbx
mov rcx, rdi
call fcn.1400290b0
lea ecx, [rax + 1]
call fcn.140025aa0
mov rsi, rax
test rax, rax
je 0x1400134a3
mov rdi, 0xffffffffffffffff
mov rcx, rdi
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140013360
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140013370
add rcx, rax
lea rcx, [rcx*2 + 2]
call fcn.1400462e4
mov rbp, rax
test rax, rax
je 0x1400134a3
mov rdx, rax
sub rdx, rbx
nop dword [rax]
movzx ecx, word [rbx]
mov word [rdx + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x1400133a0
lea rcx, [rax - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400133b4
xor edx, edx
movzx eax, word [rsi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400133c1
mov r8, rdi
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400133d5
add r8, r8
xor edx, edx
mov rcx, rsi
call fcn.1400452a0
mov rcx, rsi
call fcn.1400462d0
mov r8d, dword [0x140082064]
mov rcx, r15
mov rdx, qword [0x140082068]
call fcn.140015790
mov rbx, rax
test rax, rax
je 0x140013474
mov rcx, rdi
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140013420
lea eax, [rcx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x140013454
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.1400452a0
mov rcx, rbx
call fcn.1400462d0
cmp word [rbp + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x140013474
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rbp
call fcn.1400452a0
mov rcx, rbp
call fcn.1400462d0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1400134a5
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140013a70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r15
sub rsp, 0x30
mov r15, rcx
mov rbp, r8
xor ecx, ecx
mov ebx, edx
call fcn.14000cbd0
mov rdi, rax
test rax, rax
jne 0x140013aa2
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rbp
ret
mov qword [rsp + 0x50], rsi
mov ecx, ebx
mov qword [rsp + 0x58], r14
call fcn.140025aa0
mov rbx, 0xffffffffffffffff
mov r14, rax
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140013ac0
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140013ad0
add rcx, rax
lea rcx, [rcx*2 + 2]
call fcn.1400462e4
mov rsi, rax
test rax, rax
jne 0x140013b14
cmp word [rdi + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140013af2
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rdi
call fcn.1400452a0
mov rcx, rdi
jmp 0x140013c8d
xor eax, eax
lea rcx, [rsi - 2]
mov word [rsi], ax
nop dword [rax]
cmp word [rcx + 2], ax
lea rcx, [rcx + 2]
jne 0x140013b20
xor edx, edx
nop dword [rax]
movzx eax, word [rdi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140013b30
lea rcx, [rsi - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140013b45
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r14 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140013b60
mov r8, rbx
inc r8
cmp word [rdi + r8*2], 0
jne 0x140013b75
add r8, r8
xor edx, edx
mov rcx, rdi
call fcn.1400452a0
mov rcx, rdi
call fcn.1400462d0
test r14, r14
je 0x140013bc0
mov r8, rbx
nop dword [rax]
inc r8
cmp word [r14 + r8*2], 0
jne 0x140013ba0
add r8, r8
xor edx, edx
mov rcx, r14
call fcn.1400452a0
mov rcx, r14
call fcn.1400462d0
mov r8d, dword [0x140082064]
mov rcx, rbp
mov rdx, qword [0x140082068]
call fcn.140015790
mov rdi, rax
test rax, rax
je 0x140013c70
mov rcx, rbx
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140013bf0
lea eax, [rcx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8, rbx
inc r8
cmp word [rdi + r8*2], 0
jne 0x140013c24
add r8, r8
xor edx, edx
mov rcx, rdi
call fcn.1400452a0
mov rcx, rdi
call fcn.1400462d0
cmp word [rsi + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140013c44
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rsi
call fcn.1400452a0
mov rcx, rsi
call fcn.1400462d0
mov al, 1
jmp 0x140013c94
cmp word [rsi + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x140013c70
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rsi
call fcn.1400452a0
mov rcx, rsi
call fcn.1400462d0
xor al, al
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rdi
pop rbp
ret
Function at 0x140014230
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x70
mov rdi, rcx
mov rbx, rdx
mov ecx, 0x20
call fcn.1400462e4
mov rbp, rax
test rax, rax
je 0x1400143fb
mov rcx, rax
call fcn.140005f10
test al, al
je 0x1400143fb
mov rdx, qword [rdi + 8]
mov rdi, qword [rdi]
movsxd r14, dword [rdx]
mov edx, 1
lea rcx, [r14 + 1]
call fcn.1400462ec
mov r12, rax
test rax, rax
je 0x1400143fb
test r14d, r14d
jle 0x1400142c0
mov rcx, rax
sub rdi, rax
mov rdx, r14
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400142b0
mov byte [r12 + r14], 0
mov rdi, 0xffffffffffffffff
mov rsi, rdi
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x50], r14d
nop dword [rax]
cmp word [rbx + rsi*2 + 2], 0
lea rsi, [rsi + 1]
jne 0x1400142e0
lea rcx, [rsi + 1]
mov edx, 2
call fcn.1400462ec
mov r14, rax
test rax, rax
je 0x1400143f3
mov rdx, rax
sub rdx, rbx
nop dword [rax]
movzx ecx, word [rbx]
mov word [rdx + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x140014310
xor ecx, ecx
lea r8, [rsp + 0x40]
mov word [rax + rsi*2], cx
xor r9d, r9d
lea eax, [rsi*2 + 2]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], eax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x1400143d0
mov rcx, qword [rsp + 0x68]
mov r9d, dword [rcx]
mov eax, dword [rcx + 8]
mov r8d, dword [rcx + 4]
add eax, r9d
add eax, r8d
cmp dword [rsp + 0x60], eax
jb 0x1400143d0
mov edx, dword [rcx + 0x14]
lea rbx, [rcx + 0x24]
mov qword [rsp + 0x90], r15
lea r15, [rcx + r9]
add r15, r8
shr edx, 1
je 0x1400143c4
mov esi, edx
nop dword [rax + rax]
mov ecx, dword [rbx]
add rcx, r15
call fcn.14004db8c
test rax, rax
je 0x1400143ba
mov rdx, rax
mov rcx, rbp
call fcn.1400057c0
add rbx, 0x10
sub rsi, 1
jne 0x1400143a0
mov r15, qword [rsp + 0x90]
nop dword [rax]
cmp word [r14 + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x1400143d0
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, r14
call fcn.1400452a0
mov rcx, r14
call fcn.1400462d0
mov rcx, r12
call fcn.1400462d0
lea r11, [rsp + 0x70]
mov rax, rbp
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret

Function at 0x140015260
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rbx, rcx
test rcx, rcx
jne 0x140015282
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
mov edx, 1
call fcn.1400462ec
xor r9d, r9d
mov r10, rax
test edi, edi
jle 0x1400152ca
mov r8, rax
sub rbx, rax
nop
movzx ecx, byte [rbx + r8]
lea r8, [r8 + 1]
mov edx, r9d
lea eax, [rcx - 0x35]
xor cl, 0x1d
and dl, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [r8 - 1], cl
cmp r9d, edi
jl 0x1400152a0
mov rbx, qword [rsp + 0x30]
mov rax, r10
add rsp, 0x20
pop rdi
ret
Function at 0x140015460
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
movsxd rdi, r8d
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
jne 0x14001548b
mov qword [rsp + 0x38], rsi
jmp 0x1400154f7
mov rcx, rdi
mov edx, 1
call fcn.1400462ec
mov r10, rax
mov r9d, esi
test edi, edi
jle 0x1400154da
mov r8, rax
sub rbx, rax
nop dword [rax + rax]
movzx ecx, byte [rbx + r8]
lea r8, [r8 + 1]
mov edx, r9d
lea eax, [rcx - 0x35]
xor cl, 0x1d
and dl, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [r8 - 1], cl
cmp r9d, edi
jl 0x1400154b0
mov qword [rsp + 0x38], r10
test r10, r10
je 0x1400154f7
test rbp, rbp
je 0x1400154f7
mov rdx, r10
mov rcx, rbp
call fcn.140014020
mov rsi, rax
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.14000f560
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400155d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
movsxd r14, r8d
mov r15, rdx
lea rbx, [rbp - 1]
test r9b, r9b
je 0x140015692
test rcx, rcx
jne 0x140015604
mov edi, ebp
jmp 0x14001569a
mov edx, 0x81
mov qword [rsp + 0x40], rsi
call fcn.140009a30
mov rcx, rax
mov rdi, rax
call fcn.1400150f0
mov rsi, rax
test rdi, rdi
je 0x14001564b
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdi + r8], bpl
jne 0x140015630
xor edx, edx
mov rcx, rdi
call fcn.1400452a0
mov rcx, rdi
call fcn.1400462d0
mov rdx, rbx
nop
inc rdx
cmp byte [rsi + rdx], bpl
jne 0x140015650
inc rdx
mov rcx, rsi
call fcn.140009910
mov rdi, rax
test rsi, rsi
je 0x14001568b
mov r8, rbx
nop
inc r8
cmp byte [rsi + r8], bpl
jne 0x140015670
xor edx, edx
mov rcx, rsi
call fcn.1400452a0
mov rcx, rsi
call fcn.1400462d0
mov rsi, qword [rsp + 0x40]
jmp 0x14001569a
call fcn.14004db8c
mov rdi, rax
test r15, r15
jne 0x1400156f9
mov qword [rsp + 0x48], rbp
mov edx, r14d
lea rcx, [rsp + 0x48]
call fcn.14000f560
test rdi, rdi
je 0x1400156e2
nop word [rax + rax]
cmp word [rdi + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400156c0
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rdi
call fcn.1400452a0
mov rcx, rdi
call fcn.1400462d0
mov rbx, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rcx, r14
mov edx, 1
call fcn.1400462ec
mov r10, rax
mov r9d, ebp
test r14d, r14d
jle 0x14001574a
mov r8, rax
sub r15, rax
nop word [rax + rax]
movzx ecx, byte [r15 + r8]
lea r8, [r8 + 1]
mov edx, r9d
lea eax, [rcx - 0x35]
xor cl, 0x1d
and dl, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [r8 - 1], cl
cmp r9d, r14d
jl 0x140015720
mov qword [rsp + 0x48], r10
test r10, r10
je 0x1400156a4
test rdi, rdi
je 0x1400156a4
mov rdx, r10
mov rcx, rdi
call fcn.140014590
mov edx, r14d
lea rcx, [rsp + 0x48]
mov rbp, rax
call fcn.14000f560
jmp 0x1400156c0
Function at 0x140015790
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
movsxd rdi, r8d
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1400157bb
mov qword [rsp + 0x38], rsi
jmp 0x140015827
mov rcx, rdi
mov edx, 1
call fcn.1400462ec
mov r10, rax
mov r9d, esi
test edi, edi
jle 0x14001580a
mov r8, rax
sub rbx, rax
nop dword [rax + rax]
movzx ecx, byte [rbx + r8]
lea r8, [r8 + 1]
mov edx, r9d
lea eax, [rcx - 0x35]
xor cl, 0x1d
and dl, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [r8 - 1], cl
cmp r9d, edi
jl 0x1400157e0
mov qword [rsp + 0x38], r10
test r10, r10
je 0x140015827
test rbp, rbp
je 0x140015827
mov rdx, r10
mov rcx, rbp
call fcn.140014590
mov rsi, rax
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.14000f560
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140015850
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, edx
mov rbx, rcx
test rcx, rcx
jne 0x140015872
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
mov edx, 1
call fcn.1400462ec
xor r9d, r9d
mov r10, rax
test edi, edi
jle 0x1400158ba
mov r8, rax
sub rbx, rax
nop
movzx ecx, byte [rbx + r8]
lea r8, [r8 + 1]
mov edx, r9d
lea eax, [rcx + 0x35]
xor cl, 0x1d
and dl, 1
movzx ecx, cl
movzx eax, al
cmovne ecx, eax
inc r9d
mov byte [r8 - 1], cl
cmp r9d, edi
jl 0x140015890
mov rbx, qword [rsp + 0x30]
mov rax, r10
add rsp, 0x20
pop rdi
ret
Function at 0x14001d910
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, rcx
mov edi, r9d
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.1400462e4
mov rbx, rax
test rax, rax
je 0x14001d99e
mov dword [rax + 0x10], edi
mov r9, rbx
xor edi, edi
mov qword [rax], rbp
mov qword [rax + 0x18], rdi
mov r8, r14
mov qword [rax + 8], rsi
xor edx, edx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14001d989
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x18]
call fcn.1400462d0
mov rcx, rbx
mov qword [rbx + 0x18], rdi
call fcn.1400462d0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400277c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rdi, r9
mov rcx, rdx
mov rsi, r8
call fcn.14000c1c0
mov rbx, rax
test rax, rax
jne 0x1400277f2
lea eax, [rbx + 1]
jmp 0x140027842
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140027820
add r8, r8
xor edx, edx
mov rcx, rbx
call fcn.1400452a0
mov rcx, rbx
call fcn.1400462d0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140027e60
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete al
add rsp, 0x28
ret

Function at 0x140027e80
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rsi, rcx
mov rbx, rdx
mov ecx, 0x20
call fcn.1400462e4
mov rcx, rax
mov rdi, rax
call fcn.140005f10
test al, al
je 0x140027fe8
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027fe8
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.1400452a0
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rax
lea r8, [rbp + 0x3d8]
lea rax, [rsp + 0x70]
mov dword [rbp + 0x3d8], 0x104
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0x190]
lea rax, [rsp + 0x74]
xor esi, esi
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x78]
mov dword [rbp + 0x3d0], esi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rbp + 0x3d0]
test eax, eax
je 0x140027fdd
mov ebx, esi
nop
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
lea r8, [rbp - 0x70]
mov qword [rsp + 0x28], rsi
mov edx, ebx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x60], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140027fd3
lea rcx, [rbp - 0x70]
call fcn.14004db8c
test rax, rax
je 0x140027fd3
mov rdx, rax
mov rcx, rdi
call fcn.1400057c0
inc ebx
cmp ebx, dword [rbp + 0x3d0]
jb 0x140027f80
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x4c0]
mov rax, rdi
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret