joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074c10
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
xor r8d, r8d
jmp 0x140074c10
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r15
movaps xmm6, xmmword [0x140173f60]
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x7b
call fcn.1400651f0
lea rcx, [rsp + 0x60]
xor ebp, ebp
mov rdx, rbx
xor r8d, r8d
call fcn.1400bbe30
mov rcx, rdi
call fcn.1400524d0
test al, al
jne 0x140074cea
mov rcx, rsi
call fcn.1400524d0
test al, al
jne 0x140074ce8
cmp byte [rdi + 0x17], 0
jns 0x140074cd8
cmp qword [rdi + 8], 0x103
ja 0x140074ce8
cmp byte [rsi + 0x17], 0
jns 0x140074d1e
cmp qword [rsi + 8], 0x103
jbe 0x140074d1e
xor ebp, ebp
lea rcx, [rsp + 0x60]
call fcn.1400bc150
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140135280
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x50], r15
movaps xmmword [rsp + 0x40], xmm6
lea rdx, str.DoCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x88
call fcn.1400651f0
lea r8, [0x1401aabf8]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400bc600
cmp byte [rsi + 0x17], 0
jns 0x140074d66
mov rsi, qword [rsi]
movzx r8d, r14b
cmp byte [rdi + 0x17], 0
jns 0x140074d73
mov rdi, qword [rdi]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140074db1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140074da8
mov eax, edi
and eax, 1
je 0x140074da8
mov edx, edi
and edx, 0xfffffffe
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp edi, 0xffffffff
setne bpl
jmp 0x140074db3
xor ebp, ebp
lea rcx, [rsp + 0x40]
call fcn.1400bc6f0
jmp 0x140074cea
Function at 0x140074dd0
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 r15d, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140138090
mov qword [rsp + 0x20], r14
xor ebp, ebp
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
mov r9d, 3
call fcn.140091480
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rbx
mov rdx, rdi
call fcn.140091710
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140074e6a
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140074fc2
lea rsi, [rsp + 0x48]
lea rbx, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
jmp 0x140074e9c
mov r13d, ebp
test rax, rax
je 0x140074fc2
mov r8d, 0x250
mov rcx, rsi
mov dl, 0xaa
call fcn.140138090
mov rcx, rbx
mov rdx, rsi
call fcn.140091680
mov edx, dword [rsp + 0x48]
test dl, 1
je 0x140074f00
test r15b, r15b
jne 0x140074ee8
mov rcx, rsi
call fcn.1400913b0
test al, al
je 0x140074ee4
mov rcx, rsi
call fcn.1400913b0
xor ebp, ebp
test al, al
je 0x140074f50
jmp 0x140074f7e
mov edx, dword [rsp + 0x48]
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140074efa
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rsi
call fcn.1400913b0
test al, al
je 0x140074f50
xor ebp, ebp
test r15b, r15b
je 0x140074f7e
mov rcx, rdi
mov rdx, r14
mov r8b, 1
call fcn.140074dd0
mov ebp, eax
test eax, eax
jne 0x140074f7e
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140074f36
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebp, 0
test eax, eax
jne 0x140074f7e
jmp 0x140074f68
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140074f5f
mov rcx, qword [rsp + 0x30]
call r12
xor ebp, ebp
test eax, eax
jne 0x140074f7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r13d, r13d
cmovne ebp, r13d
mov rcx, rsi
call fcn.140019ae0
mov rcx, rbx
mov rdx, rsi
call fcn.140091710
mov rcx, rdi
mov rdx, rsi
call fcn.1400504f0
mov rcx, rsi
call fcn.140050480
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x140074e90
mov rax, qword [rsp + 0x38]
jmp 0x140074e90
lea rcx, [rsp + 0x30]
call fcn.140050480
lea rcx, [rsp + 0x298]
call fcn.140091610
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140135280
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140075000
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test r8, r8
je 0x14007504e
cmp byte [r14 + 0x17], 0
js 0x140075131
mov byte [r14], 0
mov byte [r14 + 0x17], 0
test rbx, rbx
je 0x140075148
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call fcn.1401461cc
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xd0], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
lea rdx, str.ReadStreamToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0xcb
call fcn.1400651f0
lea rcx, [rsp + 0x80]
mov rdx, rsi
xor r8d, r8d
call fcn.1400bbe30
xorps xmm6, xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
mov rcx, rbx
call fcn.1401461a4
mov ecx, eax
call fcn.14014701c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14007514f
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov esi, 0xffff
cmovg rsi, rax
jmp 0x140075154
mov rax, qword [r14]
mov byte [rax], 0
mov qword [r14 + 8], 0
test rbx, rbx
jne 0x140075057
xor esi, esi
jmp 0x140075253
mov esi, 0xffff
cmp rsi, r15
cmova rsi, r15
add rsi, 1
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
lea r12, [rsp + 0x20]
mov rcx, r12
mov rdx, rsi
xor r8d, r8d
call fcn.1400446ca
mov r13d, 0x10000
xor edi, edi
nop dword [rax + rax]
cmp byte [rsp + 0x37], 0
mov rcx, r12
jns 0x14007519f
mov rcx, qword [rsp + 0x20]
add rcx, rdi
mov edx, 1
mov r8, rsi
mov r9, rbx
call fcn.14014ea14
test rax, rax
je 0x1400751ed
mov rcx, r15
sub rcx, rdi
cmp rcx, rax
jb 0x140075280
test rdi, rdi
cmove rsi, r13
add rdi, rax
mov rcx, rbx
call fcn.14014e5c0
test eax, eax
jne 0x1400751ed
lea rdx, [rdi + rsi]
mov rcx, r12
xor r8d, r8d
call fcn.1400446ca
jmp 0x140075190
mov rcx, rbx
call fcn.14014e5ec
test eax, eax
sete sil
mov r15, rdi
test r14, r14
je 0x140075235
movups xmm0, xmmword [r14]
mov rax, qword [r14 + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [r14 + 0x10], rcx
movaps xmm1, xmmword [rsp + 0x20]
movups xmmword [r14], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400446ca
cmp byte [rsp + 0x37], 0
jns 0x140075246
mov rcx, qword [rsp + 0x20]
call fcn.1401349d4
lea rcx, [rsp + 0x80]
call fcn.1400bc150
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140135280
mov eax, esi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
test r14, r14
jne 0x140075203
jmp 0x140075235
Function at 0x140075df0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140075f50
mov qword [rsi], 0
test rax, rax
je 0x140075e58
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x140075e3e
call fcn.140065210
mov rcx, qword [rsi]
call fcn.1400bc7d0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140075e50
mov qword [rsi], rbx
call fcn.140065210
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140050340
lea rcx, [rsi + 0x20]
call fcn.1400bc820
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x1400760a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
mov esi, r9d
mov r14, r8
mov r15, rdx
mov r12, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rbx
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x3e
call fcn.1400651f0
lea rcx, [rsp + 0x60]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bbe30
test esi, esi
js 0x1400761aa
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400bc800
test al, al
je 0x14007616c
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r12
call fcn.1400bc8f0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r12]
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400761b1
mov esi, dword [rsp + 0x2c]
jmp 0x1400761c2
mov esi, 0xffffffff
jmp 0x1400761cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.1400bc890
lea rcx, [rsp + 0x60]
call fcn.1400bc150
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140076200
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x57
call fcn.1400651f0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bbe30
test esi, esi
js 0x1400762f3
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400bc800
test al, al
je 0x1400762c4
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400bc8f0
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400762fa
mov esi, dword [rsp + 0x2c]
jmp 0x14007630b
mov esi, 0xffffffff
jmp 0x140076315
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.1400bc890
lea rcx, [rsp + 0x50]
call fcn.1400bc150
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140076340
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x88
call fcn.1400651f0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bbe30
test esi, esi
js 0x140076440
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400bc800
test al, al
je 0x140076404
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400bc8f0
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.1400bc890
jmp 0x140076445
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.1400bc150
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140076470
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0x9c
call fcn.1400651f0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.1400bbe30
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400bc800
test al, al
je 0x140076526
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.1400bc8f0
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400bc890
lea rcx, [rsp + 0x50]
call fcn.1400bc150
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140135280
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400769d0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov r12d, r8d
mov rbx, rdx
mov r15, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x140173f60]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x160
call fcn.1400651f0
lea rcx, [rsp + 0x60]
mov rdx, rbp
xor r8d, r8d
call fcn.1400bbe30
mov eax, r12d
and eax, 1
neg eax
and eax, 3
test r12b, 2
mov edx, 1
cmove edx, eax
test r12b, 4
mov ecx, 4
cmovne edx, ecx
test r12b, 8
mov ebp, 2
cmove ebp, edx
test r12b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x140076be3
mov edx, r12d
and edx, 0x40
shl edx, 0x18
test r12b, 0x80
cmove ecx, edx
mov edx, r12d
rol edx, 0x1a
mov edi, r12d
shl edi, 0xb
and edi, 0x20000000
mov esi, r12d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r12d
shr ecx, 8
and ecx, 3
mov r8d, r12d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov ebp, r12d
and ebp, 0x400
mov ecx, ebp
shl ecx, 0x14
mov edi, r12d
shr edi, 3
and edi, 0x100
or edi, ecx
mov ecx, r12d
shr ecx, 0xb
and ecx, 2
or ecx, edi
mov edi, r12d
shl edi, 0xd
and edi, 0x4000000
or edi, ecx
mov esi, r12d
shl esi, 8
mov ecx, esi
and ecx, 0x2000000
or ecx, edi
and esi, 0x8000000
or esi, ecx
cmp byte [rbx + 0x17], 0
jns 0x140076b56
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r15], rax
je 0x140076bc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [r15]
add rax, 1
cmp rax, 2
jb 0x140076ba5
call fcn.140065210
mov rcx, qword [r15]
call fcn.1400bc7d0
mov qword [r15], 0
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x140076bba
mov qword [r15], rbx
call fcn.140065210
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r15]
add rbx, 1
cmp rbx, 2
jae 0x140076bf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140076750
mov dword [r15 + 0x24], eax
jmp 0x140076c2a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r15 + 0x24], 0xffffffff
jmp 0x140076c2a
shr ebp, 0xa
mov dword [r15 + 0x24], 0
mov byte [r15 + 0x29], bpl
test r12b, 4
jne 0x140076c1a
test r12b, 0xa
je 0x140076c2a
mov byte [r15 + 0x28], 1
jmp 0x140076c2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r15 + 0x28]
lea rcx, [rsp + 0x60]
call fcn.1400bc150
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140135280
nop
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140076c60
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140076cbd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jb 0x140076c9b
call fcn.140065210
mov rcx, qword [rdi]
call fcn.1400bc7d0
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140076cad
mov qword [rdi], rsi
call fcn.140065210
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140089ae0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
mov eax, dword [rcx]
mov r10d, dword [rcx + 4]
test rdx, rdx
je 0x140089b3b
xor r11d, r11d
nop word cs:[rax + rax]
nop dword [rax + rax]
add eax, 1
movzx eax, al
mov esi, dword [rcx + rax*4 + 8]
add r10d, esi
movzx r10d, r10b
mov edi, dword [rcx + r10*4 + 8]
mov dword [rcx + rax*4 + 8], edi
mov dword [rcx + r10*4 + 8], esi
add edi, esi
movzx esi, dil
movzx ebx, byte [r8 + r11]
xor bl, byte [rcx + rsi*4 + 8]
mov byte [r9 + r11], bl
add r11, 1
cmp rdx, r11
jne 0x140089b00
mov dword [rcx], eax
mov dword [rcx + 4], r10d
pop rbx
pop rdi
pop rsi
ret

Function at 0x14008fdea
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x120
mov rsi, rcx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x118], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
xor eax, eax
mov qword [rsp + 0x110], rax
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xb0], 0x68
mov qword [rsp + 0xa0], rax
movaps xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xec], 1
mov word [rsp + 0xf0], 1
cmp byte [rcx + 0x47], 0
js 0x14008fe96
lea rax, [rsi + 0x30]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x80], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
jmp 0x14008fea8
mov rdx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140044a62
cmp byte [rsp + 0x87], 0
jns 0x14008feb9
mov rcx, qword [rsp + 0x70]
jmp 0x14008febe
lea rcx, [rsp + 0x70]
call fcn.14014c7c0
mov rbx, rax
add rsi, 0x18
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.140050340
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14008fee8
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov rcx, rdi
call fcn.140050480
cmp byte [rsp + 0x87], 0
jns 0x14008ff41
mov rcx, qword [rsp + 0x70]
call fcn.1401349d4
test esi, esi
je 0x14008ff60
mov rcx, qword [rsp + 0x90]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x98]
call rsi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140135280
nop
add rsp, 0x120
pop rbx
pop rdi
pop rsi
ret
Function at 0x14008fff0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140090087
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x140090051
call fcn.140065210
mov rcx, qword [rsi]
call fcn.1400bc7d0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140090063
mov qword [rsi], rdi
call fcn.140065210
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
add rax, 1
cmp rax, 1
jbe 0x14009008e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 8], 1
int3
int3
Function at 0x140093ad0
Capabilities:
Get storage device properties

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
mov r14, rdx
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, str..PhysicalDrive0
xor esi, esi
xor edx, edx
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140093bce
mov rbx, rax
xor esi, esi
lea r15, [rsp + 0x50]
mov dword [r15 + 8], esi
mov qword [r15], rsi
lea r12, [rsp + 0x4c]
mov dword [r12], esi
lea rdi, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rdi
xor edx, edx
call fcn.140138090
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x400
mov rcx, rbx
mov edx, 0x2d1400
mov r8, r15
mov r9d, reloc.WS2_32.dll_inet_ntoa
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140093bc5
mov edi, dword [rsp + 0x70]
movsx ecx, byte [rsp + rdi + 0x60]
call fcn.14014f2d0
test eax, eax
je 0x140093bc5
lea rdx, [rsp + rdi]
add rdx, 0x60
mov rcx, r14
call fcn.140043e56
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x140093bce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140135280
mov eax, esi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400941c0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14019c018]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.140138090
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140134998
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1401ac6e0]
mov ecx, dword [0x1401a559c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009428c
lea r8, [0x1401ac6b0]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140094430
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140135280
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401ac6e0]
call fcn.140134af0
cmp dword [0x1401ac6e0], 0xffffffff
jne 0x140094258
xorps xmm0, xmm0
movups xmmword [0x1401ac6d0], xmm0
movups xmmword [0x1401ac6c0], xmm0
movups xmmword [0x1401ac6b0], xmm0
lea rcx, [0x1401ac6b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ac6e0]
call fcn.140134b88
jmp 0x140094258