joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a19a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x1400a19be
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x1400a19da
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x1400a19f1
cmp byte [rcx + 1], 0x25
jne 0x1400a1a35
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x1400a19fd
cmp al, 0xe9
jne 0x1400a1a35
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x1400a1a20
cmp rcx, 0xffffffff80000000
jae 0x1400a1a17
lea rdi, [rcx + 0x7ff80000]
jmp 0x1400a1a35
mov rdi, 0xfffffffffff80000
jmp 0x1400a1a35
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1400a1a35
mov ebx, 0x80000
mov rax, qword [0x1401984a8]
mov rcx, qword [0x1401984a0]
test rax, rax
jne 0x1400a1a57
test rcx, rcx
je 0x1400a1a6e
mov rax, rcx
mov qword [0x1401984a8], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400a1a6e
cmp rdx, rbx
jb 0x1400a1a6e
cmp rdx, rdi
jbe 0x1400a1b19
mov qword [0x1401984a8], rcx
mov rax, rcx
test rcx, rcx
je 0x1400a1aa9
test rcx, rcx
je 0x1400a1a99
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1400a1a99
cmp rcx, rbx
jb 0x1400a1a99
cmp rcx, rdi
jbe 0x1400a1b19
mov rax, qword [rax + 8]
mov qword [0x1401984a8], rax
test rax, rax
jne 0x1400a1a82
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.1400a1b70
test rax, rax
je 0x1400a1b5c
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x1401984a8], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x1401984a0]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x1401984a0], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x1400a1b01
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x1400a1b5c
cmp rdx, rdi
ja 0x1400a1b5c
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x14012ab80]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400a1e90
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1400a1ecc
xor al, al
jmp 0x1400a1f1b
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1400a1edd
xor al, al
jmp 0x1400a1f1b
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1400a1f04
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1400a1f04
mov al, 1
jmp 0x1400a1f1b
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x60
pop rbx
ret
Function at 0x1400a2480
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1401984b8], eax
je 0x1400a24b3
mov eax, 0x10dd
jmp 0x1400a25dc
mov eax, dword [0x1401984bc]
test eax, eax
jne 0x1400a25dc
test rbp, rbp
jne 0x1400a24ce
lea eax, [rbp + 0x57]
jmp 0x1400a25dc
test rsi, rsi
je 0x1400a24ea
cmp qword [rsi], 0
jne 0x1400a24f4
mov dword [0x1401984bc], 6
mov qword [0x1401984c0], rsi
mov eax, 6
jmp 0x1400a25dc
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rbx, rax
test rax, rax
jne 0x1400a2518
lea edi, [rax + 8]
jmp 0x1400a25b1
mov rcx, qword [rsi]
xor edx, edx
call fcn.1400a23d0
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.1400a23d0
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x1400a25a3
mov edx, ecx
cmp rcx, 0x1e
ja 0x1400a25a3
cmp qword [rdi + 0x50], rax
jne 0x1400a25a3
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1400a2574
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x1400a25b1
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x1401984d0]
mov qword [rbx], rax
xor eax, eax
mov qword [0x1401984d0], rbx
jmp 0x1400a25d2
cmp dword [0x1401984b0], 0
mov edi, 9
jne 0x1400a25bc
mov dword [0x1401984bc], edi
test rbx, rbx
je 0x1400a25c9
mov edx, 0x30
mov rcx, rbx
call fcn.140071e50
mov qword [0x1401984c0], rsi
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x1400a25f0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rsp + 0x28], rax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1401984b8], eax
je 0x1400a2627
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1401984d0]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x1400a26c4
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rbx + 8], esi
jne 0x1400a26ac
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x1400a26ac
xorps xmm0, xmm0
mov rcx, rdx
movups xmmword [rdx], xmm0
and rcx, 0xffffffffffff0000
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.140071e50
mov rbx, rdi
test rdi, rdi
jne 0x1400a2650
mov qword [0x1401984d0], rsi
call fcn.1400a1f30
mov rdi, qword [0x1401984c8]
test rdi, rdi
je 0x1400a2701
nop dword [rax]
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, Ordinal_20
mov rcx, rdi
call fcn.140071e50
mov rdi, rbx
test rbx, rbx
jne 0x1400a26e0
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x1401984c8], rsi
mov dword [0x1401984b8], esi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x38
ret

Function at 0x1400a2740
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x1401984b8], 0
jne 0x1400a2802
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1401984b8], ecx
jne 0x1400a2802
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1401984a0]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x1401984d0], rdi
mov qword [0x1401984c8], rdi
mov qword [0x1401984c0], rdi
test rbx, rbx
je 0x1400a27de
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1400a27d7
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1400a27b0
jmp 0x1400a27de
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x1401984bc], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x38
ret
Function at 0x1400a2dc0
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1401984bc]
mov rdi, rcx
test eax, eax
jne 0x1400a2e60
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x1400a2de9
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, Ordinal_20
mov qword [rsp + 0x30], rbx
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rbx, rax
test rax, rax
jne 0x1400a2e05
lea edi, [rax + 8]
jmp 0x1400a2e26
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1400a2e44
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, Ordinal_20
mov rcx, rbx
call fcn.140071e50
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1401984bc], edi
mov qword [0x1401984c0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1401984c8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1401984c8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a6390
Capabilities:
Log keystrokes

Disassembly:
push rbx
push rbp
sub rsp, 0x168
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rdx
mov rbx, rcx
test r8b, r8b
je 0x1400a63c6
call qword [sym.imp.USER32.dll_IsIconic]
mov edx, 9
test eax, eax
jne 0x1400a63cb
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x160], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
je 0x1400a6542
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
je 0x1400a6542
xor edx, edx
lea rcx, [rsp + 0x34]
mov r8d, 0x110
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rsp + 0x40]
xor edi, edi
cmp eax, 2
jne 0x1400a6460
cmp dword [rsp + 0x34], 4
ja 0x1400a6474
mov rcx, rbx
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
sete dil
mov eax, edi
jmp 0x1400a6547
cmp eax, 1
jne 0x1400a643a
cmp dword [rsp + 0x34], 4
ja 0x1400a6474
jne 0x1400a643a
cmp dword [rsp + 0x38], edi
jbe 0x1400a643a
mov qword [rsp + 0x190], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edx, edx
mov rcx, rbp
mov esi, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, 1
mov edx, esi
mov ecx, eax
mov ebp, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x1400a64cf
mov rcx, rbx
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, esi
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, qword [rsp + 0x190]
cmp rax, rbx
je 0x1400a6542
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x24]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov r9d, 2
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rcx, rbx
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov r9d, 2
lea r8, [rsp + 0x24]
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
jmp 0x1400a644c
mov eax, 1
mov rdi, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x168
pop rbp
pop rbx
ret
Function at 0x1400a65a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov r15, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x34], r12d
call fcn.1400041e0
mov rcx, rax
test rax, rax
je 0x1400a6786
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14006aed5.0]
add rax, 0x18
mov qword [rdi], rax
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x1400a662c
cmp rdx, 0x10000
jae 0x1400a6617
movzx edx, dx
mov rcx, rdi
call fcn.140003250
jmp 0x1400a663b
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400a6620
jmp 0x1400a662f
mov eax, r12d
mov r8d, eax
mov rcx, rdi
call fcn.1400035f0
nop
mov esi, 1
mov dword [rsp + 0x34], esi
mov ebx, dword [rsp + 0x98]
mov r9d, ebx
or r9d, 0x20019
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a66ac
mov eax, 0x100
mov r9d, 0x200
cmp ebx, r9d
cmove r9d, eax
or r9d, 0x20019
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a675e
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400a675e
mov edx, dword [rsp + 0x30]
shr edx, 1
mov rax, qword [rdi]
sub esi, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, edx
or esi, ecx
jge 0x1400a66fc
lfence
mov rcx, rdi
call fcn.140003480
mov rbx, qword [rdi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x30]
shr rax, 1
mov word [rbx + rax*2], r12w
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400a673b
mov eax, r12d
jmp 0x1400a6749
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400a6791
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x1400a6791
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r12w
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140004380
int3
mov ecx, 0x80070057
call fcn.140004380
int3
Function at 0x1400a67b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x30]
mov rdi, r8
mov dword [rsp + 0x68], 0
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a6838
mov r9d, 0x200
mov eax, 0x100
cmp dword [rsp + 0x70], r9d
mov rdx, rsi
mov rcx, 0xffffffff80000002
cmove r9d, eax
lea rax, [rsp + 0x30]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a6868
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400a6890
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x50
mov eax, dword [rsp + 0x80]
lea rcx, [r11 + 8]
mov rsi, r8
or eax, 0x20006
xor r8d, r8d
mov rbx, r9
mov qword [r11 - 0x18], r8
xor r9d, r9d
mov qword [r11 - 0x20], rcx
xor dil, dil
mov qword [r11 - 0x28], r8
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], eax
mov dword [r11 - 0x38], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400a692e
mov rax, 0xffffffffffffffff
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400a68f0
lea ecx, [rax*2 + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rbx
mov ebx, 1
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
movzx edi, dil
cmove edi, ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
movzx eax, dil
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400c3490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov edi, edx
mov rbx, rcx
xor esi, esi
mov dword [rbp + 0x6f], esi
lea rcx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea r14, str.CMainDialog::SwitchAccount
mov qword [rbp + 7], r14
mov r8d, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
add r8d, eax
je 0x1400c3545
mov dword [rbp - 1], esi
call fcn.1400057e0
mov qword [rbp - 9], rax
lock inc dword [rbp - 1]
mov dword [rbp + 0x6f], 1
mov rax, qword [rbp - 9]
test rax, rax
jne 0x1400c3509
call fcn.1400057e0
mov qword [rbp - 9], rax
lock inc dword [rbp - 1]
mov rcx, qword [rbp - 9]
mov dword [rbp + 0x77], 0x20
mov qword [rsp + 0x30], r14
lea rax, str._s_start:
mov qword [rsp + 0x28], rax
lea rax, str._CScopeTrace::operator___
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0x77]
movsx edx, si
call fcn.140004bd0
nop
mov eax, dword [rbp + 0x6f]
test al, 1
je 0x1400c357d
and eax, 0xfffffffe
mov dword [rbp + 0x6f], eax
mov qword [rbp - 9], rsi
mov eax, 0xffffffff
lock xadd dword [rbp - 1], eax
cmp eax, 1
js 0x1400c3579
call fcn.140005b50
mov eax, 0xffffffff
lock xadd dword [rbp - 1], eax
cmp eax, 1
jns 0x1400c3565
lock inc dword [rbp - 1]
mov rax, qword [0x140198db8]
cmp eax, 0xffffffff
je 0x1400c359d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, rax
mov rax, qword [0x140198db8]
jmp 0x1400c35a3
mov ecx, dword [0x140198dbc]
lea edx, [rcx + 1]
cmp eax, 0xffffffff
je 0x1400c35b6
movsxd rdx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test dil, 1
je 0x1400c35fe
lea rcx, [rbp + 0x17]
call fcn.140034d00
nop
lea rcx, [rbx + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14006aed5.0]
mov qword [rbp + 0x1f], rax
lea rcx, [rbp + 0x17]
call qword [sym.imp.bdhtmldialogs_sc.dll_void___cdecl_CheckPassword_class_CPlgPasswordProtectedCommData____ptr64_]
nop
lea rcx, [rbp + 0x17]
test dword [rbp + 0x17], 0xfffffffb
jne 0x1400c35f9
call fcn.140034e30
jmp 0x1400c3621
call fcn.140034e30
mov byte [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 - 1]
mov r8d, 0x81
mov rcx, rbx
call fcn.1400cdb80
mov rcx, rbx
call fcn.1400db8a0
nop
lea rcx, [rbp + 7]
call fcn.14002f940
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400dfb60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140199380], 0
jne 0x1400dfb8d
lea rcx, [0x140199360]
call fcn.140040ae0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140199380]
test rcx, rcx
je 0x1400dfbc1
mov rax, qword [rcx]
lea r8, [0x14014cf48]
mov edx, 0xc9
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
jmp 0x1400dfbc8
lea rax, str._error_interface_not_inited_
xor ebx, ebx
mov dword [rsp + 0x68], 4
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x30], rcx
lea r8, str.CentralOffersLastClick
lea rcx, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x28], rcx
lea r9d, [rbx + 0x10]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1400dfc34
mov dword [rsp + 0x40], eax
lea rax, [0x1401921e8]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
jmp 0x1400dfc3d
mov ecx, ebx
lea rdx, [0x1401921c0]
mov rax, qword [0x1401921c8]
cmp qword [rdx + 8], rax
jne 0x1400dfc52
mov eax, dword [rsp + 0x60]
test ecx, ecx
je 0x1400dfc54
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x1400eee60
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140191010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 0x28]
add rcx, 0x28
mov rax, qword [rax]
call qword [case.0x14006aed5.0]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x1400ef066
mov eax, dword [rsp + 0x60]
lea rcx, [0x140199388]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x140199380], 0
jne 0x1400eeed0
lea rcx, [0x140199360]
call fcn.140040ae0
lea rcx, [0x140199388]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x140199380]
test rcx, rcx
je 0x1400eef04
mov rax, qword [rcx]
lea r8, [0x14014a2f8]
mov edx, 0xc9
mov rax, qword [rax + 0x30]
call qword [case.0x14006aed5.0]
jmp 0x1400eef0b
lea rax, str._error_interface_not_inited_
xor ecx, ecx
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x38], rcx
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x48], rcx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], cx
jne 0x1400eef30
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002ed0
mov r11, qword [rsp + 0x50]
lea r9, [rsp + 0x38]
mov r10, qword [rsp + 0x38]
cmp r11, 8
cmovae r9, r10
cmp qword [rsp + 0x48], 0x11
jne 0x1400eefac
movzx ecx, word [r9]
lea rax, [0x14014a6e8]
mov r8d, 0x3c
mov edx, Ordinal_21
cmp cx, r8w
jb 0x1400eefac
sub r9, rax
cmp cx, r8w
ja 0x1400eefac
cmp rdx, 1
je 0x1400ef02f
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec rdx
movzx r8d, word [rax]
cmp cx, r8w
jae 0x1400eef89
mov rax, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
cmp r11, 8
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 8
cmovae rdx, r10
mov qword [rsp + 0x20], rax
mov r9d, 3
lea r8, [0x14014a710]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400ef066
mov rcx, qword [rsp + 0x38]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ef061
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ef061
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r11, 8
jb 0x1400ef066
lea rdx, [r11*2 + 2]
mov rax, r10
cmp rdx, 0x1000
jb 0x1400ef05e
mov r10, qword [r10 - 8]
add rdx, 0x27
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ef028
mov rcx, r10
call fcn.140071e50
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140071e30
add rsp, 0x88
ret
Function at 0x1400f9e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rbx, rdx
mov ecx, 8
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
test rax, rax
je 0x1400f9e20
mov qword [rax], rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400405a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400f9e6e
lea rcx, [rsp + 0x30]
call fcn.140005060
nop
cmp dword [rsp + 0x38], 0
je 0x1400f9e82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
add rsp, 0x40
pop rbx
ret