joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400414e0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x578
mov byte [rsp + 0x37], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x570], rax
lea r14, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400e0440
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14005b410
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401879f0]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14005b620
movzx eax, byte [rdi + 0x17]
test al, al
js 0x140041578
and eax, 0x7f
jmp 0x14004157d
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140041654
lea r14, [rsp + 0x58]
lea r15, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400e0440
mov rcx, r15
mov rdx, r14
call fcn.14005b5d0
mov edx, dword [rsp + 0x58]
test dl, 1
jne 0x140041691
mov rcx, r14
call fcn.14005b400
test al, al
jne 0x1400416e6
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x1400415eb
mov rcx, qword [rsp + 0x40]
call r12
test eax, eax
jne 0x1400416df
call rbx
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, r14
call fcn.140024cf0
mov rcx, r15
mov rdx, r14
call fcn.14005b620
mov rcx, rdi
mov rdx, r14
call fcn.14004a2a0
mov rcx, r14
call fcn.1400b6470
movzx eax, byte [rsp + 0x57]
test al, al
js 0x140041643
and eax, 0x7f
jmp 0x140041648
mov rax, qword [rsp + 0x48]
mov r13d, ebp
test rax, rax
jne 0x1400415a4
lea rcx, [rsp + 0x40]
call fcn.1400b6470
lea rcx, [rsp + reloc.SHELL32.dll_IsUserAnAdmin]
call fcn.14005b560
mov rcx, qword [rsp + 0x570]
xor rcx, rsp
call fcn.1400de300
mov eax, ebp
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsp + 0x37], 0
je 0x1400416b9
cmp byte [rsp + 0x57], 0
js 0x1400416a6
lea rcx, [rsp + 0x40]
jmp 0x1400416ab
mov rcx, qword [rsp + 0x40]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400415cc
lea rcx, [rsp + 0x58]
call fcn.14005b400
test al, al
jne 0x1400416cd
mov edx, dword [rsp + 0x58]
jmp 0x140041698
lea rcx, [rsp + 0x58]
call fcn.14005b400
test al, al
je 0x1400415dc
xor ebp, ebp
jmp 0x140041608
xor ebp, ebp
cmp byte [rsp + 0x37], 0
je 0x140041608
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov rdx, rsi
mov r8b, 1
call fcn.1400414e0
mov ebp, eax
test eax, eax
jne 0x140041608
cmp byte [rsp + 0x57], 0
jns 0x140041723
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140041608
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x140041608
Function at 0x140042ab0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x140042c60
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400f953c
movaps xmm6, xmmword [0x1401879f0]
lea r14, [rsp + 0x80]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x48
call fcn.1400b5990
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400ac660
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.1400eff34
mov ecx, eax
call fcn.1400f073c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140042c64
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x1401eb008]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1400f91c4
test rax, rax
je 0x140042c03
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x140042c6f
add r15, r12
mov rcx, rbx
call fcn.1400f89b0
test eax, eax
je 0x140042c73
mov r12, r15
mov rcx, rbx
call fcn.1400f89dc
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x1401eb008]
lea rcx, [rsp + 0x80]
call fcn.1400ac6e0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400de300
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140042c35
mov r14d, 0xffff
jmp 0x140042ba1
xor ebx, ebx
jmp 0x140042c13
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x1401eb008]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140042bc6
Function at 0x140048160
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
call fcn.140048250
mov eax, dword [rsi]
mov dword [0x1401bc570], eax
test al, 1
jne 0x140048181
mov al, 1
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1401cf858]
test rcx, rcx
jne 0x14004819b
mov rcx, qword [0x1401cf830]
test rcx, rcx
je 0x1400481bf
jmp 0x1400481e1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401cf858], 0
mov rcx, qword [0x1401cf830]
test rcx, rcx
jne 0x1400481e1
and byte [0x1401bc570], 0xfe
mov ecx, 0x18
call fcn.1400dcdd8
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401cf830], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140048216
call fcn.14003b950
cmp dword [rsi + 0x14], 0
jne 0x14004820b
mov rcx, qword [0x1401cf830]
cmp byte [rcx + 0x17], 0
jns 0x140048205
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x30
pop rsi
jmp fcn.140131360
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xa51
call fcn.140115f00
int3
Function at 0x14004ca60
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.1400ae1a0
cmp byte [rdi + 0x17], 0
jns 0x14004caa7
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x7f], 0
jns 0x14004cac8
mov rcx, qword [rsp + 0x68]
call fcn.1400dce14
test rsi, rsi
je 0x14004cb6f
test edi, edi
je 0x14004cb6f
mov ecx, edi
add rcx, rcx
call fcn.1400dce4c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.1400ae1a0
cmp byte [r14 + 0x17], 0
jns 0x14004cb0b
mov r14, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x7f], 0
jns 0x14004cb2b
mov rcx, qword [rsp + 0x68]
call fcn.1400dce14
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14004cb9d
mov rcx, rbx
call fcn.1400fbef4
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.1400ae1d0
cmp byte [rsi + 0x17], 0
js 0x14004cb93
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1400dce54
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400de300
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.1400dce14
jmp 0x14004cb56
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140115f00
int3
Function at 0x14004d260
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401cf910]
test rdi, rdi
jne 0x14004d313
mov ecx, 0x50
call fcn.1400dcdd8
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400dcdd8
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14004d335
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1401cf910], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14004d361
mov rcx, rax
call fcn.1400fbef4
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14004d390
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400de300
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140115f00
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140115f00
int3
Function at 0x14004d390
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.14003e530
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14004d520
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x14019ab38]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14004d5b9
lea rdx, [0x14019ab88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004d59d
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x1401eb008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x14004d5af
test r12d, r12d
js 0x14004d5a5
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.1400dcdd8
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x14004d545
mov rdx, qword [r14 + r15]
call fcn.140114e60
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x14004d492
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14004ce90
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14004d4e6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14004d520
cmp r15, rbx
je 0x14004d518
add r15, 0xffffffffffffffe8
jmp 0x14004d50a
mov rcx, qword [r15]
call fcn.1400dce14
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x14004d518
test r15, r15
je 0x14004d571
cmp byte [r15 + 0x17], 0
jns 0x14004d4fe
jmp 0x14004d4f6
mov rcx, rbx
call fcn.1400dce14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400de300
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.140115f00
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140115f00
xor r14d, r14d
jmp 0x14004d444
lea rcx, [rsp + 0x30]
call fcn.140114bf0
xor r15d, r15d
xor ebx, ebx
jmp 0x14004d4bf
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14004d441
Function at 0x140053080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x14005309a
test r8d, r8d
jne 0x140053093
call fcn.140067ff0
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140052770
Function at 0x140059410
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x140059561
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401879f0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x1401eb008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x1401eb008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x1401eb008]
test r14, r14
je 0x1400594f3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400594e3
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.1400bdef0
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140059565
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x140059532
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400de300
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140059544
bt eax, 9
jae 0x140059585
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x140059532
lea rcx, [0x140004520]
jmp 0x14005952f
call fcn.140136b00
lea rax, [0x140137300]
test r14, r14
je 0x140059532
lea rcx, [0x1401369e0]
jmp 0x14005952f

Function at 0x1400595b0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401cfb68]
mov ecx, dword [0x1401c9138]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400595eb
movzx eax, word [0x1401cfb38]
cmp eax, 9
jne 0x140059633
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1401cfb68]
call fcn.1400dcf30
cmp dword [0x1401cfb68], 0xffffffff
jne 0x1400595d5
xorps xmm0, xmm0
movups xmmword [0x1401cfb58], xmm0
movups xmmword [0x1401cfb48], xmm0
movups xmmword [0x1401cfb38], xmm0
lea rcx, [0x1401cfb38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401cfb68]
call fcn.1400dcfc8
jmp 0x1400595d5
test eax, eax
je 0x1400595e6
cmp eax, 6
jne 0x140059643
mov eax, 2
jmp 0x1400595e6
cmp eax, 0xc
jne 0x14005964f
mov eax, 3
jmp 0x1400595e6
mov eax, 4
jmp 0x1400595e6
Function at 0x14005a020
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401879f0]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1400b5990
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400ac660
mov rcx, rsi
call fcn.1400a9b30
test al, al
je 0x14005a165
mov rcx, rsi
call fcn.14003ecc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x14005a10d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14005a18e
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14005a101
mov qword [rsi + 0x40], rbx
call fcn.1400b59b0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14005a1a9
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14005a165
lea rdx, fcn.1401381a0
lea rcx, [rsp + 0x30]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.14006ede0
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1400ac6e0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400de300
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400b59b0
mov rcx, qword [rsi + 0x40]
call fcn.1400a93f0
mov qword [rsi + 0x40], 0
jmp 0x14005a0ec
xor edi, edi
jmp 0x14005a165
Function at 0x14005a1b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1401879f0]
lea r15, [rsp + 0x60]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.MapFileRegionToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x3a
call fcn.1400b5990
xor r14d, r14d
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1400ac660
mov rcx, rsi
call fcn.1400a9b30
test al, al
je 0x14005a337
test ebx, ebx
jne 0x14005a36b
mov ebp, 2
mov ebx, 4
xor r15d, r15d
mov rcx, rsi
call fcn.14003ecc0
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebp
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x14005a2bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14005a424
mov rax, r14
inc rax
cmp rax, 2
jb 0x14005a2b0
mov qword [rsi + 0x40], r14
call fcn.1400b59b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x14005a366
mov dword [rsp + 0x3c], 0
mov rcx, qword [rdi]
mov rdx, qword [rdi + 8]
cmp rcx, qword [0x1401a02d8]
jne 0x14005a3ad
cmp rdx, qword [0x1401a02e0]
jne 0x14005a3ad
mov rcx, rsi
call fcn.14003ee00
xor r14d, r14d
test rax, rax
jle 0x14005a337
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, ebx
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14005a366
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov r14b, 1
lea rcx, [rsp + 0x60]
call fcn.1400ac6e0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400de300
mov eax, r14d
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x14005a337
dec ebx
cmp ebx, 3
ja case.default.0x14005a384
lea rax, [0x1401a02c4]
movsxd rcx, dword [rax + rbx*4]
add rcx, rax
jmp rcx
mov r14, qword [rdi + 8]
mov r15, r14
shr r15, 0x20
mov ebp, 4
mov ebx, 2
jmp 0x14005a252
mov rcx, rsi
call fcn.14005a020
mov r14d, eax
jmp 0x14005a337
xor eax, eax
lea r14, [rsp + 0x40]
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov qword [r9], rax
lea r15, [rsp + 0x3c]
mov qword [rsp + 0x20], r15
mov r8, r14
call fcn.14005a660
mov rcx, qword [rdi + 8]
movsxd rax, dword [r15]
mov r8, rax
sar r8, 0x3f
add rax, rcx
adc r8, 0
mov edx, r8d
and edx, 1
neg rdx
xor r8, rdx
setne r8b
mov r14, qword [r14]
test r14, r14
js 0x14005a366
test r8b, r8b
jne 0x14005a366
test rdx, rdx
js 0x14005a366
mov r8, r14
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x14005a30b
call fcn.1400b59b0
mov rcx, qword [rsi + 0x40]
call fcn.1400a93f0
mov qword [rsi + 0x40], 0
jmp 0x14005a29b
mov ebx, 0xaaaaaaaa
xor ebp, ebp
jmp 0x14005a24f
mov ebp, 4
mov ebx, 2
jmp 0x14005a24f
mov ebp, 8
mov ebx, 1
jmp 0x14005a24f
Function at 0x140064ed0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401ba028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140065110
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401bc690], rax
jne 0x140065113
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x140188ba0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140188bf0]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1401a10f0]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
mov eax, r12d
lea r15, [rsi + rax*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400650a8
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400650b5
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x1400650a1
lea rdx, [rsi + 0x48]
mov r9d, r12d
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r9*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x14006511d
mov edx, ecx
and edx, 0x1fc000
je 0x14006511d
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.1400c69c0
mov ecx, dword [0x1401cfd68]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401c9138]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x170], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400de300
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140065002
mov rcx, rdi
call fcn.1400c7790
jmp 0x140064fac
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.1400d74f0
test rax, rax
je 0x140065116
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xfe0
add rax, rcx
add rax, 0x1000
movzx ecx, byte [rax + 0x1e]
and ecx, 0x3f
shl ecx, 5
sub rax, rcx
jmp 0x14006501c
int3
int3
xor ebx, ebx
jmp 0x140065046
movaps xmm0, xmmword [0x1401879f0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1401148b0
mov rcx, rsi
call fcn.140024cf0
mov rcx, r14
call fcn.140149ed0
int3