joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d31e0
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0xb8
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0xa8], rax
and dword [rsp + 0x54], 0
and dword [rsp + 0x50], 0
mov rbx, rcx
lea rcx, [rsp + 0x40]
mov rdi, r9
mov esi, r8d
mov dword [rsp + 0x40], 0x67452301
mov dword [rsp + 0x44], 0xefcdab89
mov dword [rsp + 0x48], 0x98badcfe
mov dword [rsp + 0x4c], 0x10325476
call fcn.1000e0e68
lea r11, [rsp + 0xa1]
lea rcx, [rsp + 0x52]
mov edx, 2
mov al, byte [rcx - 2]
mov byte [r11 - 1], al
mov al, byte [rcx - 1]
mov byte [r11], al
mov al, byte [rcx]
add r11, 4
mov byte [r11 - 3], al
mov al, byte [rcx + 1]
add rcx, 4
sub rdx, 1
mov byte [r11 - 2], al
jne 0x1000d324e
mov ecx, dword [rsp + 0x50]
lea eax, [rdx + 0x38]
lea r8d, [rdx + 0x78]
shr ecx, 3
lea rdx, [0x1001655c0]
and ecx, 0x3f
sub eax, ecx
sub r8d, ecx
cmp ecx, 0x38
lea rcx, [rsp + 0x40]
cmovb r8d, eax
call fcn.1000e0e68
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
mov r8d, 8
call fcn.1000e0e68
lea r11, [rdi + 1]
lea rcx, [rsp + 0x41]
mov edx, 4
mov al, byte [rcx - 1]
mov byte [r11 - 1], al
mov al, byte [rcx]
add rcx, 4
mov byte [r11], al
mov al, byte [rcx - 3]
add r11, 4
sub rdx, 1
mov byte [r11 - 3], al
mov al, byte [rcx - 2]
mov byte [r11 - 2], al
jne 0x1000d32ca
mov rdx, rdi
mov rcx, rbx
mov r8d, 0x10
sub rdx, rbx
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x1000d3301
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x1000d33b0
test byte [rcx + 0x1c], 4
je 0x1000d336c
cmp byte [rcx + 0x19], 5
jb 0x1000d336c
mov eax, dword [rdi + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 8]
mov edx, 0x1db
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 4]
mov r9d, esi
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
call fcn.1000c23c4
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x1000d33b0
test byte [rcx + 0x1c], 4
je 0x1000d33b0
cmp byte [rcx + 0x19], 5
jb 0x1000d33b0
mov eax, dword [rbx + 0xc]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 8]
mov edx, 0x1dc
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 4]
mov r9d, esi
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.1000c23c4
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.10014e480
add rsp, 0xb8
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1000d33d4
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r15
sub rsp, 0x50
and dword [rsp + 0x40], 0
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x1000d344d
test byte [rcx + 0x1c], 4
je 0x1000d344d
cmp byte [rcx + 0x19], 5
jb 0x1000d344d
mov eax, dword [r9 + 0x14]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1dd
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rbp
mov dword [rsp + 0x30], eax
mov dword [r11 - 0x30], r8d
lea r8, [0x100003198]
mov qword [r11 - 0x38], rsi
call fcn.1000c2ab4
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000d34a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000d3496
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000d34e1
test byte [rcx + 0x1c], 4
je 0x1000d34e1
cmp byte [rcx + 0x19], 5
jb 0x1000d34e1
mov edx, 0x1de
jmp 0x1000d34d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov qword [rbx], r11
mov eax, dword [rsp + 0x40]
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000d34e1
test byte [rcx + 0x1c], 4
je 0x1000d34e1
cmp byte [rcx + 0x19], 5
jb 0x1000d34e1
mov edx, 0x1df
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
call fcn.10001c7b8
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 0x1000d3504
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r15
sub rsp, 0x50
and dword [rsp + 0x40], 0
mov rbx, r9
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x1001653b8]
lea r15, [0x1001653b8]
cmp rcx, r15
je 0x1000d357d
test byte [rcx + 0x1c], 4
je 0x1000d357d
cmp byte [rcx + 0x19], 5
jb 0x1000d357d
mov eax, dword [r9 + 0x14]
mov rcx, qword [rcx + 0x10]
mov edx, 0x1e0
mov dword [rsp + 0x38], eax
mov eax, dword [r9 + 0x10]
mov r9, rbp
mov dword [rsp + 0x30], eax
mov dword [r11 - 0x30], r8d
lea r8, [0x100003198]
mov qword [r11 - 0x38], rsi
call fcn.1000c2ab4
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000d35c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000d35c6
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000d3605
test byte [rcx + 0x1c], 4
je 0x1000d3605
cmp byte [rcx + 0x19], 5
jb 0x1000d3605
mov edx, 0x1e1
jmp 0x1000d35f5
mov eax, dword [rsp + 0x40]
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x1000d3605
test byte [rcx + 0x1c], 4
je 0x1000d3605
cmp byte [rcx + 0x19], 5
jb 0x1000d3605
mov edx, 0x1e2
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003198]
call fcn.10001c7b8
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 0x1000e16e0
Capabilities:
Resolve function by parsing pe exports

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 r13
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x1000e1739
test byte [rcx + 0x1c], 4
je 0x1000e1739
cmp byte [rcx + 0x19], 4
jb 0x1000e1739
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003178]
mov edx, 0xa
call fcn.10001c7b8
mov rax, qword [rsp + 0x70]
mov ecx, 0xffff
mov qword [rbx], rbp
mov qword [rbx + 8], rsi
movdqu xmm0, xmmword [rax]
mov rax, qword [rsp + 0x78]
movdqu xmmword [rbx + 0x10], xmm0
movdqu xmm1, xmmword [rax]
mov rax, rdi
cqo
and rdx, rcx
add rax, rdx
and rax, rcx
xor ecx, ecx
movdqu xmmword [rbx + 0x20], xmm1
sub rax, rdx
mov dword [rbx + 0x30], eax
cmp eax, ecx
jne 0x1000e1782
mov dword [rbx + 0x30], 0x10000
mov rax, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x68]
mov dword [rbx + 0x34], ecx
mov qword [rbx + 0x50], rax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x38], ecx
mov dword [rbx + 0x58], eax
mov al, byte [rsp + 0x90]
mov qword [rbx + 0x48], rcx
mov byte [rbx + 0x5c], al
mov rax, qword [rsp + 0x98]
mov dword [rbx + 0x40], r8d
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 0x68], rax
mov eax, dword [rsp + 0x60]
mov dword [rbx + 0x3c], eax
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000e1882
test byte [rcx + 0x1c], 4
je 0x1000e1819
cmp byte [rcx + 0x19], 4
jb 0x1000e1819
mov r9d, dword [rbx + 0x30]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], r8d
lea r8, [0x100003178]
mov edx, 0xb
mov dword [rsp + 0x20], eax
call fcn.1000c27bc
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000e1882
test byte [rcx + 0x1c], 4
je 0x1000e185c
cmp byte [rcx + 0x19], 4
jb 0x1000e185c
mov rax, qword [rbx]
movzx r9d, byte [rbx + 0x5c]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
lea r8, [0x100003178]
mov edx, 0xc
mov qword [rsp + 0x20], rax
call fcn.1000e1550
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x1000e1882
test byte [rcx + 0x1c], 4
je 0x1000e1882
cmp byte [rcx + 0x19], 4
jb 0x1000e1882
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003178]
mov edx, 0xd
call fcn.10001c7b8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret
Function at 0x1000fabc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebp, ebp
mov esi, eax
cmp eax, ebp
jne 0x1000fac02
lea edx, [rbp + 1]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x80070057
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
cmp rax, rbp
jne 0x1000fac3b
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x8007000e
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, qword [rdi + 0x10]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebp
jne 0x1000fac64
xor r9d, r9d
xor r8d, r8d
mov ecx, 0x80070057
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
cmp rbx, rbp
jne 0x1000fac75
mov rax, qword [rdi + 0x10]
mov word [rax], bp
mov dword [rdi + 0x18], ebp
jmp 0x1000faca2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rdi
mov r8d, eax
call fcn.1000f2a80
cmp eax, ebp
jge 0x1000faca2
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.msvcrt.dll_free]
Function at 0x1000fde5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, r8
mov dword [rsp + 0x60], 4
test r8, r8
jne 0x1000fde92
lea r8, [0x10000a418]
lea rcx, [0x100011a60]
mov edx, 0x46e
call fcn.100099ad8
jmp 0x1000fdee4
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1000fdea2
mov ebx, 0x8000ffff
jmp 0x1000fdef1
and dword [r8], ebx
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000fdedd
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1000fdef1
cmp dword [rsp + 0x68], 4
je 0x1000fdeeb
mov ebx, 0x80004005
jmp 0x1000fdef1
mov ecx, dword [rsp + 0x30]
mov dword [rdi], ecx
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x10010b0f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
sub rsp, 0x30
and qword [rax + 0x10], 0
mov rsi, rdx
mov byte [rdx], 0
lea rdx, [rax + 0x10]
mov rbp, rcx
call fcn.10009fa14
mov ebx, eax
test eax, eax
js 0x10010b164
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010b13a
mov byte [rsi], 1
jmp 0x10010b160
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070003
je 0x10010b15e
cmp ebx, 0x80070002
jne 0x10010b160
xor ebx, ebx
test ebx, ebx
jns 0x10010b19f
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010b19f
test byte [rcx + 0x1c], 1
je 0x10010b19f
cmp byte [rcx + 0x19], 2
jb 0x10010b19f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0xa
mov r9, rbp
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
cmp qword [rsp + 0x48], 0
je 0x10010b1b2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
mov byte [rdx], bl
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010b1f9
test al, 0x10
jne 0x10010b24c
mov byte [rdi], 1
jmp 0x10010b24c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x10010b24c
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010b24c
test byte [rcx + 0x1c], 1
je 0x10010b24c
cmp byte [rcx + 0x19], 2
jb 0x10010b24c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0xb
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x10010b264
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rcx, qword [0x1001653b8]
lea r12, [0x1001653b8]
cmp rcx, r12
je 0x10010b2b3
test byte [rcx + 0x1c], 1
je 0x10010b2b3
cmp byte [rcx + 0x19], 5
jb 0x10010b2b3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0xc
call fcn.10001c7b8
test rbx, rbx
jne 0x10010b2d0
lea r8, [0x100012478]
lea rcx, [0x100012498]
mov edx, 0xa8
call fcn.100099ad8
mov rcx, rsi
mov byte [rbx], 0
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010b324
bt eax, 0xa
jae 0x10010b370
mov byte [rbx], 1
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10010b39d
test byte [rcx + 0x1c], 1
je 0x10010b377
cmp byte [rcx + 0x19], 4
jb 0x10010b377
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xd]
lea r8, [0x100002fa0]
mov r9, rsi
call fcn.10001da24
jmp 0x10010b370
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x10010b370
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10010b39d
test byte [rcx + 0x1c], 1
je 0x10010b377
cmp byte [rcx + 0x19], 2
jb 0x10010b377
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0xe
mov r9, rsi
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
cmp rcx, r12
je 0x10010b39d
test byte [rcx + 0x1c], 1
je 0x10010b39d
cmp byte [rcx + 0x19], 5
jb 0x10010b39d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0xf
call fcn.10001c7b8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x10010b8b4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rdi, r9
mov r12, r8
and qword [rax + 0x10], rbx
and qword [rdx], rbx
mov rbp, rdx
mov r15, rcx
test r9, r9
je 0x10010b8ed
and qword [r9], rbx
mov r13d, 0x250
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
lea rax, [0x1001653b8]
test rsi, rsi
jne 0x10010b91c
mov rcx, qword [0x1001653b8]
mov ebx, 0x8007000e
jmp 0x10010ba84
mov r8, r13
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x10010b9ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x10010ba47
cmp eax, 3
je 0x10010ba47
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010b999
test byte [rcx + 0x1c], 1
je 0x10010b999
cmp byte [rcx + 0x19], 3
jb 0x10010b999
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x1e]
lea r8, [0x100002fa0]
mov r9, r15
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10010ba4e
lea r13, [rsi + 0x2c]
lea r8, [rsp + 0x68]
mov rcx, r15
mov rdx, r13
call fcn.10010b744
mov ebx, eax
test eax, eax
jns 0x10010ba14
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010ba0d
test byte [rcx + 0x1c], 1
je 0x10010ba0d
cmp byte [rcx + 0x19], 2
jb 0x10010ba0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x1e
mov r9, r15
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
call fcn.10001e360
mov r11, qword [rsp + 0x68]
jmp 0x10010ba32
mov r11, qword [rsp + 0x68]
jmp 0x10010ba39
mov rax, qword [rsp + 0x68]
xor r11d, r11d
mov qword [rbp], rax
mov qword [r12], r14
or r14, 0xffffffffffffffff
test rdi, rdi
je 0x10010ba5d
mov qword [rdi], rsi
xor esi, esi
mov rcx, qword [0x1001653b8]
test r11, r11
je 0x10010ba4e
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
cmp r14, 0xffffffffffffffff
je 0x10010ba64
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x10010ba79
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x10010bab1
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10010bab1
test byte [rcx + 0x1c], 1
je 0x10010bab1
cmp byte [rcx + 0x19], 3
jb 0x10010bab1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x1f
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x10010d1bc
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x30
mov rdi, r9
mov r12b, r8b
mov r13b, dl
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10010d22d
mov rcx, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rcx, rbx
je 0x10010d223
test byte [rcx + 0x1c], 1
je 0x10010d223
cmp byte [rcx + 0x19], 4
jb 0x10010d223
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x49
mov r9, rbp
call fcn.10001da24
mov edi, 1
jmp 0x10010d342
mov rax, qword [0x1001653b8]
lea rbx, [0x1001653b8]
cmp rax, rbx
je 0x10010d271
test byte [rax + 0x1c], 1
je 0x10010d271
cmp byte [rax + 0x19], 3
jb 0x10010d271
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea r8, [0x100002fa0]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x4a
call fcn.10001c7dc
mov r9, rdi
mov r8b, r12b
mov dl, r13b
mov rcx, rbp
call fcn.10009d620
mov edi, eax
test eax, eax
jns 0x10010d2be
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10010d311
test byte [rcx + 0x1c], 1
je 0x10010d311
cmp byte [rcx + 0x19], 2
jb 0x10010d311
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x4b
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x10010d30a
mov edx, 0x2000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10010d30a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
cmp rcx, rbx
je 0x10010d311
test byte [rcx + 0x1c], 1
je 0x10010d311
cmp byte [rcx + 0x19], 3
jb 0x10010d311
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x4c
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
test edi, edi
jns 0x10010d342
cmp rcx, rbx
je 0x10010d342
test byte [rcx + 0x1c], 1
je 0x10010d342
cmp byte [rcx + 0x19], 2
jb 0x10010d342
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x4d
mov r9, rbp
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov byte [rdx], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10010d3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
lea rdx, [0x1001653b8]
cmp rcx, rdx
je 0x10010d3c5
test byte [rcx + 0x1c], 1
je 0x10010d3c5
cmp byte [rcx + 0x19], 3
jb 0x10010d3c5
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002fa0]
mov edx, 0x4e
mov r9d, eax
call fcn.10001c7dc
jmp 0x10010d3c5
test al, 0x10
je 0x10010d3c5
mov byte [rbx], 1
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x10011b704
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
and dword [rdx], ebx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x10011b75e
sub eax, 1
je 0x10011b73a
cmp eax, 2
jne 0x10011b7a4
mov dword [rdi], 1
jmp 0x10011b7a4
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.10011b398
mov ebx, eax
test eax, eax
js 0x10011b768
mov cl, byte [rsp + 0x48]
neg cl
sbb edx, edx
neg edx
add edx, 2
mov dword [rdi], edx
jmp 0x10011b764
mov dword [rdi], 5
test ebx, ebx
jns 0x10011b7a4
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x10011b7a4
bt dword [rcx + 0x1c], 9
jae 0x10011b7a4
cmp byte [rcx + 0x19], 3
jb 0x10011b7a4
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0xe
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x10011ca88
Capabilities:
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x10], 0
lea rdx, [rax + 0x10]
mov rdi, rcx
call fcn.10011c890
lea rsi, [0x1001653b8]
mov ebx, eax
test eax, eax
js 0x10011cb09
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10011cb09
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10011cb09
test byte [rcx + 0x1c], 1
je 0x10011cb09
cmp byte [rcx + 0x19], 2
jb 0x10011cb09
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x2c
mov r9d, ebx
call fcn.10001c7dc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jns 0x10011cb4c
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x10011cb4c
test byte [rcx + 0x1c], 1
je 0x10011cb4c
cmp byte [rcx + 0x19], 2
jb 0x10011cb4c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f60]
mov edx, 0x2d
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret