joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016d000
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14016d015
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14016de90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x14016df01
cmp edx, 0xffff
ja 0x14016df01
mov rsi, r9
mov rdi, rcx
mov edx, edx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14016deff
mov rbx, rax
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14016deff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14016def7
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rax
mov edx, ebp
mov qword [rcx], rdx
test rax, rax
setne al
jmp 0x14016df01
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140171f00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, ecx
mov edi, 3
call fcn.140103fc0
test al, al
jne 0x140171f1e
call fcn.140103f90
movzx edi, al
mov ecx, esi
mov edx, edi
call fcn.140111da0
mov eax, dword [0x14032a8f0]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140171f60
movsxd rdx, esi
inc rdx
lea rcx, [0x14032a8e0]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140105e90
lea rcx, [0x14032a8f0]
call fcn.140255ea0
cmp dword [0x14032a8f0], 0xffffffff
jne 0x140171f48
lea rcx, [0x14032a8e0]
xor edx, edx
call fcn.140105ee0
lea rcx, [0x14032a8f0]
call fcn.140255f38
jmp 0x140171f48

Function at 0x140171fa0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.140111da0
mov eax, dword [0x14032a8f0]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140171fe4
movsxd rdx, esi
inc rdx
lea rcx, [0x14032a8e0]
add rsp, 0x20
pop rsi
jmp fcn.140105e90
lea rcx, [0x14032a8f0]
call fcn.140255ea0
cmp dword [0x14032a8f0], 0xffffffff
jne 0x140171fcd
lea rcx, [0x14032a8e0]
xor edx, edx
call fcn.140105ee0
lea rcx, [0x14032a8f0]
call fcn.140255f38
jmp 0x140171fcd
Function at 0x140174e20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x200
movaps xmmword [rsp + 0x1f0], xmm6
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x1e8], rax
test rdx, rdx
je 0x140175101
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
movaps xmm6, xmmword [0x14029de10]
movaps xmmword [rsp + 0x1d0], xmm6
movaps xmmword [rsp + 0x1c0], xmm6
test byte [0x14032a917], 0x40
je 0x140174ea1
mov eax, 0x40000000
and eax, dword [0x14032a910]
je 0x140174ea1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.140019d10
test eax, eax
jne 0x140174ed1
call fcn.1401df320
test eax, eax
je 0x140174ebf
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
movaps xmmword [rsp + 0x1c0], xmm0
jmp 0x140174ed1
lea rcx, [rsp + 0x1c0]
mov edx, 0x20
call fcn.1401df350
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rsp + rax + 0x1c0], cl
inc rax
cmp rax, 0x20
jne 0x140174ee0
lea r14, [rsp + 0x90]
mov r8d, 0x130
mov rcx, r14
mov dl, 0xaa
call fcn.140259320
mov ecx, 1
call fcn.1401dee70
test rax, rax
je 0x140174f4b
mov r15, rax
mov r13, rax
add r13, 0x128
cmp dword [rax + 0x128], 0xfff
ja 0x140174ffb
cmp qword [r15 + 0x120], 0
jne 0x140174ffb
jmp 0x140175056
mov ecx, 0x130
call fcn.14016d2a0
test rax, rax
je 0x140174f75
mov r15, rax
lea r8, [0x140175db0]
mov ecx, 1
mov rdx, rax
call fcn.1401def40
test eax, eax
jne 0x140174f78
mov r15, r14
mov dword [r15 + 0x12c], 0
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rbx, [rsp + 0x60]
mov edx, 0x30
mov rcx, rbx
call fcn.1401df350
lea r8, [rsp + 0x30]
mov rcx, r15
mov rdx, rbx
xor r9d, r9d
call fcn.1401755c0
test eax, eax
je 0x14017512c
lea r13, [r15 + 0x128]
mov dword [r15 + 0x128], 0
mov qword [r15 + 0x120], 0
cmp qword [r15 + 0x120], 0
je 0x140175056
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rbx, [rsp + 0x60]
mov edx, 0x30
mov rcx, rbx
call fcn.1401df350
mov r8d, 0x30
mov rcx, r15
mov rdx, rbx
call fcn.140175880
test eax, eax
je 0x14017512c
mov qword [r15 + 0x118], 1
mov dword [r13], 0
mov qword [r15 + 0x120], 0
cmp rsi, 0x10000
mov ebx, 0x10000
cmovb rbx, rsi
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x1c0]
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.140175ba0
test eax, eax
je 0x14017512c
inc dword [r13]
sub rsi, rbx
je 0x1401750ea
add rdi, rbx
lea r12, [rsp + 0x1c0]
nop word cs:[rax + rax]
cmp rsi, 0x10000
mov ebx, 0x10000
cmovb rbx, rsi
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, rdi
mov r8, rbx
mov r9, r12
call fcn.140175ba0
test eax, eax
je 0x14017512c
add rdi, rbx
inc dword [r13]
sub rsi, rbx
jne 0x1401750b0
cmp r15, r14
jne 0x140175101
lea rcx, [rsp + 0x90]
mov edx, 0x120
call fcn.14016d320
mov rcx, qword [rsp + 0x1e8]
xor rcx, rsp
call fcn.140257200
movaps xmm6, xmmword [rsp + 0x1f0]
add rsp, 0x200
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14026f3e0
int3
Function at 0x140175140
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x1401755c0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
movdqa xmmword [rsp + 0xa0], xmm7
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
cmp r9, 0x30
ja 0x140175841
mov rsi, rcx
movups xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
je 0x140175641
xor eax, eax
nop dword [rax]
movzx ecx, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
jne 0x140175630
xor eax, eax
lea rcx, [0x1402ba880]
nop word [rax + rax]
movzx edx, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x140175650
lea r15, [rsi + 0xf8]
mov eax, dword [0x14032a914]
test eax, 0x2000000
jne 0x1401757ba
test eax, 0x200
jne 0x1401757e1
mov dword [rsi + 0xf0], 0xe
movaps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x70], xmm0
movups xmmword [rsi], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm0
movups xmmword [rsi + 0x10], xmm0
mov ebx, 0x30
lea rdi, [0x1402ba8d0]
movdqa xmm7, xmmword [rsp + 0x70]
movaps xmm6, xmmword [0x14029de10]
lea r13, [rsp + 0x50]
lea r12, [rsp + 0x60]
lea r14, [rsp + 0x70]
nop word cs:[rax + rax]
movaps xmmword [rsp + 0x50], xmm6
mov rcx, r13
mov rdx, r12
call fcn.140176270
movzx eax, byte [rdi]
movd xmm0, eax
pxor xmm0, xmm7
movdqa xmm1, xmmword [rsp + 0x50]
movdqa xmm2, xmm1
psrld xmm2, 8
pslld xmm1, 0x18
por xmm1, xmm2
psrldq xmm1, 0xc
pxor xmm1, xmm0
movdqa xmm0, xmm1
pslldq xmm0, 4
movdqa xmm2, xmm1
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm7, xmm1
pslldq xmm7, 0xc
pxor xmm7, xmm2
pxor xmm7, xmm1
movdqa xmmword [rsp + 0x70], xmm7
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + rbx - 0x10], xmm0
cmp rbx, 0xf0
je 0x140175808
mov rcx, r13
mov rdx, r14
call fcn.140176270
movdqa xmm0, xmmword [rsp + 0x50]
psrldq xmm0, 0xc
pxor xmm0, xmmword [rsp + 0x60]
movdqa xmm1, xmm0
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm0
pslldq xmm0, 4
pslldq xmm1, 8
pxor xmm1, xmm0
pxor xmm2, xmm1
movdqa xmmword [rsp + 0x60], xmm2
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + rbx], xmm0
add rbx, 0x20
inc rdi
jmp 0x1401756e0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
call fcn.1400033a0
lea rax, [0x140001ea0]
test r15, r15
je 0x14017581e
lea rcx, [0x140001140]
jmp 0x14017581b
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
call fcn.140004590
lea rax, [0x140004a60]
test r15, r15
je 0x14017581e
lea rcx, [0x140004760]
jmp 0x14017581b
lea rax, [0x140174460]
test r15, r15
je 0x14017581e
lea rcx, [0x140173290]
mov qword [r15], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov edi, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140257200
mov eax, edi
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401809b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140180aae
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140180aae
cmp word [rax + rcx + 0x14], 0x78
jb 0x140180aae
mov rsi, r8
mov r12, rdx
mov edx, dword [rax + rcx + 0x88]
mov rcx, rbx
call fcn.1401807b0
test rax, rax
je 0x140180aae
cmp r12, 0xffff
jbe 0x140180adf
mov r14, rax
mov edx, dword [rax + 0x20]
mov rcx, rbx
call fcn.1401807b0
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x140180aae
lea r15, [rax + rcx*4]
lea r13, [r12 + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov rdi, r15
sub rdi, rbp
mov rax, rdi
sar rax, 2
shr rdi, 0x3f
add rdi, rax
and rdi, 0xfffffffffffffffe
mov edx, dword [rbp + rdi*2]
mov rcx, rbx
call fcn.1401807b0
mov cl, byte [r12]
test cl, cl
je 0x140180a80
mov rdx, r13
cmp cl, byte [rax]
jne 0x140180a82
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140180a70
xor ecx, ecx
lea rdi, [rdi*2]
add rdi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140180ac1
movzx ecx, cl
lea rdx, [rdi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, rdi
xor eax, eax
cmp rbp, r15
jne 0x140180a41
jmp 0x140180ab0
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rcx, rbx
call fcn.1401807b0
sub rdi, qword [rsp + 0x20]
sar rdi, 1
movzx r12d, word [rax + rdi]
add r12w, word [r14 + 0x10]
mov word [rsi], r12w
mov al, 1
jmp 0x140180ab0

Function at 0x140180b8c
Capabilities:
Parse pe header

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

Function at 0x14019a080
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14032b868]
cmp rsi, 1
ja 0x14019a0df
lea rcx, [0x14032b868]
call fcn.1400f5910
test al, al
je 0x14019a0d8
xorps xmm0, xmm0
movups xmmword [0x14032b870], xmm0
lea rdi, [0x14032b868]
lea rsi, [0x14032b870]
mov rcx, rsi
xor edx, edx
call fcn.140105ee0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400f59c0
jmp 0x14019a0df
mov rsi, qword [0x14032b868]
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140105e90

Function at 0x14019a0f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14032b868]
cmp rsi, 1
ja 0x14019a14f
lea rcx, [0x14032b868]
call fcn.1400f5910
test al, al
je 0x14019a148
xorps xmm0, xmm0
movups xmmword [0x14032b870], xmm0
lea rdi, [0x14032b868]
lea rsi, [0x14032b870]
mov rcx, rsi
xor edx, edx
call fcn.140105ee0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400f59c0
jmp 0x14019a14f
mov rsi, qword [0x14032b868]
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140105e50
Function at 0x14019ca5c
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14029de10]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14019cb47
lea r14, [rsp + 0x6c]
xor ebx, ebx
mov r8d, 0x110
mov rcx, r14
xor edx, edx
call fcn.140259320
mov dword [r14 - 0xc], 0x11c
mov rdi, qword [sym.imp.ntdll.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov qword [r14 - 8], 6
mov word [r14 + 0x108], 0
lea rcx, [rsp + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14019cb4e
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.14019cbab
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14019cb4e
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14019cb57
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.140257200
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14019d94e
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rcx + 8], rdx
mov eax, dword [0x14032b8a0]
mov ecx, dword [0x14031d424]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14019dbcb
mov rax, qword [0x14032b898]
test rax, rax
je 0x14019da39
lea rdx, [rsp + 0x174]
mov dword [rdx], 0xaaaaaaaa
mov rcx, rdi
call qword [case.0x140112150.0]
test eax, eax
je 0x14019d9e3
cmp dword [rsp + 0x174], 0
setne byte [rsi + 0x81]
je 0x14019da40
mov byte [rsi + 0x80], 0
mov dl, 1
jmp 0x14019da75
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x14019da39
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x4b
mov r9d, 2
call fcn.1400f7550
lea rcx, [rsp + 0x40]
lea rdx, [0x1402aaad6]
mov r8d, 0xe
call fcn.14001eb4a
mov rcx, rbx
call fcn.1400f7640
mov byte [rsi + 0x81], 0
movaps xmm0, xmmword [0x14029de10]
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rbx], 9
sete byte [rsi + 0x80]
cmp byte [rsi + 0x81], 0
setne dl
lea rax, [rsi + 0x30]
lea r9, [rsi + 0x28]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov r8, rsi
call fcn.14019dc12
test al, al
je 0x14019daab
cmp byte [rsi + 0x80], 0
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
mov r8, rsi
je 0x14019daf4
call fcn.14019de43
jmp 0x14019daf9
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x14019dbac
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21e
mov r9d, 2
call fcn.1400f6410
lea rcx, [rsp + 0x40]
lea rdx, str.GetProcessBasicInformation_failed
mov r8d, 0x21
jmp 0x14019db9f
call fcn.14019e465
test al, al
je 0x14019db5f
mov dl, byte [rsi + 0x80]
mov rcx, rdi
mov r8, rsi
call fcn.14019ce64
mov sil, 1
test al, al
jne 0x14019dbae
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x14019dbac
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x22c
mov r9d, 2
call fcn.1400f6410
lea rcx, [rsp + 0x40]
lea rdx, str.ReadMemoryInfo_failed
mov r8d, 0x15
jmp 0x14019db9f
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x14019dbac
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x227
mov r9d, 2
call fcn.1400f6410
lea rcx, [rsp + 0x40]
lea rdx, str.ReadProcessData_failed
mov r8d, 0x16
call fcn.14001eb4a
mov rcx, rsi
call fcn.1400f68f0
xor esi, esi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x180
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14032b8a0]
call fcn.140255ea0
cmp dword [0x14032b8a0], 0xffffffff
jne 0x14019d999
lea rcx, [0x1402a9b50]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.1401a0f10
mov qword [0x14032b898], rax
lea rcx, [0x14032b8a0]
call fcn.140255f38
jmp 0x14019d999
Function at 0x1401a0f5c
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14030c028]
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 0x1401a0fa8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x1401a0faf
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140257200
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x1401a0f5c

Function at 0x1401a0fc6
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 [0x14030c028]
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 0x1401a1069
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1401a1044
mov rcx, rdi
call r12
cmp eax, 3
je 0x1401a1007
mov eax, dword [rsp + 0x2c]
jmp 0x1401a1049
cmp eax, 0xffffffff
je 0x1401a107d
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140257200
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1401a104b
int3

Function at 0x1401a16f4
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1401a1623
test rax, rax
jne 0x1401a178b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
jne 0x1401a178b
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x1401a1789
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400f7550
lea rcx, [rsp + 0x40]
lea rdx, [0x1402bf390]
mov r8d, 0xc
call fcn.14001eb4a
mov rcx, rsi
call fcn.1400f7640
xor esi, esi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140257200
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret

Function at 0x1401a1b90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14030c028]
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 0x1401a0fa8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x1401a0faf
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140257200
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x1401a0f5c
Function at 0x1401a3e18
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 [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1401a3e42
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a3e6b
mov edi, eax
test bl, bl
jne 0x1401a3e60
mov eax, edi
and eax, 0x400
jne 0x1401a3f22
and edi, 0x10
shr edi, 4
jmp 0x1401a3f24
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x1401a3f22
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.1400f7550
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001eb4a
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.140103680
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401a3efc
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14001eb4a
cmp byte [rsp + 0x57], 0
jns 0x1401a3f18
mov rcx, qword [rsp + 0x40]
call fcn.140255d7c
lea rcx, [rsp + 0x58]
call fcn.1400f7640
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140257200
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401a3f41
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x14030c028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x1401a3f6c
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1401a413a
test bl, bl
je 0x1401a4072
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1401a4072
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.1401a3e18
test al, al
jne 0x1401a413a
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x1401a4138
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.1400f6410
lea rdi, [rsp + 0x50]
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x180]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.140103680
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401a402c
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14001eb4a
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.14001eb4a
cmp byte [rsp + 0x1a7], 0
jns 0x1401a4063
mov rcx, qword [rsp + 0x190]
call fcn.140255d7c
lea rcx, [rsp + 0x40]
call fcn.1400f68f0
jmp 0x1401a4138
mov ecx, 2
call fcn.1400f6360
test al, al
je 0x1401a4138
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x62
mov r9d, 2
call fcn.1400f7550
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14001eb4a
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.140103680
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1401a410c
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.14001eb4a
cmp byte [rsp + 0x1a7], 0
jns 0x1401a412e
mov rcx, qword [rsp + 0x190]
call fcn.140255d7c
lea rcx, [rsp + 0x40]
call fcn.1400f7640
xor edi, edi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.140257200
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret