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

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400056b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400056c8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400056e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400056e6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140005720
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400057c7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x14000575b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1400057a1
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400057e0
cmp rbx, rax
ja 0x140005770
mov r8, rdi
test rdi, rdi
je 0x1400057c7
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x1400057ca
Function at 0x140005be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005c0d
xor eax, eax
jmp 0x140005d62
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140005c38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140005c38
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140005d62
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005d55
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140005c7b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005ca6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005d5a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005d15
sub eax, 1
je 0x140005d15
cmp eax, 2
jne 0x140005d55
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005d5a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005d43
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140005d55
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140005d5a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400077c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140006110
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400061e3
cmp byte [rcx + 0x71], 0
je 0x1400061e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400061df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400061a4
sub eax, 1
je 0x1400061a8
cmp eax, 2
jne 0x1400061df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400077c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400061d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400061df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000618c
xor al, al
jmp 0x14000618c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400077c0
add rsp, 0x60
pop rbx
ret
Function at 0x140006d40
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140006da1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140006d60
mov ecx, dword [r10]
jmp 0x140006e8a
cmp ecx, 0x4e0
jb 0x140006e8a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140006dc0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140006e10
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400073d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, edx
xorps xmm0, xmm0
mov r15, r8
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
test r8, r8
jne 0x14000741e
neg r14d
jmp 0x1400075cf
cmp r9d, r14d
jae 0x14000742a
xor eax, eax
jmp 0x1400075d2
mov qword [rsp + 0xf8], rbx
mov rdx, rcx
mov qword [rsp + 0xb8], rsi
mov rcx, r15
mov r8, r14
mov qword [rsp + 0xb0], rdi
call sub.VCRUNTIME140.dll_memcpy
xor ebx, ebx
lea rsi, [rbp + 7]
mov edi, ebx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc edi
mov byte [rsi], al
lea rsi, [rsi + 1]
cmp edi, 0x20
jb 0x140007458
mov rdi, qword [rsp + 0xb0]
mov r10b, 1
mov rsi, qword [rsp + 0xb8]
mov rcx, rbx
mov edx, 0x20
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 7]
mov byte [rbp + rcx - 0x19], al
mov byte [rbp + rcx - 0x39], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140007490
mov r9b, 7
lea r11, str.cw
movzx ecx, byte [rbp - 0x19]
lea rdx, [rbp - 0x17]
movzx eax, byte [rbp + 4]
mov r8b, 4
xor cl, byte [rax + r11]
movzx eax, byte [rbp + 5]
xor cl, r10b
mov byte [rbp - 0x19], cl
movzx eax, byte [rax + r11]
xor byte [rbp - 0x18], al
movzx eax, byte [rbp + 6]
movzx eax, byte [rax + r11]
xor byte [rbp - 0x17], al
movzx eax, byte [rbp + 3]
movzx eax, byte [rax + r11]
xor byte [rbp - 0x16], al
movzx eax, r10b
shr al, 7
add r10b, r10b
movzx eax, al
imul ecx, eax, 0x1b
xor r10b, cl
movzx eax, r8b
lea rdx, [rdx + 4]
add r8b, 4
movzx ecx, byte [rbp + rax - 0x1d]
movzx eax, byte [rdx - 5]
xor byte [rdx - 1], al
movzx eax, byte [rdx - 4]
xor byte [rdx], al
movzx eax, byte [rdx - 3]
xor byte [rdx + 1], al
xor byte [rdx - 2], cl
cmp r8b, 0x10
jb 0x140007501
movzx eax, byte [rbp - 0xd]
mov r8b, 0x14
movzx eax, byte [rax + r11]
xor byte [rbp - 9], al
movzx eax, byte [rbp - 0xc]
movzx eax, byte [rax + r11]
xor byte [rbp - 8], al
movzx eax, byte [rbp - 0xb]
movzx eax, byte [rax + r11]
xor byte [rbp - 7], al
movzx eax, byte [rbp - 0xa]
movzx eax, byte [rax + r11]
xor byte [rbp - 6], al
lea rax, [rbp - 7]
nop word [rax + rax]
movzx ecx, r8b
lea rax, [rax + 4]
add r8b, 4
movzx edx, byte [rbp + rcx - 0x1d]
movzx ecx, byte [rax - 5]
xor byte [rax - 1], cl
movzx ecx, byte [rax - 4]
xor byte [rax], cl
movzx ecx, byte [rax - 3]
xor byte [rax + 1], cl
xor byte [rax - 2], dl
cmp r8b, 0x20
jb 0x140007570
add r9b, 0xff
jne 0x1400074b1
test r14d, r14d
je 0x1400075c7
nop dword [rax]
movsxd rdx, ebx
lea rcx, [rbp - 0x59]
add rdx, r15
call fcn.140006ef0
add ebx, 0x10
cmp ebx, r14d
jb 0x1400075b0
mov rbx, qword [rsp + 0xf8]
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400077c0
add rsp, 0xc0
pop r15
pop r14
pop rbp
ret
Function at 0x1400021b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
xor r8d, r8d
mov edx, 0x104
lea rcx, [rsp + 0x28]
call fcn.140006520
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8d, dword [rsp + 0x38]
lea rcx, str.SYSTEMROOT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000225a
mov edx, eax
cmp rdx, qword [rsp + 0x38]
jae 0x14000225a
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov qword [rsp + 0x38], rdx
mov word [rcx + rdx*2], di
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x10], xmm1
jmp 0x1400022aa
mov qword [rbx], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x1400022aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400022c5
call fcn.14001c70c
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001c460
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.140025138
int3
Function at 0x14000cca0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0xb0
cmp qword [0x14005bcf0], 8
mov rbx, rcx
lea rcx, [0x14005bcd8]
cmovae rcx, qword [0x14005bcd8]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000cd7c
xor ecx, ecx
mov qword [rsp + 0x50], 7
mov dword [rsp + 0x30], ecx
lea r9, [rsp + 0x30]
mov byte [rsp + 0x34], cl
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x5c], cl
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x84], cl
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x98], rcx
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x58], 0x9c8
mov qword [rsp + 0x78], 7
mov dword [rsp + 0x80], 0x9c7
mov qword [rsp + 0xa0], 7
mov dword [rsp + 0x20], 0x34
call fcn.1400090f0
cmp eax, 6
jne 0x14000cd7c
lea rdx, [0x14005bcd8]
lea rcx, [rsp + 0x30]
call fcn.14000c280
mov rcx, rax
call fcn.1400104e0
add rsp, 0xb0
pop rbx
ret
Function at 0x14000f340
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14, rcx
mov rbx, rdx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
je 0x14000f4c7
mov qword [rsp + 0xc8], rbp
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0x98], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x90], r12
inc rdi
cmp byte [rbx + rdi], 0
jne 0x14000f3a3
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r14]
lea r9d, [rdi + 2]
xor r12d, r12d
mov edx, eax
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LockFile]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [rsp + 0x66]
movzx edx, word [rsp + 0x64]
movzx r10d, word [rsp + 0x62]
movzx r11d, word [rsp + 0x60]
movzx eax, word [rsp + 0x5e]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x38], edx
lea rdx, str.__04d__02d__02d__02d:_02d:_02d._03d_
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], eax
call fcn.14000e680
mov rcx, qword [r14]
lea r9, [rsp + 0x50]
lea r8d, [r12 + 0x1a]
mov qword [rsp + 0x20], r12
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [r14]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], r12
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [r14]
lea r9, [rsp + 0x50]
lea r8d, [r12 + 1]
mov qword [rsp + 0x20], r12
lea rdx, [0x1400508f0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [r14]
lea r9d, [rdi + 2]
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov r12, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0xc8]
lea rcx, [r14 + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14001c460
add rsp, 0xa0
pop r15
pop r14
pop rbx
ret
Function at 0x14000f9e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rbp], rax
mov rbx, r8
mov rdi, rdx
xor r14d, r14d
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r14w
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.14000f4f0
mov rsi, qword [rdi + 8]
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x14000fa55
nop
mov rdx, qword [rdi]
lea rcx, [rbp - 0x20]
call fcn.14000f4f0
add rdi, 8
cmp rdi, rsi
jne 0x14000fa40
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x74], xmm1
movups xmmword [rbp - 0x7c], xmm1
movups xmmword [rbp - 0x6c], xmm1
movups xmmword [rbp - 0x5c], xmm1
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
mov dword [rbp - 0x2c], eax
mov dword [rsp + 0x70], 0x68
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rdx, qword [rbp - 0x20]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000fb21
mov ebx, 0xffffffff
mov edx, ebx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [rsp + 0x50]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x50]
jmp 0x14000fb26
mov ebx, 0xffffffff
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x14000fb62
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fb5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fb88
call fcn.14001c70c
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14001c460
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140025138
int3
Function at 0x140010330
Capabilities:
Create directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400104b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140010431
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x140010384
mov eax, 2
jmp 0x1400104b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001041e
mov rdi, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea rdx, str.Unable_to_delete_file_in_the_way_of_directory__ls___d_
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 2
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400104ae
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400104a9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400104d5
jmp 0x1400104a9
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400104b2
mov rdi, qword [0x14005eb48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea rdx, str.Unable_to_create_directory__ls___d_
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r8d, 2
call fcn.14000edc0
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmovae rdx, qword [rsp + 0x30]
call fcn.14000f340
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400104ae
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400104a9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400104cf
call fcn.14001c70c
xor eax, eax
jmp 0x1400104b7
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001c460
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.140025138
int3
call fcn.140025138
int3
Function at 0x140010610
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov edi, edx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov edx, 0x104
call fcn.140006520
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140010663
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400106e0
mov rax, rbx
mov rcx, qword [rbx + 0x18]
cmp rcx, 8
jb 0x14001068c
mov rax, qword [rbx]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140010693
mov rax, qword [rbx + 0x10]
cmp rdx, rax
ja 0x1400106bc
mov rax, rbx
cmp rcx, 8
jb 0x1400106b2
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], si
jmp 0x1400106ca
xor r8d, r8d
sub rdx, rax
mov rcx, rbx
call fcn.140006520
mov rax, rbx
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov r8d, edi
lea rcx, [rsp + 0x38]
call fcn.14000fb90
mov rcx, rax
call fcn.14000e570
int3
Function at 0x140011830
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14005b060]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r8, str.install.tmp
lea rdx, [0x14005bcd8]
lea rcx, [rsp + 0x50]
call fcn.140006a40
lea rdi, [0x14005be78]
xor esi, esi
mov rbx, rax
cmp rdi, rax
je 0x140011901
mov rdx, qword [0x14005be90]
cmp rdx, 8
jb 0x1400118c4
mov rcx, qword [0x14005be78]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400118bf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011a64
call fcn.14001c70c
mov qword [0x14005be88], rsi
mov qword [0x14005be90], 7
mov word [0x14005be78], si
movups xmm0, xmmword [rbx]
movups xmmword [0x14005be78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x14005be88], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140011943
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001193e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011a64
call fcn.14001c70c
cmp qword [0x14005be90], 8
mov rcx, rdi
cmovae rcx, qword [0x14005be78]
call fcn.140010330
test eax, eax
jne 0x140011a1e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9e7
lea ecx, [rax + 3]
mov byte [rsp + 0x24], sil
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
call fcn.14000e260
cmp eax, 2
jne 0x140011943
mov rbx, qword [0x14005eb48]
lea rdx, str.Proceeding_without_rollback_directory
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.14000edc0
cmp qword [rsp + 0x68], 0x10
lea rdx, [rsp + 0x50]
mov rcx, rbx
cmovae rdx, qword [rsp + 0x50]
call fcn.14000f340
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140011a02
mov rcx, qword [rsp + 0x50]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400119fd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011a5e
call fcn.14001c70c
cmp qword [0x14005be90], 8
mov qword [0x14005be88], rsi
cmovae rdi, qword [0x14005be78]
mov word [rdi], si
jmp 0x140011a3c
cmp qword [0x14005be90], 8
mov edx, 2
cmovae rdi, qword [0x14005be78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001c460
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140025138
int3
call fcn.140025138
int3