joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140083500
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14d, r8d
mov r15, rdx
mov r12, rcx
xor edi, edi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x68], rdi
cmp dword [0x14036b1e4], edi
jne 0x1400835dd
mov eax, dword [0x14036b1e0]
test eax, eax
jne 0x1400835dd
mov esi, edi
mov r8d, dword [0x14036b1ec]
test r8d, r8d
je 0x140083570
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14036b1e0]
mov r8d, dword [0x14036b1ec]
test eax, eax
je 0x14008357d
mov ebx, 1
mov esi, ebx
jmp 0x1400835ac
test r8d, r8d
jne 0x140083590
call fcn.140083660
test eax, eax
jne 0x140083590
lea ebx, [rax + 1]
jmp 0x1400835ac
lea rdx, [rsp + 0x68]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ebx, 1
test eax, eax
cmovne esi, ebx
test esi, esi
jne 0x1400835e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x1400835cd
cmp eax, 0x78
je 0x1400835cd
cmp eax, 1
je 0x1400835cd
cmp eax, 0x32
jne 0x1400835d5
mov dword [0x14036b1e0], ebx
mov esi, ebx
test esi, esi
jne 0x1400835e2
mov ebx, edi
jmp 0x1400835e2
mov ebx, 1
test ebx, ebx
jne 0x140083602
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
mov r8d, r14d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x14036b1e4], 0
je 0x14008362b
cmp dword [0x14036b1e0], 0
jne 0x140083658
mov ebx, edi
test rsi, rsi
sete bl
test ebx, ebx
je 0x14008363f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140083658
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x1400835e8

Function at 0x140083c40
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rcx, rdx
mov rbx, r9
mov rdi, r8
call fcn.14008d6e0
test rax, rax
jne 0x140083c6d
mov eax, 0x80004005
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, rdi
call fcn.140088990
lea rcx, [rsp + 0x38]
mov rdi, rax
call fcn.14008d8d0
mov r8, rbx
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14008e710
test al, al
jne 0x140083c9d
mov ebx, 1
jmp 0x140083ce0
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140083cde
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.14008dad0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140083d00
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x14036aa00]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov rsi, r9
mov rbx, r8
mov rcx, rdx
call fcn.14008d6e0
test rax, rax
jne 0x140083d49
mov eax, 0x80004005
jmp 0x140083f26
mov rcx, rbx
call fcn.140088990
mov r14, rax
lea rcx, [rbp + 8]
call fcn.14008d8d0
mov r8, rsi
mov rdx, r14
lea rcx, [rbp + 8]
call fcn.14008e710
test al, al
jne 0x140083d7a
mov ebx, 1
jmp 0x140083f1b
movabs r15, 0xffffffffffffff0
test rsi, rsi
jne 0x140083d92
xor ebx, ebx
mov edi, ebx
jmp 0x140083e21
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x140083da0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x140083dbb
xor ebx, ebx
mov edi, ebx
jmp 0x140083e21
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140083dd1
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402b4ee0
sub rsp, rcx
lea rdi, [rsp + 0x50]
xor ebx, ebx
test rdi, rdi
je 0x140083e1e
mov byte [rdi], bl
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9d, [rbx - 1]
mov r8, rsi
xor edx, edx
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140083e21
mov rdi, rbx
mov qword [rsp + 0x40], rbx
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140083f1b
mov r8, qword [rbp + 0x70]
test r8, r8
jne 0x140083e6b
mov rdi, rbx
jmp 0x140083eea
mov rax, 0xffffffffffffffff
inc rax
cmp word [r8 + rax*2], 0
jne 0x140083e72
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140083e63
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140083e9e
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402b4ee0
sub rsp, rcx
lea rdi, [rsp + 0x50]
test rdi, rdi
je 0x140083ee7
mov byte [rdi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
xor edx, edx
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140083eea
mov rdi, rbx
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 8]
call fcn.14008dad0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.1402b48e0
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret
Function at 0x140083f50
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x14036aa00]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov r14, r9
mov rbx, r8
mov rcx, rdx
call fcn.14008d6e0
test rax, rax
jne 0x140083f99
mov eax, 0x80004005
jmp 0x1400840ed
mov rcx, rbx
call fcn.140088990
mov r15, rax
lea rcx, [rbp + 8]
call fcn.14008d8d0
mov r8, r14
mov rdx, r15
lea rcx, [rbp + 8]
call fcn.14008e710
test al, al
jne 0x140083fca
mov ebx, 1
jmp 0x1400840e2
mov rbx, 0xffffffffffffffff
test r14, r14
jne 0x140083fdf
xor edi, edi
mov esi, edi
jmp 0x14008406b
mov rax, rbx
inc rax
cmp word [r14 + rax*2], 0
jne 0x140083fe2
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jle 0x140083ffe
xor edi, edi
mov esi, edi
jmp 0x14008406b
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14008401b
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1402b4ee0
sub rsp, rcx
lea rsi, [rsp + 0x50]
xor edi, edi
test rsi, rsi
je 0x140084068
mov byte [rsi], dil
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rsi, rdi
jmp 0x14008406b
mov rsi, rdi
mov qword [rsp + 0x40], rdi
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400840e0
mov rcx, qword [rbp + 0x78]
lea rbx, [rbx + 1]
cmp word [rcx + rbx*2], 0
jne 0x1400840a4
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x70]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, edi
lea rcx, [rbp + 8]
call fcn.14008dad0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.1402b48e0
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret
Function at 0x140085ee0
Capabilities:
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x88
mov rcx, rdx
mov ebp, r9d
mov rdi, r8
call fcn.14008d6e0
test rax, rax
jne 0x140085f10
mov eax, 0x80004005
add rsp, 0x88
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0xc0]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0xa8], rbx
xor ebx, ebx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
mov dword [rax], ebx
call fcn.14008d8d0
lea esi, [rbx + 1]
test bpl, 6
je 0x140085f74
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov r8d, esi
mov rdx, rdi
call fcn.14008e920
test al, al
je 0x140086138
test rdi, rdi
je 0x140086134
cmp word [rdi], bx
je 0x140086134
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140085f90
cmp word [rdi + rax*2 - 2], 0x2e
je 0x140086134
test bpl, 4
je 0x140085fbc
xor r13d, r13d
mov r15d, 0xc0000000
lea r14d, [r13 + 2]
jmp 0x140086010
test bpl, 2
je 0x140085ff8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and ebx, esi
jne 0x140085fe0
mov r15d, 0xc0000000
lea r14d, [rbx + 3]
xor r13d, r13d
jmp 0x140085fef
mov r15d, dword [rsp + 0x44]
mov r13d, dword [rsp + 0x44]
mov r14d, dword [rsp + 0x44]
test ebx, ebx
je 0x140086010
jmp 0x140086136
test sil, bpl
je 0x140086134
mov r15d, 0x80000000
mov r13d, esi
mov r14d, 3
mov eax, ebp
and eax, 0x28
cmp al, 0x28
je 0x140086134
mov eax, ebp
mov qword [rsp + 0x30], 0
and eax, 0x20
mov ecx, 0x4000100
mov r12d, ebp
mov r8d, r13d
and r12d, 8
mov edx, r15d
add r12d, r12d
or r12d, eax
mov eax, 0x80
shl r12d, 0x17
test bpl, 0x40
cmovne eax, ecx
xor r9d, r9d
or r12d, eax
mov rcx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140086082
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140086136
bt r12d, 0x1c
jae 0x140086104
lea rdx, [rsp + 0x44]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x1400860ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140086104
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
shl rcx, 0x20
mov eax, eax
or rcx, rax
cmp rcx, 0xee6b280
jbe 0x140086104
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
btr r12d, 0x1c
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], r14d
mov edx, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140086075
test rbp, rbp
je 0x140086136
mov rcx, qword [rsp + 0xa0]
mov rdx, rbp
mov r8, qword [rsp + 0xc0]
add rcx, 0x10
call fcn.140089730
test al, al
jne 0x140086136
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140086138
mov ebx, esi
mov esi, ebx
lea rcx, [rsp + 0x48]
call fcn.14008dad0
mov r15, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x88
pop rdi
pop rbp
ret
Function at 0x140086270
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ebp, r9d
mov rcx, rdx
mov ebx, r8d
call fcn.14008d6e0
test rax, rax
je 0x14008634b
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x38]
mov edx, ebx
call fcn.140089820
test al, al
je 0x140086344
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140086344
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x140086344
mov ecx, setsockopt
mov r8d, ebp
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov qword [rbx], rax
test rax, rax
je 0x14008634b
lea rdx, [rsp + 0x30]
mov rcx, rax
xor edi, edi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140086340
mov rdx, qword [rsp + 0x30]
mov r9, rsi
mov rcx, qword [rsp + 0x38]
mov r8d, ebp
mov dword [rsi], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140086323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x140086340
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx], 0
mov eax, edi
jmp 0x140086350
mov eax, 0x57
jmp 0x140086350
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140086370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rbx, r9
mov rcx, rdx
mov edi, r8d
call fcn.14008d6e0
test rax, rax
je 0x14008643e
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x38]
mov edx, edi
call fcn.140089820
test al, al
je 0x140086429
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140086429
test rbx, rbx
je 0x140086429
cmp word [rbx], 1
jne 0x14008643e
cmp dword [rbx + 4], 1
jne 0x14008643e
cmp dword [rbx + 0x1c], 0
jne 0x14008643e
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test eax, eax
jne 0x140086443
mov rdx, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x38]
mov r9, rsi
mov dword [rsi], eax
mov r8d, dword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14008640e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140086460
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ebp, r9d
mov rcx, rdx
mov edi, r8d
mov rsi, rdx
call fcn.14008d6e0
test rax, rax
jne 0x140086494
mov eax, 0x80004005
jmp 0x1400864eb
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x30]
mov edx, edi
call fcn.140089820
test al, al
jne 0x1400864af
mov eax, 0x57
jmp 0x1400864eb
mov rax, qword [rbx]
mov r9d, ebp
mov ecx, dword [rsp + 0x70]
mov r8d, edi
mov dword [rsp + 0x20], ecx
mov rdx, rsi
mov rcx, rbx
mov rax, qword [rax + 0xc0]
call qword [str.PZ_]
test eax, eax
jne 0x1400864eb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140086500
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov dword [rsp + 0x20], 0
mov rcx, rdx
mov rbx, r9
mov edi, r8d
call fcn.14008d6e0
test rax, rax
jne 0x140086542
mov eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x28]
mov edx, edi
call fcn.140089820
test al, al
jne 0x14008656b
mov eax, 0x57
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
cmp eax, 0xffffffff
jne 0x140086598
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x68], 0
jne 0x1400865be
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
xor eax, eax
mov dword [rbx], edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rsp + 0x20], 0
jne 0x1400865e1
cmp edx, 0x7fffffff
ja 0x1400865e1
mov dword [rbx], edx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140086600
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rdi, r8
call fcn.14008d6e0
test rax, rax
jne 0x140086621
mov eax, 0x80004005
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
test rdi, rdi
je 0x140086693
lea rcx, [rsp + 0x20]
call fcn.14008d8d0
xor r9d, r9d
lea r8d, [rbx + 1]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14008e920
test al, al
jne 0x140086667
lea rcx, [rsp + 0x20]
call fcn.14008dad0
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008667c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.14008dad0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400866b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x50
mov rdi, rcx
mov rbp, r9
mov rcx, rdx
mov r15, r8
mov rsi, rdx
call fcn.14008d6e0
test rax, rax
jne 0x1400866e8
mov eax, 0x80004005
jmp 0x1400867ae
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
call fcn.14008d8d0
xor r9d, r9d
lea rcx, [rsp + 0x30]
mov rdx, rbp
lea r8d, [r9 + 1]
call fcn.14008e920
test al, al
je 0x140086798
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x30]
xor r9d, r9d
lea r8d, [r9 + 1]
call fcn.14008e920
test al, al
je 0x140086798
mov rax, qword [rdi]
mov rdx, rsi
mov r8d, dword [r15]
mov rcx, rdi
mov rax, qword [rax + 0x60]
call qword [str.PZ_]
mov ebx, eax
test eax, eax
jne 0x14008679d
mov rdx, qword [rsp + 0x80]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
mov qword [rsp + 0x20], r15
mov r9d, 1
mov ebx, eax
mov rdx, rsi
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x58]
test ebx, ebx
jne 0x14008678d
mov r8, qword [rsp + 0x80]
call qword [str.PZ_]
mov ebx, eax
jmp 0x14008679d
mov r8, rbp
call qword [str.PZ_]
jmp 0x14008679d
mov ebx, 1
lea rcx, [rsp + 0x30]
call fcn.14008dad0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret

Function at 0x140086890
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, rdx
mov rbx, r8
call fcn.14008d6e0
test rax, rax
jne 0x1400868b1
mov eax, 0x80004005
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x50], rdi
xor edi, edi
test rbx, rbx
je 0x140086979
lea rcx, [rsp + 0x20]
call fcn.14008d8d0
lea r9d, [rdi + 1]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14008e920
test al, al
jne 0x1400868fb
lea rcx, [rsp + 0x20]
call fcn.14008dad0
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140086902
test rax, rax
je 0x14008695d
movzx ecx, word [rbx + rax*2 - 2]
cmp cx, 0x2e
je 0x14008695d
cmp rax, 1
jbe 0x14008692f
cmp word [rbx + rax*2 - 4], 0x2e
jne 0x14008692f
cmp cx, 0x5c
je 0x14008695d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140086962
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
mov edi, eax
call fcn.14008dad0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov edi, 1
lea rcx, [rsp + 0x20]
call fcn.14008dad0
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov edi, 1
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140086990
Capabilities:
Delete directory

Disassembly:
push rdi
sub rsp, 0x40
mov rcx, rdx
mov rdi, r8
call fcn.14008d6e0
test rax, rax
jne 0x1400869b1
mov eax, 0x80004005
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
test rdi, rdi
je 0x140086a22
lea rcx, [rsp + 0x20]
call fcn.14008d8d0
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
call fcn.14008e920
test al, al
jne 0x1400869f6
lea rcx, [rsp + 0x20]
call fcn.14008dad0
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140086a0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.14008dad0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400874e0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov rbx, r8
lea r8, [rsp + 0x40]
call fcn.140089850
test al, al
jne 0x14008750a
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140087550
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov rsi, r8
lea r8, [rsp + 0x50]
mov rdi, r9
call fcn.140089850
test al, al
je 0x140087683
mov ebx, dword [rsp + 0x60]
test ebx, ebx
je 0x140087683
test rdi, rdi
je 0x140087683
cmp word [rdi], 1
jne 0x14008766e
cmp dword [rdi + 4], 1
jne 0x14008766e
cmp dword [rdi + 0x1c], 0
jne 0x14008766e
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140087688
cmp ebx, 2
jb 0x14008766e
test bl, 1
jne 0x14008766e
cmp dword [rdi + 0x18], ebx
jne 0x14008766e
mov rdx, qword [rsp + 0x40]
lea eax, [rbx - 2]
cmp byte [rax + rdx], 0
jne 0x14008766e
lea eax, [rbx - 1]
cmp byte [rax + rdx], 0
jne 0x14008766e
mov rcx, 0xffffffffffffffff
cmp word [rdx + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140087601
lea rcx, [rcx*2 + 2]
cmp rcx, rbx
jne 0x14008766e
mov rcx, qword [rsp + 0x50]
mov r9d, 1
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140087653
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0x80004005
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0x57
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret