joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001be60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400024c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400024c8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400024e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14001be60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002500
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002508
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002500
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002500
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002544
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002558
add rax, 0x28
cmp r9, rax
jne 0x140002530
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14001be60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002592
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002592
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002592
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002592
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400025ed
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002600
add rdx, 0x28
cmp r10, rdx
jne 0x1400025d8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000260f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000261f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025f6
test ecx, ecx
jg 0x140002608
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003c90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001bee0]
mov rax, qword [rsi]
test rax, rax
je 0x140003d20
cmp qword [rax + 0x30], 0
jne 0x140003d40
lea rbx, [0x14001a078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003cf0
cmp qword [rax + 0x30], 0
jne 0x140003d10
lea rdx, [0x14001a078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003cd2
test rax, rax
jne 0x140003d10
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003ce0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003cb0
test rax, rax
jne 0x140003d40
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003cbb
Function at 0x140003d50
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140003e62
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140003e3a
add rax, 1
cmp rax, 0x6b
je 0x140003e57
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140003e30
cmp edx, 0x6a
je 0x140003e57
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140003e4b
Function at 0x140007910
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001bee0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x1400079e0
cmp qword [rax + 0x60], 0
jne 0x140007a00
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007a10
cmp qword [rax + 0x1d8], r12
jne 0x140007a10
test byte [rax + 0x40], 0xc
jne 0x140007a10
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007a10
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007a10
mov rax, qword [rbx]
test rax, rax
je 0x140007a70
cmp qword [rax + 0x60], 0
jne 0x140007a90
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007aa0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007aa8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000793b
test rax, rax
jne 0x140007a00
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007946
mov rax, qword [rbx]
test rax, rax
je 0x140007a40
cmp qword [rax + 0x60], 0
jne 0x140007a60
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x140007a1f
test rax, rax
jne 0x140007a60
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007a2a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400079aa
test rax, rax
jne 0x140007a90
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400079b5
xor eax, eax
jmp 0x140007a34
mov eax, 0x16
jmp 0x140007a34
Function at 0x140007d20
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140007f89
test rdi, rdi
je 0x140007d5a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140007dc7
add ebx, 1
cmp ebx, 1
je 0x140007ed0
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140007d95
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140007fcf
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140007f72
xor edx, edx
test rsi, rsi
je 0x140007e3f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140007fa0
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007f30
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140007f00
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140007ee0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140007d95
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007eaf
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140007e85
mov edx, 0xf
cmp eax, 0xe
jg 0x140007e85
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140007e85
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140007f40
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140007fcf
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x140007f7e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140007fc0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x140007e3f
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x140007f8e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x140008a10
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008a30
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008a78
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008a24
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008a65

Function at 0x140008aa0
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x14001f2c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008b58
mov rdx, qword [0x14001f200]
lea rcx, [0x14001f200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008b28
cmp rdx, rcx
jne 0x140008b0a
mov qword [rdx], rax
cmp rax, rcx
je 0x140008b0f
nop dword [rax]
test rax, rax
je 0x140008b3a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008af8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008b3a
mov rdx, rax
jmp 0x140008b06
lea rcx, [0x14001f300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008b76
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008b3a
Function at 0x1400019cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a16
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a18
xor al, al
add rsp, 0x28
ret
Function at 0x140001be4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8], rax
xor eax, eax
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140001ce7
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001c60
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x140001ce7
jmp 0x140001c8a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001be4
mov ebx, eax
test eax, eax
jne 0x140001ce7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140001c70
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001cda
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140001aa4
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001cf7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002314
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140002388
call fcn.1400016b4
mov ebx, eax
jmp 0x1400024b2
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x1400023ac
call fcn.1400016b4
jmp 0x1400024a6
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400023a2
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x1400023fe
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400023f4
lea rcx, [rsp + 0x70]
call fcn.14000b240
nop
mov eax, 0x8007000e
jmp 0x1400024cb
mov ecx, eax
test eax, eax
je 0x140002435
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400024ef
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140002435
lea rcx, [rsp + 0x70]
call fcn.14000b8ec
mov rax, qword [rsp + 0x70]
jmp 0x14000243f
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140002456
test rax, rax
jne 0x140002462
mov ebx, 0x8007000e
jmp 0x1400024a8
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400023a2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140002f9c
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400024c9
lea rcx, [rsp + 0x70]
call fcn.14000b240
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140001648
int3
Function at 0x14000c0e4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.140006470
lea r8, [0x14003d058]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400064f4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14000c18e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000c2cf
mov rcx, qword [rbp + 0x168]
lea r8, [0x14003cff8]
lea edx, [rdi - 0x3c]
call fcn.1400078e0
mov esi, eax
jmp 0x14000c2b3
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140007984
mov esi, eax
test eax, eax
jns 0x14000c1d5
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.1400078a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000c300
jmp 0x14000c2b3
lea r8, [0x14003d060]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400064f4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14000c233
mov rcx, qword [rbp + 0x168]
lea r8, [0x14003cff8]
mov edx, 0xd4
call fcn.1400078e0
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000c312
jmp 0x14000c2b3
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140007984
mov esi, eax
test eax, eax
jns 0x14000c27e
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.1400078a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000c324
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000c336
jmp 0x14000c2b3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000c348
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000c35a
xor esi, esi
test esi, esi
jns 0x14000c2cf
mov rcx, qword [rbp + 0x168]
mov r9d, esi
mov edx, 0x61
call fcn.1400078a8
mov eax, esi
jmp 0x14000c2d4
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400078f8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400078f8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400078f8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400078f8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400078f8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x879
call fcn.1400078f8
int3
Function at 0x14000d764
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x60], rax
test byte [0x140050ac0], 1
mov rsi, rcx
je 0x14000d79c
lea r8, [0x14003d310]
lea rdx, [0x14003d270]
call fcn.140006400
mov rax, qword [rsi]
mov rcx, rsi
mov byte [rsi + 0x34], 1
mov rax, qword [rax + 0x50]
call qword [case.0x140024a15.0]
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x140024a15.0]
mov byte [rsi + 0x48], al
mov rcx, rsi
mov rax, qword [rsi]
mov rax, qword [rax]
call qword [case.0x140024a15.0]
mov byte [rsi + 0x49], al
mov rcx, rsi
mov rax, qword [rsi]
mov rax, qword [rax + 0x30]
call qword [case.0x140024a15.0]
mov byte [rsi + 0x4a], al
mov rcx, rsi
mov rax, qword [rsi]
mov rax, qword [rax + 0x48]
call qword [case.0x140024a15.0]
mov dword [rsi + 0x4c], eax
mov rcx, rsi
mov rax, qword [rsi]
mov rax, qword [rax + 0x78]
call qword [case.0x140024a15.0]
and qword [rsp + 0x28], 0
lea r8, [0x14000d5b0]
and qword [rsi + 0x38], 0
mov r9, rsi
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov byte [rsi + 0x35], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x40], rax
test rax, rax
jne 0x14000d862
test byte [0x140050ac0], 1
je 0x14000d858
lea r8, [0x14003d310]
lea rdx, [0x14003d240]
call fcn.140006400
mov eax, 0x80004005
jmp 0x14000d8eb
and qword [rsp + 0x50], 0
lea rdi, [rsi + 0xe8]
and qword [rsp + 0x58], 0
lea r9, [rdi + 0x40]
lea r8, [0x14004f1d0]
call fcn.14000e0a8
mov word [rsp + 0x38], ax
lea r9, str.SettingsManager_Message_Window
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and dword [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.14000e5b8
lea rcx, [rsi + 0xa8]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x14000d858
mov byte [rsi + 0xd0], 1
test byte [0x140050ac0], 1
je 0x14000d8e9
lea r8, [0x14003d310]
lea rdx, [0x14003d240]
call fcn.140006400
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400362c0
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14000eb84
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x40
mov rbx, r8
mov rsi, rdx
mov r14, rcx
test r8, r8
jne 0x14000ebb4
mov eax, 0x80004003
jmp 0x14000ed56
lea rax, [rbp + 0x48]
mov byte [r8], 0
mov qword [rsp + 0x30], rax
lea r8, str.AllowInputPersonalization
lea rax, [rbp + 0x40]
mov dword [rbp + 0x48], 4
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwarePoliciesMicrosoftInputPersonalization
and qword [rsp + 0x20], 0
mov r9d, 0x10010
mov rcx, 0xffffffff80000002
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
mov edi, dword [rbp + 0x48]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns edi, dword [rbp + 0x40]
jns 0x14000ed41
mov r12d, 0x80070002
cmp ecx, r12d
jne 0x14000ed54
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 4
mov qword [rsp + 0x30], rax
lea r8, str.AllowInputPersonalization
lea rax, [rbp + 0x40]
mov r9d, 0x10010
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftPolicyManagerCurrentDevicePrivacy
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns edi, dword [rbp + 0x40]
js 0x14000ec83
test edi, edi
jne 0x14000ec8c
jmp 0x14000ed51
cmp ecx, r12d
jne 0x14000ed54
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 4
mov qword [rsp + 0x30], rax
lea r8, str.AcceptedPrivacyPolicy
lea rax, [rbp + 0x40]
mov r9d, 0x10010
mov qword [rsp + 0x28], rax
mov rdx, rsi
and qword [rsp + 0x20], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
movzx ecx, ax
mov esi, 0x80070000
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns edi, dword [rbp + 0x40]
jns 0x14000ed41
cmp ecx, r12d
jne 0x14000ed54
mov edx, 0x5c
lea rcx, str.CURRENT_USERSOFTWAREMicrosoftPersonalizationSettings
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov r9d, 0x10010
mov dword [rbp + 0x48], 4
lea r8, str.AcceptedPrivacyPolicy
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
movzx ecx, ax
or ecx, esi
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns edi, dword [rbp + 0x40]
js 0x14000ed4a
test edi, edi
setne al
mov byte [rbx], al
jmp 0x14000ed54
cmp ecx, r12d
jne 0x14000ed54
xor ecx, ecx
mov byte [rbx], 0
mov eax, ecx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret