joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006b90
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x180006bd5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r14
mov word [rdi + 8], r14w
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x28]
call fcn.18001ae10
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rbp, [rbx + 0x10]
jne 0x180006bfc
mov rbp, r14
cmp qword [rsi + 0x10], 0
je 0x180006c12
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x180006c15
mov r8, qword [rsi]
jmp 0x180006c15
mov r8, r14
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x180006c63
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x180006c63
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x10], 0
je 0x180006c4f
cmp qword [rsi + 0x18], 8
jb 0x180006c52
mov rsi, qword [rsi]
jmp 0x180006c52
mov rsi, r14
mov r8, rsi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
mov rax, qword [rdi]
test rax, rax
je 0x180006c8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180006c7c
mov byte [rdi + 9], 1
mov rcx, qword [rdi]
call fcn.180016bd0
mov rax, qword [rdi]
test rax, rax
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x180006cad
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180006cc0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.180037624
mov qword [rsp + 0x28], r14
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180037600
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180012860
Capabilities:
Get common file path

Disassembly:
jmp 0x18001c270
push rdi
sub rsp, 0x250
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c
call fcn.1800395c0
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x18001c479
mov qword [rsp + 0x268], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x270], rbp
mov qword [rsp + 0x278], rsi
mov qword [rsp + 0x248], r14
mov qword [rsp + 0x240], r15
xor r15d, r15d
mov word [rsp + 0x22a], r15w
call fcn.1800429cc
mov rbp, qword [rdi + 0x18]
mov r14, rax
cmp rax, rbp
ja 0x18001c335
mov rsi, rdi
cmp rbp, 8
jb 0x18001c313
mov rsi, qword [rdi]
lea rbx, [rax + rax]
mov qword [rdi + 0x10], r14
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180039130
mov word [rbx + rsi], r15w
jmp 0x18001c436
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x18001c47d
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x18001c373
mov rdx, rbp
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x18001c373
lea rax, [rdx + rbp]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
movabs rcx, 0x7fffffffffffffff
lea rdx, [rax + rax]
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x18001c396
mov rdx, r8
jmp 0x18001c39f
cmp rdx, 0x1000
jb 0x18001c3c6
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.18003762c
test rax, rax
je 0x18001c483
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x18001c3db
test rdx, rdx
je 0x18001c3d8
mov rcx, rdx
call fcn.18003762c
mov rsi, rax
jmp 0x18001c3db
mov rsi, r15
mov qword [rdi + 0x18], rbx
lea rdx, [rsp + 0x20]
lea rbx, [r14 + r14]
mov qword [rdi + 0x10], r14
mov r8, rbx
mov rcx, rsi
call fcn.180039130
mov word [rbx + rsi], r15w
cmp rbp, 8
jb 0x18001c433
mov rcx, qword [rdi]
lea rdx, [rbp*2 + 2]
cmp rdx, 0x1000
jb 0x18001c42e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c483
mov rcx, r8
call fcn.180037624
mov qword [rdi], rsi
mov r14, qword [rsp + 0x248]
mov al, 1
mov rsi, qword [rsp + 0x278]
mov rbp, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x268]
mov r15, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180037600
add rsp, 0x250
pop rdi
ret
xor al, al
jmp 0x18001c460
call fcn.180001eb0
int3
call fcn.180042954
int3
Function at 0x1800145b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
mov edi, r8d
test rcx, rcx
je 0x1800145fa
test rdx, rdx
je 0x1800145fa
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1800145fa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800145fa
cmp edi, dword [rbx]
jne 0x1800145fa
mov al, 1
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 0x180014860
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.1800395c0
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800149c2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1800148c4
jne 0x180014965
cmp dword [rbx + 8], 2
jb 0x180014965
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x180014965
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180014965
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180014965
movups xmm0, xmmword [0x180078830]
mov rcx, rax
movups xmm1, xmmword [0x180078840]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x180014965
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180014965
cmp word [rdi + 2], ax
jbe 0x180014965
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1800149b6
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.1800395c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x1800149b6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1800149c4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180037600
add rsp, 0x170
pop rbx
ret
Function at 0x1800149e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov ebx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor r15d, r15d
mov qword [rdx + 0x10], r15
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x180014a2e
mov rax, qword [rdx]
mov word [rax], r15w
call fcn.180014c60
movzx esi, al
mov byte [rsp + 0x20], al
jmp 0x180014a54
test sil, sil
jne 0x180014c16
cmp ebx, 0x1a
jne 0x180014c16
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rbx], r15
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x180014a7f
mov rax, qword [rdi]
mov word [rax], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800395c0
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.1800429cc
mov r13, rax
mov r12, qword [rdi + 0x18]
cmp rax, r12
ja 0x180014af1
cmp r12, 8
jb 0x180014acc
mov rdi, qword [rdi]
mov qword [rbx], r13
lea rbx, [rax*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180039130
mov word [rbx + rdi], r15w
jmp 0x180014c01
movabs rbx, 0x7ffffffffffffffe
cmp r13, rbx
ja 0x180014c4d
mov rcx, r13
or rcx, 7
cmp rcx, rbx
ja 0x180014b2f
mov rdx, r12
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r12, rax
ja 0x180014b2f
lea rax, [rdx + r12]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x180014b52
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x180014b62
cmp rdx, 0x1000
jb 0x180014b89
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.18003762c
test rax, rax
je 0x180014c53
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180014b9e
test rdx, rdx
je 0x180014b9b
mov rcx, rdx
call fcn.18003762c
mov r14, rax
jmp 0x180014b9e
mov r14, r15
mov rax, qword [rsp + 0x28]
mov qword [rax], r13
mov qword [rdi + 0x18], rbx
lea rbx, [r13*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.180039130
mov word [rbx + r14], r15w
cmp r12, 8
jb 0x180014bfe
lea rdx, [r12*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180014bf9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014c47
mov rcx, r8
call fcn.180037624
mov qword [rdi], r14
movzx esi, sil
mov ecx, 1
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
cmovne esi, ecx
movzx eax, sil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180037600
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.180042954
int3
call fcn.180001eb0
int3
call fcn.180042954
nop
int3
mov rdx, rcx
mov ecx, 0x1a
jmp 0x1800149e0
Function at 0x180015300
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov ebx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor r15d, r15d
mov qword [rdx + 0x10], r15
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x180014a2e
mov rax, qword [rdx]
mov word [rax], r15w
call fcn.180014c60
movzx esi, al
mov byte [rsp + 0x20], al
jmp 0x180014a54
test sil, sil
jne 0x180014c16
cmp ebx, 0x1a
jne 0x180014c16
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rbx], r15
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x180014a7f
mov rax, qword [rdi]
mov word [rax], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800395c0
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.1800429cc
mov r13, rax
mov r12, qword [rdi + 0x18]
cmp rax, r12
ja 0x180014af1
cmp r12, 8
jb 0x180014acc
mov rdi, qword [rdi]
mov qword [rbx], r13
lea rbx, [rax*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180039130
mov word [rbx + rdi], r15w
jmp 0x180014c01
movabs rbx, 0x7ffffffffffffffe
cmp r13, rbx
ja 0x180014c4d
mov rcx, r13
or rcx, 7
cmp rcx, rbx
ja 0x180014b2f
mov rdx, r12
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r12, rax
ja 0x180014b2f
lea rax, [rdx + r12]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x180014b52
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x180014b62
cmp rdx, 0x1000
jb 0x180014b89
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.18003762c
test rax, rax
je 0x180014c53
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180014b9e
test rdx, rdx
je 0x180014b9b
mov rcx, rdx
call fcn.18003762c
mov r14, rax
jmp 0x180014b9e
mov r14, r15
mov rax, qword [rsp + 0x28]
mov qword [rax], r13
mov qword [rdi + 0x18], rbx
lea rbx, [r13*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.180039130
mov word [rbx + r14], r15w
cmp r12, 8
jb 0x180014bfe
lea rdx, [r12*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180014bf9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014c47
mov rcx, r8
call fcn.180037624
mov qword [rdi], r14
movzx esi, sil
mov ecx, 1
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
cmovne esi, ecx
movzx eax, sil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.180037600
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.180042954
int3
call fcn.180001eb0
int3
call fcn.180042954
nop
int3
mov rdx, rcx
mov ecx, 0x1a
jmp 0x1800149e0
Function at 0x180015310
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.18003762c
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.1800395c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180015377
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180037600
add rsp, 0x150
pop rbx
ret
Function at 0x18001c270
Capabilities:
Get common file path

Disassembly:
jmp 0x18001c270
push rdi
sub rsp, 0x250
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c
call fcn.1800395c0
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x18001c479
mov qword [rsp + 0x268], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x270], rbp
mov qword [rsp + 0x278], rsi
mov qword [rsp + 0x248], r14
mov qword [rsp + 0x240], r15
xor r15d, r15d
mov word [rsp + 0x22a], r15w
call fcn.1800429cc
mov rbp, qword [rdi + 0x18]
mov r14, rax
cmp rax, rbp
ja 0x18001c335
mov rsi, rdi
cmp rbp, 8
jb 0x18001c313
mov rsi, qword [rdi]
lea rbx, [rax + rax]
mov qword [rdi + 0x10], r14
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180039130
mov word [rbx + rsi], r15w
jmp 0x18001c436
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x18001c47d
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x18001c373
mov rdx, rbp
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x18001c373
lea rax, [rdx + rbp]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
movabs rcx, 0x7fffffffffffffff
lea rdx, [rax + rax]
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x18001c396
mov rdx, r8
jmp 0x18001c39f
cmp rdx, 0x1000
jb 0x18001c3c6
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.18003762c
test rax, rax
je 0x18001c483
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x18001c3db
test rdx, rdx
je 0x18001c3d8
mov rcx, rdx
call fcn.18003762c
mov rsi, rax
jmp 0x18001c3db
mov rsi, r15
mov qword [rdi + 0x18], rbx
lea rdx, [rsp + 0x20]
lea rbx, [r14 + r14]
mov qword [rdi + 0x10], r14
mov r8, rbx
mov rcx, rsi
call fcn.180039130
mov word [rbx + rsi], r15w
cmp rbp, 8
jb 0x18001c433
mov rcx, qword [rdi]
lea rdx, [rbp*2 + 2]
cmp rdx, 0x1000
jb 0x18001c42e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c483
mov rcx, r8
call fcn.180037624
mov qword [rdi], rsi
mov r14, qword [rsp + 0x248]
mov al, 1
mov rsi, qword [rsp + 0x278]
mov rbp, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x268]
mov r15, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180037600
add rsp, 0x250
pop rdi
ret
xor al, al
jmp 0x18001c460
call fcn.180001eb0
int3
call fcn.180042954
int3
Function at 0x18001c490
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
mov rbx, rcx
and edi, 0xffffb1af
cmp qword [rcx + 0x18], 8
jb 0x18001c4cd
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x18001c4e0
mov al, 1
jmp 0x18001c587
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18001cf60
test al, al
je 0x18001c531
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x18001c531
mov bl, 1
jmp 0x18001c533
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18001c571
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c56c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001c5a4
call fcn.180037624
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180037600
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.180042954
int3

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

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x18001c5e5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18001c68f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x180079880]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18001cf60
test al, al
je 0x18001c63e
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18001c67c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c677
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001c6ae
call fcn.180037624
movdqa xmm0, xmmword [0x180079880]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180037600
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.180042954
int3
Function at 0x18001f9e0
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 [0x18008d0c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.180020800
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.180006a80
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 0x18001fa68
xor dil, dil
jmp 0x18001fa86
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18001fa7f
xor dil, dil
jmp 0x18001fa86
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.18001fb70
test al, al
jne 0x18001faba
cmp byte [rbp - 0x60], al
je 0x18001faba
cmp qword [rbx + 0x18], 8
jb 0x18001fab0
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x18001fad2
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x18001face
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 0x18001fae9
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 0x18001fb2b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fb26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001fb61
call fcn.180037624
movdqa xmm0, xmmword [0x180079880]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180037600
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.180042954
int3
Function at 0x180021fd0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], VarUI4FromDisp
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, VarUI4FromDisp
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call fcn.1800395c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180022050
cmp dword [rsp + 0x24], 6
jb 0x180022050
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180037600
add rsp, 0x150
pop rbx
ret