joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9d50
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
je 0x1400b9d79
lea rax, [rdx - 1]
test rdx, rax
je 0x1400b9daa
mov rcx, rdx
call fcn.1400664bc
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400b9d94
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400b3220
jae 0x1400b9e8f
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400b9daf
cvtsi2ss xmm0, rax
jmp 0x1400b9dc4
mov rdi, rdx
jmp 0x1400b9d79
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.140130af0
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1401d3bc8]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400b9e77
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400b9e77
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400b9e7f
mov rcx, rdx
call fcn.1400664bc
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1400b9d82
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400c1585
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.1401119e0
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400c15f0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140124ee4
mov qword [rbx], rax
test rax, rax
je 0x1400c15dc
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 0x1400c2030
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.1400cc100
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x1400c213d
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400c2155
lea rdx, [0x1401e7b5a]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c2168
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [case.0x140173f30.0]
mov rbx, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x20]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [r14], xmm0
movsxd rax, dword [rsp + 0x3c]
lea r8, [rbx + rax*8]
mov rcx, r14
mov rdx, rbx
call fcn.1400c2a90
mov rcx, rsi
mov rdx, r14
call fcn.1400c1b00
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400c2130
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x58]
mov qword [rcx], r14
call fcn.140059840
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140113000
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400c20d3
xor ebx, ebx
jmp 0x1400c20d6

Function at 0x1400c4290
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400c4350
mov eax, dword [rsi]
mov dword [0x14020cf68], eax
test al, 1
jne 0x1400c42b1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14021db00]
test rcx, rcx
jne 0x1400c42cb
mov rcx, qword [0x14021dad8]
test rcx, rcx
je 0x1400c42ef
jmp 0x1400c4311
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14021db00], 0
mov rcx, qword [0x14021dad8]
test rcx, rcx
jne 0x1400c4311
and byte [0x14020cf68], 0xfe
mov ecx, 0x18
call fcn.1401119e0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14021dad8], rax
mov rdx, qword [rsi + 8]
call fcn.1400c45f0
cmp dword [rsi + 0x14], 0
je 0x1400c432a
add rsp, 0x20
pop rsi
jmp fcn.1400447f0
mov rcx, qword [0x14021dad8]
cmp byte [rcx + 0x17], 0
jns 0x1400c433a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400c4320
Function at 0x1400ca2e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edx, 1
jmp 0x1400c9fe0

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x298
call fcn.1400713b0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14007d430
cmp byte [rdi + 0x17], 0
jns 0x1400ca374
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14007e5d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140113000
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400ca3c0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140114f20
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x1400ca463
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1401390f4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400706a0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400c3f50
mov rcx, rsi
mov rdx, r14
call fcn.140070920
mov rcx, r14
call fcn.140070820
mov rcx, rbx
call fcn.140070820
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140113000
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400ca490
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140114f20
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400ca525
cmp word [rsp + 0x70], 0
je 0x1400ca525
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1401390f4
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.1400706a0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140113000
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140070570
mov rcx, rdi
call fcn.1400ca3c0
test al, al
je 0x1400ca565
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140070680
jmp 0x1400ca584
lea rax, [0x1401e8eba]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.1400706a0
lea rcx, [rsp + 0x40]
call fcn.140070820
jmp 0x1400ca507
Function at 0x1400ca5a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r15
movaps xmm6, xmmword [0x1401dfd10]
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.CreateDirectoryAndGetError
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x337
call fcn.1400713b0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14007d430
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400ca637
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400ca683
mov bl, 1
test al, 0x10
je 0x1400ca730
lea rcx, [rsp + 0x60]
call fcn.14007e5d0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140113000
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.140106620
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14010c79c
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400ca6ba
mov rax, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
jmp 0x1400ca6bd
and eax, 0x7f
test rax, rax
je 0x1400ca6cb
test r14, r14
je 0x1400ca791
cmp rax, qword [rsp + 0x58]
je 0x1400ca74d
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.1400ca5a0
test al, al
je 0x1400ca78a
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x1400ca707
lea rcx, [rsp + 0x30]
call fcn.140070820
jmp 0x1400ca64f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400ca722
mov rcx, rdi
call fcn.1400ca2f0
test al, al
jne 0x1400ca6f8
test rsi, rsi
je 0x1400ca782
mov ecx, ebp
call fcn.1400cb110
jmp 0x1400ca780
test rsi, rsi
je 0x1400ca73b
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400ca64f
test rax, rax
je 0x1400ca771
mov rcx, qword [rsp + 0x50]
xor edx, edx
movzx r8d, word [r14 + rdx*2]
cmp r8w, word [rcx + rdx*2]
jne 0x1400ca6d2
inc rdx
cmp rax, rdx
jne 0x1400ca759
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
je 0x1400ca782
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400ca6f8
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x129
call fcn.140152a0d
int3
Function at 0x1400ca7c0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x1401e8f00]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x484
call fcn.1400713b0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14007d430
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140114f20
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x1400ca8c7
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1401390f4
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.1400706a0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400c3f50
mov rcx, rsi
mov rdx, r14
call fcn.140070920
mov rcx, r14
call fcn.140070820
mov rcx, rbx
call fcn.140070820
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x270]
call fcn.14007e5d0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140113000
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400ca900
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1401e8f15]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x494
call fcn.1400713b0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14007d430
cmp byte [rdi + 0x17], 0
jns 0x1400ca984
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14007e5d0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140113000
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ca9c0
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, 0x568
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140114f20
mov qword [rsp + 0x20], rdi
xor ebp, ebp
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9d, 3
call fcn.1400ce080
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rbx], xmm0
mov rcx, r14
mov rdx, rbx
call fcn.140107900
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x1400caa58
mov rax, qword [rsp + 0x38]
jmp 0x1400caa5b
and eax, 0x7f
test rax, rax
jne 0x1400caa9d
lea rcx, [rsp + 0x30]
call fcn.140070820
lea rcx, [rsp + 0x298]
call fcn.1400ce1d0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140113000
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.140114f20
mov rcx, r15
mov rdx, r14
call fcn.1400ce240
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400cab9b
mov rcx, r14
call fcn.1400ce000
test al, al
jne 0x1400cab5f
test sil, 2
jne 0x1400cabc8
cmp byte [rsp + 0x47], 0
mov rcx, rbx
jns 0x1400cab01
mov rcx, qword [rsp + 0x30]
call r13
xor ebp, ebp
test eax, eax
je 0x1400cabef
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400b16e0
mov rcx, r15
mov rdx, r14
call fcn.140107900
mov rcx, rbx
mov rdx, r14
call fcn.140070920
mov rcx, r14
call fcn.140070820
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400cab4b
mov rax, qword [rsp + 0x38]
jmp 0x1400cab4e
and eax, 0x7f
mov r12d, ebp
test rax, rax
je 0x1400caa60
jmp 0x1400caab4
xor ebp, ebp
test sil, 1
je 0x1400cab0e
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8d, esi
call fcn.1400ca9c0
test eax, eax
jne 0x1400cac2c
cmp byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
jns 0x1400cab90
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400cab06
test sil, 1
jne 0x1400cac0b
lea rcx, [rsp + 0x48]
call fcn.1400ce000
test al, al
je 0x1400cac07
lea rcx, [rsp + 0x48]
call fcn.1400ce000
test al, al
je 0x1400caae8
xor ebp, ebp
jmp 0x1400cab0e
call fcn.1400825c0
xor edx, edx
cmp eax, 0xd
setge dl
shl edx, 4
or edx, 2
lea rcx, [rsp + 0x30]
call fcn.140173510
xor ebp, ebp
test al, al
jne 0x1400cab0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x1400cab0e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x1400cac1c
mov rcx, qword [rsp + 0x30]
jmp 0x1400cac21
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400caadc
mov ebp, eax
jmp 0x1400cab0e
Function at 0x1400cac40
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x50], r12
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [r14 + 0x40], xmm0
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x61
call fcn.1400713b0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14007d430
test esi, esi
js 0x1400cad4e
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140096a40
test al, al
jne 0x1400cad55
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cad71
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x1400cad84
lea rcx, [rsp + 0x30]
call fcn.140096ad0
lea rcx, [rsp + 0x50]
call fcn.14007e5d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140113000
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400cad21
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140179de0
jmp 0x1400cace7
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x1400cad17
int3

Function at 0x1400cad90
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r14
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xae
call fcn.1400713b0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14007d430
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140096a40
test al, al
jne 0x1400cae74
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140096ad0
lea rcx, [rsp + 0x50]
call fcn.14007e5d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140113000
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140179de0
jmp 0x1400cae21
Function at 0x1400cae90
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x1401dfd10]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xbb
call fcn.1400713b0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14007d430
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140096a40
test al, al
jne 0x1400cafbc
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400caf87
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400caf87
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400cafd8
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.140096ad0
lea rcx, [rsp + 0x50]
call fcn.14007e5d0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140113000
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.140179de0
jmp 0x1400caf2a
xor ebx, ebx
jmp 0x1400caf87
Function at 0x1400cc350
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x14020b038]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1401119e0
mov rsi, rax
mov rcx, r15
btr rcx, 0x3f
mov rax, qword [0x14020e7a0]
and rax, rcx
cmp rax, qword [0x14020e788]
jne 0x1400cc3ba
call fcn.140109560
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400cc7c0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400cc421
test r14, r14
je 0x1400cc476
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140113000
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400cc43a
mov ebp, eax
cmp eax, 0x5af
je 0x1400cc43a
cmp ebp, 0xe
jne 0x1400cc484
mov rcx, rbx
call fcn.14017a7f0
test rsi, rsi
je 0x1400cc3fd
movabs rcx, 0x7fffffffffffffff
and rcx, qword [rsi]
mov rax, qword [0x14020e7a0]
and rax, rcx
cmp rax, qword [0x14020e788]
jne 0x1400cc46c
call fcn.140109940
mov rcx, rsi
call fcn.140111a1c
jmp 0x1400cc3fd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400cc3fd
mov eax, dword [0x14021f4b8]
mov ecx, dword [0x14021ad00]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400cc4fc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.1400c8760
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14021f4b0]
call fcn.14006fb00
cmp byte [rbx + 0x17], 0
jns 0x1400cc442
mov rcx, qword [rsp + 0x30]
call fcn.140111a1c
jmp 0x1400cc442
lea rcx, [0x14021f4b8]
call fcn.140111b40
cmp dword [0x14021f4b8], 0xffffffff
jne 0x1400cc4a5
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400c3aa0
mov qword [0x14021f4b0], rax
lea rcx, [0x14021f4b8]
call fcn.140111bd8
jmp 0x1400cc4a5