joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dc0e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x1400dc149
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400dc104
mov ecx, dword [r9]
jmp 0x1400dc23e
cmp ecx, 0x4e0
jb 0x1400dc23e
lea r10, [r9 + 0x9c4]
xchg rbx, r12
mov qword [rsp], r12
xchg r12, rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400dc16e
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400dc1c2
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 3
shr ecx, 1
shr ecx, 3
shr ecx, 2
shr ecx, 1
shr ecx, 1
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 2
shl eax, 0xb
shl eax, 2
xor edx, eax
mov eax, edx
shr eax, 0x10
shr eax, 1
shr eax, 1
xor eax, edx
add rsp, 8
ret
Function at 0x1400eb8e1
Capabilities:
Execute syscall

Disassembly:
sub rsp, 8
mov qword [rsp], r10
pushfq
xchg rbp, r10
mov rbp, rcx
xchg rbp, r10
push qword [0x140167150]
lea rax, [0x1400eb8f8]
push rax
push qword [0x140167158]
push qword [0x140167148]
push qword [0x140167160]
push qword [0x140167158]
lea rax, [0x1400eb830]
push rax
push qword [0x140167148]
push qword [0x140167168]
pushfq
nop
add rsp, 8
mov rax, qword [rsp - 8]
or rax, 0x40000
nop
sub rsp, 8
mov qword [rsp], rax
popfq
syscall
popfq
push rdx
push rcx
push rcx
xchg qword [rsp + 0x18], r10
pop rcx
pop rcx
pop rdx
add rsp, 8
ret

Function at 0x14017d570
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14017d59d
xor al, al
jmp 0x14017d6ff
mov rax, qword [0x14019c6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14019c6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14019c6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14019c6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14019c6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14019c6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14019c6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14019c6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14019c700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14017d6f1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14017d649
mov r11d, 2
jmp 0x14017d66d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14017d663
mov r11d, 1
jmp 0x14017d66d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14017d715
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14017d6b2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14017d6ca
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14017d6da
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14017d6e8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14017d630
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14017d6fa
Function at 0x140005460
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005494
cmp word [rcx], 0x5a4d
jne 0x140005494
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005494
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005494
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400053a0
test eax, eax
jne 0x1400054b0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005410
test rax, rax
je 0x1400054a5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005c56
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005b60
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005b00
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140006710
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006733
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006733
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400067e1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405399d0]
mov r8, rcx
mov rcx, r9
call fcn.140006710
test eax, eax
je 0x14000680d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006734
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000b000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000b078
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000b078
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000b065
nop
cmp rbx, rcx
jae 0x14000b078
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000b050
cmp rbx, rcx
jae 0x14000b078
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x14000b07a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b090
Capabilities:
Extract resource via kernel32 functions

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, 0x20
mov eax, r8d
mov rbp, rdx
shr eax, 4
mov edi, r8d
inc ax
mov rsi, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x14000b19d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000b19d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000b19d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000b135
nop word [rax + rax]
cmp rbx, rcx
jae 0x14000b19d
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000b120
cmp rbx, rcx
jae 0x14000b19d
cmp word [rbx], 0
je 0x14000b19d
mov rax, qword [rsi]
mov ecx, 1
movzx edi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x14000b161
mov edx, edi
mov rcx, rsi
call fcn.14000b8a0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.14013fbf8
xor edx, edx
test eax, eax
je 0x14000b184
cmp eax, 0xc
je 0x14000b1c0
cmp eax, 0x50
jne 0x14000b1ba
mov rcx, qword [rsi]
cmp edi, dword [rcx - 0xc]
jg 0x14000b1c6
mov dword [rcx - 0x10], edi
mov eax, 1
mov rcx, qword [rsi]
mov word [rcx + rdi*2], dx
jmp 0x14000b19f
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.1400f9a54
int3
call fcn.1400f9a78
int3
mov ecx, 0x80070057
call fcn.14000ba80
int3
Function at 0x14000b1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov edi, edx
mov ecx, edx
call fcn.1401074d0
mov rsi, rax
test rax, rax
jne 0x14000b215
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, edi
mov qword [rsp + 0x30], rbx
shr eax, 4
mov r8d, 6
inc ax
mov qword [rsp + 0x38], rbp
movzx edx, ax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14000b2ff
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000b2ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000b2ff
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000b29a
cmp rbx, rcx
jae 0x14000b2ff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000b285
cmp rbx, rcx
jae 0x14000b2ff
cmp word [rbx], 0
je 0x14000b2ff
mov rax, qword [r14]
mov esi, 1
movzx edi, word [rbx]
mov ecx, esi
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x14000b2c8
mov edx, edi
mov rcx, r14
call fcn.14000b8a0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call fcn.14013fbf8
xor ecx, ecx
test eax, eax
je 0x14000b2eb
cmp eax, 0xc
je 0x14000b326
cmp eax, 0x50
jne 0x14000b320
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x14000b32c
mov dword [rax - 0x10], edi
mov rax, qword [r14]
mov word [rax + rdi*2], cx
jmp 0x14000b303
xor ecx, ecx
mov esi, ecx
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.1400f9a54
int3
call fcn.1400f9a78
int3
mov ecx, 0x80070057
call fcn.14000ba80
int3

Function at 0x14000e020
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rdx + 8], 0x100
mov rbx, rdx
mov rdi, rcx
jne 0x14000e085
mov rax, qword [rdx + 0x10]
cmp rax, 0x2e
ja 0x14000e053
movabs rcx, 0x400008002000
bt rcx, rax
jb 0x14000e063
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
je 0x14000e085
mov rcx, rbx
call qword [sym.imp.USER32.dll_TranslateMessage]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400eeb20
Function at 0x140015db0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
xor esi, esi
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140015e03
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140015df7
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x140015dfa
mov rcx, rsi
mov qword [0x1401f7b90], rcx
jmp 0x140015e0a
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, r9d
lea rdx, str.SoftwareJ._RiverCDLabelerSettings
call qword [rax + 0x28]
mov qword [rsp + 0x90], rax
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140015e70
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140015e64
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x140015e67
mov rcx, rsi
mov qword [0x1401f7b90], rcx
jmp 0x140015e77
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, r9d
lea rdx, str.IncludeArtist
call qword [rax + 0x28]
mov qword [rsp + 0x98], rax
lea r9, [rsp + 0x90]
lea r8, [rdi + 0xcf]
lea rdx, [rsp + 0x98]
call fcn.1400167c0
test al, al
jne 0x140015ecb
mov byte [rdi + 0xcf], 1
mov qword [rsp + 0x98], rsi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareJ._RiverCDLabelerSettings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140015fd3
mov rbx, qword [rsp + 0x98]
mov dword [rsp + 0x88], 3
mov dword [rsp + 0x80], 0x2c
lea rax, [rdi + 8]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.MainWindowPlacement
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015f77
mov byte [rdi + 0x34], 1
mov dword [rsp + 0x80], 8
add rdi, 0xb0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.GlobalPrintOffset
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140015fc5
mov qword [rsp + 0x50], rsi
mov rax, rsi
mov qword [rdi], rax
test rbx, rbx
je 0x140015fd3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015fe0
Capabilities:
Set registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x58
mov rbx, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x80], rax
xor edi, edi
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140016035
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140016029
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x14001602c
mov rcx, rdi
mov qword [0x1401f7b90], rcx
jmp 0x14001603c
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, r9d
lea rdx, str.SoftwareJ._RiverCDLabelerSettings
call qword [rax + 0x28]
mov qword [rsp + 0x70], rax
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x1400160a2
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140016096
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x140016099
mov rcx, rdi
mov qword [0x1401f7b90], rcx
jmp 0x1400160a9
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8d, r9d
lea rdx, str.IncludeArtist
call qword [rax + 0x28]
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x70]
movzx r8d, byte [rbx + 0xcf]
lea rdx, [rsp + 0x78]
call fcn.140016910
mov qword [rsp + 0x78], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareJ._RiverCDLabelerSettings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400161ac
mov rdi, qword [rsp + 0x78]
mov eax, dword [rbx + 0x24]
cmp dword [rbx + 0x2c], eax
jle 0x140016171
mov eax, dword [rbx + 0x28]
cmp dword [rbx + 0x30], eax
jle 0x140016171
lea rax, [rbx + 8]
mov dword [rsp + 0x28], 0x2c
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.MainWindowPlacement
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbx + 0xb0]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.GlobalPrintOffset
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x1400161ac
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x1400161c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rsi, r9
mov rbp, r8
mov rdi, rdx
xor r14d, r14d
mov ebx, r14d
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016297
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x280], 0x1fe
lea rax, [rsp + 0x280]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016297
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x140016297
mov eax, dword [rsp + 0x280]
test eax, eax
je 0x140016316
test al, 1
jne 0x140016297
shr rax, 1
cmp word [rsp + rax*2 + 0x4e], r14w
je 0x14001631c
test rbx, rbx
je 0x1400162a6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
mov ebx, 0xffffffff
cmp eax, 0x7ffffc17
je 0x1400162d9
mov eax, dword [rdx + 0x10]
cmp eax, ebx
je 0x1400162cf
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400162d9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140016306
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400162fc
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140016306
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor al, al
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov word [rsp + 0x50], r14w
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140035440
nop
test rbx, rbx
je 0x14001633c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
mov ebx, 0xffffffff
cmp eax, 0x7ffffc17
je 0x14001636f
mov eax, dword [rdx + 0x10]
cmp eax, ebx
je 0x140016365
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001636f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14001639c
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140016392
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14001639c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov al, 1
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400163b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r9
mov rbp, r8
mov rdi, rdx
xor r14d, r14d
mov qword [r11 - 0x20], r14
lea rax, [r11 - 0x28]
mov qword [r11 - 0x38], rax
lea rax, [r11 - 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [r11 - 0x58], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400164e6
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x80], r14d
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x80], 4
jne 0x1400164d7
test eax, eax
jne 0x1400164d7
test rbx, rbx
je 0x140016473
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
mov ebx, 0xffffffff
cmp eax, 0x7ffffc17
je 0x1400164a6
mov eax, dword [rdx + 0x10]
cmp eax, ebx
je 0x14001649c
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400164a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400164d3
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400164c9
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400164d3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov al, 1
jmp 0x140016548
test rbx, rbx
je 0x1400164e6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
mov ebx, 0xffffffff
cmp eax, 0x7ffffc17
je 0x140016519
mov eax, dword [rdx + 0x10]
cmp eax, ebx
je 0x14001650f
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016519
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140016546
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14001653c
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140016546
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140016560
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rbp, r9
mov r15, r8
mov r14, rdx
xor ecx, ecx
mov qword [r11 + 0x10], rcx
lea rax, [r11 + 8]
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x10]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140016608
mov rsi, qword [rsp + 0x88]
mov rdi, qword [r14]
mov rbx, qword [r15]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x140016608
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
mov ebx, 0xffffffff
cmp eax, 0x7ffffc17
je 0x14001663b
mov eax, dword [rdx + 0x10]
cmp eax, ebx
je 0x140016631
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001663b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14001666a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140016660
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001666a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140016698
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14001668e
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140016698
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret