joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140079490
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140140600]
mov ecx, dword [0x140138f34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400794f1
mov rax, qword [0x1401405f8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008ec50
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140140600]
call fcn.14008d910
cmp dword [0x140140600], 0xffffffff
jne 0x1400794cc
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140090d80
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14008d7bc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140140648]
mov ecx, dword [0x140138f34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400795b1
lea r8, [0x140140618]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14004a1d0
mov qword [0x1401405f8], rsi
lea rcx, [0x140140600]
call fcn.14008d9a8
jmp 0x1400794cc
lea rcx, [0x140140648]
call fcn.14008d910
cmp dword [0x140140648], 0xffffffff
jne 0x140079582
xorps xmm0, xmm0
movups xmmword [0x140140638], xmm0
movups xmmword [0x140140628], xmm0
movups xmmword [0x140140618], xmm0
lea rcx, [0x140140618]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140140648]
call fcn.14008d9a8
jmp 0x140079582
Function at 0x14007d780
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140138de4]
cmp ecx, 0xffffffff
je 0x14007d7a5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x14007d7a0

Function at 0x14007d7b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140138de4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007d7e4
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14007d7e4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14007d7de

Function at 0x14007d7f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140138de4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14007d82e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14007d827
call fcn.14004dd50
jmp 0x14007d80e

Function at 0x14007dd60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007dd8b
xor ecx, ecx
lea r9, [0x140117260]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14007dd70
ret
Function at 0x140082c00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140142f58]
cmp rsi, 1
jbe 0x140082c23
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007d7f0
lea rcx, [0x140142f58]
call fcn.14004db30
test al, al
je 0x140082c68
xorps xmm0, xmm0
movups xmmword [0x140142f60], xmm0
lea rdi, [0x140142f58]
lea rsi, [0x140142f60]
mov rcx, rsi
xor edx, edx
call fcn.14004df50
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14004dbf0
jmp 0x140082c13
mov rsi, qword [0x140142f58]
jmp 0x140082c13

Function at 0x140088670
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140144958]
mov ecx, dword [0x140138f34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400886a5
lea rcx, [0x140144948]
add rsp, 0x28
jmp fcn.14007d7b0
lea rcx, [0x140144958]
call fcn.14008d910
cmp dword [0x140144958], 0xffffffff
jne 0x140088695
xorps xmm0, xmm0
movups xmmword [0x140144948], xmm0
lea rcx, [0x140144948]
xor edx, edx
call fcn.14004df50
lea rcx, [0x140144958]
call fcn.14008d9a8
jmp 0x140088695
Function at 0x1400886e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov r14, qword [rsi + 8]
sub r14, rcx
sar r14, 3
lea rdx, [r14 + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x140088840
movabs rax, 0x1fffffffffffffff
movabs rbx, 0x7ffffffffffffff8
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r15, r8
sar r15, 2
cmp r15, rdx
cmovbe r15, rdx
cmp r8, rbx
cmovae r15, rax
test r15, r15
je 0x140088839
cmp r15, rax
ja 0x140088845
lea rcx, [r15*8]
call fcn.14008d7bc
shl r14, 3
add r14, rax
je 0x14008884a
lea rax, [rax + r15*8]
mov rcx, qword [rdi]
mov qword [r14], rcx
mov qword [rdi], 0
lea rcx, [r14 + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x14008880a
mov r8, qword [rdx - 8]
mov qword [r14 - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add r14, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x14008878d
mov rdi, qword [rsi]
mov r15, qword [rsi + 8]
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r15, rdi
je 0x140088815
add r15, 0xfffffffffffffff8
add rbx, 7
test r15, r15
je 0x140088876
mov rcx, qword [r15]
and rcx, rbx
mov rax, qword [0x14012b720]
and rax, rcx
cmp rax, qword [0x14012b708]
je 0x140088803
mov qword [r15], 0
lea rax, [r15 - 8]
cmp r15, rdi
mov r15, rax
jne 0x1400887cc
jmp 0x140088815
call fcn.14006d230
jmp 0x1400887ee
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x140088826
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14008d7f8
xor eax, eax
jmp 0x14008875f
call fcn.1400a6050
call fcn.1400c0f30
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400c1730
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1400c1730
int3

Function at 0x1400892d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x14005d070]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x1401449a0]
lea rdx, [0x14005cef0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140089362
cmp dword [0x1401449a8], 0
jne 0x14008935e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1401449ac]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14008935e
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008ec50
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140089346
call fcn.1400a6050
int3
Function at 0x14008d020
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140144a58]
mov ecx, dword [0x140138f34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008d086
lea rcx, [0x140144a48]
xor edx, edx
call fcn.14007d7f0
mov eax, dword [0x140144a70]
mov ecx, dword [0x140138f34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008d0c1
lea rcx, [0x140144a60]
xor edx, edx
add rsp, 0x28
jmp fcn.14007d7f0
lea rcx, [0x140144a58]
call fcn.14008d910
cmp dword [0x140144a58], 0xffffffff
jne 0x14008d045
xorps xmm0, xmm0
movups xmmword [0x140144a48], xmm0
lea rcx, [0x140144a48]
xor edx, edx
call fcn.14004df50
lea rcx, [0x140144a58]
call fcn.14008d9a8
jmp 0x14008d045
lea rcx, [0x140144a70]
call fcn.14008d910
cmp dword [0x140144a70], 0xffffffff
jne 0x14008d074
xorps xmm0, xmm0
movups xmmword [0x140144a60], xmm0
lea rcx, [0x140144a60]
xor edx, edx
call fcn.14004df50
lea rcx, [0x140144a70]
call fcn.14008d9a8
jmp 0x14008d074

Function at 0x14008d210
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140144a78]
cmp rsi, 1
jbe 0x14008d233
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14007d7f0
lea rcx, [0x140144a78]
call fcn.14004db30
test al, al
je 0x14008d278
xorps xmm0, xmm0
movups xmmword [0x140144a80], xmm0
lea rdi, [0x140144a78]
lea rsi, [0x140144a80]
mov rcx, rsi
xor edx, edx
call fcn.14004df50
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14004dbf0
jmp 0x14008d223
mov rsi, qword [0x140144a78]
jmp 0x14008d223

Function at 0x1400a4170
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x140101968]
mov rbp, rcx
call fcn.1400b61b4
xor edi, edi
test rax, rax
je 0x1400a4256
mov ebx, edi
call fcn.1400a3e08
mov r14d, dword [rax]
call fcn.1400a3e08
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400a89e8
mov rsi, rax
test rax, rax
je 0x1400a41e7
call fcn.1400a3e08
mov dword [rax], r14d
jmp 0x1400a4211
call fcn.1400a3e08
cmp dword [rax], 0x22
jne 0x1400a424e
call fcn.1400a3e08
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400a89e8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400a424e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400a4215
cmp rax, 3
je 0x1400a4230
mov rcx, rsi
call fcn.1400a40cc
test al, al
je 0x1400a4241
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400a4241
mov dil, 1
mov rcx, rbx
call fcn.14006c190
mov al, dil
jmp 0x1400a4258
mov rcx, rbx
call fcn.14006c190
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008ec50
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400b897c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400b89ac
xor eax, eax
jmp 0x1400b8a6f
mov rbp, rbx
cmp word [rax], si
je 0x1400b89d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b89b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b89b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400b88cc
movsxd r14, eax
test eax, eax
jne 0x1400b8a0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b89a5
mov rcx, r14
call fcn.140030710
mov rdi, rax
test rax, rax
jne 0x1400b8a28
xor ecx, ecx
call fcn.14006c190
jmp 0x1400b8a04
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400b88cc
test eax, eax
jne 0x1400b8a59
mov rcx, rdi
call fcn.14006c190
jmp 0x1400b8a63
xor ecx, ecx
call fcn.14006c190
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400b8a8c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b8b13
mov rsi, rbx
cmp word [rax], bp
je 0x1400b8ad2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b8abc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b8ab8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140030710
mov rdi, rax
test rax, rax
je 0x1400b8b00
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400906d0
mov rbp, rdi
xor ecx, ecx
call fcn.14006c190
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bf68c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14009b65c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bf716
cmp byte [rbp - 0x21], r15b
je 0x1400bf711
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bf74c
call fcn.1400b1d54
test eax, eax
jne 0x1400bf738
cmp byte [rbp - 0x21], r15b
je 0x1400bf730
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bf74c
cmp byte [rbp - 0x21], r15b
je 0x1400bf749
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a0c38
test eax, eax
jne 0x1400bf7ec
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14009b65c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bf78b
cmp byte [rbp - 0x21], r15b
je 0x1400bf7c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bf7c0
call fcn.1400b1d54
test eax, eax
jne 0x1400bf7ac
cmp byte [rbp - 0x21], r15b
je 0x1400bf7a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bf7c0
cmp byte [rbp - 0x21], r15b
je 0x1400bf7bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a0c38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bf7ec
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bf7ef
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bf7fd
mov rcx, rdi
call fcn.14006c190
cmp byte [rbp + 0x3f], r15b
je 0x1400bf80c
mov rcx, qword [rbp + 0x27]
call fcn.14006c190
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400d90c0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14008d7bc
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400d9130]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400a0db4
mov qword [rbx], rax
test rax, rax
je 0x1400d9117
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400da520
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x1400da52d
mov rcx, qword [rcx]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400dae90
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x14013c3d0]
test rax, rax
je 0x1400daf95
cmp eax, 2
jne 0x1400daf0c
mov ecx, 2
call fcn.140071d30
test al, al
je 0x1400daf65
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8e
mov r9d, 2
call fcn.14003abb0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
jmp 0x1400dafe6
mov eax, 1
lock xadd qword [0x14013c408], rax
test rax, rax
jle 0x1400daf2c
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14013c388], eax
mov qword [0x14013c380], rsi
mov rcx, qword [0x14012b148]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.140071d30
test al, al
jne 0x1400dafb4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14008ec50
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x14013c3d0]
test rax, rax
je 0x1400daf9c
jmp 0x1400daebe
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xba
mov r9d, 2
call fcn.14003abb0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
call fcn.1400c0f40
mov rcx, rsi
call fcn.14003b0a0
jmp 0x1400daf65
Function at 0x1400de4c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14013c4d8], 0
je 0x1400de506
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14008ec50
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x14013c4b0]
test rdi, rdi
je 0x1400de5a7
test byte [0x14012b750], 1
je 0x1400de4e9
cmp byte [rdi + 0x17], 0
jns 0x1400de528
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14013c4d8], rax
inc rax
cmp rax, 1
ja 0x1400de4e9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140090d80
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400de672
xor esi, esi
jmp 0x1400de4e9
mov ecx, 0x18
call fcn.14008d7bc
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140090d80
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14010dbf0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400c0e20
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400de60e
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x1400de614
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x1400de63a
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.1400278c0
mov qword [0x14013c4b0], rdi
jmp 0x1400de516
lea r8, [rax + rax]
test r8, r8
je 0x1400de619
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400de63e
cmp rdx, 0xfffffffffffffffe
je 0x1400de619
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x1400de739
mov rcx, rdi
call fcn.1400d9810
jmp 0x1400de619
mov rdi, qword [0x14013c4b0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400ad360
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.1400275a0
mov rcx, qword [0x14013c4b0]
call fcn.140025ad0
cmp word [rax], 0x5c
je 0x1400de6bf
mov rcx, qword [0x14013c4b0]
lea rdx, [0x14011164a]
mov r8d, 1
call fcn.1400278c0
mov rcx, qword [0x14013c4b0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.1400278c0
mov rcx, qword [0x14013c4b0]
cmp byte [rcx + 0x17], 0
jns 0x1400de6e8
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14013c4d8], rax
inc rax
cmp rax, 1
ja 0x1400de4e9
mov qword [0x14013c4d8], 0
jmp 0x1400de5a0
call fcn.1400a6050
int3
Function at 0x1400e5470
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov ebx, 1
cmp rdi, r12
je 0x1400e5504
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.1400e4d80
test al, al
jne 0x1400e54cc
add rdi, 0x70
cmp rdi, r12
jne 0x1400e54b1
mov rdi, r12
cmp rdi, qword [r14 + 0x58]
je 0x1400e5504
cmp byte [rdi + 0x27], 0
jns 0x1400e54de
mov rcx, qword [rdi + 0x10]
jmp 0x1400e54e2
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
cmp eax, 0xffffffff
mov ebx, 1
cmovne ebx, ecx
test ebx, ebx
jne 0x1400e5504
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008ec50
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400eebe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400eec0a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400eec2c
mov edi, eax
test bl, bl
jne 0x1400eec24
mov eax, edi
and eax, 0x400
jne 0x1400eec3a
and edi, 0x10
shr edi, 4
jmp 0x1400eec3c
mov ecx, 2
call fcn.140071d30
test al, al
jne 0x1400eec59
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14008ec50
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.1400dec80
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c0f40
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14006aef0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400eecdf
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
jmp 0x1400eece3
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400c0f40
cmp byte [rsp + 0x57], 0
jns 0x1400eecff
mov rcx, qword [rsp + 0x40]
call fcn.14008d7f8
lea rcx, [rsp + 0x58]
call fcn.1400ded00
jmp 0x1400eec3a