joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800128d0
Capabilities:
Get common file path

Disassembly:
jmp 0x180019840
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.180039b90
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x180019a49
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.180042f9c
mov rbp, qword [rdi + 0x18]
mov r14, rax
cmp rax, rbp
ja 0x180019905
mov rsi, rdi
cmp rbp, 8
jb 0x1800198e3
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.180039700
mov word [rbx + rsi], r15w
jmp 0x180019a06
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x180019a4d
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x180019943
mov rdx, rbp
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x180019943
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 0x180019966
mov rdx, r8
jmp 0x18001996f
cmp rdx, 0x1000
jb 0x180019996
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.180037bfc
test rax, rax
je 0x180019a53
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1800199ab
test rdx, rdx
je 0x1800199a8
mov rcx, rdx
call fcn.180037bfc
mov rsi, rax
jmp 0x1800199ab
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.180039700
mov word [rbx + rsi], r15w
cmp rbp, 8
jb 0x180019a03
mov rcx, qword [rdi]
lea rdx, [rbp*2 + 2]
cmp rdx, 0x1000
jb 0x1800199fe
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180019a53
mov rcx, r8
call fcn.180037bf4
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.180037bd0
add rsp, 0x250
pop rdi
ret
xor al, al
jmp 0x180019a30
call fcn.180001ee0
int3
call fcn.180042f24
int3
Function at 0x180014620
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 0x18001466a
test rdx, rdx
je 0x18001466a
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x18001466a
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001466a
cmp edi, dword [rbx]
jne 0x18001466a
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 0x1800148d0
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.180039b90
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180014a32
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x180014934
jne 0x1800149d5
cmp dword [rbx + 8], 2
jb 0x1800149d5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x1800149d5
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1800149d5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800149d5
movups xmm0, xmmword [0x1800788f0]
mov rcx, rax
movups xmm1, xmmword [0x180078900]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1800149d5
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800149d5
cmp word [rdi + 2], ax
jbe 0x1800149d5
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 0x180014a26
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.180039b90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x180014a26
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x180014a34
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180037bd0
add rsp, 0x170
pop rbx
ret
Function at 0x180014a50
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 0x180014a9e
mov rax, qword [rdx]
mov word [rax], r15w
call fcn.180014cd0
movzx esi, al
mov byte [rsp + 0x20], al
jmp 0x180014ac4
test sil, sil
jne 0x180014c86
cmp ebx, 0x1a
jne 0x180014c86
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rbx], r15
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x180014aef
mov rax, qword [rdi]
mov word [rax], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.180039b90
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.180042f9c
mov r13, rax
mov r12, qword [rdi + 0x18]
cmp rax, r12
ja 0x180014b61
cmp r12, 8
jb 0x180014b3c
mov rdi, qword [rdi]
mov qword [rbx], r13
lea rbx, [rax*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180039700
mov word [rbx + rdi], r15w
jmp 0x180014c71
movabs rbx, 0x7ffffffffffffffe
cmp r13, rbx
ja 0x180014cbd
mov rcx, r13
or rcx, 7
cmp rcx, rbx
ja 0x180014b9f
mov rdx, r12
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r12, rax
ja 0x180014b9f
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 0x180014bc2
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x180014bd2
cmp rdx, 0x1000
jb 0x180014bf9
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.180037bfc
test rax, rax
je 0x180014cc3
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180014c0e
test rdx, rdx
je 0x180014c0b
mov rcx, rdx
call fcn.180037bfc
mov r14, rax
jmp 0x180014c0e
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.180039700
mov word [rbx + r14], r15w
cmp r12, 8
jb 0x180014c6e
lea rdx, [r12*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180014c69
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014cb7
mov rcx, r8
call fcn.180037bf4
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.180037bd0
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.180042f24
int3
call fcn.180001ee0
int3
call fcn.180042f24
nop
int3
mov rdx, rcx
mov ecx, 0x1a
jmp 0x180014a50
Function at 0x180015370
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 0x180014a9e
mov rax, qword [rdx]
mov word [rax], r15w
call fcn.180014cd0
movzx esi, al
mov byte [rsp + 0x20], al
jmp 0x180014ac4
test sil, sil
jne 0x180014c86
cmp ebx, 0x1a
jne 0x180014c86
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rbx], r15
mov rax, rdi
cmp qword [rdi + 0x18], 8
jb 0x180014aef
mov rax, qword [rdi]
mov word [rax], r15w
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.180039b90
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.180042f9c
mov r13, rax
mov r12, qword [rdi + 0x18]
cmp rax, r12
ja 0x180014b61
cmp r12, 8
jb 0x180014b3c
mov rdi, qword [rdi]
mov qword [rbx], r13
lea rbx, [rax*2]
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.180039700
mov word [rbx + rdi], r15w
jmp 0x180014c71
movabs rbx, 0x7ffffffffffffffe
cmp r13, rbx
ja 0x180014cbd
mov rcx, r13
or rcx, 7
cmp rcx, rbx
ja 0x180014b9f
mov rdx, r12
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r12, rax
ja 0x180014b9f
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 0x180014bc2
mov rax, 0xffffffffffffffff
mov rdx, rax
jmp 0x180014bd2
cmp rdx, 0x1000
jb 0x180014bf9
mov rax, 0xffffffffffffffff
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, rax
call fcn.180037bfc
test rax, rax
je 0x180014cc3
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180014c0e
test rdx, rdx
je 0x180014c0b
mov rcx, rdx
call fcn.180037bfc
mov r14, rax
jmp 0x180014c0e
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.180039700
mov word [rbx + r14], r15w
cmp r12, 8
jb 0x180014c6e
lea rdx, [r12*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x180014c69
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180014cb7
mov rcx, r8
call fcn.180037bf4
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.180037bd0
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.180042f24
int3
call fcn.180001ee0
int3
call fcn.180042f24
nop
int3
mov rdx, rcx
mov ecx, 0x1a
jmp 0x180014a50
Function at 0x180015380
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.180037bfc
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.180039b90
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x1800153e7
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.180037bd0
add rsp, 0x150
pop rbx
ret
Function at 0x180019840
Capabilities:
Get common file path

Disassembly:
jmp 0x180019840
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.180039b90
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x180019a49
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.180042f9c
mov rbp, qword [rdi + 0x18]
mov r14, rax
cmp rax, rbp
ja 0x180019905
mov rsi, rdi
cmp rbp, 8
jb 0x1800198e3
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.180039700
mov word [rbx + rsi], r15w
jmp 0x180019a06
movabs rbx, 0x7ffffffffffffffe
cmp r14, rbx
ja 0x180019a4d
mov rcx, r14
or rcx, 7
cmp rcx, rbx
ja 0x180019943
mov rdx, rbp
mov rax, rbx
shr rdx, 1
sub rax, rdx
cmp rbp, rax
ja 0x180019943
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 0x180019966
mov rdx, r8
jmp 0x18001996f
cmp rdx, 0x1000
jb 0x180019996
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.180037bfc
test rax, rax
je 0x180019a53
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1800199ab
test rdx, rdx
je 0x1800199a8
mov rcx, rdx
call fcn.180037bfc
mov rsi, rax
jmp 0x1800199ab
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.180039700
mov word [rbx + rsi], r15w
cmp rbp, 8
jb 0x180019a03
mov rcx, qword [rdi]
lea rdx, [rbp*2 + 2]
cmp rdx, 0x1000
jb 0x1800199fe
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180019a53
mov rcx, r8
call fcn.180037bf4
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.180037bd0
add rsp, 0x250
pop rdi
ret
xor al, al
jmp 0x180019a30
call fcn.180001ee0
int3
call fcn.180042f24
int3
Function at 0x180019a60
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 0x180019a9d
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x180019ab0
mov al, 1
jmp 0x180019b57
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.18001a530
test al, al
je 0x180019b01
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 0x180019b01
mov bl, 1
jmp 0x180019b03
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180019b41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180019b3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180019b74
call fcn.180037bf4
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.180037bd0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.180042f24
int3

Function at 0x180019b80
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 0x180019bb5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x180019c5f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x180079900]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.18001a530
test al, al
je 0x180019c0e
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 0x180019c4c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180019c47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180019c7e
call fcn.180037bf4
movdqa xmm0, xmmword [0x180079900]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180037bd0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.180042f24
int3
Function at 0x1800214b0
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.1800222d0
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.180006ab0
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 0x180021538
xor dil, dil
jmp 0x180021556
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18002154f
xor dil, dil
jmp 0x180021556
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.180021640
test al, al
jne 0x18002158a
cmp byte [rbp - 0x60], al
je 0x18002158a
cmp qword [rbx + 0x18], 8
jb 0x180021580
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x1800215a2
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x18002159e
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 0x1800215b9
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 0x1800215fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800215f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180021631
call fcn.180037bf4
movdqa xmm0, xmmword [0x180079900]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180037bd0
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.180042f24
int3
Function at 0x180023850
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.180039b90
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x1800238d0
cmp dword [rsp + 0x24], 6
jb 0x1800238d0
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180037bd0
add rsp, 0x150
pop rbx
ret
Function at 0x180037920
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x880
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rax, qword [0x18008d0c0]
xor rax, rsp
mov qword [rsp + 0x870], rax
call fcn.180008c20
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x18003796d
mov rcx, rax
call fcn.180008c00
nop
mov ecx, dword [0x18008f478]
lea rsi, [0x18008f050]
xor ebp, ebp
test cl, 1
jne 0x1800379b5
or ecx, 1
mov dword [0x18008f478], ecx
xor edx, edx
mov r8d, 0x412
mov rcx, rsi
call fcn.180039b90
mov qword [0x18008f468], rbp
mov byte [0x18008f470], bpl
lea rcx, [0x180060c10]
call fcn.180038030
nop
cmp byte [0x18008f470], 0
jne 0x180037b70
mov byte [0x18008f470], 1
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.180039b90
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x20]
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x180037a21
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x180037a1c
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x180037a21
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x180037a21
mov word [rsp + 0x40], bp
lea rcx, [rsp + 0x40]
sub rcx, 2
nop word [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180037a30
mov eax, dword [0x180078740]
mov dword [rcx], eax
lea rax, [rsp + 0x40]
sub rax, 2
nop dword [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x180037a50
movups xmm0, xmmword [str.2345Pic]
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180037a79
mov word [rsp + 0x40], bp
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x450]
call fcn.180039b90
lea rcx, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180037aa0
test rax, rax
je 0x180037b3a
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x450]
call fcn.1800474c0
lea rcx, [rsp + 0x450]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x180037ad6
test rax, rax
je 0x180037b3a
lea rcx, [rsp + 0x450]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180037af1
mov eax, dword [0x180078740]
mov dword [rcx], eax
lea rcx, [rsp + 0x450]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180037b10
movups xmm0, xmmword [str.2345Image.hzv]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x180065630]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [0x180065638]
mov dword [rcx + 0x18], eax
call fcn.18001cc30
lea rcx, [rsp + 0x450]
nop word [rax + rax]
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x180037b50
test rbx, rbx
je 0x180037b70
lea rdx, [rsp + 0x450]
mov rcx, rax
call fcn.18001cd20
nop
test rdi, rdi
je 0x180037b82
mov rcx, rdi
call fcn.180008c10
mov qword [rsp + 0x28], rbp
mov rax, rsi
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.180037bd0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret