joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e17e0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400e1818
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x1400e17f1
ret

Function at 0x1400e77f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x1400e785d
movzx edx, word [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov word [rsp + 0x20], dx
mov rdx, rsi
mov r8, rdi
call qword [0x14016a008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x1400e783f
call fcn.140082ec0
jmp 0x1400e783f
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.14002d530
lea rdx, [0x14015ade0]
mov rcx, rbx
call fcn.14003969c
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x1400e789d
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14016a008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14011cbd0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x14016a008]
movzx eax, byte [rbx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
cmovs r8, rdx
test r8, r8
je 0x1400e784f
test al, al
mov r14, rbx
cmovs r14, rcx
jmp 0x1400e7948
xor edi, edi
jmp 0x1400e791f
lea rdx, [rcx + 2]
mov qword [rdi + 0x30], rdx
mov word [rcx], ax
cmp ax, 0xffff
jne 0x1400e7914
xor edi, edi
mov al, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add r14, 2
mov r8d, eax
and r8b, 0x7f
test al, al
mov r9, rbx
cmovs r9, rcx
movzx r8d, r8b
cmovs r8, rdx
lea r8, [r9 + r8*2]
cmp r14, r8
je 0x1400e784f
test rdi, rdi
je 0x1400e78fd
movzx eax, word [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
jne 0x1400e7901
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x14016a008]
jmp 0x1400e790c
Function at 0x1400f7240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebp, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14011cbd0]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.PathHasAccess
lea r8, [0x1401244f8]
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x2cc
call fcn.140043d30
xor ebx, ebx
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14004a1f0
cmp byte [rdi + 0x17], 0
jns 0x1400f72c2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400f7340
test al, 0x10
cmove esi, ebp
mov eax, 0x80
mov ecx, 0x2000000
cmove ecx, eax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, esi
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rsi, [rsp + 0x40]
mov qword [rsi], rbx
mov rcx, rsi
mov rdx, rax
call fcn.14002c842
mov rax, qword [rsi]
inc rax
test rax, 0xfffffffffffffffe
setne bl
cmp rax, 2
jb 0x1400f7340
call fcn.140043d50
mov rcx, qword [rsp + 0x40]
call fcn.14003bb20
lea rcx, [rsp + 0x60]
call fcn.14004a250
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebx
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400f7590
Capabilities:
Identify system language via api

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
mov qword [r8], 0
lea r9, [rsp + 0x24]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400f75f7
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx]
movzx edi, word [rcx + 2]
shl edi, 0x10
movzx esi, ax
or esi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400843b0
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
ret
mov edi, 0x4e40000
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x1400f75dc
Function at 0x1400f77f0
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x270], rax
movzx eax, word [rcx + 0x28]
mov word [rsp + 0x260], ax
movzx eax, word [rcx + 0x2a]
mov word [rsp + 0x262], ax
mov rsi, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call rsi
mov word [rsp + 0x264], ax
movzx eax, word [rbx + 0x2a]
mov word [rsp + 0x266], ax
movzx eax, word [rbx + 0x28]
mov word [rsp + 0x268], ax
mov bp, 0x4e4
mov word [rsp + 0x26a], bp
call rsi
mov word [rsp + 0x26c], ax
mov word [rsp + 0x26e], bp
xor esi, esi
lea r14, [rsp + 0x50]
lea r15, str.StringFileInfo_04x_04x_ls
lea r12, [rsp + 0x48]
lea r13, [rsp + 0x44]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140086500
movzx eax, word [rsp + rsi*4 + 0x262]
movzx ecx, word [rsp + rsi*4 + 0x260]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov edx, 0x104
mov r8d, 0x104
mov rcx, r14
mov r9, r15
call fcn.1400f7970
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0xaaaaaaaa
mov rcx, qword [rbx + 0x20]
mov rdx, r14
mov r8, r12
mov r9, r13
call sub.VERSION.dll_VerQueryValueW
test eax, eax
setne al
mov rdx, qword [rsp + 0x48]
test rdx, rdx
setne cl
mov r8d, dword [rsp + 0x44]
test r8d, r8d
setne bpl
and bpl, cl
and bpl, al
cmp bpl, 1
je 0x1400f7958
inc rsi
cmp rsi, 4
jne 0x1400f7897
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebp
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
dec r8d
mov rcx, qword [rsp + 0x38]
call fcn.14003c120
jmp 0x1400f7932

Function at 0x1400f8a10
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, r8
mov rcx, qword [0x140143038]
xor rcx, rsp
mov qword [rsp + 0x88], rcx
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx r8d, byte [r8 + 0x17]
test r8b, r8b
js 0x1400f8a47
and r8d, 0x7f
jmp 0x1400f8a4e
mov r8, qword [rax + 8]
mov rax, qword [rax]
lea rdi, [rsp + 0x60]
mov rcx, rdi
mov rdx, rax
call fcn.140023118
lea rsi, [rsp + 0x70]
mov rcx, rsi
mov rdx, rdi
call fcn.14003ca10
cmp byte [rsi + 0x17], 0
jns 0x1400f8a79
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.14003ca10
cmp byte [rdi + 0x17], 0
jns 0x1400f8a9e
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 0x1400f8abd
mov rcx, qword [rsp + 0x48]
call fcn.140082ec0
cmp byte [rsp + 0x87], 0
jns 0x1400f8ad1
mov rcx, qword [rsp + 0x70]
call fcn.140082ec0
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400f9f6c
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x14015bc40]
test rdx, rdx
je 0x1400f9fec
mov rcx, rdi
call fcn.14002c9dc
mov dil, 1
test rsi, rsi
je 0x1400f9fc4
mov rdx, qword [0x14015bc48]
mov rcx, rsi
call fcn.14002c9dc
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400843b0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x18
call fcn.140082e84
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor r15d, r15d
mov qword [rax + 0x10], r15
mov qword [0x14015bc40], rax
mov ecx, 0x18
call fcn.140082e84
mov r14, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r15
mov qword [0x14015bc48], rax
call fcn.140067e88
mov rax, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea r12, str.user_data_dir
mov rcx, r12
call fcn.1400a3324
lea r13, [rsp + 0x38]
mov rcx, r13
mov rdx, r12
mov r8, rax
call fcn.14003ac62
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r12, [rsp + 0x20]
mov rcx, r12
mov rdx, rax
call fcn.140057d94
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, r12
mov r8, r13
call fcn.14006743b
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, r14
call fcn.1400f9920
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x1400fa0a3
mov rcx, qword [rsp + 0x50]
call fcn.140082ec0
cmp byte [rsp + 0x37], 0
jns 0x1400fa0b4
mov rcx, qword [rsp + 0x20]
call fcn.140082ec0
cmp byte [rsp + 0x4f], 0
jns 0x1400fa0c5
mov rcx, qword [rsp + 0x38]
call fcn.140082ec0
test bl, bl
je 0x1400fa0d5
mov rdx, qword [0x14015bc40]
jmp 0x1400f9fa5
xor edi, edi
jmp 0x1400f9fc4
Function at 0x1400fa620
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400fa678
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400843b0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ebx, eax
mov edx, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x14011cbd0]
movaps xmmword [r14], xmm0
mov rcx, r14
xor r8d, r8d
call fcn.14005c18a
cmp byte [r14 + 0x17], 0
jns 0x1400fa6b1
mov r14, qword [rsp + 0x20]
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400fa6de
mov edx, eax
movzx eax, byte [rsp + 0x37]
test al, al
js 0x1400fa6d4
and eax, 0x7f
jmp 0x1400fa6d9
mov rax, qword [rsp + 0x28]
cmp rax, rdx
ja 0x1400fa706
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
cmp byte [rsp + 0x37], 0
jns 0x1400fa65e
mov rcx, qword [rsp + 0x20]
call fcn.140082ec0
jmp 0x1400fa65e
lea rdi, [rsp + 0x20]
mov rcx, rdi
xor r8d, r8d
call fcn.14003b3f0
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
jmp 0x1400fa6ec

Function at 0x1400fa734
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x17], 0
jns 0x1400fa741
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 0x1400fa756
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400fa77e
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400fa7e2
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rdx, [0x140125330]
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.1400fa972
cmp rax, 0xffffffffffffffff
jne 0x1400fa833
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
je 0x1400fa881
cmp byte [rsp + 0x57], 0
jns 0x1400fa819
mov rcx, qword [rsp + 0x40]
call fcn.140082ec0
jmp 0x1400fa819
test al, 0x10
je 0x1400fa801
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400fa8f9
mov dil, 1
jmp 0x1400fa819
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400fa8f9
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400843b0
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x67]
mov qword [rsp + 0x20], rcx
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rax
call fcn.14003b16c
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.1400fa756
test al, al
jne 0x1400fa7b9
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.1400fa8f9
jmp 0x1400fa8f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400fa8e0
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.140057d94
cmp byte [r14 + 0x17], 0
jns 0x1400fa8ac
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x1400fa8d7
mov rcx, qword [rsp + 0x28]
call fcn.140082ec0
test bpl, bpl
jne 0x1400fa7cf
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.1400fa8f9
xor edi, edi
jmp 0x1400fa7cf

Function at 0x1400fa8f9
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.1400234e0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x14015bc60]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140087904
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400843b0
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400fb860
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x14015c4d0]
test rax, rax
jne 0x1400fb8a4
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x14015c4d0]
test rax, rax
je 0x1400fb891
cmp eax, 2
jne 0x1400fb8fc
mov ecx, 2
call fcn.140041fb0
test al, al
je 0x1400fb95f
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x94
mov r9d, 2
call fcn.1400616f0
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch
mov r8d, 0x1d
call fcn.140027259
mov rcx, rsi
call fcn.1400823c0
jmp 0x1400fb95f
mov eax, 1
lock xadd qword [0x14015c508], rax
inc rax
cmp rax, 2
jl 0x1400fb920
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14015c490], eax
mov qword [0x14015c488], rsi
mov rcx, qword [0x140151180]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
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.1400843b0
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret

Function at 0x1400fc209
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x1400fc230
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fc24b
and eax, 0x410
cmp eax, 0x410
je 0x1400fc2e3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400fc257
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x1400fc2c7
mov ecx, 2
call fcn.140041fb0
test al, al
je 0x1400fc2c5
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x93
mov r9d, 2
call fcn.140061d70
lea rcx, [rsp + 0x40]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.140027259
mov rcx, rax
mov rdx, rsi
call fcn.140062760
mov rcx, rdi
call fcn.140061df0
xor edi, edi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400843b0
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400843b0
mov rcx, rsi
add rsp, 0x178
pop rdi
pop rsi
jmp fcn.1400fc304
Function at 0x1400fc304
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x1400fc32c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
je 0x1400fc35a
test edi, edi
setne bl
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebx
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140041fb0
test al, al
je 0x1400fc338
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x2f
mov r9d, 2
call fcn.140061d70
lea rcx, [rsp + 0x38]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140027259
mov rcx, rax
mov rdx, rsi
call fcn.140062760
mov rcx, rbx
call fcn.140061df0
jmp 0x1400fc338

Function at 0x1400fc930
Capabilities:
Write file on windows

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.14007f9f9
Function at 0x1401005b0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x20], xmm6
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
pxor xmm0, xmmword [rdi + rax]
movdqa xmmword [rsi + rax], xmm0
add rax, 0x10
cmp rax, 0x80
jne 0x1401005e0
cmp rbx, 2
jb 0x1401006c8
lea r14, [rdi + 0x80]
mov r15d, 1
movdqa xmm6, xmmword [0x140127f50]
movdqa xmm7, xmmword [0x140127f60]
movdqa xmm8, xmmword [0x140127f70]
movdqa xmm9, xmmword [0x140127f80]
mov rcx, rsi
call fcn.1401012a0
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
movdqa xmm1, xmm0
pand xmm1, xmm6
pshufd xmm2, xmm0, 0x39
pand xmm2, xmm7
por xmm2, xmm1
pshufd xmm1, xmm0, 0x4e
pand xmm0, xmm8
movdqa xmm3, xmm0
pslldq xmm3, 4
psrldq xmm0, 0xc
por xmm0, xmm3
pand xmm1, xmm9
por xmm1, xmm0
por xmm1, xmm2
movdqa xmmword [rsi + rax], xmm1
add rax, 0x10
cmp rax, 0x80
jne 0x14010063e
mov rcx, rsi
call fcn.140101780
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
pxor xmm0, xmmword [r14 + rax]
movdqa xmmword [rsi + rax], xmm0
add rax, 0x10
cmp rax, 0x80
jne 0x14010069c
inc r15
sub r14, 0xffffffffffffff80
cmp r15, rbx
jne 0x140100634
mov rcx, rsi
call fcn.1401012a0
xor eax, eax
movdqa xmm0, xmmword [0x140127f50]
movdqa xmm1, xmmword [0x140127f60]
movdqa xmm2, xmmword [0x140127f70]
movdqa xmm3, xmmword [0x140127f80]
movdqa xmm4, xmmword [rsi + rax]
movdqa xmm5, xmm4
pand xmm5, xmm0
pshufd xmm6, xmm4, 0x39
pand xmm6, xmm1
por xmm6, xmm5
pshufd xmm5, xmm4, 0x4e
pand xmm4, xmm2
movdqa xmm7, xmm4
pslldq xmm7, 4
psrldq xmm4, 0xc
por xmm4, xmm7
pand xmm5, xmm3
por xmm5, xmm4
por xmm5, xmm6
movdqa xmmword [rsi + rax], xmm5
add rax, 0x10
cmp rax, 0x80
jne 0x1401006f2
shl rbx, 7
add rdi, rbx
xor eax, eax
movdqa xmm0, xmmword [rsi + rax]
pxor xmm0, xmmword [rdi + rax]
movdqa xmmword [rsi + rax], xmm0
add rax, 0x10
cmp rax, 0x80
jne 0x14010074d
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140100f80
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14011cbd0]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
je 0x140100fe8
xor edi, edi
cmp r9, 0x30
ja 0x14010100a
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
jne 0x140100fd8
mov r8d, 0x30
mov rcx, rsi
call fcn.14006f570
test eax, eax
je 0x140101020
mov qword [rsi + 0x118], 1
mov edi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400843b0
mov eax, edi
add rsp, 0x58
pop rdi
pop rsi
ret
xor edi, edi
jmp 0x14010100a
Function at 0x14010b010
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14010b020
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 0x14010b041
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14010b061
cmp byte [r14 + 0x50], 0
je 0x14010b125
or edi, 0x80000000
test dil, 8
je 0x14010b078
cmp byte [r14 + 0x68], 0
je 0x14010b130
or edi, 0x40000000
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14010b08c
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14010b09d
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
je 0x14010b0b0
lea rcx, [r14 + 0x20]
call fcn.1400691c0
mov r15, rax
cmp byte [r14 + 0x18], 0
je 0x14010b120
mov rcx, r14
call fcn.1400691c0
mov r9, rax
cmp ebx, 4
ja case.default.0x14010b0db
mov eax, ebx
lea rcx, [0x14012c834]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov edx, 7
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
je 0x14010b10b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
jmp 0x14010b0c2
or edi, 0x20000000
jmp 0x14010b061
or edi, 0x10000000
jmp 0x14010b078
mov edx, 6
jmp 0x14010b0e2
mov edx, 1
jmp 0x14010b0e2
mov edx, 4
jmp 0x14010b0e2
xor edx, edx
jmp 0x14010b0e2
Function at 0x140002ad0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002b1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002b1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002b1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002b1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002b1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002b1c
xor al, al
add rsp, 0x28
ret