joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800adf10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x1800adf29
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x18014a1d0]
cmp r11d, 8
jb 0x1800ae021
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x1800adf50
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x1800ae04f
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x1800ae030
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret

Function at 0x1800aeb50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800aeb7e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800aeab0
mov rbx, rax
jmp 0x1800aeb81
mov rbx, rcx
test rbx, rbx
je 0x1800aec15
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800aec08
cmp dword [rsp + 0x58], 4
jne 0x1800aec08
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800aec08
cmp rbx, rdi
je 0x1800aebf3
mov rcx, rbx
call fcn.1800aeb30
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800aec15
mov rcx, rbx
call fcn.1800aeb30
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1800aec30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800aec5e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800aeab0
mov rbx, rax
jmp 0x1800aec61
mov rbx, rcx
test rbx, rbx
je 0x1800aecff
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800aecf2
cmp dword [rsp + 0x30], 3
jne 0x1800aecf2
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x1800aecf2
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800aecf2
cmp rbx, rdi
je 0x1800aecdd
mov rcx, rbx
call fcn.1800aeb30
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x1800aecff
mov rcx, rbx
call fcn.1800aeb30
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1800aed20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x1800aed4e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800aeab0
mov rbx, rax
jmp 0x1800aed51
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x1800aee03
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800aedf6
cmp dword [rsp + 0x30], 3
jne 0x1800aedf6
mov ecx, dword [rsp + 0x58]
call fcn.180030824
mov rdi, rax
test rax, rax
je 0x1800aedf6
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800aedee
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x1800aede7
mov rcx, rbx
call fcn.1800aeb30
mov eax, 1
jmp 0x1800aee05
mov rcx, rdi
call fcn.18003081c
cmp rbx, rsi
je 0x1800aee03
mov rcx, rbx
call fcn.1800aeb30
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x1800aee20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800aee4e
or r9d, 0x20006
mov r8d, r9d
call fcn.1800aeae0
mov rbx, rax
jmp 0x1800aee51
mov rbx, rcx
test rbx, rbx
je 0x1800aeeb0
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1800aeea3
cmp rbx, rdi
je 0x1800aee8e
mov rcx, rbx
call fcn.1800aeb30
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x1800aeeb0
mov rcx, rbx
call fcn.1800aeb30
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1800aeed0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800aeefe
or r9d, 0x20006
mov r8d, r9d
call fcn.1800aeae0
mov rbx, rax
jmp 0x1800aef01
mov rbx, rcx
test rbx, rbx
je 0x1800aef60
mov eax, dword [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1800aef53
cmp rbx, rdi
je 0x1800aef3e
mov rcx, rbx
call fcn.1800aeb30
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x1800aef60
mov rcx, rbx
call fcn.1800aeb30
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1800aef80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x1800aefae
or r9d, 0x20006
mov r8d, r9d
call fcn.1800aeae0
mov rbx, rax
jmp 0x1800aefb1
mov rbx, rcx
test rbx, rbx
je 0x1800af028
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x1800af01b
cmp rbx, rsi
je 0x1800af006
mov rcx, rbx
call fcn.1800aeb30
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x1800af028
mov rcx, rbx
call fcn.1800aeb30
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x1800af040
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x68
xor eax, eax
mov esi, edx
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x50], rax
lea rax, [r11 + 0x20]
mov rbp, rcx
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1800af1cc
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x1800af1a2
mov eax, dword [rsp + 0x90]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x90], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180030824
mov rbx, rax
test rax, rax
je 0x1800af1c8
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
add r8, r8
call fcn.18007ead0
mov r9d, dword [rsp + 0x90]
mov r8, rbx
xor edx, edx
mov rcx, rbp
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1800af1c0
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.1800aeab0
mov rdi, rax
test rax, rax
je 0x1800af1c0
mov edx, esi
mov rcx, rax
call fcn.1800af040
mov rcx, rdi
test eax, eax
je 0x1800af1bb
call fcn.1800aeb30
mov r11, qword [0x1801afa48]
test r11, r11
je 0x1800af17d
test esi, esi
je 0x1800af17d
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x1800af189
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1800af1c0
dec dword [rsp + 0x98]
jne 0x1800af0f0
mov rcx, rbx
call fcn.18003081c
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.1800aeb30
mov rcx, rbx
call fcn.18003081c
xor eax, eax
jmp 0x1800af1a7
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x1800afa50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rsp + 0x90]
mov r14, r8
mov rbx, rdx
mov r13, rcx
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbp
mov edi, r9d
call fcn.1801115f8
test rbx, rbx
je 0x1800afaa0
or edi, 0x20019
mov rdx, rbx
mov rcx, r13
mov r8d, edi
call fcn.1800aeab0
mov rsi, rax
jmp 0x1800afaa3
mov rsi, r13
mov qword [rsp + 0x70], r12
test rsi, rsi
je 0x1800afbab
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800afb9e
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1800afafc
cmp eax, 2
je 0x1800afafc
cmp eax, 6
je 0x1800afafc
cmp eax, 7
jne 0x1800afb9e
mov ecx, dword [rsp + 0x78]
add ecx, 2
call fcn.180030824
mov r8d, dword [rsp + 0x78]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.18007ead0
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800afb96
mov rbx, r12
cmp word [r12], ax
je 0x1800afb7a
nop dword [rax]
mov rdx, qword [rbp + 0x10]
mov r8, rbx
mov rcx, rbp
call fcn.180111c48
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
cmp word [rbx + rcx*2], ax
lea rbx, [rbx + rcx*2]
jne 0x1800afb50
cmp rsi, r13
je 0x1800afb87
mov rcx, rsi
call fcn.1800aeb30
mov rcx, r12
call fcn.18003082c
mov eax, 1
jmp 0x1800afbad
mov rcx, r12
call fcn.18003082c
cmp rsi, r13
je 0x1800afbab
mov rcx, rsi
call fcn.1800aeb30
xor eax, eax
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b0070
Capabilities:
Set registry value

Disassembly:
push rbx
push r13
push r15
sub rsp, 0x40
mov r15, r8
mov r13, rcx
test rdx, rdx
je 0x1800b0099
or r9d, 0x20006
mov r8d, r9d
call fcn.1800aeae0
mov rbx, rax
jmp 0x1800b009c
mov rbx, rcx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
test rbx, rbx
je 0x1800b01fc
mov rbp, qword [rsp + 0x80]
xor r14d, r14d
mov r12d, 2
mov rdi, qword [rbp + 0x10]
mov r8d, r14d
mov edx, r14d
test rdi, rdi
jle 0x1800b0111
nop
test rdx, rdx
js 0x1800b01db
cmp rdx, rdi
jge 0x1800b01db
mov rax, qword [rbp + 8]
inc r8d
inc rdx
mov rcx, qword [rax + rdx*8 - 8]
mov eax, dword [rcx - 0x10]
lea r12d, [r12 + rax*2 + 2]
movsxd rax, r8d
cmp rax, rdi
jl 0x1800b00e0
mov ecx, r12d
mov edi, r12d
call fcn.180030824
mov rsi, rax
test rax, rax
je 0x1800b01fc
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.18007ead0
mov rcx, qword [rbp + 0x10]
mov r11, rsi
mov r8, r14
test rcx, rcx
jle 0x1800b019c
test r8, r8
js 0x1800b01e1
cmp r8, rcx
jge 0x1800b01e1
mov rax, qword [rbp + 8]
mov rdx, r11
mov rcx, qword [rax + r8*8]
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
mov word [rdx - 2], ax
test ax, ax
jne 0x1800b0161
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r11
repne scasw ax, word [rdi]
inc r14d
inc r8
not rcx
movsxd rax, r14d
and ecx, ecx
lea r11, [r11 + rcx*2]
mov rcx, qword [rbp + 0x10]
cmp rax, rcx
jl 0x1800b0144
mov r9d, 7
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1800b01e7
cmp rbx, r13
je 0x1800b01cc
mov rcx, rbx
call fcn.1800aeb30
mov rcx, rsi
call fcn.18003081c
mov eax, 1
jmp 0x1800b01fe
call fcn.1800329e8
int3
call fcn.1800329e8
int3
mov rcx, rsi
call fcn.18003081c
cmp rbx, r13
je 0x1800b01fc
mov rcx, rbx
call fcn.1800aeb30
xor eax, eax
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r13
pop rbx
ret
Function at 0x1800b07c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x1800b07e8
or r9d, 0x20019
mov r8d, r9d
call fcn.1800aeab0
mov rbx, rax
jmp 0x1800b07eb
mov rbx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rdi
test rbx, rbx
je 0x1800b0900
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b08f3
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1800b0847
cmp eax, 2
je 0x1800b0847
cmp eax, 6
je 0x1800b0847
cmp eax, 7
jne 0x1800b08f3
mov ecx, dword [rsp + 0x68]
add ecx, 2
call fcn.180030824
mov r8d, dword [rsp + 0x68]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.18007ead0
lea r11, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b08d4
test rsi, rsi
je 0x1800b08a5
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx - 1]
mov rcx, qword [rsp + 0x80]
mov r8d, edi
mov rdx, rsi
call fcn.180004b00
cmp rbx, rbp
je 0x1800b08c5
mov rcx, rbx
call fcn.1800aeb30
mov rcx, rsi
call fcn.18003082c
mov eax, 1
jmp 0x1800b0902
mov rcx, rsi
call fcn.18003082c
mov rcx, qword [rsp + 0x80]
lea rdx, [0x18012f4e8]
xor r8d, r8d
call fcn.180004b00
cmp rbx, rbp
je 0x1800b0900
mov rcx, rbx
call fcn.1800aeb30
xor eax, eax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
Function at 0x1800b0920
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rax, qword [0x1801903f8]
xor rax, rbp
mov qword [rbp + 8], rax
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800b0968
or r9d, 0x20019
mov r8d, r9d
call fcn.1800aeab0
mov rbx, rax
jmp 0x1800b096b
mov rbx, rcx
test rbx, rbx
je 0x1800b0b5a
call fcn.1800d08e0
test eax, eax
je 0x1800b0a22
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b0b4d
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x1800b09c9
cmp eax, 2
je 0x1800b09c9
cmp eax, 6
je 0x1800b09c9
cmp eax, 7
jne 0x1800b0b4d
mov ecx, dword [rbp]
add ecx, 2
call fcn.180030824
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.18007ead0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800b0b32
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.180015fd0
jmp 0x1800b0b16
test rsi, rsi
je 0x1800b0a7e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1800b0a3d
xor esi, esi
jmp 0x1800b0a7e
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1800b0a59
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.18011bdc0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.180032f40
mov rsi, rax
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800b0b4d
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x1800b0ac6
cmp eax, 2
je 0x1800b0ac6
cmp eax, 6
je 0x1800b0ac6
cmp eax, 7
jne 0x1800b0b4d
mov ecx, dword [rbp]
add ecx, 2
call fcn.180030824
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.18007ead0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800b0b32
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.1800154f0
cmp rbx, rdi
je 0x1800b0b23
mov rcx, rbx
call fcn.1800aeb30
mov rcx, r12
call fcn.18003082c
mov eax, 1
jmp 0x1800b0b5c
mov rcx, r12
call fcn.18003082c
mov rcx, qword [rbp + 0x40]
lea rdx, [0x18012f4e8]
xor r8d, r8d
call fcn.180004b00
cmp rbx, rdi
je 0x1800b0b5a
mov rcx, rbx
call fcn.1800aeb30
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.18007e1e0
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x1800b1b00
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x1800b1b18
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x28]
mov r9d, dword [rbx + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [rbx + 0x34]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800b1b6a
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [rbx + 0x18], 0
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1800b1db0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x1800b1e4a
mov qword [rsp + 0x40], rsi
mov esi, dword [rcx + 0x38]
mov qword [rsp + 0x48], rdi
mov edi, 4
test esi, esi
je 0x1800b1de9
call fcn.1800d0990
mov ecx, 0x10004
test eax, eax
cmovne edi, ecx
lea rax, [rbx + 8]
lea r8, [0x1800b1c90]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov r9, rbx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1800b1e4a
mov edx, dword [rbx + 0x3c]
mov dword [rbx + 0x18], 1
test edx, edx
je 0x1800b1e35
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1800b3030
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.180038718
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
je 0x1800b30bf
test rsi, rsi
je 0x1800b30bf
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.1800383c8
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1800b5bc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
lea r8, [rsp + 0x30]
xor edi, edi
mov rcx, 0xffffffff80000002
mov rbx, r9
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800b5c34
test rbx, rbx
je 0x1800b5c09
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1800b5c50
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
sub rsp, 0x40
mov rbx, r8
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800b5cb0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x40
pop rbx
ret

Function at 0x1800b5cc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800b5d88
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x68]
cmp r11d, 2
jb 0x1800b5d7d
add r11d, 2
mov eax, 2
mov dword [rsp + 0x68], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180030824
mov rbx, rax
test rax, rax
je 0x1800b5d7d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret