joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800739f0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, r8
mov rbp, rdx
mov qword [r11 - 0x58], rdx
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x180073a37
mov rdx, qword [r8]
mov rcx, qword [r8 + 0x10]
test rcx, rcx
je 0x180073a53
mov rax, rdx
cmp word [rax], 0x25
je 0x180073a8b
add rax, 2
sub rcx, 1
jne 0x180073a43
mov rdx, rdi
mov rcx, rbp
call fcn.1800051e0
nop
mov dword [rsp + 0x20], 1
mov rax, rbp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180147bf0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rax, rax
je 0x180073a53
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x180073a53
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1800051e0
nop
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x180073ab7
mov rcx, qword [rdi]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
jne 0x180073b37
mov rdx, rdi
mov rcx, rbp
call fcn.1800051e0
mov dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x180073b1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180073b19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180073bd7
call fcn.180148104
movdqa xmm0, xmmword [0x1801bc8a0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
jmp 0x180073a67
lea ecx, [rax + 2]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.18014874c
mov rsi, rax
cmp qword [rdi + 0x18], 8
jb 0x180073b62
mov rdi, qword [rdi]
lea r8d, [r14 + 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180073b9c
cmp eax, r14d
ja 0x180073b9c
mov eax, eax
mov word [rsi + rax*2], r15w
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x180073b82
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180005390
mov rcx, rsi
call fcn.180148104
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rbp + 0x10], xmm1
movdqa xmm0, xmmword [0x1801bc8a0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
mov dword [rsp + 0x20], 1
jmp 0x180073b1e
call fcn.18014ebe4
int3
Function at 0x1800a1aa0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x1800a1ae4
mov rax, qword [rdx]
mov word [rax], si
call fcn.1800a1bc0
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x1800a1b09
test dil, dil
jne 0x1800a1b89
cmp r14d, 0x1a
jne 0x1800a1b89
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800a1b25
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.18014be70
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1800a1b60
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180005390
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180147bf0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret

Function at 0x1800a1e70
Capabilities:
Query environment variable

Disassembly:
mov rdx, rcx
mov ecx, 0x1a
jmp fcn.1800a1aa0
Function at 0x1800aa8d0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x1800aa915
mov ebx, 1
jmp 0x1800aa966
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1800aa95c
test ecx, ecx
je 0x1800aa961
add rsi, rcx
sub edi, ecx
jne 0x1800aa920
jmp 0x1800aa961
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1800aa97f
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x1800ab2f0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800ab32b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800ab32b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.1800bbde0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1800b2390
Capabilities:
Check if file exists

Disassembly:
cmp dword [rcx + 0x50], 0
jge 0x1800b24d0
jmp 0x1800b23a0
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor dil, dil
mov byte [rsp + 0x30], dil
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x40]
call fcn.18014be70
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800b2090
cmp byte [rsi + 0x40], dil
je 0x1800b242d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800b2429
test al, 0x10
jne 0x1800b2429
call fcn.1800b3e70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800b4140
test al, al
jne 0x1800b242d
xor al, al
jmp 0x1800b24a6
mov qword [rsi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800b24a6
lea rdx, str.ExtractArchive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800b2483
mov qword [rsi + 0x48], rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x1800b1fc0]
mov r8, r12
mov rdx, r15
mov rcx, r14
call rax
test eax, eax
sete dil
mov byte [rsp + 0x30], dil
mov qword [rsi + 0x48], 0
jmp 0x1800b2494
test rbx, rbx
je 0x1800b24a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, dil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor sil, sil
mov byte [rsp + 0x30], sil
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x40]
call fcn.18014be70
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800b2090
cmp byte [rdi + 0x40], sil
je 0x1800b2560
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800b2559
test al, 0x10
jne 0x1800b2559
call fcn.1800b3e70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800b4140
test al, al
jne 0x1800b2560
xor al, al
jmp 0x1800b25e4
mov qword [rdi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800b25e4
lea rdx, str.ExtractArchive2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1800b25c1
mov qword [rdi + 0x48], rbx
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x1800b1fc0]
mov r8, r12
mov rdx, r15
mov rcx, r14
call r10
test eax, eax
sete sil
mov byte [rsp + 0x30], sil
mov qword [rdi + 0x48], 0
jmp 0x1800b25d2
test rbx, rbx
je 0x1800b25e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, sil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800b23a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [rcx + 0x50], 0
jge 0x1800b24d0
jmp 0x1800b23a0
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor dil, dil
mov byte [rsp + 0x30], dil
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x40]
call fcn.18014be70
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800b2090
cmp byte [rsi + 0x40], dil
je 0x1800b242d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800b2429
test al, 0x10
jne 0x1800b2429
call fcn.1800b3e70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800b4140
test al, al
jne 0x1800b242d
xor al, al
jmp 0x1800b24a6
mov qword [rsi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800b24a6
lea rdx, str.ExtractArchive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800b2483
mov qword [rsi + 0x48], rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x1800b1fc0]
mov r8, r12
mov rdx, r15
mov rcx, r14
call rax
test eax, eax
sete dil
mov byte [rsp + 0x30], dil
mov qword [rsi + 0x48], 0
jmp 0x1800b2494
test rbx, rbx
je 0x1800b24a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, dil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor sil, sil
mov byte [rsp + 0x30], sil
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x40]
call fcn.18014be70
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800b2090
cmp byte [rdi + 0x40], sil
je 0x1800b2560
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800b2559
test al, 0x10
jne 0x1800b2559
call fcn.1800b3e70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800b4140
test al, al
jne 0x1800b2560
xor al, al
jmp 0x1800b25e4
mov qword [rdi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800b25e4
lea rdx, str.ExtractArchive2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1800b25c1
mov qword [rdi + 0x48], rbx
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x1800b1fc0]
mov r8, r12
mov rdx, r15
mov rcx, r14
call r10
test eax, eax
sete sil
mov byte [rsp + 0x30], sil
mov qword [rdi + 0x48], 0
jmp 0x1800b25d2
test rbx, rbx
je 0x1800b25e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, sil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800b24d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [rcx + 0x50], 0
jge 0x1800b24d0
jmp 0x1800b23a0
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor dil, dil
mov byte [rsp + 0x30], dil
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x40]
call fcn.18014be70
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1800b2090
cmp byte [rsi + 0x40], dil
je 0x1800b242d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800b2429
test al, 0x10
jne 0x1800b2429
call fcn.1800b3e70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800b4140
test al, al
jne 0x1800b242d
xor al, al
jmp 0x1800b24a6
mov qword [rsi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800b24a6
lea rdx, str.ExtractArchive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800b2483
mov qword [rsi + 0x48], rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x1800b1fc0]
mov r8, r12
mov rdx, r15
mov rcx, r14
call rax
test eax, eax
sete dil
mov byte [rsp + 0x30], dil
mov qword [rsi + 0x48], 0
jmp 0x1800b2494
test rbx, rbx
je 0x1800b24a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, dil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r12, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor sil, sil
mov byte [rsp + 0x30], sil
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x40]
call fcn.18014be70
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1800b2090
cmp byte [rdi + 0x40], sil
je 0x1800b2560
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800b2559
test al, 0x10
jne 0x1800b2559
call fcn.1800b3e70
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1800b4140
test al, al
jne 0x1800b2560
xor al, al
jmp 0x1800b25e4
mov qword [rdi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800b25e4
lea rdx, str.ExtractArchive2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1800b25c1
mov qword [rdi + 0x48], rbx
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x1800b1fc0]
mov r8, r12
mov rdx, r15
mov rcx, r14
call r10
test eax, eax
sete sil
mov byte [rsp + 0x30], sil
mov qword [rdi + 0x48], 0
jmp 0x1800b25d2
test rbx, rbx
je 0x1800b25e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, sil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800bbde0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x1800bbe3e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800bbe29
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800bbe3e
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x1800bbe40
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180147bf0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800bd110
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, r9
mov edi, r8d
test rax, rax
je 0x1800bd162
mov rax, qword [rax]
test rax, rax
je 0x1800bd162
test rdx, rdx
je 0x1800bd162
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x1800bd162
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800bd162
cmp edi, dword [rbx]
sete al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x1800c03a0
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r13, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x1800c058a
cmp qword [rcx], 0xffffffffffffffff
je 0x1800c058a
mov qword [r11 - 0x50], 0xffffffffffff8000
mov ebx, 2
mov r9d, ebx
lea r8, [r11 - 0x4c]
mov edx, 0xffff8000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], eax
cmp eax, 0xffffffff
jne 0x1800c0425
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800c058a
mov ecx, 0x10000
call fcn.18014874c
mov r15, rax
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x10000
mov rcx, rax
call fcn.18014be70
mov dword [rsp + 0x40], ebp
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800c0568
test r15, r15
je 0x1800c0568
cmp qword [rcx], 0xffffffffffffffff
je 0x1800c0568
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, 0x8000
mov rdx, r15
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800c0568
xor ecx, ecx
mov ebp, ecx
mov esi, ecx
mov r14d, 0x8000
lea r12, [r15 + 0x8000]
nop dword [rax + rax]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x1800c0579
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], ecx
mov edx, esi
add rdx, r12
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rcx, r13
call fcn.1800cf330
test al, al
je 0x1800c055d
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1800c051c
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x1800c0509
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x1800c0579
inc ebp
mov eax, dword [rsp + 0x30]
jmp 0x1800c0526
add esi, eax
cmp esi, 0x8000
je 0x1800c0537
cmp ebp, 0xf
ja 0x1800c0556
sub r14d, eax
je 0x1800c0537
xor ecx, ecx
jmp 0x1800c04b0
mov r8d, 0x8000
mov rdx, r12
mov rcx, r15
call fcn.18014c360
xor ebp, ebp
mov ebx, ebp
test eax, eax
setne bl
add ebx, 4
jmp 0x1800c0579
mov ebx, 3
jmp 0x1800c0579
mov eax, dword [rsp + 0x34]
mov ebx, 3
jmp 0x1800c0573
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov dword [rdi + 0x100], eax
test r15, r15
je 0x1800c0586
mov rcx, r15
call fcn.180148104
mov eax, ebx
jmp 0x1800c058f
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180147bf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800c09c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, r9
mov rbx, r8
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rdx
mov rdi, rcx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
xor sil, sil
mov ecx, 0x4000
call fcn.18014874c
mov r12, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call fcn.18014be70
xor r15d, r15d
cmp qword [rbp + 0x20], r15
jbe 0x1800c0ba1
nop
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x1800c0b9e
xor esi, esi
cmp qword [rbx + 8], rsi
jne 0x1800c0a5e
mov ebx, 0xffffffff
jmp 0x1800c0ace
mov dword [rsp + 0x40], esi
add rbx, 0x30
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xchg dword [rbx], eax
lea r9, [rsp + 0x40]
mov rdx, r12
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call fcn.1800cf2c0
test al, al
jne 0x1800c0aa5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edx, edx
mov rcx, qword [rsp + 0x20]
xchg dword [rcx], edx
mov ebx, 0xffffffff
jmp 0x1800c0ace
xor ecx, ecx
mov rax, qword [rsp + 0x20]
xchg dword [rax], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [rsp + 0x40]
add r14, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r13d
cmovne r13d, eax
mov ebx, dword [rsp + 0x40]
mov dword [rdi + 0x100], esi
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x1800c0b9e
cmp ebx, 0xffffffff
je 0x1800c0b9e
test ebx, ebx
je 0x1800c0b2b
mov dword [rsp + 0x44], 0
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi]
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rdx, r12
mov rcx, rsi
call qword [rax]
test al, al
je 0x1800c0b1a
cmp dword [rsp + 0x44], ebx
je 0x1800c0b56
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x100], eax
jmp 0x1800c0ba1
cmp byte [rbp + 0x30], 0
jne 0x1800c0b9e
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x1800c0b48
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x1800c0b9e
inc r15d
cmp r15d, 0xf
ja 0x1800c0b9e
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x1800c0b89
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
cmp rdx, 0xffffffffffffffff
je 0x1800c0b79
add rdx, rax
mov r8d, r14d
add r8, rax
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
test al, al
je 0x1800c0b99
cmp r14, qword [rbp + 0x20]
jae 0x1800c0b9e
mov rbx, qword [rsp + 0x28]
jmp 0x1800c0a40
mov sil, 1
jmp 0x1800c0ba1
xor sil, sil
mov qword [rsp + 0x48], 0
test r12, r12
je 0x1800c0bb7
mov rcx, r12
call fcn.180148104
mov qword [rdi + 0x108], r14
cmp r14, qword [rbp + 0x20]
sete al
test sil, sil
je 0x1800c0bd7
xor al, al
movzx ecx, byte [rdi + 0xd8]
test cl, cl
jne 0x1800c0be6
movzx eax, al
mov ecx, 1
cmp byte [rbp + 0x30], 0
cmovne eax, ecx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180147bf0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800c3450
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18020d140]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.1800c4010
nop
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], ax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.1800126c0
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], r14b
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x1800c34d8
xor dil, dil
jmp 0x1800c34f6
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1800c34ef
xor dil, dil
jmp 0x1800c34f6
mov byte [rbp - 0x48], 1
mov dil, 1
mov byte [rbp - 0x38], dil
mov byte [rbp - 0x60], 0
lea r9, [rbp - 0x60]
mov r8, rsi
mov rdx, rbx
call fcn.1800c35e0
test al, al
jne 0x1800c352a
cmp byte [rbp - 0x60], al
je 0x1800c352a
cmp qword [rbx + 0x18], 8
jb 0x1800c3520
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x1800c3542
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1800c353e
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x40], r14
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1800c3559
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1800c359b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c3596
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800c35d1
call fcn.180148104
movdqa xmm0, xmmword [0x1801bc8a0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180147bf0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.18014ebe4
int3