joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180138b70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180267080]
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 0x180138bb5
mov ebx, 1
jmp 0x180138c06
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 0x180138bfc
test ecx, ecx
je 0x180138c01
add rsi, rcx
sub edi, ecx
jne 0x180138bc0
jmp 0x180138c01
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 0x180138c1f
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x180139590
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 0x1801395cb
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1801395cb
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.18014b750
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 0x180142190
Capabilities:
Check if file exists

Disassembly:
cmp dword [rcx + 0x50], 0
jge 0x1801422d0
jmp 0x1801421a0
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x180267080]
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.180180610
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180141e90
cmp byte [rsi + 0x40], dil
je 0x18014222d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180142229
test al, 0x10
jne 0x180142229
call fcn.1801438c0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180143b90
test al, al
jne 0x18014222d
xor al, al
jmp 0x1801422a6
mov qword [rsi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1801422a6
lea rdx, str.ExtractArchive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180142283
mov qword [rsi + 0x48], rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x180141dc0]
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 0x180142294
test rbx, rbx
je 0x1801422a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, dil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18017df00
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 [0x180267080]
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.180180610
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180141e90
cmp byte [rdi + 0x40], sil
je 0x180142360
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180142359
test al, 0x10
jne 0x180142359
call fcn.1801438c0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180143b90
test al, al
jne 0x180142360
xor al, al
jmp 0x1801423e4
mov qword [rdi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1801423e4
lea rdx, str.ExtractArchive2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1801423c1
mov qword [rdi + 0x48], rbx
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x180141dc0]
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 0x1801423d2
test rbx, rbx
je 0x1801423e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, sil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801421a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [rcx + 0x50], 0
jge 0x1801422d0
jmp 0x1801421a0
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x180267080]
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.180180610
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180141e90
cmp byte [rsi + 0x40], dil
je 0x18014222d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180142229
test al, 0x10
jne 0x180142229
call fcn.1801438c0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180143b90
test al, al
jne 0x18014222d
xor al, al
jmp 0x1801422a6
mov qword [rsi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1801422a6
lea rdx, str.ExtractArchive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180142283
mov qword [rsi + 0x48], rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x180141dc0]
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 0x180142294
test rbx, rbx
je 0x1801422a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, dil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18017df00
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 [0x180267080]
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.180180610
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180141e90
cmp byte [rdi + 0x40], sil
je 0x180142360
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180142359
test al, 0x10
jne 0x180142359
call fcn.1801438c0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180143b90
test al, al
jne 0x180142360
xor al, al
jmp 0x1801423e4
mov qword [rdi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1801423e4
lea rdx, str.ExtractArchive2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1801423c1
mov qword [rdi + 0x48], rbx
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x180141dc0]
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 0x1801423d2
test rbx, rbx
je 0x1801423e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, sil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801422d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [rcx + 0x50], 0
jge 0x1801422d0
jmp 0x1801421a0
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x180267080]
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.180180610
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180141e90
cmp byte [rsi + 0x40], dil
je 0x18014222d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180142229
test al, 0x10
jne 0x180142229
call fcn.1801438c0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180143b90
test al, al
jne 0x18014222d
xor al, al
jmp 0x1801422a6
mov qword [rsi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1801422a6
lea rdx, str.ExtractArchive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180142283
mov qword [rsi + 0x48], rbx
mov qword [rsp + 0x20], rsi
lea r9, [0x180141dc0]
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 0x180142294
test rbx, rbx
je 0x1801422a2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, dil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18017df00
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 [0x180267080]
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.180180610
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180141e90
cmp byte [rdi + 0x40], sil
je 0x180142360
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180142359
test al, 0x10
jne 0x180142359
call fcn.1801438c0
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180143b90
test al, al
jne 0x180142360
xor al, al
jmp 0x1801423e4
mov qword [rdi + 0x48], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1801423e4
lea rdx, str.ExtractArchive2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x1801423c1
mov qword [rdi + 0x48], rbx
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
lea r9, [0x180141dc0]
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 0x1801423d2
test rbx, rbx
je 0x1801423e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, sil
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x478
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18014b750
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x18014b7ae
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18014b799
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18014b7ae
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x18014b7b0
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18017df00
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18014cbc0
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 0x18014cc12
mov rax, qword [rax]
test rax, rax
je 0x18014cc12
test rdx, rdx
je 0x18014cc12
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18014cc12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18014cc12
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 0x18014fe50
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 [0x180267080]
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 0x18015003a
cmp qword [rcx], 0xffffffffffffffff
je 0x18015003a
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 0x18014fed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18015003a
mov ecx, 0x10000
call fcn.18017ea5c
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.180180610
mov dword [rsp + 0x40], ebp
mov rcx, qword [rsi]
test rcx, rcx
je 0x180150018
test r15, r15
je 0x180150018
cmp qword [rcx], 0xffffffffffffffff
je 0x180150018
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 0x180150018
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 0x180150029
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.18015ecb0
test al, al
je 0x18015000d
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18014ffcc
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x18014ffb9
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x180150029
inc ebp
mov eax, dword [rsp + 0x30]
jmp 0x18014ffd6
add esi, eax
cmp esi, 0x8000
je 0x18014ffe7
cmp ebp, 0xf
ja 0x180150006
sub r14d, eax
je 0x18014ffe7
xor ecx, ecx
jmp 0x18014ff60
mov r8d, 0x8000
mov rdx, r12
mov rcx, r15
call fcn.180180ba0
xor ebp, ebp
mov ebx, ebp
test eax, eax
setne bl
add ebx, 4
jmp 0x180150029
mov ebx, 3
jmp 0x180150029
mov eax, dword [rsp + 0x34]
mov ebx, 3
jmp 0x180150023
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov dword [rdi + 0x100], eax
test r15, r15
je 0x180150036
mov rcx, r15
call fcn.18017e41c
mov eax, ebx
jmp 0x18015003f
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18017df00
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 0x180150470
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 [0x180267080]
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.18017ea5c
mov r12, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call fcn.180180610
xor r15d, r15d
cmp qword [rbp + 0x20], r15
jbe 0x180150651
nop
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18015064e
xor esi, esi
cmp qword [rbx + 8], rsi
jne 0x18015050e
mov ebx, 0xffffffff
jmp 0x18015057e
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.18015ec40
test al, al
jne 0x180150555
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 0x18015057e
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 0x18015064e
cmp ebx, 0xffffffff
je 0x18015064e
test ebx, ebx
je 0x1801505db
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 0x1801505ca
cmp dword [rsp + 0x44], ebx
je 0x180150606
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x100], eax
jmp 0x180150651
cmp byte [rbp + 0x30], 0
jne 0x18015064e
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x1801505f8
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18015064e
inc r15d
cmp r15d, 0xf
ja 0x18015064e
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x180150639
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
cmp rdx, 0xffffffffffffffff
je 0x180150629
add rdx, rax
mov r8d, r14d
add r8, rax
mov rax, qword [rcx]
call qword [rax + 0x10]
test al, al
je 0x180150649
cmp r14, qword [rbp + 0x20]
jae 0x18015064e
mov rbx, qword [rsp + 0x28]
jmp 0x1801504f0
mov sil, 1
jmp 0x180150651
xor sil, sil
mov qword [rsp + 0x48], 0
test r12, r12
je 0x180150667
mov rcx, r12
call fcn.18017e41c
mov qword [rdi + 0x108], r14
cmp r14, qword [rbp + 0x20]
sete al
test sil, sil
je 0x180150687
xor al, al
movzx ecx, byte [rdi + 0xd8]
test cl, cl
jne 0x180150696
movzx eax, al
mov ecx, 1
cmp byte [rbp + 0x30], 0
cmovne eax, ecx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180152e50
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 [0x180267080]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.180153a10
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.180015f90
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 0x180152ed8
xor dil, dil
jmp 0x180152ef6
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180152eef
xor dil, dil
jmp 0x180152ef6
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.180152fe0
test al, al
jne 0x180152f2a
cmp byte [rbp - 0x60], al
je 0x180152f2a
cmp qword [rbx + 0x18], 8
jb 0x180152f20
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x180152f42
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180152f3e
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 0x180152f59
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 0x180152f9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180152f96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180152fd1
call fcn.18017e41c
movdqa xmm0, xmmword [0x1801f3a80]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18017df00
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.180182c3c
int3
Function at 0x180154c10
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180267080]
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.180180610
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x180154c90
cmp dword [rsp + 0x24], 6
jb 0x180154c90
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017df00
add rsp, 0x150
pop rbx
ret
Function at 0x180159180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx + 0x28]
mov rbx, r9
mov edi, r8d
test rcx, rcx
jne 0x1801591a6
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
test rdx, rdx
je 0x180159199
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x180159199
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180159199
cmp edi, dword [rbx]
mov rbx, qword [rsp + 0x40]
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x18015ca40
Capabilities:
Get file size

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x180267080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.180016500
nop
lea rcx, [rsp + 0x48]
call fcn.180011cd0
xor ebp, ebp
test al, al
jne 0x18015ca91
xor dil, dil
jmp 0x18015cb83
mov qword [rsp + 0x30], rbp
mov ecx, 8
call fcn.18017df2c
mov qword [rsp + 0x40], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.18001b530
mov rbx, qword [rsp + 0x30]
test al, al
je 0x18015cb53
mov rdi, rbp
test rbx, rbx
je 0x18015cb53
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
jne 0x18015cafb
xor sil, sil
jmp 0x18015cb2a
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0xffffffff
jne 0x18015cb1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18015cb1c
xor sil, sil
jmp 0x18015cb2a
mov edi, dword [rsp + 0x40]
shl rdi, 0x20
add rdi, rsi
mov sil, 1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18015cb44
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18015cb44
mov qword [rbx], 0xffffffffffffffff
test sil, sil
je 0x18015cb53
test rdi, rdi
je 0x18015cb53
mov dil, 1
jmp 0x18015cb56
xor dil, dil
test rbx, rbx
je 0x18015cb83
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18015cb71
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rbp
mov edx, 8
mov rcx, rbx
call fcn.18017e41c
mov qword [rsp + 0x30], rbp
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x18015cbc1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18015cbbc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18015cbf5
call fcn.18017e41c
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], bp
movzx eax, dil
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18017df00
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call fcn.180182c3c
int3