joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801732c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor ebp, ebp
mov qword [r11 - 0x20], rbp
mov rdi, qword [rcx]
add rdi, 0x40
mov qword [r11 - 0x20], rdi
je 0x180173310
mov rcx, qword [rdi]
test rcx, rcx
je 0x180173310
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
cmp byte [rbx + 0x2c], 0
je 0x18017333f
mov ecx, 0xf
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rbx + 0x28]
ja 0x18017333f
cmp byte [rbx + 0x2c], 0
jne 0x180173321
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], bp
mov r8d, 0x11
lea rdx, str.begin_transaction
lea rcx, [rsp + 0x20]
call fcn.180005cd0
nop
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov byte [rsp + 0x54], 1
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180189980
movzx esi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1801733b6
call fcn.1802c8d60
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov byte [rsp + 0x54], 1
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x180173404
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801733ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801733ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
mov byte [rbx + 0x2c], 1
test rdi, rdi
je 0x180173433
mov rcx, qword [rdi]
test rcx, rcx
je 0x18017342e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x58], rbp
movzx eax, sil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1801795a0
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 0x1801795ea
test rdx, rdx
je 0x1801795ea
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1801795ea
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1801795ea
cmp edi, dword [rbx]
jne 0x1801795ea
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 0x1801798b0
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 [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
mov rbx, rcx
and edi, 0xffffb1af
cmp qword [rcx + 0x18], 8
jb 0x1801798ed
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x180179900
mov al, 1
jmp 0x1801799ae
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.18017ae70
test al, al
je 0x180179951
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 0x180179951
mov bl, 1
jmp 0x180179953
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180179998
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180179993
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180179993
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
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.180393f50
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1801799d0
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 [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x180179a05
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180179ab6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18017ae70
test al, al
je 0x180179a5e
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 0x180179aa3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180179a9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180179a9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x18017a020
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x18017a05a
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x18017a064
mov rcx, qword [rcx]
mov ebp, 1
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x18017a07f
movzx eax, bpl
jmp 0x18017a1d4
xor sil, sil
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x58], xmm1
xor r14d, r14d
mov word [rsp + 0x48], r14w
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18017ae70
movzx ebx, sil
test al, al
cmovne ebx, ebp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r14w
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18017ae70
test al, al
jne 0x18017a0ea
test bl, bl
je 0x18017a11d
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x18017a11d
mov bl, 1
jmp 0x18017a11f
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18017a164
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18017a15f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017a15f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x18017a1bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18017a1b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017a1b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18017a200
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x18017a238
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x18017a242
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x18017a256
mov al, 1
jmp 0x18017a3ab
xor sil, sil
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x58], xmm1
xor ebp, ebp
mov word [rsp + 0x48], bp
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.18017ae70
movzx ebx, sil
mov ecx, 1
test al, al
cmovne ebx, ecx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], bp
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18017ae70
test al, al
jne 0x18017a2c3
test bl, bl
je 0x18017a2f6
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x18017a2f6
mov bl, 1
jmp 0x18017a2f8
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x18017a33d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18017a338
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017a338
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x18017a395
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18017a390
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18017a390
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x18017a710
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x18], 8
jb 0x18017a752
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x18017a75c
mov rbx, qword [rbx]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x18017a7ac
xor eax, eax
mov r8, 0xffffffffffffffff
mov word [rsp + 0x22a], ax
lea rax, [rsp + 0x20]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18017a790
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180005cd0
mov al, 1
jmp 0x18017a7ae
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x18017b190
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.180393f74
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x18017b1f7
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.180393f50
add rsp, 0x150
pop rbx
ret
Function at 0x18017f2f0
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 0x18017f342
mov rax, qword [rax]
test rax, rax
je 0x18017f342
test rdx, rdx
je 0x18017f342
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18017f342
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18017f342
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 0x180182540
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 [0x1804e0010]
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 0x18018272a
cmp qword [rcx], 0xffffffffffffffff
je 0x18018272a
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 0x1801825c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18018272a
mov ecx, 0x10000
call fcn.1803944a8
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 sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], ebp
mov rcx, qword [rsi]
test rcx, rcx
je 0x180182708
test r15, r15
je 0x180182708
cmp qword [rcx], 0xffffffffffffffff
je 0x180182708
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 0x180182708
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 0x180182719
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.18019e420
test al, al
je 0x1801826fd
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1801826bc
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x1801826a9
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x180182719
inc ebp
mov eax, dword [rsp + 0x30]
jmp 0x1801826c6
add esi, eax
cmp esi, 0x8000
je 0x1801826d7
cmp ebp, 0xf
ja 0x1801826f6
sub r14d, eax
je 0x1801826d7
xor ecx, ecx
jmp 0x180182650
mov r8d, 0x8000
mov rdx, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
xor ebp, ebp
mov ebx, ebp
test eax, eax
setne bl
add ebx, 4
jmp 0x180182719
mov ebx, 3
jmp 0x180182719
mov eax, dword [rsp + 0x34]
mov ebx, 3
jmp 0x180182713
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov dword [rdi + 0x100], eax
test r15, r15
je 0x180182726
mov rcx, r15
call fcn.180393fb0
mov eax, ebx
jmp 0x18018272f
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180393f50
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 0x180182b60
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 [0x1804e0010]
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.1803944a8
mov r12, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
cmp qword [rbp + 0x20], r15
jbe 0x180182d41
nop
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x180182d3e
xor esi, esi
cmp qword [rbx + 8], rsi
jne 0x180182bfe
mov ebx, 0xffffffff
jmp 0x180182c6e
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.18019e3b0
test al, al
jne 0x180182c45
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 0x180182c6e
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 0x180182d3e
cmp ebx, 0xffffffff
je 0x180182d3e
test ebx, ebx
je 0x180182ccb
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 0x180182cba
cmp dword [rsp + 0x44], ebx
je 0x180182cf6
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x100], eax
jmp 0x180182d41
cmp byte [rbp + 0x30], 0
jne 0x180182d3e
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x180182ce8
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x180182d3e
inc r15d
cmp r15d, 0xf
ja 0x180182d3e
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x180182d29
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
cmp rdx, 0xffffffffffffffff
je 0x180182d19
add rdx, rax
mov r8d, r14d
add r8, rax
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x180182d39
cmp r14, qword [rbp + 0x20]
jae 0x180182d3e
mov rbx, qword [rsp + 0x28]
jmp 0x180182be0
mov sil, 1
jmp 0x180182d41
xor sil, sil
mov qword [rsp + 0x48], 0
test r12, r12
je 0x180182d57
mov rcx, r12
call fcn.180393fb0
mov qword [rdi + 0x108], r14
cmp r14, qword [rbp + 0x20]
sete al
test sil, sil
je 0x180182d77
xor al, al
movzx ecx, byte [rdi + 0xd8]
test cl, cl
jne 0x180182d86
movzx eax, al
mov ecx, 1
cmp byte [rbp + 0x30], 0
cmovne eax, ecx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180185ec0
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 [0x1804e0010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.180186a50
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.18015f8f0
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 0x180185f48
xor dil, dil
jmp 0x180185f66
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180185f5f
xor dil, dil
jmp 0x180185f66
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.180186050
test al, al
jne 0x180185f9a
cmp byte [rbp - 0x60], al
je 0x180185f9a
cmp qword [rbx + 0x18], 8
jb 0x180185f90
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x180185fb2
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180185fae
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 0x180185fc9
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 0x180186012
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18018600d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18018600d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180187c80
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1804e0010]
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 sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180187d00
cmp dword [rsp + 0x24], 6
jb 0x180187d00
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x150
pop rbx
ret