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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
xor ebp, ebp
test rcx, rcx
je 0x180006abe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbp
mov word [rdi + 8], bp
mov qword [rsp + 0x28], rbp
lea rcx, [rsp + 0x28]
call fcn.18001ab90
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rcx, [rbx + 0x10]
jne 0x180006ae4
mov rcx, rbp
cmp qword [rsi + 0x10], 0
je 0x180006af7
cmp qword [rsi + 0x18], 8
jb 0x180006afa
mov rsi, qword [rsi]
jmp 0x180006afa
mov rsi, rbp
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
je 0x180006b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180006b1e
mov byte [rdi + 9], 1
cmp qword [rdi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x180006b45
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], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180006b58
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], rbp
mov edx, 0x58
mov rcx, rbx
call fcn.180037644
mov qword [rsp + 0x28], rbp
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180037620
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
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.18001ae20
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.180016be0
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.180037644
mov qword [rsp + 0x28], r14
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180037620
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180012870
Capabilities:
Get common file path

Disassembly:
jmp 0x18001c280
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.1800395e0
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x18001c489
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.1800429ec
mov rbp, qword [rdi + 0x18]
mov r14, rax
cmp rax, rbp
ja 0x18001c345
mov rsi, rdi
cmp rbp, 8
jb 0x18001c323
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.180039150
mov word [rbx + rsi], r15w
jmp 0x18001c446
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x18001c48d
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x18001c383
mov rdx, rbp
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x18001c383
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 0x18001c3a6
mov rdx, r8
jmp 0x18001c3af
cmp rdx, 0x1000
jb 0x18001c3d6
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.18003764c
test rax, rax
je 0x18001c493
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x18001c3eb
test rdx, rdx
je 0x18001c3e8
mov rcx, rdx
call fcn.18003764c
mov rsi, rax
jmp 0x18001c3eb
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.180039150
mov word [rbx + rsi], r15w
cmp rbp, 8
jb 0x18001c443
mov rcx, qword [rdi]
lea rdx, [rbp*2 + 2]
cmp rdx, 0x1000
jb 0x18001c43e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c493
mov rcx, r8
call fcn.180037644
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.180037620
add rsp, 0x250
pop rdi
ret
xor al, al
jmp 0x18001c470
call fcn.180001eb0
int3
call fcn.180042974
int3
Function at 0x1800145c0
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 0x18001460a
test rdx, rdx
je 0x18001460a
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x18001460a
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001460a
cmp edi, dword [rbx]
jne 0x18001460a
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 0x180014870
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.1800395e0
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800149d2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1800148d4
jne 0x180014975
cmp dword [rbx + 8], 2
jb 0x180014975
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x180014975
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180014975
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180014975
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 0x180014975
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180014975
cmp word [rdi + 2], ax
jbe 0x180014975
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 0x1800149c6
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.1800395e0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x1800149c6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1800149d4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180037620
add rsp, 0x170
pop rbx
ret
Function at 0x1800149f0
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 0x180014a3e
mov rax, qword [rdx]
mov word [rax], r15w
call fcn.180014c70
movzx esi, al
mov byte [rsp + 0x20], al
jmp 0x180014a64
test sil, sil
jne 0x180014c26
cmp ebx, 0x1a
jne 0x180014c26
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rbx], r15
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x180014a8f
mov rax, qword [rdi]
mov word [rax], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800395e0
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.1800429ec
mov r13, rax
mov r12, qword [rdi + 0x18]
cmp rax, r12
ja 0x180014b01
cmp r12, 8
jb 0x180014adc
mov rdi, qword [rdi]
mov qword [rbx], r13
lea rbx, [rax*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180039150
mov word [rbx + rdi], r15w
jmp 0x180014c11
movabs rbx, 0x7ffffffffffffffe
cmp r13, rbx
ja 0x180014c5d
mov rcx, r13
or rcx, 7
cmp rcx, rbx
ja 0x180014b3f
mov rdx, r12
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r12, rax
ja 0x180014b3f
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 0x180014b62
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x180014b72
cmp rdx, 0x1000
jb 0x180014b99
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.18003764c
test rax, rax
je 0x180014c63
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180014bae
test rdx, rdx
je 0x180014bab
mov rcx, rdx
call fcn.18003764c
mov r14, rax
jmp 0x180014bae
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.180039150
mov word [rbx + r14], r15w
cmp r12, 8
jb 0x180014c0e
lea rdx, [r12*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180014c09
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014c57
mov rcx, r8
call fcn.180037644
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.180037620
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.180042974
int3
call fcn.180001eb0
int3
call fcn.180042974
nop
int3
mov rdx, rcx
mov ecx, 0x1a
jmp 0x1800149f0
Function at 0x180015310
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 0x180014a3e
mov rax, qword [rdx]
mov word [rax], r15w
call fcn.180014c70
movzx esi, al
mov byte [rsp + 0x20], al
jmp 0x180014a64
test sil, sil
jne 0x180014c26
cmp ebx, 0x1a
jne 0x180014c26
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rbx], r15
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x180014a8f
mov rax, qword [rdi]
mov word [rax], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1800395e0
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.1800429ec
mov r13, rax
mov r12, qword [rdi + 0x18]
cmp rax, r12
ja 0x180014b01
cmp r12, 8
jb 0x180014adc
mov rdi, qword [rdi]
mov qword [rbx], r13
lea rbx, [rax*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180039150
mov word [rbx + rdi], r15w
jmp 0x180014c11
movabs rbx, 0x7ffffffffffffffe
cmp r13, rbx
ja 0x180014c5d
mov rcx, r13
or rcx, 7
cmp rcx, rbx
ja 0x180014b3f
mov rdx, r12
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r12, rax
ja 0x180014b3f
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 0x180014b62
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x180014b72
cmp rdx, 0x1000
jb 0x180014b99
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.18003764c
test rax, rax
je 0x180014c63
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180014bae
test rdx, rdx
je 0x180014bab
mov rcx, rdx
call fcn.18003764c
mov r14, rax
jmp 0x180014bae
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.180039150
mov word [rbx + r14], r15w
cmp r12, 8
jb 0x180014c0e
lea rdx, [r12*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180014c09
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014c57
mov rcx, r8
call fcn.180037644
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.180037620
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.180042974
int3
call fcn.180001eb0
int3
call fcn.180042974
nop
int3
mov rdx, rcx
mov ecx, 0x1a
jmp 0x1800149f0
Function at 0x180015320
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.18003764c
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.1800395e0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180015387
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.180037620
add rsp, 0x150
pop rbx
ret
Function at 0x18001c280
Capabilities:
Get common file path

Disassembly:
jmp 0x18001c280
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.1800395e0
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x18001c489
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.1800429ec
mov rbp, qword [rdi + 0x18]
mov r14, rax
cmp rax, rbp
ja 0x18001c345
mov rsi, rdi
cmp rbp, 8
jb 0x18001c323
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.180039150
mov word [rbx + rsi], r15w
jmp 0x18001c446
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x18001c48d
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x18001c383
mov rdx, rbp
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x18001c383
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 0x18001c3a6
mov rdx, r8
jmp 0x18001c3af
cmp rdx, 0x1000
jb 0x18001c3d6
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.18003764c
test rax, rax
je 0x18001c493
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x18001c3eb
test rdx, rdx
je 0x18001c3e8
mov rcx, rdx
call fcn.18003764c
mov rsi, rax
jmp 0x18001c3eb
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.180039150
mov word [rbx + rsi], r15w
cmp rbp, 8
jb 0x18001c443
mov rcx, qword [rdi]
lea rdx, [rbp*2 + 2]
cmp rdx, 0x1000
jb 0x18001c43e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18001c493
mov rcx, r8
call fcn.180037644
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.180037620
add rsp, 0x250
pop rdi
ret
xor al, al
jmp 0x18001c470
call fcn.180001eb0
int3
call fcn.180042974
int3
Function at 0x18001c4a0
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 0x18001c4dd
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x18001c4f0
mov al, 1
jmp 0x18001c597
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.18001cf70
test al, al
je 0x18001c541
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 0x18001c541
mov bl, 1
jmp 0x18001c543
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18001c581
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c57c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001c5b4
call fcn.180037644
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.180037620
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.180042974
int3

Function at 0x18001c5c0
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 0x18001c5f5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18001c69f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1800798b0]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18001cf70
test al, al
je 0x18001c64e
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 0x18001c68c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001c687
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001c6be
call fcn.180037644
movdqa xmm0, xmmword [0x1800798b0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180037620
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.180042974
int3
Function at 0x18001fc40
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.180020a60
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 0x18001fcc8
xor dil, dil
jmp 0x18001fce6
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18001fcdf
xor dil, dil
jmp 0x18001fce6
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.18001fdd0
test al, al
jne 0x18001fd1a
cmp byte [rbp - 0x60], al
je 0x18001fd1a
cmp qword [rbx + 0x18], 8
jb 0x18001fd10
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x18001fd32
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x18001fd2e
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 0x18001fd49
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 0x18001fd8b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fd86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001fdc1
call fcn.180037644
movdqa xmm0, xmmword [0x1800798b0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180037620
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.180042974
int3
Function at 0x180021fe0
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.1800395e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180022060
cmp dword [rsp + 0x24], 6
jb 0x180022060
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180037620
add rsp, 0x150
pop rbx
ret