joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019de84
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov rsi, rdx
mov rbp, rcx
mov rcx, rsi
lea rdx, [rax - 0x38]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
xor r14d, r14d
test rax, rax
jne 0x14019ded2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14019df36
movzx eax, ax
or eax, 0x80070000
jmp 0x14019df36
cmp dword [rsp + 0x48], 0x1000000
jne 0x14019df31
mov rdi, qword [rsp + 0x28]
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x14019df31
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp rbx, rsi
ja 0x14019df31
cmp dword [rbx], 0x4550
jne 0x14019df31
mov esi, r14d
cmp r14w, word [rbx + 6]
jae 0x14019df31
movzx ecx, word [rbx + 0x14]
add rcx, rbx
mov eax, esi
lea rdx, [rax + rax*4]
lea rcx, [rcx + rdx*8]
add rcx, 0x18
call fcn.1401a60c8
cmp al, 1
je 0x14019df51
movzx eax, word [rbx + 6]
inc esi
cmp esi, eax
jb 0x14019df09
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
movzx ecx, word [rbx + 0x14]
mov eax, esi
add rcx, rbx
lea r9, [rax*4 + 3]
add r9, rax
lea r9, [rcx + r9*8]
test r9, r9
je 0x14019df31
mov r8d, dword [rbx + 0x50]
mov rdx, rdi
mov rcx, rbp
call fcn.14019de24
jmp 0x14019df36

Function at 0x14019e06c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1405fa008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x20], 0x114
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14019e0bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14019e0e5
movzx eax, ax
or eax, 0x80070000
jmp 0x14019e0e5
cmp dword [rsp + 0x24], 5
jb 0x14019e0d5
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x14019e0a7
xor eax, eax
jmp 0x14019e0e5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x14019e0d1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001af10
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret

Function at 0x14019e5ec
Capabilities:
Encode data using xor

Disassembly:
cmp r8d, 1
jb 0x14019e619
push rbx
sub rsp, 0x20
mov r10, rdx
mov r11d, r8d
mov rbx, rcx
mov rcx, rbx
call fcn.14019e594
xor byte [r10], al
inc r10
sub r11, 1
jne 0x14019e600
add rsp, 0x20
pop rbx
ret
Function at 0x14019f2a0
Capabilities:
Check for time delay via queryperformancecounter
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1405fa008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, rcx
mov r15d, edx
lea rcx, [rsp + 0x30]
call fcn.1401ac774
xor ebp, ebp
test r15d, r15d
je 0x14019f393
cmp qword [r12], rbp
jne 0x14019f2fc
mov ebp, 0xc004d104
jmp 0x14019f393
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetTickCount]
mov ecx, dword [rsp + 0x24]
lea rdx, [rsp + 0x20]
mov r14d, dword [rsp + 0x20]
xor ecx, eax
mov dword [rsp + 0x24], ecx
xor r14d, ecx
lea rcx, [rsp + 0x30]
mov r8d, 8
call fcn.14019f118
mov r13d, ebp
test r15d, r15d
je 0x14019f393
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rsp + 0x20]
mov ecx, r14d
mov edi, dword [r12 + 8]
xor eax, r14d
mov rsi, qword [r12]
mov r14d, eax
rol r14d, cl
add edi, r13d
lea rcx, [rsp + 0x30]
call fcn.1401aca54
mov bl, al
mov edx, edi
mov rcx, rsi
xor bl, r14b
call fcn.14019cbe0
xor al, bl
mov edx, edi
mov r8b, al
mov rcx, rsi
call fcn.14019ccd0
inc r13d
cmp r13d, r15d
jb 0x14019f33c
lea rcx, [rsp + 0x30]
call fcn.14001aad0
mov eax, ebp
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001af10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401a492c
Capabilities:
Hash data using sha256

Disassembly:
mov r9d, 8
lea r8, [0x14036ac90]
jmp 0x1401a54c4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, r8
mov esi, r9d
mov r8d, r9d
xor ebx, ebx
shl r8, 2
mov rdi, rcx
cmp r8, 0x40
jbe 0x1401a54f9
mov ecx, 0x80070057
mov ebx, ecx
call fcn.14003e600
jmp 0x1401a551f
mov qword [rcx + 8], rbx
mov rdx, rax
mov dword [rcx + 0x50], ebx
mov byte [rcx + 4], 1
add rcx, 0x54
call sub.msvcrt.dll_memcpy
mov dword [rdi + 0x94], esi
mov word [rdi + 0x98], pe_nt_image_headers64
mov ecx, ebx
call fcn.14006a86c
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401acab4
Capabilities:
Encode data using xor

Disassembly:
cmp r8d, 1
jb 0x1401acaeb
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r11, rdx
mov ebx, r8d
mov rdi, rcx
mov rcx, rdi
call fcn.1401aca54
xor byte [r11], al
inc r11
sub rbx, 1
jne 0x1401acacd
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401acaf4
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x1401acb6c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, r8d
mov r14, rdx
mov r15, rcx
xor esi, esi
mov edx, dword [r14 + 8]
mov rcx, qword [r14]
add edx, esi
call fcn.14019cbe0
mov ebx, dword [r14 + 8]
mov rcx, r15
mov rdi, qword [r14]
add ebx, esi
mov r11b, al
call fcn.1401aca54
xor al, r11b
mov edx, ebx
mov r8b, al
mov rcx, rdi
call fcn.14019ccd0
inc esi
cmp esi, ebp
jb 0x1401acb1c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1401acd0c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
and qword [rbp - 0x28], 0
mov r14, rcx
cmp byte [rcx + 8], 0
jne 0x1401acd48
mov edi, 0xc004d101
mov ecx, edi
jmp 0x1401acf20
mov rax, qword [rcx]
mov r13d, dword [rbp + 0x68]
mov esi, r13d
mov edi, dword [rax + 0x10]
sub esi, edi
mov dword [rbp + 0x78], edi
dec esi
mov dword [rbp + 0x48], edi
mov dword [rbp + 0x70], esi
lea eax, [rdi + rdi]
cmp eax, edi
jb 0x1401acf19
lea eax, [rsi + rdi*2]
cmp esi, eax
ja 0x1401acf19
mov ecx, eax
call fcn.14011ea0c
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1401c4984
mov rbx, qword [rbp - 0x28]
test rbx, rbx
jne 0x1401acd9b
mov edi, 0x8007000e
jmp 0x1401acd41
lea rcx, [rdi + rbx]
mov r9, rbx
mov qword [rbp - 0x20], rcx
lea r8, [rbp + 0x78]
mov rcx, qword [r14]
lea r12, [rbx + rdi*2]
mov rdx, rbx
call fcn.1401ad37c
mov edi, eax
test eax, eax
jns 0x1401acdc6
mov ecx, eax
jmp 0x1401acf20
mov r15d, dword [rbp + 0x78]
lea eax, [r15*2 + 2]
cmp r15d, eax
ja 0x1401acf19
cmp r13d, eax
jb 0x1401acf19
mov rdx, qword [rbp - 0x20]
lea eax, [r15 + 1]
add rax, qword [rbp + 0x60]
lea r8, [rbp + 0x48]
mov rcx, qword [r14]
sub r13d, r15d
dec r13d
mov dword [rsp + 0x28], r15d
mov r9, rax
mov dword [rsp + 0x20], r13d
mov qword [rbp - 0x18], rax
call fcn.1401ad1b8
mov edi, eax
test eax, eax
js 0x1401acdbf
mov edx, dword [rbp + 0x48]
cmp edx, r15d
ja 0x1401acf19
test edx, edx
je 0x1401ace4c
mov rbx, qword [rbp + 0x60]
mov r8d, edx
mov rcx, qword [rbp - 0x20]
inc rbx
sub rbx, rcx
mov al, byte [rbx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x1401ace3a
mov rbx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x20]
lea r8, [rbp + 0x70]
mov rcx, qword [r14]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edx
mov rdx, r12
call fcn.1401ad1b8
mov edi, eax
test eax, eax
js 0x1401acdbf
mov r14d, dword [rbp + 0x70]
cmp r14d, r13d
ja 0x1401acf19
test r13d, r13d
je 0x1401ace9f
mov r8, qword [rbp - 0x18]
mov rcx, r12
sub r8, r12
mov edx, r13d
mov al, byte [r8 + rcx]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1401ace90
mov esi, r15d
cmp r15d, r14d
jae 0x1401aceb7
mov eax, esi
cmp byte [rax + r12], 0
jne 0x1401aceb7
inc esi
cmp esi, r14d
jb 0x1401acea7
cmp esi, r14d
je 0x1401acf0f
mov eax, esi
cmp byte [rax + r12], 1
jne 0x1401acf0f
mov r8, r15
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1401acf0f
mov rax, qword [rbp + 0x60]
cmp byte [rax], 0
jne 0x1401acf0f
mov rax, qword [rbp + 0x58]
sub esi, r15d
sub r14d, esi
sub r14d, r15d
dec r14d
cmp dword [rax], r14d
mov dword [rax], r14d
jb 0x1401acf19
mov rcx, qword [rbp + 0x50]
lea edx, [r15 + 1]
add edx, esi
mov r8d, r14d
add rdx, r12
call sub.msvcrt.dll_memcpy
jmp 0x1401acf25
mov edi, 0xc004d210
jmp 0x1401acd41
mov ecx, 0x8007006f
mov edi, ecx
call fcn.14003e600
mov ecx, edi
call fcn.14006a86c
lea rcx, [rbp - 0x28]
call fcn.14019c76c
mov eax, edi
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401b18ec
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x20], 0
mov r14, r8
and dword [rbp - 0x18], 0
mov r15, rdx
mov rdi, rcx
call fcn.1401b1f50
mov ebx, eax
test eax, eax
jns 0x1401b1930
mov ecx, eax
call fcn.14003e600
jmp 0x1401b1ab6
lea rdx, [rdi + 0x60]
lea rcx, [rbp - 0x20]
call fcn.14006a2b4
mov rax, qword [rdi]
mov ecx, dword [rax + 4]
call fcn.1401a416c
mov esi, eax
mov eax, dword [rdi + 8]
test eax, eax
je 0x1401b1aa7
cmp eax, 1
jne 0x1401b1ab6
cmp dword [r14], esi
jb 0x1401b1a92
cmp qword [r15], 0
je 0x1401b1a92
cmp dword [rdi + 0x38], esi
jae 0x1401b199e
mov r9d, dword [rdi + 0x38]
lea rcx, [rdi + 0x10]
mov r10d, esi
sub r10d, dword [rdi + 0x38]
mov r8b, sil
sub r8b, byte [rdi + 0x38]
call fcn.1401b2130
mov byte [rax + r9], r8b
inc r9
sub r10, 1
jne 0x1401b1985
test esi, esi
je 0x1401b19ce
xor r9d, r9d
mov r10, rsi
lea rcx, [rdi + 0x10]
call fcn.1401b2130
lea rcx, [rdi + 0x40]
mov r8, rax
call fcn.1401b2110
mov cl, byte [rax + r9]
xor byte [r8 + r9], cl
inc r9
sub r10, 1
jne 0x1401b19a8
and dword [rbp - 0x38], 0
lea rcx, [rdi + 0x10]
call fcn.1401b2130
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rax
call fcn.14019c7b8
mov r10, qword [rdi]
and dword [rbp - 0x28], 0
mov qword [rbp - 0x30], rax
mov ecx, dword [r10 + 4]
sub ecx, 1
je 0x1401b1a3c
cmp ecx, 1
je 0x1401b1a0b
mov ebx, 0xc004d203
jmp 0x1401b1aa0
movaps xmm0, xmmword [r15]
lea rax, [rbp - 0x10]
movaps xmm1, xmmword [rbp - 0x30]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x28], r14
mov r9d, esi
mov rcx, r10
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x30], xmm1
mov qword [rsp + 0x20], rax
call fcn.1401ac7d4
jmp 0x1401b1a70
movaps xmm0, xmmword [r15]
lea rax, [rbp - 0x10]
movaps xmm1, xmmword [rbp - 0x30]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x28], r14
mov r9d, esi
mov edx, 0x80
movdqa xmmword [rbp - 0x10], xmm0
mov rcx, r10
movdqa xmmword [rbp - 0x30], xmm1
mov qword [rsp + 0x20], rax
call fcn.1401a199c
mov ebx, eax
test eax, eax
js 0x1401b1aa0
and dword [rdi + 0x38], 0
lea rcx, [rdi + 0x40]
mov r8, rsi
call fcn.1401b2110
mov rcx, rax
xor edx, edx
call fcn.14001ba6e
jmp 0x1401b1ab6
mov dword [r14], esi
cmp qword [r15], 0
je 0x1401b1ab4
mov ebx, 0xc004d107
mov ecx, ebx
jmp 0x1401b1926
cmp dword [rdi + 0x38], 0
je 0x1401b1ab4
mov ebx, 0x80004005
jmp 0x1401b1aa0
xor ebx, ebx
mov ecx, ebx
call fcn.14006a86c
lea rcx, [rbp - 0x20]
call fcn.14003b0ac
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401b8080
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rdx, str.SYSTEMCurrentControlSetControlProductOptions
and qword [rbp - 8], 0
xor ebx, ebx
mov rsi, r9
mov qword [rbp + 0x40], rbx
lea r9, [rbp - 0x10]
mov rcx, 0xffffffff80000002
lea r8d, [rbx + 1]
call fcn.14003a0bc
mov dword [rbp + 0x28], eax
mov edi, eax
test eax, eax
jns 0x1401b80db
mov ecx, eax
jmp 0x1401b8184
and dword [rbp + 0x30], ebx
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.OSProductPfn
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
lea rdx, [rbp + 0x28]
call fcn.14003dfe4
test eax, eax
je 0x1401b817f
test rbx, rbx
jne 0x1401b8149
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x1401b8142
mov ecx, eax
call fcn.14011ea0c
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.1401c4984
mov rbx, qword [rbp + 0x40]
test rbx, rbx
jne 0x1401b80de
mov edi, 0x8007000e
jmp 0x1401b8182
mov edi, 0x8000ffff
jmp 0x1401b8182
cmp dword [rbp + 0x20], 1
je 0x1401b8156
mov edi, 0x8007000d
jmp 0x1401b8182
mov edx, dword [rbp + 0x30]
lea r9, [rbp + 0x28]
mov r8, rsi
mov rcx, rbx
call fcn.14003f470
mov edi, eax
test eax, eax
js 0x1401b80d4
cmp dword [rbp + 0x28], 0
je 0x1401b8189
and qword [rbp + 0x40], 0
jmp 0x1401b8189
mov edi, dword [rbp + 0x28]
mov ecx, edi
call fcn.14003e600
mov ecx, edi
call fcn.14006a86c
lea rcx, [rbp + 0x40]
call fcn.14019c76c
lea rcx, [rbp - 8]
call fcn.14003b9a8
lea rcx, [rbp - 0x10]
call fcn.14003b9a8
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b81c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor r14d, r14d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion_
mov rsi, r9
mov qword [rbp - 0x18], r14
mov ebx, r14d
mov qword [rbp - 0x10], r14
lea r9, [rbp - 0x18]
mov qword [rbp - 0x20], rbx
lea r8d, [r14 + 1]
mov rcx, 0xffffffff80000002
call fcn.14003a0bc
mov dword [rbp + 0x38], eax
mov edi, eax
test eax, eax
jns 0x1401b821c
mov ecx, eax
jmp 0x1401b82d2
mov dword [rbp + 0x40], r14d
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.DigitalProductId4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
lea rdx, [rbp + 0x38]
call fcn.14003dfe4
test eax, eax
je 0x1401b82cd
test rbx, rbx
jne 0x1401b828b
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x1401b8284
mov ecx, eax
call fcn.14011ea0c
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1401c4984
mov rbx, qword [rbp - 0x20]
test rbx, rbx
jne 0x1401b8220
mov edi, 0x8007000e
jmp 0x1401b82d0
mov edi, 0x8000ffff
jmp 0x1401b82d0
cmp dword [rbp + 0x30], 3
je 0x1401b8298
mov edi, 0x8007000d
jmp 0x1401b82d0
lea r9, [rbp + 0x38]
mov r8, rsi
mov rcx, rbx
call fcn.140083aa4
mov edi, eax
test eax, eax
js 0x1401b8215
cmp dword [rbp + 0x38], r14d
mov rcx, qword [rbp + 0x50]
cmovne rbx, r14
mov qword [rbp - 0x20], rbx
test rcx, rcx
je 0x1401b82d7
mov eax, dword [rbp + 0x40]
mov dword [rcx], eax
jmp 0x1401b82d7
mov edi, dword [rbp + 0x38]
mov ecx, edi
call fcn.14003e600
mov ecx, edi
call fcn.14006a86c
lea rcx, [rbp - 0x20]
call fcn.14019c76c
lea rcx, [rbp - 0x10]
call fcn.14003b9a8
lea rcx, [rbp - 0x18]
call fcn.14003b9a8
mov eax, edi
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1401b8620
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [rcx], 0x6a09e667
mov dword [rcx + 0x24], eax
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov qword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x1401c4e98
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401c4ebe
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add rsp, 0x20
pop rbx
ret

Function at 0x1401c7048
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x1401c707d
cmp dword [rcx + 0x20], 0
jne 0x1401c707d
add rcx, 8
call fcn.14019e890
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401c70cc
mov rdx, qword [rbx + 0x10]
jmp 0x1401c70c7
lea rdi, [rcx + 8]
mov rcx, rdi
call fcn.140039774
test rax, rax
je 0x1401c70cc
cmp dword [rbx], 0
jne 0x1401c70b0
cmp dword [rbx + 0x20], 0
jne 0x1401c70b0
call fcn.140039774
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edx, edx
test eax, eax
sete dl
mov dword [rbx], edx
mov rcx, rdi
call fcn.14019e890
cmp dword [rbx + 0x20], 0
jne 0x1401c70cc
cmp dword [rbx], 0
jne 0x1401c7077
mov rdx, qword [rbx + 0x18]
call fcn.1401c7abc
mov dword [rbx + 0x20], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401c7abc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401c7b09
mov rdx, rdi
call fcn.1401c6bb8
mov ebx, eax
test eax, eax
js 0x1401c7b02
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401c7b09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
mov ecx, eax
call fcn.14003e600
mov ecx, ebx
call fcn.14006a86c
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401c99d4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
add rcx, 8
mov rdi, rdx
xor ebx, ebx
call fcn.140039774
test rax, rax
jne 0x1401c99fa
mov ecx, 0x80004005
mov ebx, ecx
jmp 0x1401c9a20
call fcn.140039774
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1401c9a27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
mov ecx, eax
call fcn.14003e600
jmp 0x1401c9a29
mov dword [rdi], eax
mov ecx, ebx
call fcn.14006a86c
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ca144
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov r14, r9
and qword [rax + 8], r15
mov r12d, r8d
and dword [rcx], r15d
mov rsi, rdx
mov qword [rax + 0x10], r15
mov rdi, rcx
test rdx, rdx
je 0x1401ca1de
lea rdx, [rax + 0x10]
mov rcx, rsi
call fcn.14003f3c8
mov ebx, eax
test eax, eax
jns 0x1401ca198
mov ecx, eax
call fcn.14003e600
jmp 0x1401ca2f0
mov r15, qword [rsp + 0x68]
lea r8, str..bak
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1401c3d38
mov ebx, eax
test eax, eax
js 0x1401ca18c
mov rbp, qword [rsp + 0x60]
test r14, r14
je 0x1401ca1d2
mov rax, qword [r14]
mov qword [rdi + 0x28], rax
mov rax, qword [r14 + 8]
mov qword [rdi + 0x30], rax
jmp 0x1401ca1e6
and qword [rdi + 0x28], 0
and qword [rdi + 0x30], 0
jmp 0x1401ca1e6
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rcx + 0x18]
test r12d, r12d
je 0x1401ca1fb
mov rdx, rsi
call fcn.1401c7abc
mov rdx, rbp
call fcn.1401c7abc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401ca22a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1401ca259
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
test eax, eax
jns 0x1401ca317
jmp 0x1401ca18c
mov rdx, rsi
call fcn.1401c7abc
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401ca259
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
jmp 0x1401ca18c
mov rdx, rsi
mov rcx, rdi
call fcn.1401cad30
mov ebx, eax
cmp eax, 0x80070002
jne 0x1401ca2b6
test r12d, r12d
jne 0x1401ca281
lea ecx, [r12 + 4]
mov edx, 0x4000200e
call fcn.1401cc0c8
mov rdx, rbp
call fcn.1401c7598
mov ebx, eax
test eax, eax
js 0x1401ca18c
mov rdx, rsi
mov rcx, rdi
call fcn.1401caecc
mov ebx, eax
test eax, eax
js 0x1401ca18c
mov rdx, rsi
call fcn.1401c4e98
and dword [rdi + 0x20], 0
jmp 0x1401ca2c5
test eax, eax
js 0x1401ca18c
mov dword [rdi + 0x20], 1
test r15, r15
je 0x1401ca2f0
and qword [rsp + 0x68], 0
lea rcx, [rdi + 0x10]
mov rdx, r15
call fcn.14003be28
mov rdx, qword [rsp + 0x60]
lea rcx, [rdi + 0x18]
and qword [rsp + 0x60], 0
call fcn.14003be28
test ebx, ebx
jns 0x1401ca317
cmp dword [0x140605870], 0
jne 0x1401ca317
mov r8d, ebx
mov edx, 3
mov rcx, rdi
call fcn.1401cbd54
mov dword [0x140605870], 1
mov ecx, ebx
call fcn.14006a86c
lea rcx, [rsp + 0x60]
call fcn.14003b968
lea rcx, [rsp + 0x68]
call fcn.14003b968
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1401cc53c
Capabilities:
Copy file
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rdi, rcx
jne 0x1401cc556
xor ebx, ebx
jmp 0x1401cc607
lea rdx, [rsp + 0x30]
call fcn.1401c9934
mov ebx, eax
test eax, eax
js 0x1401cc5ec
xor edx, edx
mov rcx, rdi
call fcn.1401c7048
mov rdx, qword [rdi + 0x18]
call fcn.1401c7abc
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401cc5a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
jmp 0x1401cc5ec
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401cc592
mov rdx, qword [rdi + 0x10]
call fcn.1401c4e98
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.1401caecc
mov ebx, eax
test eax, eax
js 0x1401cc5ec
mov edx, dword [rsp + 0x30]
xor r8d, r8d
and dword [rdi + 0x20], 0
mov rcx, rdi
call fcn.1401cdbe0
mov ebx, eax
test eax, eax
jns 0x1401cc607
mov ecx, eax
call fcn.14003e600
test ebx, ebx
jns 0x1401cc607
mov r8d, ebx
mov edx, 3
mov rcx, rdi
call fcn.1401cbd54
mov ecx, ebx
call fcn.14006a86c
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401cc87c
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
xor eax, eax
xor ebx, ebx
add rcx, 8
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rax
mov edi, r8d
mov qword [r11 - 0x18], rax
mov r10, rdx
mov qword [r11 - 0x10], rax
call fcn.140039774
test rax, rax
jne 0x1401cc8b7
mov ecx, 0x80004005
jmp 0x1401cc910
mov eax, dword [rsp + 0x80]
neg r9d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x30]
sbb r8, r8
and r8, rax
call fcn.140039774
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, r10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401cc905
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
mov ecx, eax
jmp 0x1401cc912
cmp dword [rsp + 0x60], edi
je 0x1401cc917
mov ecx, 0x8004e109
mov ebx, ecx
call fcn.14003e600
mov ecx, ebx
call fcn.14006a86c
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1401ced80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
add rcx, 8
mov edi, r8d
mov r10, rdx
xor ebx, ebx
call fcn.140039774
test rax, rax
jne 0x1401ceda7
mov ecx, 0x80004005
jmp 0x1401cede4
call fcn.140039774
mov rdx, r10
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401cedd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de7c
mov ebx, eax
mov ecx, eax
jmp 0x1401cede6
cmp dword [rsp + 0x40], edi
je 0x1401cedeb
mov ecx, 0x8004e10a
mov ebx, ecx
call fcn.14003e600
mov ecx, ebx
call fcn.14006a86c
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret