joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e835
Capabilities:
Create process on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, reloc.SHELL32.dll_IsUserAnAdmin
mov rdi, rdx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
add rcx, 8
lea rdx, str.chrome.exe
mov qword [rsp + 0x278], rdx
cmp word [str.chrome.exe], 0
je 0x14003e883
xor eax, eax
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14003e875
jmp 0x14003e885
xor eax, eax
lea r8, [rsp + 0x278]
mov qword [r8 + 8], rax
lea rsi, [rsp + 0x288]
mov rdx, rsi
call fcn.140044ef0
lea rbx, [rsp + 0x240]
mov rcx, rbx
mov rdx, rsi
call fcn.1400400e0
mov edx, dword [rdi + 0x28]
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.14004d0e0
lea rdx, str.try_chrome_again
lea r14, [rsp + 0x1d0]
mov rcx, r14
call fcn.140002998
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400410d0
cmp byte [r14 + 0x17], 0
jns 0x14003e8fd
mov rcx, qword [rsp + 0x1d0]
call fcn.140147c5c
cmp byte [rsp + 0x6f], 0
jns 0x14003e90e
mov rcx, qword [rsp + 0x58]
call fcn.140147c5c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1d0], xmm0
xor edi, edi
mov qword [rsp + 0x230], rdi
movaps xmmword [rsp + 0x220], xmm0
movaps xmmword [rsp + 0x210], xmm0
movaps xmmword [rsp + 0x200], xmm0
movaps xmmword [rsp + 0x1f0], xmm0
movaps xmmword [rsp + 0x1e0], xmm0
mov dword [rsp + 0x1d0], 0x68
mov qword [rsp + 0x1c0], rdi
movaps xmmword [rsp + 0x1b0], xmm0
lea rcx, [rsp + 0x240]
lea rbx, [rsp + 0x198]
mov rdx, rbx
xor r8d, r8d
call fcn.140041d20
cmp byte [rbx + 0x17], dil
jns 0x14003e98f
mov rbx, qword [rsp + 0x198]
cmp byte [rsp + 0x29f], dil
jns 0x14003e9a1
mov rsi, qword [rsp + 0x288]
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14003ea00
lea rsi, [rsp + 0x58]
lea rdx, [rsp + 0x1b0]
mov rcx, rsi
call fcn.14008ac60
mov rcx, rsi
call fcn.14008acb0
jmp 0x14003ea7a
mov ecx, 2
call fcn.1400481e0
test al, al
je 0x14003ea7a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_setup_user_experiment.cc
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov r8d, 0x223
mov r9d, 2
call fcn.140048f30
lea rcx, [rsp + 0x68]
lea rdx, str.Failed_to_launch:
mov r8d, 0x12
call fcn.140006489
cmp byte [rsp + 0x1af], 0
jns 0x14003ea62
mov rdx, qword [rsp + 0x198]
jmp 0x14003ea6a
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.1400490b0
mov rcx, rsi
call fcn.140049000
cmp byte [rsp + 0x1af], 0
jns 0x14003ea91
mov rcx, qword [rsp + 0x198]
call fcn.140147c5c
lea rcx, [rsp + 0x240]
call fcn.140040450
lea rcx, [rsp + 0x288]
call fcn.140043da0
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140147fd0
nop
add rsp, reloc.SHELL32.dll_IsUserAnAdmin
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400404c0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1401ba440], 0
je 0x1400404e5
xor esi, esi
jmp 0x140040575
mov ecx, 0x38
call fcn.140147c20
mov rsi, rax
mov ecx, 0x18
call fcn.140147c20
mov qword [rsi], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rsi + 8], rcx
lea rax, [rsi + 0x20]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x30], 1
mov qword [0x1401ba440], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14004055e
cmp word [rax], 0
je 0x14004055e
xor ecx, ecx
nop dword [rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140040550
jmp 0x140040560
xor ecx, ecx
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140040590
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140147fd0
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x140040590
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 [0x1401b6b28]
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.14004fea0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x1400407cc
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 0x140040639
mov rdi, rax
lea rdx, [0x14017bdae]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004064c
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call rax
mov r15, rax
jmp 0x14004064f
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
jmp 0x140040658
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 0x14004076f
mov qword [rsp + 0x28], rbp
test r13d, r13d
js 0x1400407ff
shl r13, 3
lea rsi, [r13*2]
add rsi, r13
mov rcx, rsi
call fcn.140147c20
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 0x1400406f0
mov byte [rbx + 0x17], dil
mov rsi, rbx
test rdi, rdi
je 0x1400406dd
mov r8, rdi
add r8, rdi
mov rcx, rsi
mov rdx, r12
call fcn.14014a9e0
mov word [rsi + rdi*2], 0
add rbx, 0x18
add r14, 8
cmp r13, r14
je 0x140040765
mov r12, qword [r15 + r14]
movups xmmword [rbx], xmm6
mov qword [rbx + 0x10], 0
mov rcx, r12
call fcn.140162584
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x1400407f2
cmp rdi, 0xb
jb 0x1400406c0
lea rbp, [rdi + 8]
and rbp, 0xfffffffffffffff8
js 0x1400407fa
mov rcx, rbp
add rcx, rbp
lea rcx, [rbp + rbp]
call fcn.140147c20
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 0x1400406cc
mov qword [rsp + 0x38], rbx
mov rbp, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.1400402b0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x1400407cc
mov rax, qword [rsp + 0x38]
cmp rax, rsi
jne 0x1400407a8
mov rcx, rsi
jmp 0x1400407c2
mov rax, rdi
cmp rsi, rdi
je 0x1400407bd
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x1400407a0
mov rcx, qword [rax - 0x18]
call fcn.140147c5c
jmp 0x1400407a0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.140147c5c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140147fd0
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.140029cdc
call fcn.14015acbc
lea rcx, [rsp + 0x30]
call fcn.14002c0ec
int3
Function at 0x140046240
Capabilities:
Check if file exists
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.140045e10
test al, al
jne 0x140046261
mov rcx, rsi
call fcn.140045e10
test al, al
je 0x14004626a
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 0x140058650
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401b6b28]
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.140047ce0
lea rcx, [rsp + 0x28]
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
mov al, byte [rsi + 0x17]
test al, al
jns 0x1400586b8
cmp qword [rsi + 8], 0x103
ja 0x1400587ce
cmp byte [rdi + 0x17], 0
js 0x1400586c3
mov rdx, rdi
jmp 0x1400586d4
cmp qword [rdi + 8], 0x103
ja 0x1400587ce
mov rdx, qword [rdi]
mov rcx, rsi
test al, al
jns 0x1400586de
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x1400587d0
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.140047ce0
lea rbp, [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005873e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rbp
call fcn.14008c6e0
cmp ebx, 0xffffffff
je 0x1400587c5
and ebx, 0x10
je 0x1400587c5
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.140047ce0
lea rcx, [rsp + 0x60]
mov rdx, rbx
xor r8d, r8d
call fcn.14008c5b0
mov rcx, rsi
mov rdx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.140056c50
test al, al
je 0x1400587bb
mov bpl, 1
mov rcx, rsi
mov dl, 1
call fcn.140056680
test al, al
je 0x1400587bb
lea rcx, [rsp + 0x60]
call fcn.14008c6e0
jmp 0x1400587d0
lea rcx, [rsp + 0x60]
call fcn.14008c6e0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.14008c6e0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebp
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400467e0
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 [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x90], rax
test rdx, rdx
je 0x140046833
cmp byte [r15 + 0x17], 0
js 0x140046825
mov byte [r15], 0
mov byte [r15 + 0x17], 0
jmp 0x140046833
mov rax, qword [r15]
mov byte [rax], 0
mov qword [r15 + 8], 0
mov rcx, rsi
call fcn.140045e10
test al, al
jne 0x140046999
lea rdx, [0x14017be34]
mov rcx, rsi
call fcn.1400578d0
test rax, rax
je 0x140046999
mov rbx, rax
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.1400439a0
mov rcx, rsi
mov rdx, rdi
call fcn.1400580e0
mov ebp, eax
mov rsi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14000e300
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.140029f48
lea rdx, str.ReadFileToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea r12, [rsp + 0x60]
mov rcx, r12
mov r9d, 0xa0
call fcn.140047ce0
lea rcx, [rsp + 0x28]
mov rdx, r12
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsp + 0x57], 0
jns 0x14004690b
mov r13, qword [rsp + 0x40]
mov edx, 1
mov rcx, r13
mov r8, rdi
mov r9, rbx
call fcn.14015fd34
test rax, rax
je 0x1400469a0
mov r13d, 0x10000
lea r12, [rsp + 0x40]
xor esi, esi
jmp 0x140046958
add rcx, rsi
mov edx, 1
mov r8, rdi
mov r9, rbx
call fcn.14015fd34
test rax, rax
je 0x1400469a0
mov rcx, r14
sub rcx, rsi
cmp rcx, rax
jb 0x1400469b3
test rsi, rsi
cmove rdi, r13
add rsi, rax
mov rcx, rbx
call fcn.14015f8e0
test eax, eax
jne 0x1400469a0
lea rdx, [rsi + rdi]
mov rcx, r12
xor r8d, r8d
call fcn.140029f48
cmp byte [rsp + 0x57], 0
mov rcx, r12
jns 0x140046940
mov rcx, qword [rsp + 0x40]
jmp 0x140046940
xor edi, edi
jmp 0x140046a23
mov rcx, rbx
call fcn.14015f90c
test eax, eax
sete dil
mov r14, rsi
jmp 0x1400469b5
xor edi, edi
mov rcx, rbx
call fcn.14015f7f8
test r15, r15
je 0x140046a08
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.140029f48
lea rcx, [rsp + 0x28]
call fcn.14008c6e0
cmp byte [rsp + 0x57], 0
jns 0x140046a23
mov rcx, qword [rsp + 0x40]
call fcn.140147c5c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140147fd0
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 0x1400467e0
Function at 0x140046ac0
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 [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x90], rax
test rdx, rdx
je 0x140046833
cmp byte [r15 + 0x17], 0
js 0x140046825
mov byte [r15], 0
mov byte [r15 + 0x17], 0
jmp 0x140046833
mov rax, qword [r15]
mov byte [rax], 0
mov qword [r15 + 8], 0
mov rcx, rsi
call fcn.140045e10
test al, al
jne 0x140046999
lea rdx, [0x14017be34]
mov rcx, rsi
call fcn.1400578d0
test rax, rax
je 0x140046999
mov rbx, rax
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.1400439a0
mov rcx, rsi
mov rdx, rdi
call fcn.1400580e0
mov ebp, eax
mov rsi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14000e300
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.140029f48
lea rdx, str.ReadFileToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea r12, [rsp + 0x60]
mov rcx, r12
mov r9d, 0xa0
call fcn.140047ce0
lea rcx, [rsp + 0x28]
mov rdx, r12
xor r8d, r8d
call fcn.14008c5b0
cmp byte [rsp + 0x57], 0
jns 0x14004690b
mov r13, qword [rsp + 0x40]
mov edx, 1
mov rcx, r13
mov r8, rdi
mov r9, rbx
call fcn.14015fd34
test rax, rax
je 0x1400469a0
mov r13d, 0x10000
lea r12, [rsp + 0x40]
xor esi, esi
jmp 0x140046958
add rcx, rsi
mov edx, 1
mov r8, rdi
mov r9, rbx
call fcn.14015fd34
test rax, rax
je 0x1400469a0
mov rcx, r14
sub rcx, rsi
cmp rcx, rax
jb 0x1400469b3
test rsi, rsi
cmove rdi, r13
add rsi, rax
mov rcx, rbx
call fcn.14015f8e0
test eax, eax
jne 0x1400469a0
lea rdx, [rsi + rdi]
mov rcx, r12
xor r8d, r8d
call fcn.140029f48
cmp byte [rsp + 0x57], 0
mov rcx, r12
jns 0x140046940
mov rcx, qword [rsp + 0x40]
jmp 0x140046940
xor edi, edi
jmp 0x140046a23
mov rcx, rbx
call fcn.14015f90c
test eax, eax
sete dil
mov r14, rsi
jmp 0x1400469b5
xor edi, edi
mov rcx, rbx
call fcn.14015f7f8
test r15, r15
je 0x140046a08
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.140029f48
lea rcx, [rsp + 0x28]
call fcn.14008c6e0
cmp byte [rsp + 0x57], 0
jns 0x140046a23
mov rcx, qword [rsp + 0x40]
call fcn.140147c5c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140147fd0
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 0x1400467e0
Function at 0x140046fb0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edi, edi
cmp qword [rcx + 0x78], 0
je 0x14004714a
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
test rcx, rcx
je 0x1400471a3
mov eax, dword [rsi + 0x9c]
test al, 0x10
jne 0x140047023
test al, 8
je 0x140047148
mov rax, qword [rsi + 0x90]
mov qword [rsp + 0x28], rax
cmp byte [rsi + 0xa2], 0
je 0x1400470c9
mov rdi, qword [rsi + 0x20]
sub rdi, qword [rsi + 0x18]
jmp 0x1400470f3
mov rax, qword [rsi + 0x30]
cmp rax, qword [rsi + 0x28]
je 0x140047049
mov rax, qword [rsi]
mov edi, 0xffffffff
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14004714a
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.1401606f0
cmp rax, rbx
jne 0x14004714a
cmp ebp, 1
je 0x140047060
cmp ebp, 2
je 0x14004714a
mov rcx, qword [rsi + 0x78]
call fcn.14015f938
test eax, eax
jne 0x14004714a
jmp 0x140047148
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 0x140047166
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.14015ffe4
test eax, eax
je 0x140047113
mov edi, 0xffffffff
jmp 0x14004714a
test bl, bl
je 0x140047123
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.140147fd0
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 0x1400470f3
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 0x1400470f5
call fcn.14002552e
int3
Function at 0x140047d10
Capabilities:
Delete file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
mov r14, rcx
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x78], rax
call fcn.140040810
mov rdi, rax
lea rbx, [0x140184cb1]
mov rcx, rax
mov rdx, rbx
call fcn.140040db0
test al, al
jne 0x140047d65
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140040db0
test al, al
je 0x140047e0a
cmp qword [0x1401ba450], 0
jne 0x140047ee5
mov rax, qword [0x1401ba458]
mov qword [0x1401ba450], rax
mov ecx, 0x20
call fcn.140147c20
mov rsi, rax
lea rcx, str.vmodule
mov qword [rsp + 0x50], rcx
call fcn.1401622d0
mov qword [rsp + 0x58], rax
lea r15, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
call fcn.140040e20
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.1401622d0
mov qword [rsp + 0x30], rax
lea rbx, [rsp + 0x38]
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rbx
call fcn.140040e20
lea r9, [0x1401ba460]
mov rcx, rsi
mov rdx, rbx
mov r8, r15
call fcn.14008cbe0
mov qword [0x1401ba458], rsi
cmp byte [rsp + 0x4f], 0
js 0x140047e4f
cmp byte [rsp + 0x77], 0
js 0x140047e60
mov eax, dword [r14]
mov dword [0x1401b6608], eax
mov bl, 1
test al, 1
je 0x140047ec7
mov rcx, qword [0x1401ba488]
test rcx, rcx
je 0x140047e6c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401ba488], 0
mov rcx, qword [0x1401ba468]
test rcx, rcx
jne 0x140047e9a
and byte [0x1401b6608], 0xfe
jmp 0x140047e78
mov rcx, qword [rsp + 0x38]
call fcn.140147c5c
cmp byte [rsp + 0x77], 0
jns 0x140047e0a
mov rcx, qword [rsp + 0x60]
call fcn.140147c5c
jmp 0x140047e0a
mov rcx, qword [0x1401ba468]
test rcx, rcx
jne 0x140047e9a
mov ecx, 0x18
call fcn.140147c20
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401ba468], rax
mov rdx, qword [r14 + 8]
call fcn.14002b1bc
cmp dword [r14 + 0x14], 0
jne 0x140047ec0
mov rcx, qword [0x1401ba468]
cmp byte [rcx + 0x17], 0
jns 0x140047eba
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140047ef0
mov ebx, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140147fd0
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
Function at 0x140047ef0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x1401b6b28]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1401ba488], 0
jne 0x14004817f
mov rdi, qword [0x1401ba468]
test rdi, rdi
je 0x140047fef
test byte [0x1401b6608], 1
je 0x14004817f
cmp byte [rdi + 0x17], 0
jns 0x140047f48
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 [0x1401ba488], rax
add rax, 1
cmp rax, 1
ja 0x14004817f
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14004817c
cmp eax, 0x104
ja 0x14004817c
mov rcx, qword [0x1401ba468]
lea rdx, [rsp + 0x40]
call fcn.14002b1bc
mov rcx, qword [0x1401ba468]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x1400480f5
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x140048104
jmp 0x140048117
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.140147c20
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.140162584
cmp rax, rbp
ja 0x1400481a2
mov rbx, rax
cmp rax, 0xb
jae 0x140048051
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x14004807d
jmp 0x140048090
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x1400481aa
lea rcx, [rsi + rsi]
call fcn.140147c20
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.14014a9e0
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x1400480a5
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14002b87a
cmp rax, 0xffffffffffffffff
je 0x1400480cd
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14002b4b0
lea rdx, str.debug.log
mov rcx, rdi
call fcn.14002afec
mov qword [0x1401ba468], rdi
test byte [0x1401b6608], 1
jne 0x140047f3f
jmp 0x14004817f
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140048117
lea rdx, [0x140174cc0]
call fcn.14002afec
mov rcx, qword [0x1401ba468]
lea rdx, str.debug.log
call fcn.14002afec
mov rcx, qword [0x1401ba468]
cmp byte [rcx + 0x17], 0
jns 0x140048133
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 [0x1401ba488], rax
add rax, 1
cmp rax, 1
ja 0x14004817f
mov qword [0x1401ba488], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140147fd0
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.140029cdc
call fcn.14015acbc
int3