joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066d70
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
mov qword [rbp + 0x7f], rbx
lea rcx, [0x1400a3ca8]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbp + 0x77], rax
mov edi, 0x80004005
test rsi, rsi
je 0x140066ead
movups xmm0, xmmword [0x1400c0370]
movdqu xmmword [rbp - 0x19], xmm0
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x19]
call fcn.140067264
test eax, eax
js 0x140066ea9
mov qword [rbp + 0x6f], r15
mov rax, qword [rsi]
lea r9, [rbp - 0x19]
xor r8d, r8d
mov edx, r15d
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [str._N_b_]
lea eax, [r15 + 0xd]
mov word [rbp - 9], ax
mov qword [rbp - 1], rsi
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [str._N_b_]
nop
movups xmm0, xmmword [rbp - 9]
movaps xmmword [rbp + 0x17], xmm0
movsd xmm1, qword [rbp + 7]
movsd qword [rbp + 0x27], xmm1
mov rbx, qword [rbp + 0x7f]
mov rax, qword [rbx]
lea r8, [rbp + 0x6f]
lea rdx, [rbp + 0x17]
mov rcx, rbx
mov rax, qword [rax + 0x1d0]
call qword [str._N_b_]
test eax, eax
jne 0x140066e83
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov qword [rbp + 0x77], r15
mov rax, qword [rbx]
lea rdx, [rbp + 0x77]
mov rcx, rbx
mov rax, qword [rax + 0x110]
call qword [str._N_b_]
nop
mov eax, 0xfff
cmp word [rbp - 9], ax
jne 0x140066e97
mov eax, 8
mov word [rbp - 9], ax
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
jmp 0x140066ead
mov rbx, qword [rbp + 0x7f]
mov qword [rbp + 0x7f], r15
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140066f6d
mov rdi, qword [rbp + 0x7f]
mov rax, qword [rbp + 0x77]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140066f01
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test rdi, rdi
je 0x140066f4e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r15
test rdi, rdi
cmove rcx, rdi
mov edi, r15d
test rcx, rcx
je 0x140066f6d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rbx, rbx
je 0x140066f94
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [str._N_b_]
nop
mov eax, edi
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140066fb4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, rdx
mov r14, rcx
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov esi, 0x80004005
xor edi, edi
and qword [rbp - 0x18], rdi
and qword [rbp - 0x10], rdi
and qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x38]
mov qword [r11 - 0x68], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400670e1
mov rdi, qword [rbp - 0x38]
mov qword [rbp - 0x20], rdi
mov eax, dword [rbp + 0x30]
add eax, eax
mov dword [rbp + 0x38], eax
and dword [rbp + 0x30], ebx
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea r9, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140067066
xor ecx, ecx
jmp 0x14006707a
mov eax, dword [rbp - 0x40]
dec eax
cmp eax, 1
ja 0x1400670c9
mov ecx, dword [rbp + 0x38]
shr ecx, 1
mov dword [rbp + 0x30], ecx
xor eax, eax
test eax, eax
jne 0x1400670c9
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140082d90
mov rsi, rax
test rax, rax
je 0x1400670c9
lea r9, [rbp + 0x30]
mov r8, rax
lea rcx, [rbp - 0x20]
call fcn.140067fa4
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.1400673a8
mov rcx, rsi
call sub.msvcrt.dll_free
mov rbx, qword [rbp - 0x30]
test rdi, rdi
je 0x1400670df
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor edi, edi
xor esi, esi
test rdi, rdi
je 0x1400670f5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test esi, esi
js 0x140067136
test rbx, rbx
je 0x140067136
and dword [rbp + 0x30], 0
and dword [rbp + 0x34], 0
mov rax, qword [rbx]
lea r9, [rbp + 0x38]
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
mov rcx, rbx
mov rax, qword [rax + 0x28]
call qword [str._N_b_]
mov rax, qword [r14]
mov rdx, rbx
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [str._N_b_]
mov esi, eax
test rbx, rbx
je 0x14006714c
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [str._N_b_]
nop
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140067fa4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.QatItems
add eax, eax
mov rbx, r8
mov dword [rsp + 0x48], eax
mov rdi, r9
lea rax, [r11 + 0x10]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov rcx, qword [rcx]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140068027
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x140068022
mov ecx, dword [rsp + 0x48]
test rbx, rbx
je 0x14006803b
test ecx, ecx
je 0x140068038
test cl, 1
jne 0x140068022
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14006803b
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x140068027

Function at 0x14006b830
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx]
mov rdi, rdx
mov rbx, rcx
cmp rax, qword [rcx + 0x1f8]
je 0x14006b86c
cmp rax, qword [rcx + 0x278]
je 0x14006b86c
cmp rax, qword [rcx + 0x358]
je 0x14006b86c
cmp rax, qword [rcx + 0x438]
jne 0x14006b88f
call fcn.14006b644
mov rcx, qword [rbx + 0xc0]
mov r9, rdi
xor r8d, r8d
mov edx, COleControlSite::XOleClientSite::AddRef
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor esi, esi
cmp dword [rdi + 8], 0x100
jne 0x14006b8f2
cmp qword [rdi + 0x10], 9
jne 0x14006b8c7
lea ecx, [rsi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
mov r8d, esi
lea edx, [rsi + 9]
test ax, ax
mov rcx, rbx
sets r8b
call fcn.14006bfac
jmp 0x14006b8e7
cmp qword [rdi + 0x10], 0x1b
jne 0x14006b8f2
mov rcx, qword [rbx + 0x488]
mov edx, 2
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._N_b_]
test al, al
je 0x14006b8f2
mov eax, 1
jmp 0x14006b94f
call qword [sym.imp.MFC42u.dll_Ordinal_1471]
nop dword [rax + rax]
mov rdx, rax
test rax, rax
je 0x14006b91e
mov rcx, qword [rax]
mov rax, qword [rcx + 0xf8]
mov rcx, rdx
call qword [str._N_b_]
mov rcx, rax
jmp 0x14006b921
mov rcx, rsi
test rcx, rcx
je 0x14006b93d
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x130]
call qword [str._N_b_]
test eax, eax
jne 0x14006b94f
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MFC42u.dll_RFX_Long_Bulk]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140071500
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x490
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400ebe98]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, CSocketFile::CSocketFile
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r14
lea rdi, [rbx + 8]
mov word [rdi], r14w
xor r8d, r8d
lea rdx, [0x1400a3ca8]
mov rcx, rbx
call fcn.14000c90c
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r14 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x1400716d4
lea rax, [rsp + 0x60]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rax + r8*2], r14w
jne 0x1400715b7
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14000c90c
lea rdx, str.Microsoft_
mov rcx, rbx
call fcn.140072478
lea rdx, [rsi + 0x28]
mov r9, r15
xor r8d, r8d
mov rcx, rbx
call fcn.14006ff94
lea rdx, [0x1400a7e68]
mov rcx, rbx
call fcn.140072478
cmp qword [rbx + 0x20], 8
jb 0x14007160a
mov rcx, qword [rdi]
jmp 0x14007160d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140071682
cmp qword [rbx + 0x20], 8
jb 0x14007162a
mov rdx, qword [rdi]
jmp 0x14007162d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
nop dword [rax + rax]
test eax, eax
je 0x140071682
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r9, r15
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14000ce2c
nop
cmp qword [rsp + 0x58], 8
jb 0x1400716d4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
jmp 0x1400716d4
lea rdx, [rsi + 0x30]
cmp qword [rsi + 0x48], 8
jb 0x140071690
mov rdx, qword [rdx]
cmp qword [rbx + 0x20], 8
jb 0x14007169a
mov rdi, qword [rdi]
lea r9, [rbp + 0x170]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [0x1400a3ca8]
mov rcx, rbx
call fcn.14000c90c
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.140072478
mov rax, rbx
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140083280
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140071c88
Capabilities:
Delete file
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400ebe98]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
lea r8, [rcx + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [rbp + 0x17]
call fcn.140070310
nop
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140073054
nop
cmp qword [rbp + 0x37], 8
jb 0x140071cf9
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov r15d, 7
mov qword [rbp + 0x37], r15
xor edi, edi
mov qword [rbp + 0x2f], rdi
mov word [rbp + 0x1f], di
lea rdx, [0x1400a3ca8]
mov rcx, rsi
call fcn.14000c888
test eax, eax
je 0x140071e16
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.14006ff94
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
lea r8d, [r15 + 9]
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000c90c
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x41]
lea rcx, [rsi + 0x60]
call fcn.1400721f0
mov rbx, qword [rax]
cmp qword [rbp - 0x19], 8
jb 0x140071d83
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
cmp rbx, qword [rsi + 0x68]
je 0x140071deb
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.RecoveryFilePath
lea rcx, [rbp - 0x39]
call fcn.14000c90c
nop
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x60]
call fcn.140072334
lea rcx, [rax + 8]
cmp qword [rax + 0x20], 8
jb 0x140071dc7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
nop
cmp qword [rbp - 0x19], 8
jb 0x140071deb
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ecx, 1
test eax, eax
cmove edi, ecx
cmp qword [rbp + 0xf], 8
jb 0x140071e2d
mov rcx, qword [rbp - 9]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140083280
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140073b10
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400ebe98]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor edi, edi
cmp dword [0x1400ee01c], edi
mov qword [rsp + 0x20], rdi
jne 0x140073b54
mov eax, 0x80004005
jmp 0x140073ca9
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
jbe 0x140073b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140073c9f
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140076a10
mov ebx, eax
test eax, eax
js 0x140073c9a
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140073bf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140073bf1
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140073c9f
mov rcx, qword [0x1400ee010]
call sub.msvcrt.dll_free
mov qword [0x1400ee010], rdi
lea rcx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
nop dword [rax + rax]
test rax, rax
je 0x140073c55
lea r8, str.oPackage
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140009d14
test eax, eax
js 0x140073c55
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140076a10
mov ebx, eax
test eax, eax
js 0x140073c9a
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140073c83
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [0x1400ee010]
call sub.msvcrt.dll_free
mov qword [0x1400ee010], rdi
xor edi, edi
jmp 0x140073c9f
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140083280
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140076f60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rbp + 0x10], 0
lea rax, [rcx - 0x18]
neg rax
lea rdx, [rcx + 8]
mov rdi, rcx
sbb rbx, rbx
and rbx, rdx
je 0x140076f9d
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xcc], 0
je 0x14007714a
mov rcx, qword [rdi + 0x78]
and dword [rdi + 0xcc], 0
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x140076fdb
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rdi + 0x98], 0
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x140076ffc
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rdi + 0xa0], 0
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x14007704f
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400c0680]
mov rax, qword [rax]
call qword [str._N_b_]
test eax, eax
js 0x14007704f
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._N_b_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14007704f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rbp + 0x10], 0
and qword [rdi + 0xa8], 0
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x1400770aa
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400c0680]
mov rax, qword [rax]
call qword [str._N_b_]
test eax, eax
js 0x1400770aa
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._N_b_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400770aa
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rbp + 0x10], 0
and qword [rdi + 0xb8], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140077105
mov rax, qword [rcx]
lea r8, [rbp + 0x10]
lea rdx, [0x1400c0680]
mov rax, qword [rax]
call qword [str._N_b_]
test eax, eax
js 0x140077105
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [str._N_b_]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140077105
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rbp + 0x10], 0
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140077126
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rdi + 0xb0], 0
mov rcx, qword [rdi + 0x88]
test rcx, rcx
je 0x14007714a
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x88]
call sub.msvcrt.dll_free
test rbx, rbx
je 0x14007715f
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x38]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
Function at 0x14007a200
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx - 8]
mov rdi, rcx
neg rax
lea rdx, [rcx + 8]
sbb rbx, rbx
and rbx, rdx
je 0x14007a235
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0xf8], 0
je 0x14007a305
and dword [rdi + 0xf8], 0
cmp dword [rdi + 0x100], 0
je 0x14007a25d
xor edx, edx
lea rcx, [rdi - 8]
call fcn.14007b05c
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x14007a27e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rdi + 0xe8], 0
cmp dword [rdi + 0xfc], 0
je 0x14007a29a
mov rcx, qword [rdi + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rdi + 0xf0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xb0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xc0]
call sub.msvcrt.dll_free
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
je 0x14007a2df
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rdi + 0xd8], 0
mov rcx, qword [rdi + 0xe0]
test rcx, rcx
je 0x14007a300
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._N_b_]
and qword [rdi + 0xe0], 0
and qword [rdi + 0x38], 0
test rbx, rbx
je 0x14007a31a
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14007a6ac
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
xor edi, edi
lea rdx, [rcx + 0x10]
and dword [rbp + 0x38], edi
or r15, 0xffffffffffffffff
and dword [rbp + 0x48], edi
mov rax, rcx
and dword [rbp + 0x40], edi
mov rsi, rcx
neg rax
sbb rbx, rbx
and rbx, rdx
je 0x14007a6f0
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x100], edi
jne 0x14007a702
mov edi, 0x802a0035
jmp 0x14007a8c6
mov rcx, qword [rsi + 0xf8]
test rcx, rcx
jne 0x14007a718
mov edi, 0x80004005
jmp 0x14007a8d5
cmp dword [rsi + 0x104], edi
jne 0x14007a8c6
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14007a793
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14007a789
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14007a8c6
mov edi, 0x8000ffff
jmp 0x14007a8c6
mov rax, qword [rsi]
lea rdx, [rbp + 0x40]
mov rcx, rsi
mov rax, qword [rax + 0x28]
call qword [str._N_b_]
mov edx, 1
mov rcx, rsi
call fcn.14007b05c
mov edi, eax
test eax, eax
js 0x14007a8c6
jmp 0x14007a81f
mov edx, dword [rsi + 0xd4]
lea r9, [rbp + 0x48]
add rdx, qword [rsi + 0xc8]
mov r8d, r14d
and qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14007a80f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14007a8c6
add dword [rsi + 0xd8], r14d
mov eax, dword [rbp + 0x48]
add dword [rsi + 0xd4], eax
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14007aed4
mov r14d, dword [rbp + 0x38]
test r14d, r14d
jne 0x14007a7c0
mov ecx, dword [rsi + 0xd8]
mov eax, ecx
sub eax, dword [rsi + 0x54]
neg eax
sbb edi, edi
and edi, 0x802a0021
cmp ecx, dword [rsi + 0x54]
jne 0x14007a8c6
xor edx, edx
mov rcx, rsi
call fcn.14007b05c
mov edi, eax
test eax, eax
js 0x14007a8c6
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rbp + 0x40]
lea r14, [rsi + 0xf0]
mov rcx, qword [rsi + 0xf8]
mov rdx, r14
or r15, 0xffffffffffffffff
mov dword [rbp + 0x50], eax
call fcn.1400758f0
mov edi, eax
test eax, eax
js 0x14007a8c6
mov rcx, qword [r14]
lea rdx, [rbp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [str._N_b_]
mov edi, eax
test eax, eax
js 0x14007a8c6
mov eax, dword [rbp + 0x40]
cmp dword [rbp + 0x50], eax
je 0x14007a8bc
mov edi, 0x80004005
jmp 0x14007a8c6
mov dword [rsi + 0x104], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14007a8ea
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret