joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ae720
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1402faf80]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400ae89c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140395a70]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14018e86c
mov rcx, rbx
call fcn.14018db74
sub r14, rax
lea rdx, [0x140305304]
mov rcx, rbx
mov r8, r14
call fcn.14018e86c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1401a5320
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400ae7fc
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14018e8b4
test eax, eax
je 0x1400ae8c0
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400ae837
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14018e8b4
test eax, eax
je 0x1400ae8c0
xor eax, eax
mov byte [0x140395669], al
mov dword [rsp + 0x30], 0
lea rcx, [0x140309b64]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1403273b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ae8c7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x14036e550]
test eax, eax
je 0x1400ae8c7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140395c70], al
mov byte [0x140395668], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400ae839
xor eax, eax
jmp 0x1400ae88f
Function at 0x1400aeaf0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1400aeb24
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400aec1f
bt ebx, 8
jae 0x1400aeb40
mov eax, ebx
and eax, 0x200
jne 0x1400aec1f
cmp edi, 2
lea rax, [0x140395670]
lea rcx, [0x140395870]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400aec1f
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x1400aec1f
bt ebx, 8
jb 0x1400aec1f
shr ebx, 9
and ebx, 1
or bl, byte [0x140395c70]
je 0x1400aec1f
cmp edi, 2
lea rax, str.Pt2_
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x1400aec3e
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x1400aec08
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.140188850
test eax, eax
je 0x1400aec43
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1400aebe8
cmp dword [rsp + 0x2c], 0
jne 0x1400aecbe
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14016c920
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x1400aebc7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x1400aec51
test ecx, ecx
jne 0x1400aec08
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400aec7d
cmp dword [rsp + 0x2c], 2
jne 0x1400aec8e
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x1400aec8e
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x1400aeca7
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1400aec94
jmp 0x1400aecaa
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x1400aec0f
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400aecca
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x1400aed00
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14018db74
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.140044650
jmp 0x1400aec1f
ud2
Function at 0x1400af720
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1400af755
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], rax
test rax, rax
js 0x1400af810
sete al
test r8, r8
setne cl
or cl, al
je 0x1400af810
lea rsi, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14011b710
cmp byte [rsi + 0x17], 0
jns 0x1400af796
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.14011b710
cmp byte [rdi + 0x17], 0
jns 0x1400af7bb
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x1400af7da
mov rcx, qword [rsp + 0x48]
call fcn.14016b3e8
cmp byte [rsp + 0x87], 0
jns 0x1400af7ee
mov rcx, qword [rsp + 0x70]
call fcn.14016b3e8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
ud2

Function at 0x1400af8a0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.14016c8c0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402faf80]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.14011b710
test rsi, rsi
je 0x1400af978
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1401a5320
cmp byte [rsp + 0x47], 0
jns 0x1400af91b
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x1400af94a
cmp eax, 0x7fff
jae 0x1400af99d
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14006cd80
cmp byte [rsp + 0x47], 0
jns 0x1400af95b
mov rcx, qword [rsp + 0x30]
call fcn.14016b3e8
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.14016c920
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x1400af986
lea rcx, [rsp + 0x30]
jmp 0x1400af98b
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x1400af94a
int3
Function at 0x1400b47f0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400b4867
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140382a40], rax
jne 0x1400b486a
mov rsi, rcx
call fcn.1400c2c50
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140099820
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.1400b4880
mov ecx, dword [0x140395db4]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14038f0a0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x180], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x1400bccf0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r14, [rcx + 0x38]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x1400bce24
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x1400bce3d
mov qword [rsp + 0x20], r12
lea rcx, [0x1402f0208]
lea r9, [0x14032ad80]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x1400bcdeb
mov rcx, qword [r14]
test rcx, rcx
jne 0x1400bce57
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [0x14036e550]
test eax, eax
js 0x1400bce04
cmp rdi, rbx
je 0x1400bcda2
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x1400bcdd2
test r8b, r8b
js 0x1400bcdc1
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
add rdi, 0x18
mov rcx, rdi
mov rdx, rsi
call fcn.140125f50
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.140044b60
jmp 0x1400bcda2
test r8b, r8b
jns 0x1400bcdde
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.140044a00
jmp 0x1400bcda2
test r15, r15
je 0x1400bce20
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
jmp 0x1400bce1a
mov rcx, qword [r14]
test rcx, rcx
je 0x1400bce20
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14036e550]
xor eax, eax
jmp 0x1400bcdb3
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14036e550]
jmp 0x1400bcd17
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14036e550]
jmp 0x1400bcd28
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14036e550]
jmp 0x1400bcd61
Function at 0x1400be200
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x1402faf80]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.1400dbcc0
test eax, eax
je 0x1400be318
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movzx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
cmp rsi, rax
jne 0x1400be287
lea rbx, [0x140357f40]
test al, al
je 0x1400be26f
lea rdx, [0x140357f44]
mov rcx, rdi
mov r8, rsi
call fcn.1401a4b80
test eax, eax
jne 0x1400be287
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14016c920
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [reloc.OLEAUT32.dll_VariantInit]
cmp rsi, rax
jne 0x1400be2b4
lea rbx, [0x14032b1e0]
test al, al
je 0x1400be26f
lea rdx, [0x14032b1e4]
mov rcx, rdi
mov r8, rsi
call fcn.1401a4b80
test eax, eax
je 0x1400be26f
movzx eax, byte [reloc.OLEAUT32.dll_VariantInit]
cmp rsi, rax
jne 0x1400be2e1
lea rbx, [0x140358020]
test al, al
je 0x1400be26f
lea rdx, [0x140358024]
mov rcx, rdi
mov r8, rsi
call fcn.1401a4b80
test eax, eax
je 0x1400be26f
movzx eax, byte [0x1403581f5]
cmp rsi, rax
jne 0x1400be31f
lea rbx, [0x1403581e8]
test al, al
je 0x1400be26f
lea rdx, [0x1403581ec]
mov rcx, rdi
mov r8, rsi
call fcn.1401a4b80
test eax, eax
je 0x1400be26f
jmp 0x1400be31f
xor ebx, ebx
jmp 0x1400be26f
movzx eax, byte [0x14035810d]
cmp rsi, rax
jne 0x1400be318
lea rbx, [0x140358100]
test al, al
je 0x1400be26f
lea rdx, [0x140358104]
mov rcx, rdi
mov r8, rsi
call fcn.1401a4b80
test eax, eax
je 0x1400be26f
jmp 0x1400be318
Function at 0x1400be830
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1402faf80]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x1400be91c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1401a5320
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x1400be923
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.1400be980
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x1400be923
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x1400be92c
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14016c920
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400c1490
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400c14a0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x1400c14c1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400c14e1
cmp byte [r14 + 0x50], 1
je 0x1400c156c
or edi, 0x20000000
test dil, 8
jne 0x1400c1577
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1400c14ff
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x1400c1510
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x1400c159e
cmp byte [r14 + 0x18], 1
je 0x1400c15af
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400c15bf
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400c1594
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x1400c14e1
cmp byte [r14 + 0x68], 1
jne 0x1400c1589
or edi, 0x40000000
jmp 0x1400c14eb
or edi, 0x10000000
jmp 0x1400c14eb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400c1557
lea rcx, [r14 + 0x20]
call fcn.140036d60
mov r15, rax
jmp 0x1400c151b
mov rcx, r14
call fcn.140036d60
mov r9, rax
jmp 0x1400c1529
cmp ebx, 4
jne 0x1400c15ce
mov edx, 6
jmp 0x1400c1536
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400c15e0
mov edx, 7
jmp 0x1400c1536
cmp ebx, 1
jne 0x1400c15ef
mov edx, 4
jmp 0x1400c1536
xor edx, edx
jmp 0x1400c1536
Function at 0x1400c14a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400c14a0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x1400c14c1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400c14e1
cmp byte [r14 + 0x50], 1
je 0x1400c156c
or edi, 0x20000000
test dil, 8
jne 0x1400c1577
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1400c14ff
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x1400c1510
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x1400c159e
cmp byte [r14 + 0x18], 1
je 0x1400c15af
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400c15bf
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400c1594
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x1400c14e1
cmp byte [r14 + 0x68], 1
jne 0x1400c1589
or edi, 0x40000000
jmp 0x1400c14eb
or edi, 0x10000000
jmp 0x1400c14eb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400c1557
lea rcx, [r14 + 0x20]
call fcn.140036d60
mov r15, rax
jmp 0x1400c151b
mov rcx, r14
call fcn.140036d60
mov r9, rax
jmp 0x1400c1529
cmp ebx, 4
jne 0x1400c15ce
mov edx, 6
jmp 0x1400c1536
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400c15e0
mov edx, 7
jmp 0x1400c1536
cmp ebx, 1
jne 0x1400c15ef
mov edx, 4
jmp 0x1400c1536
xor edx, edx
jmp 0x1400c1536

Function at 0x1400c1600
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400c1638
cmp byte [r15 + 0x50], 1
je 0x1400c16cf
or edi, 0x20000000
test dil, 8
jne 0x1400c16da
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x1400c1656
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x1400c1667
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 1
je 0x1400c1701
cmp byte [r15 + 0x18], 1
je 0x1400c1712
xor r9d, r9d
cmp ebx, 4
jne 0x1400c16c0
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x1400c16f7
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400c1722
mov edx, 7
jmp 0x1400c168a
or edi, 0x80000000
jmp 0x1400c1638
cmp byte [r15 + 0x68], 1
jne 0x1400c16ec
or edi, 0x40000000
jmp 0x1400c1642
or edi, 0x10000000
jmp 0x1400c1642
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400c16ab
lea rcx, [r15 + 0x20]
call fcn.140036d60
mov r14, rax
jmp 0x1400c1672
mov rcx, r15
call fcn.140036d60
mov r9, rax
jmp 0x1400c1680
mov edx, 1
test ebx, ebx
je 0x1400c168a
cmp ebx, 1
jne 0x1400c173e
mov edx, 4
jmp 0x1400c168a
xor edx, edx
jmp 0x1400c168a
Function at 0x1400c1e40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c1ea0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400c1ea9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016c920
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400c1e89
int3
mov rcx, qword [rcx + 8]
jmp 0x1400c1e40

Function at 0x1400c1eb0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x1400c1f56
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400c1f42
cmp eax, 0xffffffff
je 0x1400c1f53
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016c920
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x1400c1ef1
mov eax, dword [rsp + 0x2c]
jmp 0x1400c1f22
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1400c1f24

Function at 0x1400c2440
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1400c2340
test rax, rax
jne 0x1400c247f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400c249b
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14016c920
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140124e30
test al, al
je 0x1400c24f1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.1401dd8a0
lea rcx, [rsp + 0x38]
lea rdx, [0x14032cc53]
mov r8d, ntohl
call fcn.1400fe0b0
mov rcx, rsi
call fcn.1401dd910
xor esi, esi
jmp 0x1400c247f

Function at 0x1400c2980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c1ea0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400c1ea9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016c920
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400c1e89
int3
mov rcx, qword [rcx + 8]
jmp 0x1400c1e40
Function at 0x1400c4db0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400c4d80]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14039a908]
lea rdx, [0x1400c4bd0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400c4ea8
cmp dword [0x14039a910], 0
jne 0x1400c4eb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14039a914]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400c4e5c
mov ecx, 1
mov edx, 0x28
call fcn.140083800
test rax, rax
je 0x1400c4eb5
mov r14, rax
mov ecx, dword [0x14039a914]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400c4ead
lea r15, [0x14039a918]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14039a920]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14016c920
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140184540
mov rcx, r14
call fcn.140083680
mov rcx, rsi
mov rax, rdi
call qword [0x14036e550]
xor esi, esi
jmp 0x1400c4e8c

Function at 0x1400c5640
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14038ebe8]
cmp ecx, 0xffffffff
je 0x1400c571a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400c571a
mov eax, dword [0x14039c190]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c5724
mov rbx, qword [0x14039c188]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c5774
mov rax, qword [0x14039a978]
inc rax
xor ecx, ecx
lea rdx, [0x14039a980]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1400c5781
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x14039c180]
inc ecx
mov dword [0x14039c180], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14039a978], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x1400c5771
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400c57a0
jmp 0x1400c566a
lea rcx, [0x14039c190]
call fcn.14016b42c
cmp dword [0x14039c190], 0xffffffff
jne 0x1400c568f
mov ecx, 8
call fcn.14016b3ac
mov rbx, rax
mov qword [rax], 0
mov rcx, rax
call fcn.140113e30
mov qword [0x14039c188], rbx
lea rcx, [0x14039c190]
call fcn.14016b4e0
jmp 0x1400c568f
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400c56a7
inc rcx
cmp rcx, 0x100
jne 0x1400c56ba
jmp 0x1400c5700