joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f50
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, rdx
mov rbx, rcx
mov qword [rcx + 8], rdx
lea rdx, [rcx + 0x24]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.1400044d0
nop
mov dword [rsp + 0xb8], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xc0]
lea rdx, str.ExtraHelperCapabilitiesFlags
lea rcx, [rsp + 0x70]
call fcn.140003cd0
mov eax, dword [rsp + 0xc0]
mov dword [rbx + 0x28], eax
mov dword [rsp + 0xb0], 1
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140004460
nop
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.1400046f0
test eax, eax
je 0x14000203f
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xb0]
lea rdx, str.UseSetProcessDPIAware
lea rcx, [rsp + 0x40]
call fcn.140003cd0
lea rcx, [rsp + 0x40]
call fcn.140003c80
cmp dword [rsp + 0xb0], 1
jne 0x14000206d
cmp qword [rbx + 0x60], 0
je 0x14000206d
mov ecx, 1
call fcn.1400027c0
test eax, eax
jne 0x14000206d
call fcn.140002770
xor edx, edx
lea rcx, str.SynTPEnhWndClass
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rbx + 0x10], rax
mov edx, 0x8000
mov rcx, qword [rbx + 8]
call fcn.1400064b0
test eax, eax
jne 0x1400020b7
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140002720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
call fcn.1400081c0
mov rcx, rbx
call fcn.1400018d0
nop
lea rcx, [rsp + 0x38]
call fcn.140004590
nop
lea rcx, [rsp + 0x68]
call fcn.140004590
mov eax, 1
mov rbx, qword [rsp + 0xc8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140002240
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x2890
call fcn.140008450
sub rsp, rax
mov rax, qword [0x140028b30]
xor rax, rsp
mov qword [rsp + 0x2880], rax
mov rbp, r8
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000233d
lea r9, [rsp + 0x40]
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000233d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x2828
call fcn.1400084e0
mov eax, dword [rsi]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [0x14001b690]
lea r8, [rsp + 0x68]
mov r9d, 0x104
mov rcx, rdi
movaps xmmword [rsp + 0x2860], xmm0
mov dword [rsp + 0x50], 0xf
mov dword [rsp + 0x2870], eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x140002334
mov r8, qword [rsi + 8]
xor eax, eax
lea r9, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea edx, [rbx + 0x4a]
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x2828
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x2880]
xor rcx, rsp
call fcn.1400084b0
mov rbx, qword [rsp + 0x28c8]
add rsp, 0x2890
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
xor ebx, ebx
mov r14, r9
mov rbp, rdx
mov esi, ebx
test r9, r9
je 0x140003cf0
mov esi, dword [r9]
test rdx, rdx
je 0x140003ecc
cmp qword [rsp + 0x80], rbx
je 0x140003ecc
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x140003d6f
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x30], rcx
test rdi, rdi
je 0x140003dba
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140003dba
test byte [0x140028b08], 4
je 0x140003d6f
lea r8, str.Couldnt_open_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.140006950
test r14, r14
je 0x140003ebb
test byte [0x140028b08], 4
je 0x140003d9c
lea r8, str.Returning_default_value:_0x_08X_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, esi
mov edx, 3
call fcn.140006950
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x40]
mov dword [rax], esi
mov eax, 1
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
test byte [0x140028b08], 4
je 0x140003dde
lea r8, str.Opened_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.140006950
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x88], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test rdi, rdi
je 0x140003e2b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x140003e5c
test byte [0x140028b08], 4
je 0x140003d6f
lea r8, str.Error_querying_value:__d_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, ebp
mov edx, 3
call fcn.140006950
jmp 0x140003d6f
test byte [0x140028b08], 4
je 0x140003e8d
mov eax, dword [rsp + 0x78]
lea r9, [rsp + 0x80]
lea r8, str.Read_0x_08X_successfully._Type_d._n
lea rcx, str.CRegistryEx::GetDWORD
mov edx, 3
mov dword [rsp + 0x20], eax
call fcn.140006950
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x140003ea5
cmp eax, 3
jne 0x140003eaa
cmp dword [rsp + 0x88], 4
jne 0x140003eaa
mov ebx, 1
mov eax, ebx
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003ee0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov r12, r9
mov rsi, r8
mov r15, rdx
mov rdi, rcx
cmp r8, rbx
jne 0x140003f28
lea rdx, str.RegistryEx.cpp
lea rcx, str.pszValue___pszDefaultValue
mov r8d, 0x126
call fcn.140006940
xor ebp, ebp
mov r13d, ebp
test r15, r15
je 0x1400040c0
test rsi, rsi
je 0x1400040c0
test r12, r12
je 0x1400040c0
mov rcx, qword [rdi + 0x10]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x60], r14
test rcx, rcx
je 0x140004075
mov r14, qword [rsp + 0x88]
mov r13d, dword [r12]
mov qword [rsp + 0x68], rcx
test r14, r14
je 0x140003f9d
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004075
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r14, r14
je 0x140003fce
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x80]
cmp ecx, 2
jne 0x140004040
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.140007140
mov r14, rax
test rax, rax
je 0x140004039
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x140004010
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bp
jne 0x140004024
mov rcx, r14
mov dword [r12], eax
call fcn.1400071e0
mov ecx, dword [rsp + 0x80]
test r15d, r15d
jne 0x140004075
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140004052
cmp ecx, 7
jne 0x140004057
mov ebp, 1
mov eax, ebp
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
test rbx, rbx
je 0x1400040bc
nop word [rax + rax]
cmp word [rbx + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140004080
lea ecx, [rdi*2 + 2]
cmp ecx, r13d
ja 0x1400040bc
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rsi + rbx - 2], ax
test ax, ax
jne 0x1400040a0
mov dword [r12], ecx
mov eax, 1
jmp 0x140004059
xor eax, eax
jmp 0x140004059
xor eax, eax
jmp 0x14000405e
Function at 0x140005150
Capabilities:
Get disk information

Disassembly:
push rbx
push rdi
sub rsp, 0x668
mov rbx, rdx
mov edi, ecx
test rdx, rdx
je 0x14000538b
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140005170
cmp rax, 0x104
ja 0x14000538b
lea rdx, [0x14001c124]
mov rcx, rbx
call fcn.140008990
test rax, rax
je 0x14000538b
mov qword [rsp + 0x680], rbp
mov qword [rsp + 0x688], rsi
mov qword [rsp + 0x690], r14
mov qword [rsp + 0x660], r15
xor r15d, r15d
mov r8d, edi
xor edx, edx
mov ecx, 0x400
mov r14d, r15d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea edi, [r15 + 1]
mov rsi, rax
test rax, rax
je 0x140005360
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x140005360
lea rdx, str.GetProcessImageFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005228
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rsi
call rax
test eax, eax
cmovne r14d, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14d, r14d
je 0x140005360
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [0x140028b08], 2
je 0x140005271
lea rax, [rsp + 0x30]
lea r8, str.AppName_to_Verify:__s_nAppName_from_Process:__s_n
lea rcx, str.IsProcessFromApp
mov r9, rbx
mov edx, 2
mov qword [rsp + 0x20], rax
call fcn.140006a50
lea rcx, [rsp + 0x240]
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x140005280
lea rcx, [rsp + 0x240]
call fcn.140008fa8
lea rdx, [0x14001c124]
lea rcx, [rsp + 0x240]
call fcn.140008990
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.140008fa8
lea rdx, [rbx + 4]
lea rcx, [rsp + 0x30]
call fcn.140008990
test rax, rax
je 0x140005387
mov word [rax - 2], r15w
mov word [rbx + 2], r15w
lea rcx, [rsp + 0x452]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x450], r15w
call fcn.1400084e0
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x240]
mov r8d, 0x103
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140005387
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x30]
call fcn.140008c34
test eax, eax
jne 0x140005387
mov eax, edi
mov r14, qword [rsp + 0x690]
mov rsi, qword [rsp + 0x688]
mov rbp, qword [rsp + 0x680]
mov r15, qword [rsp + 0x660]
add rsp, 0x668
pop rdi
pop rbx
ret
test byte [0x140028b08], dil
je 0x14000537e
lea r8, str.Cannot_open_process_or_cannot_GetProcessImageFileName_n
lea rcx, str.IsProcessFromApp
mov edx, edi
call fcn.140006a50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005336
test byte [0x140028b08], 1
je 0x1400053ba
test rbx, rbx
lea r9, [0x14001c130]
lea r8, str.Invalid_App_path_name__need_DOS_full_path_:__s_n
lea rcx, str.IsProcessFromApp
mov edx, 1
cmovne r9, rbx
call fcn.140006a50
xor eax, eax
add rsp, 0x668
pop rdi
pop rbx
ret
Function at 0x140001090
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x14020a3fc]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x1400010c7
cmp rsi, 2
jb 0x1400010d1
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400d03a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400010b3
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140001360
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rdx
mov rsi, rcx
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140200ec8]
cmp ecx, 0xffffffff
je 0x14000143e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14000143e
mov eax, dword [0x140206f48]
mov ecx, dword [0x1402029e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140001448
mov rbx, qword [0x140206f40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14000148a
mov rax, qword [0x140205730]
inc rax
xor ecx, ecx
lea r8, [0x140205740]
lea edx, [rax + rcx]
movzx edi, dl
lea rdx, [rdi + rdi*2]
cmp dword [r8 + rdx*8], 0
jne 0x140001497
lea rax, [r8 + rdx*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140205730], rdi
mov dword [rsi], edi
mov eax, dword [rax + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
cmp eax, 0xffffffff
je 0x1400014ac
cmp eax, 0x100
jge 0x1400014af
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400014c0
jmp 0x140001394
lea rcx, [0x140206f48]
int3
mov rcx, rbx
int3
inc rcx
cmp rcx, 0x100
jne 0x1400013e4
jmp 0x140001416
int3
int3

Function at 0x140004d80
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401ff028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140004da7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140004de1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140004e00
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140106510
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400058c0
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140106510
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140004eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x25d
mov r9d, 2
int3
xor esi, esi
jmp 0x140004de4
Function at 0x1400058c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x1401ff028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x1400058e7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140005919
mov dil, 1
test al, 0x10
je 0x1400059d6
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140106510
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140005a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x248
mov r9d, 2
int3
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140005a99
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x24c
mov r9d, 2
int3
xor edi, edi
jmp 0x1400058fd
Function at 0x140007b70
Capabilities:
Read pipe
Write pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x190
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401ff028]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov r15, qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140007bac
mov rcx, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call r15
cmp rax, 0xffffffffffffffff
je 0x140007c77
mov rsi, rax
lea rdx, [rsp + 0x44]
mov dword [rdx], 2
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140007cf9
lea rax, [rsp + 0x40]
mov dword [rax], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xc
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x24
mov r9, r14
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140007d48
mov dil, 1
cmp dword [rsp + 0x40], 0xc
jne 0x140007da5
mov rcx, rsi
int3
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140106510
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140007e25
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140007c94
mov rcx, qword [rdi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x140007ba0
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140007e7b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x6b
mov r9d, 2
int3
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140007d9e
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x74
mov r9d, 2
int3
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140007d9e
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x82
mov r9d, 2
int3
xor edi, edi
jmp 0x140007c4e
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140007d9e
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x86
mov r9d, 2
int3
mov ecx, 2
call fcn.1400cea70
test al, al
je 0x140007e7b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x66
mov r9d, 2
int3
xor edi, edi
jmp 0x140007c56
Function at 0x140007e90
Capabilities:
Check os version
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm6
mov rsi, rcx
mov rax, qword [0x1401ff028]
xor rax, rsp
mov qword [rsp + 0x228], rax
movabs rbp, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], rbp
movaps xmm6, xmmword [0x1401d8770]
movaps xmmword [rsp + 0x50], xmm6
test dl, dl
je 0x140008078
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
mov r14d, 0x80003
cmp eax, 6
jb 0x14000807e
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0x18
call fcn.1400081c0
test al, al
jne 0x1400080e9
mov eax, dword [0x14020b080]
mov ecx, dword [0x1402029e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140008051
lea rcx, [0x14020b080]
int3
mov rax, qword [0x14020b078]
test rax, rax
lea rcx, [0x1401eb6fc]
cmovne rcx, rax
lea rax, [rsp + 0x50]
mov qword [rax + 8], rcx
mov dword [rax + 0x10], 1
jmp 0x140008080
mov r14d, 3
xor eax, eax
cmp byte [rsi + 0x17], 0
jns 0x140008089
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rax
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, r14d
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140106510
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
int3

Function at 0x14000f470
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov r15, r8
mov rbx, rdx
mov r13, rcx
mov rax, qword [0x1401ff028]
xor rax, rsp
mov qword [rsp + 0xf8], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x451
mov edx, 1
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
cmp qword [r13 + 0xa0], rax
je 0x14000f50e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [r13 + 0xa0]
inc rax
cmp rax, 2
jae 0x14000f7e8
mov rax, rbp
inc rax
cmp rax, 2
jb 0x14000f4ff
mov qword [r13 + 0xa0], rbp
call fcn.1400c8a40
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [r13 + 0xa0]
inc rbp
cmp rbp, 2
jb 0x14000f809
lea rdi, [r13 + 0x10]
mov rcx, rdi
mov edx, 1
int3
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.140106510
mov eax, r14d
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400c8a40
mov rcx, qword [r13 + 0xa0]
int3
xor r14d, r14d
jmp 0x14000f7b9
Function at 0x140011160
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov r12, rcx
lea rax, [0x1401d4af0]
mov qword [rcx], rax
lea rax, [0x1401d75f0]
mov qword [rcx + 8], rax
lea rax, [0x1402070c8]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
mov rax, qword [0x140207428]
mov dword [rcx + 0x28], eax
mov eax, dword [0x14020a490]
mov ecx, dword [0x1402029e4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001164d
mov ecx, dword [0x140200ec8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140011690
movsxd rcx, dword [0x14020a488]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14020a48c]
jne 0x140011690
mov rcx, qword [rax + rcx]
lea rdi, [r12 + 8]
add rcx, 0xe28
mov rdx, r12
int3
lea rcx, [0x14020a490]
int3
xor ecx, ecx
jmp 0x140011201
Function at 0x140018750
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov ebx, dword [0x14020a3fc]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x14001885f
cmp rbx, 1
je 0x14001885b
mov eax, dword [rsi + 0x1518]
test eax, eax
jne 0x14001885b
mov eax, 1
lock xadd dword [rsi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x14001886c
mov rcx, rsi
int3
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140018842
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140018783
int3

Function at 0x140018bf0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14020ac18], 0
jne 0x140018c2d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140018c20
mov dword [rdi], eax
mov dword [0x14020ac20], eax
mov qword [0x14020ac18], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14001a3d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14001a407
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14001a407
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14001a407
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x14001a406