joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140057a30
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 rbp, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 3
call fcn.14006c580
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x140057c6c
mov dword [rsp + 0x4c], 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]
test rax, rax
je 0x140057ad9
mov rdi, rax
lea rdx, [0x14020971e]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140057aec
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call rax
mov r15, rax
jmp 0x140057aef
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
jmp 0x140057af8
xor r15d, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movsxd r13, dword [rsp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
test r13, r13
je 0x140057c0f
mov qword [rsp + 0x28], rbp
test r13d, r13d
js 0x140057c9f
shl r13, 3
lea rsi, [r13*2]
add rsi, r13
mov rcx, rsi
call fcn.1401c9f10
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
add rsi, rax
mov qword [rsp + 0x40], rsi
xor r14d, r14d
xorps xmm6, xmm6
jmp 0x140057b90
mov byte [rbx + 0x17], dil
mov rsi, rbx
test rdi, rdi
je 0x140057b7d
mov r8, rdi
add r8, rdi
mov rcx, rsi
mov rdx, r12
call fcn.1401cccd0
mov word [rsi + rdi*2], 0
add rbx, 0x18
add r14, 8
cmp r13, r14
je 0x140057c05
mov r12, qword [r15 + r14]
movups xmmword [rbx], xmm6
mov qword [rbx + 0x10], 0
mov rcx, r12
call fcn.1401eaef4
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x140057c92
cmp rdi, 0xb
jb 0x140057b60
lea rbp, [rdi + 8]
and rbp, 0xfffffffffffffff8
js 0x140057c9a
mov rcx, rbp
add rcx, rbp
lea rcx, [rbp + rbp]
call fcn.1401c9f10
mov rsi, rax
mov qword [rbx], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, rbp
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
jmp 0x140057b6c
mov qword [rsp + 0x38], rbx
mov rbp, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400575d0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x140057c6c
mov rax, qword [rsp + 0x38]
cmp rax, rsi
jne 0x140057c48
mov rcx, rsi
jmp 0x140057c62
mov rax, rdi
cmp rsi, rdi
je 0x140057c5d
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x140057c40
mov rcx, qword [rax - 0x18]
call fcn.1401c9f6c
jmp 0x140057c40
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.1401c9f6c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401ca2e0
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 rcx, rbx
call fcn.14003a95e
call fcn.1401dedf4
lea rcx, [rsp + 0x30]
call fcn.14003d05c
int3
Function at 0x14005b170
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x40], xmm0
lea rbx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14006f0b0
cmp byte [rsp + 0x67], 0
jns 0x14005b1b5
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
js 0x14005b25e
test ebp, ebp
je 0x14005b270
mov r14b, 1
test rsi, rsi
je 0x14005b2d7
mov ecx, ebp
add rcx, rcx
call fcn.1401c9fac
mov rbx, rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14006f0b0
cmp byte [rsp + 0x67], 0
jns 0x14005b217
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x67], 0
jns 0x14005b237
mov rcx, qword [rsp + 0x50]
call fcn.1401c9f6c
mov qword [rsp + 0x20], rbx
cmp word [rbx], 0
je 0x14005b275
xor eax, eax
nop word cs:[rax + rax]
nop
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14005b250
jmp 0x14005b277
mov rcx, qword [rsp + 0x50]
call fcn.1401c9f6c
test ebp, ebp
jne 0x14005b1d8
xor r14d, r14d
jmp 0x14005b2d7
xor eax, eax
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x20]
call fcn.14006f620
cmp byte [rsi + 0x17], 0
js 0x14005b29a
mov byte [rsi], 0
mov byte [rsi + 0x17], 0
jmp 0x14005b2be
mov rax, qword [rsi]
mov byte [rax], 0
mov qword [rsi + 8], 0
cmp byte [rsi + 0x17], 0
jns 0x14005b2be
mov rcx, qword [rsi]
call fcn.1401c9f6c
mov qword [rsi + 0x10], 0
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1401c9fb4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, r14d
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14005eae0
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14005e240
test al, al
jne 0x14005eb01
mov rcx, rsi
call fcn.14005e240
test al, al
je 0x14005eb0a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14007bf30
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3e1
call fcn.140060640
lea rcx, [rsp + 0x28]
mov rdx, rbx
xor r8d, r8d
call fcn.14006fcd0
mov al, byte [rsi + 0x17]
test al, al
jns 0x14007bf98
cmp qword [rsi + 8], 0x103
ja 0x14007c0ae
cmp byte [rdi + 0x17], 0
js 0x14007bfa3
mov rdx, rdi
jmp 0x14007bfb4
cmp qword [rdi + 8], 0x103
ja 0x14007c0ae
mov rdx, qword [rdi]
mov rcx, rsi
test al, al
jns 0x14007bfbe
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x14007c0b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x1cc
call fcn.140060640
lea rbp, [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14006fcd0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14007c01e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rbp
call fcn.14006fe00
cmp ebx, 0xffffffff
je 0x14007c0a5
and ebx, 0x10
je 0x14007c0a5
lea rdx, str.CopyAndDeleteDirectory
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x404
call fcn.140060640
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14006fcd0
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.14007a530
test al, al
je 0x14007c09b
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.140079f60
test al, al
je 0x14007c09b
lea rcx, [rsp + 0x60]
call fcn.14006fe00
jmp 0x14007c0b0
lea rcx, [rsp + 0x60]
call fcn.14006fe00
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14006fe00
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, ebp
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14005f080
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x90], rax
test rdx, rdx
je 0x14005f0d3
cmp byte [r15 + 0x17], 0
js 0x14005f0c5
mov byte [r15], 0
mov byte [r15 + 0x17], 0
jmp 0x14005f0d3
mov rax, qword [r15]
mov byte [rax], 0
mov qword [r15 + 8], 0
mov rcx, rsi
call fcn.14005e240
test al, al
jne 0x14005f239
lea rdx, [0x140201068]
mov rcx, rsi
call fcn.14007b1b0
test rax, rax
je 0x14005f239
mov rbx, rax
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.14005b5a0
mov rcx, rsi
mov rdx, rdi
call fcn.14007b9c0
mov ebp, eax
mov rsi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140015bf0
test bpl, bpl
mov edi, 0xffff
cmovne rdi, rsi
mov eax, 0xffff
test rsi, rsi
cmovle rdi, rax
cmp rdi, r14
cmova rdi, r14
add rdi, 1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
xor esi, esi
lea r13, [rsp + 0x40]
mov rcx, r13
mov rdx, rdi
xor r8d, r8d
call fcn.14003abca
lea rdx, str.ReadFileToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea r12, [rsp + 0x60]
mov rcx, r12
mov r9d, 0xac
call fcn.140060640
lea rcx, [rsp + 0x28]
mov rdx, r12
xor r8d, r8d
call fcn.14006fcd0
cmp byte [rsp + 0x57], 0
jns 0x14005f1ab
mov r13, qword [rsp + 0x40]
mov edx, 1
mov rcx, r13
mov r8, rdi
mov r9, rbx
call fcn.1401e59cc
test rax, rax
je 0x14005f240
mov r13d, 0x10000
lea r12, [rsp + 0x40]
xor esi, esi
jmp 0x14005f1f8
add rcx, rsi
mov edx, 1
mov r8, rdi
mov r9, rbx
call fcn.1401e59cc
test rax, rax
je 0x14005f240
mov rcx, r14
sub rcx, rsi
cmp rcx, rax
jb 0x14005f253
test rsi, rsi
cmove rdi, r13
add rsi, rax
mov rcx, rbx
call fcn.1401e52a0
test eax, eax
jne 0x14005f240
lea rdx, [rsi + rdi]
mov rcx, r12
xor r8d, r8d
call fcn.14003abca
cmp byte [rsp + 0x57], 0
mov rcx, r12
jns 0x14005f1e0
mov rcx, qword [rsp + 0x40]
jmp 0x14005f1e0
xor edi, edi
jmp 0x14005f2c3
mov rcx, rbx
call fcn.1401e52cc
test eax, eax
sete dil
mov r14, rsi
jmp 0x14005f255
xor edi, edi
mov rcx, rbx
call fcn.1401e51b8
test r15, r15
je 0x14005f2a8
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [r15]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x50]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [r15], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
mov rcx, r15
mov rdx, r14
xor r8d, r8d
call fcn.14003abca
lea rcx, [rsp + 0x28]
call fcn.14006fe00
cmp byte [rsp + 0x57], 0
jns 0x14005f2c3
mov rcx, qword [rsp + 0x40]
call fcn.1401c9f6c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, 0xffffffffffffffff
jmp 0x14005f080
Function at 0x14005f360
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x90], rax
test rdx, rdx
je 0x14005f0d3
cmp byte [r15 + 0x17], 0
js 0x14005f0c5
mov byte [r15], 0
mov byte [r15 + 0x17], 0
jmp 0x14005f0d3
mov rax, qword [r15]
mov byte [rax], 0
mov qword [r15 + 8], 0
mov rcx, rsi
call fcn.14005e240
test al, al
jne 0x14005f239
lea rdx, [0x140201068]
mov rcx, rsi
call fcn.14007b1b0
test rax, rax
je 0x14005f239
mov rbx, rax
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.14005b5a0
mov rcx, rsi
mov rdx, rdi
call fcn.14007b9c0
mov ebp, eax
mov rsi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140015bf0
test bpl, bpl
mov edi, 0xffff
cmovne rdi, rsi
mov eax, 0xffff
test rsi, rsi
cmovle rdi, rax
cmp rdi, r14
cmova rdi, r14
add rdi, 1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
xor esi, esi
lea r13, [rsp + 0x40]
mov rcx, r13
mov rdx, rdi
xor r8d, r8d
call fcn.14003abca
lea rdx, str.ReadFileToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea r12, [rsp + 0x60]
mov rcx, r12
mov r9d, 0xac
call fcn.140060640
lea rcx, [rsp + 0x28]
mov rdx, r12
xor r8d, r8d
call fcn.14006fcd0
cmp byte [rsp + 0x57], 0
jns 0x14005f1ab
mov r13, qword [rsp + 0x40]
mov edx, 1
mov rcx, r13
mov r8, rdi
mov r9, rbx
call fcn.1401e59cc
test rax, rax
je 0x14005f240
mov r13d, 0x10000
lea r12, [rsp + 0x40]
xor esi, esi
jmp 0x14005f1f8
add rcx, rsi
mov edx, 1
mov r8, rdi
mov r9, rbx
call fcn.1401e59cc
test rax, rax
je 0x14005f240
mov rcx, r14
sub rcx, rsi
cmp rcx, rax
jb 0x14005f253
test rsi, rsi
cmove rdi, r13
add rsi, rax
mov rcx, rbx
call fcn.1401e52a0
test eax, eax
jne 0x14005f240
lea rdx, [rsi + rdi]
mov rcx, r12
xor r8d, r8d
call fcn.14003abca
cmp byte [rsp + 0x57], 0
mov rcx, r12
jns 0x14005f1e0
mov rcx, qword [rsp + 0x40]
jmp 0x14005f1e0
xor edi, edi
jmp 0x14005f2c3
mov rcx, rbx
call fcn.1401e52cc
test eax, eax
sete dil
mov r14, rsi
jmp 0x14005f255
xor edi, edi
mov rcx, rbx
call fcn.1401e51b8
test r15, r15
je 0x14005f2a8
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [r15]
movaps xmmword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0x50]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [r15], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x40], xmm0
mov rcx, r15
mov rdx, r14
xor r8d, r8d
call fcn.14003abca
lea rcx, [rsp + 0x28]
call fcn.14006fe00
cmp byte [rsp + 0x57], 0
jns 0x14005f2c3
mov rcx, qword [rsp + 0x40]
call fcn.1401c9f6c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, edi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, 0xffffffffffffffff
jmp 0x14005f080
Function at 0x14005f850
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edi, edi
cmp qword [rcx + 0x78], 0
je 0x14005f9ea
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x14005fa43
mov eax, dword [rsi + 0x9c]
test al, 0x10
jne 0x14005f8c3
test al, 8
je 0x14005f9e8
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x28], rax
cmp byte [rsi + 0xa2], 0
je 0x14005f969
mov rdi, qword [rsi + 0x20]
sub rdi, qword [rsi + 0x18]
jmp 0x14005f993
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x14005f8e9
mov rax, qword [rsi]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14005f9ea
lea r14, [rsi + 0x88]
lea r15, [rsp + 0x28]
mov edi, 0xffffffff
nop word [rax + rax]
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
mov r9, qword [rsi + 0x60]
add r9, r8
mov rax, qword [rcx]
mov qword [rsp + 0x20], r15
mov rdx, r14
call qword [rax + 0x20]
mov ebp, eax
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rsi + 0x40]
mov r9, qword [rsi + 0x78]
sub rbx, rcx
mov edx, 1
mov r8, rbx
call fcn.1401e5c7c
cmp rax, rbx
jne 0x14005f9ea
cmp ebp, 1
je 0x14005f900
cmp ebp, 2
je 0x14005f9ea
mov rcx, qword [rsi + 0x78]
call fcn.1401e52f8
test eax, eax
jne 0x14005f9ea
jmp 0x14005f9e8
mov rax, qword [rcx]
call qword [rax + 0x28]
mov r9, qword [rsi + 0x48]
mov rdi, qword [rsi + 0x50]
sub rdi, r9
test eax, eax
jle 0x14005fa06
mov rcx, qword [rsi + 0x20]
sub rcx, qword [rsi + 0x18]
mov eax, eax
imul rcx, rax
add rdi, rcx
xor ebx, ebx
neg edi
mov rcx, qword [rsi + 0x78]
mov edx, edi
mov r8d, 1
call fcn.1401dab64
test eax, eax
je 0x14005f9b3
mov edi, 0xffffffff
jmp 0x14005f9ea
test bl, bl
je 0x14005f9c3
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x88], rax
mov rax, qword [rsi + 0x40]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x48], rax
mov dword [rsi + 0x9c], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], 0
xor edi, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi + 0x18]
cmp rax, qword [rsi + 0x20]
je 0x14005f993
mov r8, qword [rsi + 0x40]
mov rcx, qword [rsi + 0x80]
sub rax, qword [rsi + 0x10]
mov rbp, qword [rcx]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x28]
call qword [rbp + 0x38]
cdqe
add rdi, qword [rsi + 0x48]
sub rdi, rax
sub rdi, qword [rsi + 0x40]
mov bl, 1
jmp 0x14005f995
call fcn.14002544a
int3
Function at 0x140060670
Capabilities:
Delete file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r14, rcx
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.140057cb0
mov rdi, rax
lea rbx, [0x140217b31]
mov rcx, rax
mov rdx, rbx
call fcn.140058250
test al, al
jne 0x1400606c5
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140058250
test al, al
je 0x14006076a
cmp qword [0x14026afa8], 0
jne 0x140060845
mov rax, qword [0x14026afb0]
mov qword [0x14026afa8], rax
mov ecx, 0x20
call fcn.1401c9f10
mov rsi, rax
lea rcx, str.vmodule
mov qword [rsp + 0x50], rcx
call fcn.1401eac40
mov qword [rsp + 0x58], rax
lea r15, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
call fcn.1400582c0
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.1401eac40
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0x38]
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rbx
call fcn.1400582c0
lea r9, [0x14026afb8]
mov rcx, rsi
mov rdx, rbx
mov r8, r15
call fcn.1400bc660
mov qword [0x14026afb0], rsi
cmp byte [rsp + 0x4f], 0
js 0x1400607af
cmp byte [rsp + 0x77], 0
js 0x1400607c0
mov eax, dword [r14]
mov dword [0x140266608], eax
mov bl, 1
test al, 1
je 0x140060827
mov rcx, qword [0x14026afe0]
test rcx, rcx
je 0x1400607cc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14026afe0], 0
mov rcx, qword [0x14026afc0]
test rcx, rcx
jne 0x1400607fa
and byte [0x140266608], 0xfe
jmp 0x1400607d8
mov rcx, qword [rsp + 0x38]
call fcn.1401c9f6c
cmp byte [rsp + 0x77], 0
jns 0x14006076a
mov rcx, qword [rsp + 0x60]
call fcn.1401c9f6c
jmp 0x14006076a
mov rcx, qword [0x14026afc0]
test rcx, rcx
jne 0x1400607fa
mov ecx, 0x18
call fcn.1401c9f10
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14026afc0], rax
mov rdx, qword [r14 + 8]
call fcn.14003c12e
cmp dword [r14 + 0x14], 0
jne 0x140060820
mov rcx, qword [0x14026afc0]
cmp byte [rcx + 0x17], 0
jns 0x14006081a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140060850
mov ebx, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x140060850
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x14026afe0], 0
jne 0x140060adf
mov rdi, qword [0x14026afc0]
test rdi, rdi
je 0x14006094f
test byte [0x140266608], 1
je 0x140060adf
cmp byte [rdi + 0x17], 0
jns 0x1400608a8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14026afe0], rax
add rax, 1
cmp rax, 1
ja 0x140060adf
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140060adc
cmp eax, 0x104
ja 0x140060adc
mov rcx, qword [0x14026afc0]
lea rdx, [rsp + 0x40]
call fcn.14003c12e
mov rcx, qword [0x14026afc0]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x140060a55
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x140060a64
jmp 0x140060a77
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.1401c9f10
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.1401eaef4
cmp rax, rbp
ja 0x140060b02
mov rbx, rax
cmp rax, 0xb
jae 0x1400609b1
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x1400609dd
jmp 0x1400609f0
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x140060b0a
lea rcx, [rsi + rsi]
call fcn.1401c9f10
mov r15, rax
mov qword [rdi], rax
add rbp, 0x11
or rbp, rsi
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1401cccd0
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x140060a05
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14003c7ec
cmp rax, 0xffffffffffffffff
je 0x140060a2d
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14003c422
lea rdx, str.debug.log
mov rcx, rdi
call fcn.14003bf5e
mov qword [0x14026afc0], rdi
test byte [0x140266608], 1
jne 0x14006089f
jmp 0x140060adf
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140060a77
lea rdx, [0x1401ff180]
call fcn.14003bf5e
mov rcx, qword [0x14026afc0]
lea rdx, str.debug.log
call fcn.14003bf5e
mov rcx, qword [0x14026afc0]
cmp byte [rcx + 0x17], 0
jns 0x140060a93
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14026afe0], rax
add rax, 1
cmp rax, 1
ja 0x140060adf
mov qword [0x14026afe0], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401ca2e0
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14003a95e
call fcn.1401dedf4
int3
Function at 0x140062da0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov r13, rcx
lea r15, [rcx + 0x18]
mov rcx, r15
call fcn.14007eee0
mov r8, qword [r13 + 0x28]
test r8, r8
je 0x140062ee8
mov rax, r12
shr rax, 0x20
lea edx, [r12*8]
add rdx, 8
xor rdx, rax
movabs rbx, 0x9ddfea08eb382d69
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rdx, rax
xor rdx, rcx
imul rdx, rbx
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, rbx
mov rax, r8
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, r8
sub rax, rdx
movabs rdx, 0x3333333333333333
mov rbx, rax
and rbx, rdx
shr rax, 2
and rax, rdx
add rax, rbx
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs rdi, 0x101010101010101
imul rdi, rax
shr rdi, 0x38
cmp rdi, 1
jbe 0x140062e8b
mov rbx, rcx
cmp rcx, r8
jb 0x140062e92
mov rax, rcx
xor edx, edx
div r8
mov rbx, rdx
jmp 0x140062e92
lea rbx, [r8 - 1]
and rbx, rcx
mov rax, qword [r13 + 0x20]
mov rax, qword [rax + rbx*8]
test rax, rax
je 0x140062ee8
mov rsi, qword [rax]
test rsi, rsi
je 0x140062ee8
lea r9, [r8 - 1]
jmp 0x140062ebe
cmp qword [rsi + 0x10], r12
je 0x140062f01
mov rsi, qword [rsi]
test rsi, rsi
je 0x140062ee8
mov rax, qword [rsi + 8]
cmp rax, rcx
je 0x140062eb0
cmp edi, 1
jbe 0x140062ee0
cmp rax, r8
jb 0x140062ee3
xor edx, edx
div r8
mov rax, rdx
jmp 0x140062ee3
and rax, r9
cmp rax, rbx
je 0x140062eb6
mov rcx, r15
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [0x14026da58]
cmp rdi, 1
ja 0x140062f64
lea rcx, [0x14026da58]
call fcn.140060560
test al, al
je 0x140062f5d
mov qword [0x14026da60], 0
lea rbx, [0x14026da58]
lea rdi, [0x14026da60]
mov rcx, rdi
xor edx, edx
call fcn.1400c0440
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140060600
jmp 0x140062f64
mov rdi, qword [0x14026da58]
mov rcx, rdi
call fcn.1400c03b0
mov rbx, rax
mov rcx, rdi
mov rdx, r14
call fcn.1400c03f0
mov rcx, qword [r14 + 0x28]
mov rdx, r12
call qword [rcx + 8]
mov rcx, rdi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400c03f0