joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140258120
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 [0x140381038]
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 0x1402581b4
mov rsi, r8
mov r14, rcx
lea r15, [rsp + 0x20]
mov rcx, rdi
mov rdx, r15
call fcn.140259040
test al, al
jne 0x14025817c
add rdi, 0x70
cmp rdi, r12
jne 0x140258161
mov rdi, r12
cmp rdi, qword [r14 + 0x58]
je 0x1402581b4
cmp byte [rdi + 0x27], 0
js 0x14025818e
lea rcx, [rdi + 0x10]
jmp 0x140258192
mov rcx, qword [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 0x1402581b4
mov qword [rsi], rdi
xor ebx, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14019b960
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
mov r14, qword [rcx + 0x50]
mov r12, qword [rcx + 0x58]
mov esi, 1
cmp r14, r12
je 0x1402583bb
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
lea r15, [rsp + 0x20]
mov rcx, r14
mov rdx, r15
call fcn.140259040
test al, al
jne 0x1402583a0
add r14, 0x70
cmp r14, r12
jne 0x140258385
mov r14, r12
cmp r14, qword [rbx + 0x58]
je 0x1402583bb
mov eax, dword [r14 + 0x68]
cmp eax, ebp
je 0x1402583d9
xor ecx, ecx
cmp eax, 1
sete cl
lea esi, [rcx + rcx*2]
inc esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14019b960
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp byte [r14 + 0x27], 0
js 0x1402583e6
lea rcx, [r14 + 0x10]
jmp 0x1402583ea
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402583bb
shr eax, 3
and eax, 2
mov esi, eax
jne 0x1402583bb
mov byte [rbx + 0x48], 1
mov qword [rdi], r14
xor esi, esi
jmp 0x1402583bb
Function at 0x140269330
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 0x14026db40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x108]
lea ecx, [rdx + 4]
mov r11, rcx
shr r11, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x14026db9f
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x14026dbbb
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14, rcx
shr r14, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x14026dbe5
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x14026dc06
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov ecx, edx
mov r11, rcx
shr r11, 6
xor r10d, r10d
cmp r11, r8
jae 0x14026dc28
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x14026dc4e
dec edx
mov r10, rdx
shr r10, 6
xor ecx, ecx
cmp r10, r8
jae 0x14026dc4c
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14, 5
lea ecx, [r14 - 1]
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov rax, r15
shr rax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.14019dab0
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.14026a940
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x14026dc8a
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x14030e560]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov eax, dword [rdi + 0x148]
test eax, eax
jle 0x14026dd5b
xor ecx, ecx
xor edx, edx
or rdx, qword [rsi + rcx*8]
inc rcx
cmp rax, rcx
jne 0x14026dcf6
test rdx, rdx
sete dl
test rax, rax
je 0x14026ddac
movsxd rcx, eax
mov rax, qword [rdi + 0x140]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x14026dd30
mov r10, qword [rax + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x14026dd30
sbb r10, r10
movsxd rax, dword [rdi + 0x148]
mov ecx, eax
test rax, rax
jle 0x14026dd7a
xor r8d, r8d
jmp 0x14026dd6f
mov dl, 1
jmp 0x14026dd08
xor r9d, r9d
mov qword [rsp + r8*8 + 0x30], r9
inc r8
cmp rcx, r8
je 0x14026dd7a
test dl, dl
jne 0x14026dd5f
mov r9, qword [rsp + r8*8 + 0x30]
jmp 0x14026dd62
test rcx, rcx
je 0x14026ddac
and r14d, 1
neg r14
mov rcx, r14
not rcx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, r14
mov r9, qword [rsi + rdx*8]
and r9, rcx
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rax, rdx
jne 0x14026dd8e
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14019b960
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14028bc30
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 [0x140381038]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov qword [rcx + 8], rdx
mov eax, dword [0x1403a1bd0]
mov ecx, dword [0x140392e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14028beaf
mov rax, qword [0x1403a1bc8]
test rax, rax
je 0x14028bd1b
lea rdx, [rsp + 0x174]
mov dword [rdx], 0xaaaaaaaa
mov rcx, rdi
call qword [0x1403be008]
test eax, eax
je 0x14028bcc5
cmp dword [rsp + 0x174], 0
setne byte [rsi + 0x81]
je 0x14028bd22
mov byte [rsi + 0x80], 0
mov dl, 1
jmp 0x14028bd57
mov ecx, 2
call fcn.14014d760
test al, al
je 0x14028bd1b
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.140216190
lea rcx, [rsp + 0x40]
lea rdx, [0x14032e140]
mov r8d, reloc.WS2_32.dll_ntohl
call fcn.1401d6c00
mov rcx, rbx
call fcn.140216210
mov byte [rsi + 0x81], 0
movaps xmm0, xmmword [0x14030e560]
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.14028bf00
test al, al
jne 0x14028bde1
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x14028bda0
xor esi, esi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.14019b960
mov eax, esi
add rsp, 0x180
pop rbx
pop rdi
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x21e
mov r9d, 2
call fcn.14007ca10
lea rcx, [rsp + 0x40]
lea rdx, str.GetProcessBasicInformation_failed
mov r8d, 0x21
call fcn.1401d6c00
mov rcx, rsi
call fcn.14007cf40
jmp 0x14028bd81
cmp byte [rsi + 0x80], 0
mov rdx, qword [rsi + 0x28]
mov rcx, rdi
mov r8, rsi
je 0x14028bdfb
call fcn.14028c140
jmp 0x14028be00
call fcn.14028c7c0
test al, al
jne 0x14028be4a
mov ecx, 2
call fcn.14014d760
test al, al
je 0x14028bd81
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x227
mov r9d, 2
call fcn.14007ca10
lea rcx, [rsp + 0x40]
lea rdx, str.ReadProcessData_failed
mov r8d, 0x16
jmp 0x14028bdd2
mov dl, byte [rsi + 0x80]
mov rcx, rdi
mov r8, rsi
call fcn.1400db550
mov sil, 1
test al, al
jne 0x14028bd83
mov ecx, 2
call fcn.14014d760
test al, al
je 0x14028bd81
lea rdx, str....._third_partycrashpadcrashpadutilwinprocess_info.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x22c
mov r9d, 2
call fcn.14007ca10
lea rcx, [rsp + 0x40]
lea rdx, str.ReadMemoryInfo_failed
mov r8d, 0x15
jmp 0x14028bdd2
lea rcx, [0x1403a1bd0]
call fcn.14019a1f0
cmp dword [0x1403a1bd0], 0xffffffff
jne 0x14028bc7b
lea rcx, [0x140315ffc]
lea rdx, str.::IsWow64Process
xor r8d, r8d
call fcn.1400dca90
mov qword [0x1403a1bc8], rax
lea rcx, [0x1403a1bd0]
call fcn.14019a288
jmp 0x14028bc7b
Function at 0x140290310
Capabilities:
Read http header

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, r9
mov rbx, r8
mov ebp, edx
mov r14, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r12, [rsp + 0x4c]
mov dword [r12], 0
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r15d, 0x80004005
cmovne r15d, ecx
cmp r15d, 0x8007007a
jne 0x14029040b
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14030e560]
movaps xmmword [rdi], xmm0
mov edx, dword [rsp + 0x4c]
shr rdx, 1
mov rcx, rdi
call fcn.140137f50
mov r9, qword [rdi]
cmp r9, qword [rdi + 8]
je 0x140290452
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], 0
mov rcx, r14
mov edx, ebp
mov r8, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14029042a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r15d, 0x80004005
cmovne r15d, ecx
lea rcx, [rsp + 0x50]
mov qword [rcx], rdi
call fcn.14012ebc0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14019b960
mov eax, r15d
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edx, dword [rsp + 0x4c]
shr rdx, 1
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.14003e030
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rsi
call fcn.140290480
xor r15d, r15d
jmp 0x1402903fe
lea rax, str.front___called_on_an_empty_vector
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_vector
lea r9, str._empty__
mov r8d, 0x274
call fcn.1401dac90
int3

Function at 0x140290640
Capabilities:
Read http header

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x38], rax
or edx, 0x20000000
lea rax, [rsp + 0x34]
mov dword [rax], 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor esi, esi
test eax, eax
jne 0x14029069b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14019b960
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140296530
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 [0x140381038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14029655a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140296579
mov edi, eax
bt eax, 0xa
jae 0x140296571
test bl, bl
je 0x140296587
and edi, 0x10
shr edi, 4
jmp 0x140296589
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x1402965a6
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019b960
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.140216190
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401d6c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1402965f6
and r8d, 0x7f
jmp 0x1402965fd
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14029662d
and r8d, 0x7f
jmp 0x140296637
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
cmp byte [rsp + 0x57], 0
jns 0x140296653
mov rcx, qword [rsp + 0x40]
call fcn.14019a0bc
lea rcx, [rsp + 0x58]
call fcn.140216210
jmp 0x140296587
Function at 0x140296670
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x14029669b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1402966cb
test bl, bl
je 0x1402966bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1402966e8
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x14029670c
xor edi, edi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14019b960
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.140296530
test al, al
jne 0x1402966cb
mov ecx, 2
call fcn.14014d760
test al, al
je 0x1402966c9
jmp 0x1402967d7
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.140216190
lea rcx, [rsp + 0x50]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401d6c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14029675c
and r8d, 0x7f
jmp 0x140296763
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140296796
and r8d, 0x7f
jmp 0x1402967a6
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
cmp byte [rsp + 0x1a7], 0
jns 0x1402967c8
mov rcx, qword [rsp + 0x190]
call fcn.14019a0bc
lea rcx, [rsp + 0x40]
call fcn.140216210
jmp 0x1402966c9
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x5d
mov r9d, 2
call fcn.14007ca10
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140296804
and r8d, 0x7f
jmp 0x14029680b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rdi, [rsp + 0x50]
lea rbx, [rsp + 0x180]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x190]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140296846
and r8d, 0x7f
jmp 0x140296856
mov r8, qword [rsp + 0x198]
mov rsi, qword [rsp + 0x190]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.1401d6c00
cmp byte [rsp + 0x1a7], 0
jns 0x14029688d
mov rcx, qword [rsp + 0x190]
call fcn.14019a0bc
lea rcx, [rsp + 0x40]
call fcn.14007cf40
jmp 0x1402966c9
Function at 0x1402968a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1402968c8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1402968f9
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019b960
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x14029690b
xor esi, esi
jmp 0x1402968dc
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, 0x75
mov r9d, 2
call fcn.140216190
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401d6c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14029695b
and r8d, 0x7f
jmp 0x140296962
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140296992
and r8d, 0x7f
jmp 0x14029699c
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
cmp byte [rsp + 0x57], 0
jns 0x1402969b8
mov rcx, qword [rsp + 0x40]
call fcn.14019a0bc
lea rcx, [rsp + 0x58]
call fcn.140216210
jmp 0x140296907
Function at 0x1402969d0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1402969f8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140296a0f
and eax, 0x410
cmp eax, 0x410
je 0x140296a55
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140296a1b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x140296a38
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x140296a77
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019b960
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019b960
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.140296b40
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, 0x95
mov r9d, 2
call fcn.140216190
lea rcx, [rsp + 0x68]
lea rdx, str.DeleteFile
mov r8d, ntohl
call fcn.1401d6c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140296ac7
and r8d, 0x7f
jmp 0x140296ace
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1401249b0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140143230
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140296afe
and r8d, 0x7f
jmp 0x140296b08
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401d6c00
cmp byte [rsp + 0x57], 0
jns 0x140296b24
mov rcx, qword [rsp + 0x40]
call fcn.14019a0bc
lea rcx, [rsp + 0x58]
call fcn.140216210
jmp 0x140296a36
Function at 0x140296b40
Capabilities:
Delete directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x198
mov rdi, rcx
mov rax, qword [0x140381038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140296b6a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test eax, eax
jne 0x140296b84
mov ecx, 2
call fcn.14014d760
test al, al
jne 0x140296ba8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14019b960
mov eax, ebx
add rsp, 0x198
pop rbx
pop rdi
pop rsi
pop r14
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x30
mov r9d, 2
call fcn.140216190
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.1401d6c00
mov rbx, rax
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x140296bf8
and r8d, 0x7f
jmp 0x140296bff
mov r8, qword [rdi + 8]
mov rdi, qword [rdi]
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rdi
call fcn.1401249b0
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, r14
call fcn.140143230
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x140296c2f
and r8d, 0x7f
jmp 0x140296c39
mov r8, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
mov rdx, rdi
call fcn.1401d6c00
cmp byte [rsp + 0x4f], 0
jns 0x140296c55
mov rcx, qword [rsp + 0x38]
call fcn.14019a0bc
lea rcx, [rsp + 0x50]
call fcn.140216210
jmp 0x140296b84

Function at 0x140299b90
Capabilities:
Enumerate processes

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
lea rsi, [rcx + 0x18]
mov r8d, 0x238
mov rcx, rsi
xor edx, edx
call fcn.14019dab0
mov dword [rdi + 0x18], 0x238
cmp byte [rdi + 0x10], 0
je 0x140299bd2
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
mov byte [rdi + 0x10], 1
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140299bc6

Function at 0x1402ab730
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov eax, dword [0x1403a22b0]
mov ecx, dword [0x140392e40]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402ab790
cmp rdi, rsi
je 0x1402ab78c
mov eax, 0xffffffff
lea rcx, [0x1403a1eb0]
mov dl, byte [rdi]
xor dl, al
movzx edx, dl
shr eax, 8
xor eax, dword [rcx + rdx*4]
inc rdi
cmp rdi, rsi
jne 0x1402ab76e
not eax
add rsp, 0x28
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x1402ab785
lea rcx, [0x1403a22b0]
call fcn.14019a1f0
cmp dword [0x1403a22b0], 0xffffffff
jne 0x1402ab75d
call fcn.1402ab7c0
lea rcx, [0x1403a22b0]
call fcn.14019a288
jmp 0x1402ab75d