joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bc10
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140048d80
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14015bad0]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14003bc6e
jnp 0x14003bcd4
ucomisd xmm0, xmm6
jne 0x14003bc76
jnp 0x14003bcd0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x14011f6c0]
subpd xmm1, xmmword [0x14011f6d0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401244f0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400843b0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14003bca8
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x14015bae0]
mov ecx, dword [0x1401532c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003bdf1
mov eax, dword [0x14015baf0]
mov ecx, dword [0x1401532c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003be2b
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x14015bae8]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1401244e8]
ucomisd xmm2, xmm1
ja 0x14003bc6e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14015bad8]
movq xmm2, rbx
punpckldq xmm2, xmmword [0x14011f6c0]
subpd xmm2, xmmword [0x14011f6d0]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x14015bad0], xmm0
jmp 0x14003bc6e
lea rcx, [0x14015bae0]
call fcn.140082fe0
cmp dword [0x14015bae0], 0xffffffff
jne 0x14003bd1d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14015bad8], rdx
lea rcx, [0x14015bae0]
call fcn.140083078
jmp 0x14003bd1d
lea rcx, [0x14015baf0]
call fcn.140082fe0
cmp dword [0x14015baf0], 0xffffffff
jne 0x14003bd42
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14015bae8], rax
lea rcx, [0x14015baf0]
call fcn.140083078
jmp 0x14003bd42
Function at 0x140048830
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14004ad40
mov qword [rsi], 0
test rax, rax
je 0x140048883
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400488b7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14004887b
mov qword [rsi], rbx
call fcn.140043d50
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140043e20
lea rcx, [rsi + 0x20]
call fcn.1400525a0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140043d50
mov rcx, qword [rsi]
call fcn.14003bb20
mov qword [rsi], 0
jmp 0x140048869
Function at 0x140049e80
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x140049eef
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x14004a019
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.140082e84
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x140049ee8
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x140049ec4
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x140049f21
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140082ec0
jmp 0x140049ebf
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x140049f06
mov rcx, rdi
call fcn.14002cca2
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14004a019
mov rax, rdi
shr rax, 0x3d
je 0x140049ea3
jmp 0x14004a035
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x14004a029
cmp rcx, rdi
jb 0x140049f9f
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140049ee0
lea r11, [rdi - 1]
jmp 0x140049fed
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x140049ee0
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x14004a024
cmp rax, rdi
jb 0x14004a004
xor edx, edx
div rdi
mov rax, rdx
cmp rax, rcx
je 0x140049fd8
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
jne 0x140049fb8
mov qword [rdx + rax*8], r8
jmp 0x140049fdb
cmp rdi, rbx
jae 0x140049ee0
jmp 0x14004a03a
and rax, r11
jmp 0x14004a004
lea rax, [rdi - 1]
and rcx, rax
jmp 0x140049f9f
call fcn.1400ccc6f
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x14004a05a
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14004a05f
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400b8324
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1401205a0]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x14004a112
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x14004a112
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x14004a11d
mov rcx, rax
call fcn.14002cca2
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x140049ee0
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400f8250
Function at 0x140053a60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140077550]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14015d320]
lea rdx, [0x140077530]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140053af2
cmp dword [0x14015d328], 0
jne 0x140053aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14015d32c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140053aee
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400843b0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140053ad6
call fcn.14009c180
int3

Function at 0x14005455c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x140054587
xor ecx, ecx
lea r9, [0x14012ca10]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14005456c
ret
Function at 0x140056e10
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140056f31
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140056f71
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140056f67
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140056f6b
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140056f79
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140056f04
mov dl, byte [r8 + 0x19]
jmp 0x140056f60
xor r10d, r10d
jmp 0x140056e6f
cmp byte [r8 + 0x1a], 0
je 0x140056f64
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140056f64
cmp ecx, 0x666f736f
jne 0x140056f64
cmp edx, 0x76482074
jne 0x140056f64
mov byte [r8 + 0x19], 1
jmp 0x140056f64
Function at 0x140059ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14005a05b
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x14016a008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x14005a03d
call fcn.140082ec0
jmp 0x14005a03d
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.14002d530
lea rdx, [0x14015add0]
mov rcx, rbx
call fcn.14003969c
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14005a09b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14016a008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x14011cbd0]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x14016a008]
movzx eax, byte [rbx + 0x17]
test al, al
js 0x14005a0de
mov edx, eax
and edx, 0x7f
jmp 0x14005a0e2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
test rdx, rdx
je 0x14005a04d
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x14005a13e
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x14016a008]
cmp eax, 0xffffffff
jne 0x14005a114
xor edi, edi
inc r14
movzx eax, byte [rbp - 9]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rbp - 0x20]
mov r8, rbx
cmovs rdx, qword [rbp - 0x18]
cmovs r8, rcx
add rdx, r8
cmp r14, rdx
je 0x14005a04d
test rdi, rdi
je 0x14005a112
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x14005a0fa
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x14005a114

Function at 0x14005c870
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14015baa8]
mov ecx, dword [0x1401532c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14005c8df
lea rcx, [0x14015baa8]
call fcn.140082fe0
cmp dword [0x14015baa8], 0xffffffff
jne 0x14005c8df
xorps xmm0, xmm0
movups xmmword [0x14015ba98], xmm0
movups xmmword [0x14015ba88], xmm0
movups xmmword [0x14015ba78], xmm0
lea rcx, [0x14015ba78]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14015baa8]
add rsp, 0x28
jmp fcn.140083078
nop
add rsp, 0x28
ret
Function at 0x14005d580
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov rdi, qword [rsp + 0xd0]
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x5f]
mov byte [rbx], 0xaa
mov r13, qword [rcx]
lea rdx, str.ReadValue
lea r8, str....._basewin_registry.cc
lea rbp, [rsp + 0x38]
mov rcx, rbp
mov r9d, 0x1a6
call fcn.140043d30
mov rcx, rbx
mov rdx, rbp
mov r8, r13
mov r9d, 1
call fcn.14006c1a0
mov rcx, qword [r12]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, rbx
call fcn.14006beb0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400843b0
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14005d640
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.140084350
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r14, [rsp + 0x830]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140086500
lea rax, [rsp + 0x2c]
mov dword [rax], 1
lea r9, [rsp + 0x28]
mov dword [r9], 0x800
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, r14
call fcn.14005d580
test eax, eax
jne 0x14005d6fd
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x14005d701
lea rcx, [rsp + 0x830]
call fcn.1400a3324
lea rdx, [rsp + 0x830]
mov rcx, rsi
mov r8, rax
call fcn.14005c03e
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400843b0
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14005d6de
mov edi, 0x3f4
cmp eax, 2
jne 0x14005d6de
lea rdi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140086500
lea rcx, [rsp + 0x830]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14005d6de
lea rcx, [rsp + 0x30]
call fcn.1400a3324
lea rdx, [rsp + 0x30]
jmp 0x14005d6d1
Function at 0x14005e130
Capabilities:
Move file

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x490], rax
movaps xmm0, xmmword [0x14011cbd0]
lea r14, [rsp + 0x30]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, [0x1401245dc]
lea r8, [0x1401244f8]
lea r15, [rsp + 0x280]
mov rcx, r15
mov r9d, 0x27d
call fcn.140043d30
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14004a1f0
lea r14, [rsp + 0x280]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140086500
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14005e1cf
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, r14
call fcn.14006cb70
mov rcx, r14
call fcn.1400227a0
lea r14, [rsp + 0x70]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.140086500
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14005e206
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, r14
call fcn.14006cb70
mov rcx, r14
call fcn.1400227a0
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14005e228
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14005e234
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x14005e2b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006cd00
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14005e267
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14005e270
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
test rsi, rsi
je 0x14005e28b
test eax, eax
je 0x14005e2bc
lea rcx, [rsp + 0x30]
call fcn.14004a250
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400843b0
mov eax, edi
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dil, 1
jmp 0x14005e28b
cmp ebp, 0xfffffffc
jne 0x14005e2c8
call fcn.1400ff090
mov ebp, eax
mov dword [rsi], ebp
xor edi, edi
jmp 0x14005e28b
Function at 0x14005e2d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm6, xmmword [0x14011cbd0]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.PathExists
lea r8, [0x1401244f8]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2bc
call fcn.140043d30
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004a1f0
call fcn.14006cee0
test al, al
jne 0x14005e391
cmp byte [rsi + 0x17], 0
jns 0x14005e353
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x50]
call fcn.14004a250
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x40], 0xaaaaaaaa
cmp byte [rsi + 0x17], 0
jns 0x14005e3ac
mov rsi, qword [rsi]
lea r8, [rsp + 0x20]
mov rcx, rsi
xor edx, edx
call fcn.1400ff2c0
test eax, eax
jmp 0x14005e35f

Function at 0x14005e3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14011cbd0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, [0x1401244f8]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x2eb
call fcn.140043d30
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004a1f0
cmp byte [rdi + 0x17], 0
jns 0x14005e432
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14004a250
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400843b0
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005e480
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140086500
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14005e51f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400a3324
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140043f30
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140062f30
mov rcx, rsi
mov rdx, r14
call fcn.140044300
mov rcx, r14
call fcn.140044180
mov rcx, rbx
call fcn.140044180
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14005e8d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm6, xmmword [0x14011cbd0]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, [0x1401244f8]
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x3ac
call fcn.140043d30
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14004a1f0
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x14005e955
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005e9a1
mov bl, 1
test al, 0x10
je 0x14005ea58
lea rcx, [rsp + 0x40]
call fcn.14004a250
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x20], xmm6
mov rcx, rdi
mov rdx, r14
call fcn.140045020
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
js 0x14005e9d3
and r8d, 0x7f
mov rdx, rdi
jmp 0x14005e9da
mov r8, qword [rdi + 8]
mov rdx, qword [rdi]
lea rcx, [rsp + 0x98]
call fcn.140023118
movzx r8d, byte [rsp + 0x37]
test r8b, r8b
js 0x14005e9f8
and r8d, 0x7f
jmp 0x14005ea02
mov r8, qword [rsp + 0x28]
mov r14, qword [rsp + 0x20]
lea r15, [rsp + 0x88]
mov rcx, r15
mov rdx, r14
call fcn.140023118
mov rax, qword [r15 + 8]
cmp rax, qword [rsp + 0xa0]
je 0x14005ea75
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.14005e8d0
test al, al
je 0x14005ead7
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x14005eab2
lea rcx, [rsp + 0x20]
call fcn.140044180
jmp 0x14005e96d
test rsi, rsi
je 0x14005ea63
mov dword [rsi], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14005e96d
test rax, rax
je 0x14005eaa1
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x98]
xor r8d, r8d
movzx r9d, word [rcx + r8*2]
cmp r9w, word [rdx + r8*2]
jne 0x14005ea23
inc r8
cmp rax, r8
jne 0x14005ea8d
mov eax, 0xfffffffc
mov ebp, 2
test rsi, rsi
jne 0x14005eacd
jmp 0x14005eacf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
je 0x14005eade
test rsi, rsi
je 0x14005eacf
mov ecx, ebp
call fcn.14006cd00
mov dword [rsi], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x14005ea49
mov rcx, rdi
call fcn.14005e3c0
test al, al
jne 0x14005ea49
jmp 0x14005eac1
Function at 0x14005eaf0
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140143038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x14011cbd0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1401246ab]
lea r8, [0x1401244f8]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x509
call fcn.140043d30
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004a1f0
cmp byte [rdi + 0x17], 0
jns 0x14005eb62
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14004a250
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400843b0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret