joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b550
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001b250
cmp qword [0x14033e048], 0
mov rbx, rax
je 0x14001b668
test rax, rax
je 0x14001b668
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001e810
cmp eax, 1
je 0x14001b676
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.14001fefc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140020678]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001b67c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001b020
nop
jmp fcn.14001fefc

Function at 0x14001b690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b6b0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001b550
Function at 0x14001c2a0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c3b0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.14001e820
cmp esi, dword [rbx + 0x48]
jae 0x14001c330
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.14001e860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001c3bd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001c3bd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14001c2f4
call fcn.14001b550
mov rbx, rax
jmp 0x14001c2df
mov rcx, r14
call fcn.14001e860
mov eax, 0xc
jmp 0x14001c312

Function at 0x14001c440
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c468
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c45a
add rsp, 0x28
ret

Function at 0x14001c4d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c4f8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c4ea
jmp 0x14001c4ee

Function at 0x14001c610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14033b658]
test eax, eax
jne 0x14001c628
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c658
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c61e
test byte [rax + 0x40], 3
je 0x14001c61e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c620
call fcn.14001b550
test rax, rax
jne 0x14001c63e
jmp 0x14001c61e
Function at 0x14001c670
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6b0
test ebx, ebx
jle 0x14001c6a0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001b550
test rax, rax
jne 0x14001c68d
add rsp, 0x20
pop rbx
ret

Function at 0x14001c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x14033b658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x14033b658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
Function at 0x140001720
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [0x14001b2d0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x10
lea rdx, str.PageMargin
xor r8d, r8d
mov r9d, 3
call qword [sym.imp.advapi32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x140001760
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x34], 0x10
test rcx, rcx
je 0x1400017a5
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [0x14001b2d0]
mov qword [rsp + 0x20], rax
lea rdx, str.PageMargin
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400017a5
cmp dword [rsp + 0x34], 0x10
je 0x1400017b3
movaps xmm0, xmmword [0x14000f480]
movaps xmmword [0x14001b2d0], xmm0
add rsp, 0x38
ret

Function at 0x1400017c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [0x14001b2e4]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
lea rdx, str.PreviewPages
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.advapi32.dll_RegSetValueExW]
nop
add rsp, 0x38
ret

Function at 0x140001800
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x40
mov dword [rsp + 0x3c], 4
mov esi, 1
test rcx, rcx
je 0x14000185f
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [0x14001b2e4]
mov qword [rsp + 0x20], rax
lea rdx, str.PreviewPages
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000185f
cmp dword [rsp + 0x3c], 4
jne 0x14000185f
mov eax, dword [0x14001b2e4]
test eax, eax
jle 0x14000185f
mov esi, 2
cmp eax, 3
jb 0x140001865
mov dword [0x14001b2e4], esi
add rsp, 0x40
pop rsi
ret
Function at 0x140004a10
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x70
mov rsi, rcx
mov qword [rsp + 0x30], 0
lea r8, str.Options
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call sym.registry_get_handle
test rax, rax
jne 0x140004ad2
mov dword [rsp + 0x44], 0x2c
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.user32.dll_GetWindowPlacement]
xor eax, eax
cmp dword [rsp + 0x4c], 3
sete al
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0x10
lea rdx, str.FrameRect
mov rsi, qword [sym.imp.advapi32.dll_RegSetValueExW]
xor r8d, r8d
mov r9d, 3
call rsi
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
lea rdx, str.Maximized
xor r8d, r8d
mov r9d, 4
call rsi
mov rcx, qword [rsp + 0x30]
call sym.registry_set_pagemargins
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.advapi32.dll_RegCloseKey]
lea r8, str.Settings
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call sym.registry_get_handle
test rax, rax
jne 0x140004b02
mov rcx, qword [rsp + 0x30]
call sym.registry_set_previewpages
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
add rsp, 0x70
pop rsi
ret

Function at 0x140004cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 0x10
lea r8, str.Options
lea rcx, [rsp + 0x38]
xor edx, edx
call sym.registry_get_handle
test rax, rax
je 0x140004d08
test rsi, rsi
jne 0x140004d44
jmp 0x140004d4e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea rdx, str.FrameRect
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x34]
xor ecx, 0x10
or ecx, eax
sete al
test rsi, rsi
je 0x140004d4e
test al, al
jne 0x140004d4e
movaps xmm0, xmmword [0x14000f680]
movups xmmword [rsi], xmm0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
add rsp, 0x40
pop rsi
ret

Function at 0x140004d60
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x34], 4
lea r8, str.Options
lea rcx, [rsp + 0x38]
xor edx, edx
call sym.registry_get_handle
test rax, rax
je 0x140004da9
mov dword [rsi], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
add rsp, 0x40
pop rsi
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea rdx, str.Maximized
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004d91
cmp dword [rsp + 0x34], 4
je 0x140004d97
jmp 0x140004d91
Function at 0x1400056e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x14000f5ce]
xor ecx, ecx
mov r8, rdi
mov r9, rsi
call sym.registry_read_formatopts
lea rdx, [0x14000f5d6]
mov ecx, 1
mov r8, rdi
mov r9, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sym.registry_read_formatopts

Function at 0x140005720
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov esi, ecx
mov dword [rsp + 0x3c], 0
mov r14d, ecx
mov dword [rbx + r14*4], 0
mov dword [r9 + r14*4], 0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x3c]
call sym.registry_get_handle
test rax, rax
jne 0x140005808
lea rbx, [rbx + r14*4]
cmp dword [rsp + 0x3c], 2
jne 0x1400057a5
mov dword [rsp + 0x38], 4
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea rdx, str.BarState0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x1400057ab
mov dword [rbx], 0xf
lea rdi, [rdi + r14*4]
cmp dword [rsp + 0x3c], 2
jne 0x1400057e9
mov dword [rsp + 0x38], 4
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea rdx, str.Wrap
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x1400057fd
test esi, esi
je 0x1400057f6
cmp esi, 1
jne 0x1400057fd
xor eax, eax
jmp 0x1400057fb
mov eax, 1
mov dword [rdi], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140005820
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x3c], 0
lea r8, [0x14000f5ce]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x3c]
call sym.registry_get_handle
test rax, rax
jne 0x1400058aa
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 4
lea rdx, str.BarState0
mov rbx, qword [sym.imp.advapi32.dll_RegSetValueExW]
xor r8d, r8d
mov r9d, 4
call rbx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 4
lea rdx, str.Wrap
xor r8d, r8d
mov r9d, 4
call rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [rsp + 0x3c], 0
lea r8, [0x14000f5d6]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x3c]
call sym.registry_get_handle
test rax, rax
jne 0x14000592f
add rdi, 4
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 4
lea rdx, str.BarState0
mov rdi, qword [sym.imp.advapi32.dll_RegSetValueExW]
xor r8d, r8d
mov r9d, 4
call rdi
add rsi, 4
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 4
lea rdx, str.Wrap
xor r8d, r8d
mov r9d, 4
call rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.advapi32.dll_RegCloseKey]
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x14000a340
Capabilities:
Get graphical window text

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x710
mov rcx, qword [0x14001bff0]
mov r15, qword [sym.imp.user32.dll_GetDlgItem]
mov edx, 0x7d4
call r15
mov rsi, rax
mov rcx, rax
mov edx, 0x7dd
call r15
mov r14, qword [sym.imp.user32.dll_SendMessageW]
mov rcx, rax
mov edx, 0x407
xor r8d, r8d
xor r9d, r9d
call r14
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x8c], xmm0
movups xmmword [rsp + 0x7c], xmm0
movups xmmword [rsp + 0x6c], xmm0
movups xmmword [rsp + 0x5c], xmm0
movups xmmword [rsp + 0x4c], xmm0
movups xmmword [rsp + 0x3c], xmm0
movups xmmword [rsp + 0x2c], xmm0
mov dword [rsp + 0x28], 0x74
mov rcx, qword [0x14001c020]
lea r9, [rsp + 0x28]
mov r8d, 1
mov edx, 0x43a
call r14
lea r9, [rsp + 0x110]
mov r8d, 0x104
mov rcx, rdi
mov edx, 0xd
call r14
test rax, rax
je 0x14000a54e
lea rbx, [rsp + 0x42]
lea rcx, [rsp + 0x110]
mov rdx, rbx
call qword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x14000a443
mov rcx, rdi
mov edx, 0xc
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.user32.dll_SendMessageW]
mov rcx, rsi
mov edx, 0x7de
call qword [sym.imp.user32.dll_GetDlgItem]
mov rcx, rax
call sym.populate_size_list
jmp 0x14000a54e
mov rcx, qword [0x14001bff0]
mov edx, 0x7d4
call r15
mov rcx, rax
mov edx, 0x7de
call r15
mov rcx, rax
mov edx, 0x407
xor r8d, r8d
xor r9d, r9d
call r14
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0x9c], 0x74
mov rcx, qword [0x14001c020]
lea r9, [rsp + 0x9c]
mov r8d, 1
mov edx, 0x43a
call r14
lea rdi, [rsp + 0x510]
mov r8d, 0x104
mov rcx, rsi
mov edx, 0xd
mov r9, rdi
call r14
movsxd rax, dword [rsp + 0xa8]
imul r8, rax, 0x66666667
mov rax, r8
shr rax, 0x3f
sar r8, 0x23
add r8d, eax
lea rdx, [0x1400100b0]
lea rbx, [rsp + 0x310]
mov rcx, rbx
call qword [sym.imp.user32.dll_wsprintfW]
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x14000a54e
lea r9, [rsp + 0x310]
mov rcx, rsi
mov edx, 0xc
xor r8d, r8d
call qword [sym.imp.user32.dll_SendMessageW]
nop
add rsp, 0x710
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000ab80
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor ebx, ebx
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000ad67
mov r14, rax
cmp rsi, 0x11
jne 0x14000ac00
mov qword [rsp + 0x20], 0
lea rdx, [0x140010130]
lea r9, [rsp + 0x54]
mov rcx, r14
mov r8d, 2
call qword [sym.imp.kernel32.dll_WriteFile]
cmp dword [rsp + 0x54], 2
jne 0x14000add1
mov qword [rsp + 0x40], r14
lea rax, [sym.stream_out]
mov qword [rsp + 0x4c], rax
mov rcx, qword [0x14001c020]
lea r9, [rsp + 0x40]
mov edx, 0x44a
mov r8, rsi
call qword [sym.imp.user32.dll_SendMessageW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x14001c020]
call qword [sym.imp.user32.dll_SetFocus]
test rbx, rbx
je 0x14000ad9c
xor eax, eax
lea rcx, [0x14001d4b0]
nop word cs:[rax + rax]
movzx edx, word [rdi + rax]
mov word [rax + rcx], dx
add rax, 2
test dx, dx
jne 0x14000ac60
lea rcx, [0x14001d4b0]
call sym.set_caption
mov rcx, qword [0x14001c020]
xor edi, edi
mov edx, 0xb9
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.user32.dll_SendMessageW]
mov qword [0x14001b298], rsi
call sym.set_bar_states
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xc0], 0
movabs rax, 0x2000000700000074
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], 0
test byte [0x14001b298], 2
lea rcx, str.Courier_New
lea rax, str.Times_New_Roman
cmove rax, rcx
nop dword [rax]
movzx ecx, word [rax + rdi]
mov word [rsp + rdi + 0x6e], cx
add rdi, 2
test cx, cx
jne 0x14000ad10
mov rcx, qword [0x14001c020]
lea r9, [rsp + 0x54]
mov edx, 0x444
xor r8d, r8d
call qword [sym.imp.user32.dll_SendMessageW]
mov rcx, qword [0x14001b298]
call sym.reg_formatindex
cdqe
lea rcx, [0x14001c000]
mov edx, dword [rcx + rax*4]
mov rcx, qword [0x14001bff0]
call sym.target_device
mov ebx, 1
jmp 0x14000addc
mov rax, qword gs:[0x30]
xor edx, edx
cmp dword [rax + 0x68], 5
sete dl
add rdx, 0x6ab
mov rcx, qword [0x14001bff0]
lea r8, [0x14000ffc0]
mov r9d, 0x30
call qword [sym.imp.user32.dll_MessageBoxW]
jmp 0x14000addc
movabs rax, 0x4b000000000
mov qword [rsp + 0x54], rax
mov rcx, qword [0x14001c020]
xor ebx, ebx
lea r8, [rsp + 0x54]
mov edx, 0x45f
xor r9d, r9d
call qword [sym.imp.user32.dll_SendMessageW]
test rax, rax
jne 0x14000addc
jmp 0x14000ac4d
mov rcx, r14
call qword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000c670
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, r9
mov edi, r8d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
call qword [sym.imp.kernel32.dll_WriteFile]
mov ecx, eax
mov eax, 1
test ecx, ecx
je 0x14000c6a5
cmp dword [rsp + 0x34], edi
jne 0x14000c6a5
mov dword [rsi], edi
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14000ca10
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, r9
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14000ca3a
mov eax, dword [rsp + 0x2c]
mov dword [rsi], eax
xor eax, eax
jmp 0x14000ca3f
mov eax, 1
add rsp, 0x30
pop rsi
ret

Function at 0x14000cb90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
test rax, rax
je 0x14000cbe3
mov rdi, rax
xor eax, eax
cmp byte [rdi + rsi - 1], 0xa
je 0x14000cbbc
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x14001daf4], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov rcx, rsi
mov r8, rdi
mov r9, rax
call qword [sym.imp.ucrtbase.dll_fwrite]
jmp 0x14000cbe5
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret