joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006b1b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18006b300
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18006b2b3
mov rax, qword [0x180086040]
cmp qword [rsp + 0x20], rax
jb 0x18006b20b
mov rax, qword [0x180086048]
cmp qword [rsp + 0x20], rax
ja 0x18006b20b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18006b1cd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18006b23a
jmp 0x18006b2b3
cmp dword [rsp + 0x50], 0x10000
jne 0x18006b291
cmp qword [rsp + 0x48], 0x10000
jb 0x18006b291
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18006b27f
mov rax, qword [rsp + 0x28]
jmp 0x18006b2b5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18006b2ae
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18006b300
mov qword [rsp + 0x20], rax
jmp 0x18006b1cd
xor eax, eax
add rsp, 0x68
ret
Function at 0x18006b350
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18006b8e0
mov qword [rsp + 0x28], 0
cmp qword [0x180086978], 0
jne 0x18006b398
cmp qword [0x180086970], 0
je 0x18006b398
mov rax, qword [0x180086970]
mov qword [0x180086978], rax
cmp qword [0x180086978], 0
je 0x18006b43e
mov rax, qword [0x180086978]
cmp qword [rax + 0x10], 0
je 0x18006b43e
mov rax, qword [0x180086978]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006b43e
mov rax, qword [0x180086978]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006b43e
mov rax, qword [0x180086978]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18006b404
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18006b40b
xor eax, eax
jmp 0x18006b5b9
mov rax, qword [0x180086978]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18006b5b9
mov rax, qword [0x180086970]
mov qword [0x180086978], rax
jmp 0x18006b460
mov rax, qword [0x180086978]
mov rax, qword [rax + 8]
mov qword [0x180086978], rax
cmp qword [0x180086978], 0
je 0x18006b4ad
cmp qword [0x180086978], 0
je 0x18006b4ab
mov rax, qword [0x180086978]
cmp qword [rax + 0x10], 0
je 0x18006b4ab
mov rax, qword [0x180086978]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006b4ab
mov rax, qword [0x180086978]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006b4ab
jmp 0x18006b3dc
jmp 0x18006b44e
mov rcx, qword [rsp + 0x60]
call fcn.18006d510
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18006b5c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18006b5b7
mov rax, qword [rsp + 0x48]
mov qword [0x180086978], rax
mov rax, qword [0x180086978]
mov dword [rax], 0x52727464
mov rax, qword [0x180086978]
mov qword [rax + 0x10], 0
mov rax, qword [0x180086978]
mov rcx, qword [0x180086970]
mov qword [rax + 8], rcx
mov rax, qword [0x180086978]
mov qword [0x180086970], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180086978]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18006b568
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18006b5a2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18006b55e
mov rax, qword [0x180086978]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18006b3dc
xor eax, eax
add rsp, 0x58
ret
Function at 0x140005490
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14000550e
mov rax, 0xffffffffffffffff
xor edx, edx
div rsi
mov rcx, 0xfffffffffffffffe
sub rcx, rdx
mov rax, qword [rsp + 0x20]
cmp rax, rcx
ja 0x1400054b8
xor edx, edx
div rsi
mov rsi, rdx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14011fe20
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
int3

Function at 0x140005fc0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14011d790
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14005d740]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.14011d6ac
mov qword [rbx], rax
test rax, rax
je 0x140006017
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140009350
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140009377
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400093b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400093d0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14011fe20
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140009530
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d5300
test al, al
jne 0x1400093e2
xor esi, esi
jmp 0x1400093b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x265
mov r9d, 2
call fcn.14016e140
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.140152d20
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1400fe510
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140009462
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140152d20
cmp byte [rsp + 0x4f], 0
jns 0x14000947e
mov rcx, qword [rsp + 0x38]
call fcn.14011d780
lea rcx, [rsp + 0x50]
call fcn.14016e1c0
jmp 0x1400093de
Function at 0x140009530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140009557
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009589
mov dil, 1
test al, 0x10
je 0x140009643
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14011fe20
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d5300
test al, al
je 0x140009651
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x250
mov r9d, 2
call fcn.14016e140
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140152d20
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1400fe510
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14000961b
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.140152d20
cmp byte [rsp + 0x5f], 0
jns 0x140009637
mov rcx, qword [rsp + 0x48]
call fcn.14011d780
lea rcx, [rsp + 0x60]
call fcn.14016e1c0
jmp 0x140009651
mov ecx, 2
call fcn.1400d5300
test al, al
jne 0x140009658
xor edi, edi
jmp 0x14000956d
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x254
mov r9d, 2
call fcn.14000c5c0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.140152d20
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1400fe510
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400096ce
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.140152d20
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.140152d20
cmp byte [rsp + 0x5f], 0
jns 0x1400096ff
mov rcx, qword [rsp + 0x48]
call fcn.14011d780
lea rcx, [rsp + 0x60]
call fcn.14000c690
jmp 0x140009651
Function at 0x14000abe0
Capabilities:
Delete file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, qword [0x1402256a0]
test rdi, rdi
je 0x14000ac35
lea rbx, [0x1401f9c93]
mov rcx, rdi
mov rdx, rbx
call fcn.1400d5150
test al, al
jne 0x14000ac65
lea rdx, str.vmodule
mov rcx, rdi
call fcn.1400d5150
test al, al
jne 0x14000ac65
mov eax, dword [rsi]
mov dword [0x14021ae98], eax
mov bl, 1
test al, 1
jne 0x14000ad1b
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14011fe20
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp qword [0x1402256a8], 0
jne 0x14000adac
mov rax, qword [0x1402256b0]
mov qword [0x1402256a8], rax
mov ecx, 0x20
call fcn.14011d790
mov r14, rax
lea rax, str.vmodule
lea r8, [rsp + 0x50]
mov qword [r8], rax
mov qword [r8 + 8], 7
lea r15, [rsp + 0x60]
mov rcx, rdi
mov rdx, r15
call fcn.1400fe320
lea r8, [rsp + 0x28]
mov qword [r8], rbx
mov qword [r8 + 8], 1
lea rbx, [rsp + 0x38]
mov rcx, rdi
mov rdx, rbx
call fcn.1400fe320
lea r9, [0x1402256b8]
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140176680
mov qword [0x1402256b0], r14
cmp byte [rbx + 0x17], 0
jns 0x14000ad01
mov rcx, qword [rsp + 0x38]
call fcn.14011d780
cmp byte [rsp + 0x77], 0
jns 0x14000ac35
mov rcx, qword [rsp + 0x60]
call fcn.14011d780
jmp 0x14000ac35
mov rcx, qword [0x1402256c8]
test rcx, rcx
jne 0x14000ad35
mov rcx, qword [0x1402256c0]
test rcx, rcx
je 0x14000ad59
jmp 0x14000ad7b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1402256c8], 0
mov rcx, qword [0x1402256c0]
test rcx, rcx
jne 0x14000ad7b
and byte [0x14021ae98], 0xfe
mov ecx, 0x18
call fcn.14011d790
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1402256c0], rax
mov rdx, qword [rsi + 8]
call fcn.14001a6e0
cmp dword [rsi + 0x14], 0
jne 0x14000ada0
mov rcx, qword [0x1402256c0]
cmp byte [rcx + 0x17], 0
jns 0x14000ad9a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.14016db40
mov ebx, eax
jmp 0x14000ac47
int3

Function at 0x14000afe0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140009bb0
test rax, rax
jne 0x14000b01f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14000b03b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14011fe20
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d5300
test al, al
jne 0x14000b04d
xor esi, esi
jmp 0x14000b01f
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, [0x140205328]
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.14016e140
lea rcx, [rsp + 0x40]
lea rdx, [0x140205376]
mov r8d, 0xc
call fcn.140152d20
mov rcx, rsi
call fcn.14016e1c0
jmp 0x14000b049
Function at 0x140012fc0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rdx
mov rsi, rcx
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x14021aed0]
cmp ecx, 0xffffffff
je 0x14001309e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14001309e
mov eax, dword [0x140227018]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400130a8
mov rbx, qword [0x140227010]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400130ea
mov rax, qword [0x140225800]
inc rax
xor ecx, ecx
lea r8, [0x140225810]
lea edx, [rax + rcx]
movzx edi, dl
lea rdx, [rdi + rdi*2]
cmp dword [r8 + rdx*8], 0
jne 0x1400130f7
lea rax, [r8 + rdx*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140225800], rdi
mov dword [rsi], edi
mov eax, dword [rax + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
cmp eax, 0xffffffff
je 0x14001310c
cmp eax, 0x100
jge 0x14001310f
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140013120
jmp 0x140012ff4
lea rcx, [0x140227018]
call fcn.14011d638
cmp dword [0x140227018], 0xffffffff
jne 0x140013019
mov ecx, 8
call fcn.14011d790
mov qword [rax], 0
mov qword [0x140227010], rax
lea rcx, [0x140227018]
call fcn.14011d5d8
jmp 0x140013019
mov rcx, rbx
call fcn.1400fd520
jmp 0x140013031
inc rcx
cmp rcx, 0x100
jne 0x140013044
jmp 0x140013076
int3
int3

Function at 0x140013120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.14011fdb0
sub rsp, rax
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14021aed0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400131d7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140013215
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140122050
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
mov rbx, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rbx
mov ecx, 0x1000
call fcn.14011dd70
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140121c40
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call rbx
mov rcx, qword [rsp + 0x1038]
xor rcx, rsp
call fcn.14011fe20
mov rax, rdi
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140013670
test al, al
je 0x140013218
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14001321b
mov eax, 0xffffffff
lock cmpxchg dword [0x14021aed0], ecx
je 0x140013159
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14021aed0]
mov dword [rsp + 0x2c], ecx
jmp 0x140013159
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140013670
test al, al
je 0x140013240
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140013240
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400131ee
int3
Function at 0x140013670
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 0x140013685
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140014b90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140014bd8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140014be1
lea rax, [rsi + 1]
cmp rax, 2
jb case.default.0x140014bd1
mov qword [rdi], rsi
call fcn.1400d3890
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d3890
mov rcx, qword [rdi]
call fcn.140101910
mov qword [rdi], 0
jmp 0x140014bb6
invalid
lock xor byte [rsi], dh
fsubr qword [rdi - 0x31]
mov esi, 0xbbbdb564
mov ch, 0xbd
mov ebx, 0x6fadb566

Function at 0x140014e80
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140014f90
mov qword [rsi], 0
test rax, rax
je 0x140014ed5
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140014f0b
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140014ecd
mov qword [rsi], rbx
call fcn.1400d3890
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.1400f5d80
lea rcx, [rsi + 0x20]
call fcn.1400f5d70
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400d3890
mov r14, qword [rsi]
cmp qword [0x140227818], 0
je 0x140014f3f
mov rcx, qword [0x140227818]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14023a010]
mov qword [rsi], 0
jmp 0x140014ebb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401fcfb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140014f80
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140014f7a
call qword [0x14023a010]
mov rcx, rax
xor edx, edx
call fcn.140019730
jmp 0x140014f1d
xor ecx, ecx
mov dl, 1
jmp 0x140014f73
xor ecx, ecx
jmp 0x140014f71
Function at 0x1400153c0
Capabilities:
Get file size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x80]
mov qword [rbx + 0x50], r14
movaps xmm6, xmmword [0x1401efb80]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x9c
call fcn.1400ddbb0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call fcn.1400f4dd0
test byte [0x14021afd0], 0x19
jne 0x1400154ba
lea rdi, [rsp + 0x40]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, eax
mov rbx, qword [rdi]
test byte [0x14021afd0], 0x19
jne 0x1400154d0
xor edi, edi
cmp esi, 1
sbb rdi, rdi
or rdi, rbx
lea rcx, [rsp + 0x80]
call fcn.1400f5610
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14011fe20
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, [rsp + 0x68]
mov qword [rdx], rdi
lea rcx, str.ScopedBlockingCall
call fcn.140171970
jmp 0x140015456
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r14
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14021afd0]
lea r9, [0x1401f52ba]
mov rcx, rdi
mov dl, 0x45
call fcn.1400d32d0
mov rdi, qword [rdi]
test rdi, rdi
je 0x14001552d
mov r15, qword [rsp + 0x48]
lea r14, [rsp + 0x68]
mov rcx, r14
xor edx, edx
call fcn.1400dead0
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], r15
mov rcx, r14
call fcn.1401033f0
lea rcx, [rsp + 0x40]
call fcn.1401033d0
jmp 0x140015478
Function at 0x14001a3b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402270d0]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001a410
lea rsi, [0x1402270c8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14011fe20
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402270d0]
call fcn.14011d638
cmp dword [0x1402270d0], 0xffffffff
jne 0x14001a3ec
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140122050
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14011d790
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140227118]
mov ecx, dword [0x140222a94]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001a4c9
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, edi
call fcn.140032eb0
mov qword [0x1402270c8], rsi
lea rcx, [0x1402270d0]
call fcn.14011d5d8
jmp 0x14001a3ec
lea rcx, [0x140227118]
call fcn.14011d638
cmp dword [0x140227118], 0xffffffff
jne 0x14001a4a1
xorps xmm0, xmm0
movups xmmword [0x140227108], xmm0
movups xmmword [0x1402270f8], xmm0
movups xmmword [0x1402270e8], xmm0
lea rcx, [0x1402270e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140227118]
call fcn.14011d5d8
jmp 0x14001a4a1
Function at 0x14001e5d0
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140122050
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14001e7d0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x30]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x1401efb80]
movaps xmmword [rsi], xmm0
mov rcx, rbx
mov rdx, rsi
call fcn.14001ec70
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14001e663
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14001e71c
xor r14d, r14d
lea rdi, [rsp + 0x48]
lea r13, [rsp + 0x298]
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov r8d, 0x250
mov rcx, rdi
mov dl, 0xaa
call fcn.140122050
mov rcx, r13
mov rdx, rdi
call fcn.14001e790
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14001e759
xor ebp, ebp
test dl, 0x10
jne 0x14001e6e0
cmp byte [rsp + 0x47], 0
mov rcx, rsi
jns 0x14001e6ca
mov rcx, qword [rsp + 0x30]
call r15
test eax, eax
jne 0x14001e6e0
call r12
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
cmove ebp, r14d
test ebx, ebx
cmovne ebp, ebx
mov rcx, r13
mov rdx, rdi
call fcn.14001ec70
mov rcx, rsi
mov rdx, rdi
call fcn.14010de20
mov rcx, rdi
call fcn.14010a440
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14001e711
mov rax, qword [rsp + 0x38]
mov ebx, ebp
test rax, rax
jne 0x14001e68c
lea rcx, [rsp + 0x30]
call fcn.14010a440
lea rcx, [rsp + 0x298]
call fcn.14001eb10
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14011fe20
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
test dl, 0x10
jne 0x14001e6e0
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14001e771
mov rcx, qword [rsp + 0x30]
jmp 0x14001e776
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [rsp + 0x48]
jmp 0x14001e6b4