joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013952
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400139bf
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x14001d5a0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140013b03
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140013a5c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140013a17
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001d5a0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x140013b03
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140013a96
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x140013b03
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x14001d5a0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140014745
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x14001d5b0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x1400401b0]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14001d5a0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14001485a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x14001d5b0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140014828
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x14001d5b0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x140014869
lea rax, [0x14001d5b0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400148a5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140014913
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x14001d5a0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001495d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001495d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x14001d5b0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001494f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140007180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
lea rax, [0x1400c8678]
mov qword [rcx], rax
mov rdi, rcx
mov qword [rcx + 8], r15
mov qword [rcx + 0x28], 7
mov qword [rcx + 0x20], r15
mov word [rcx + 0x10], r15w
mov qword [rcx + 0x48], 7
mov qword [rcx + 0x40], r15
mov word [rcx + 0x30], r15w
mov byte [rcx + 0x50], r15b
mov ecx, 0x160
mov dword [rbp - 0x29], r15d
call fcn.140080c00
xor edx, edx
mov rcx, rax
call fcn.140001d20
mov qword [rdi + 0x58], rax
lea rdx, [rdi + 0x10]
mov qword [rdi + 0x78], 7
lea ecx, [r15 + 2]
mov qword [rdi + 0x70], r15
mov word [rdi + 0x60], r15w
call fcn.14002b5c0
test al, al
je 0x140007395
mov qword [rbp - 0x31], 0xc
lea r8, [rbp - 0x39]
mov qword [rsp + 0xc8], rbx
lea rdx, [rbp - 0x21]
mov qword [rsp + 0xd0], r14
lea rcx, [rdi + 0x10]
lea r14, str.launcher.exe
mov qword [rbp - 0x39], r14
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
call fcn.14001dd60
cmp qword [rax + 0x18], 8
jb 0x140007266
mov rax, qword [rax]
mov rcx, rax
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400072cd
mov qword [rbp - 0x39], r14
lea rdx, [rbp + 0x1f]
mov qword [rbp - 0x31], 0xc
lea rcx, [rdi + 0x10]
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
call fcn.14001d3f0
mov rcx, rax
lea r8, [rbp - 0x39]
lea rdx, [rbp - 1]
call fcn.14001dd60
cmp qword [rax + 0x18], 8
jb 0x1400072b5
mov rax, qword [rax]
mov rcx, rax
mov ebx, 7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400072cd
mov r14b, 1
jmp 0x1400072d0
xor r14b, r14b
test bl, 4
je 0x140007303
mov r8, qword [rbp + 0x17]
and ebx, 0xfffffffb
cmp r8, 8
jb 0x1400072f2
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 1]
inc r8
call fcn.140004d70
mov qword [rbp + 0x17], 7
mov qword [rbp + 0xf], r15
mov word [rbp - 1], r15w
test bl, 2
mov rbx, qword [rsp + 0xc8]
je 0x14000733b
mov r8, qword [rbp + 0x37]
cmp r8, 8
jb 0x14000732a
mov rdx, qword [rbp + 0x1f]
lea rcx, [rbp + 0x1f]
inc r8
call fcn.140004d70
mov qword [rbp + 0x37], 7
mov qword [rbp + 0x2f], r15
mov word [rbp + 0x1f], r15w
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x140007355
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
inc r8
call fcn.140004d70
test r14b, r14b
mov r14, qword [rsp + 0xd0]
je 0x140007395
lea rdx, [rbp - 0x21]
lea rcx, [rdi + 0x10]
call fcn.14001d3f0
mov rdx, rax
lea rcx, [rdi + 0x10]
call fcn.14000b100
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x140007395
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
inc r8
call fcn.140004d70
mov rcx, rdi
call fcn.140007500
mov rax, rdi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400812a0
mov rsi, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop rdi
pop rbp
ret
Function at 0x140008ff0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x60]
movzx esi, r8b
mov rbx, rdx
call fcn.1400161f0
cmp qword [rax + 0x18], 8
jb 0x14000902f
mov rax, qword [rax]
xor edi, edi
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x40], rdx
mov ecx, edi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], rdx
test sil, sil
mov qword [rsp + 0x30], rdi
mov rdx, rax
setne cl
mov dword [rsp + 0x28], 2
add rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r8, qword [rsp + 0x78]
test eax, eax
cmove rdi, qword [rsp + 0x50]
cmp r8, 8
jb 0x14000909e
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
inc r8
call fcn.140004d70
cmp qword [rbx + 0x18], 8
jb 0x1400090a8
mov rbx, qword [rbx]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400090b0
lea edx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], edx
xor r8d, r8d
lea rdx, str.Previous_Default_Browser
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test rdi, rdi
je 0x1400090f8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400812a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140017f30
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [0x1400da4b0], 0
je 0x140017f61
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400812a0
add rsp, 0x58
ret
mov ecx, 0x40
call fcn.140080c00
mov rcx, rax
call fcn.140017ca0
mov qword [0x1400da4b0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r8d, r8d
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r8
mov word [rsp + 0x20], r8w
cmp word [rax], r8w
je 0x140017fac
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140017fa1
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000b820
lea rdx, [rsp + 0x20]
call fcn.140018f80
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140017fe0
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140004d70
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400812a0
add rsp, 0x58
ret

Function at 0x140018f80
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [0x1400c36d8]
mov dword [rsp + 0x20], ebx
mov r8, rdx
mov rdi, qword [0x1400da4b0]
or rax, 0xffffffffffffffff
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
mov qword [rsp + 0x30], rcx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], bx
jne 0x140018fd0
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x30]
mov rcx, r8
movdqa xmmword [rsp + 0x30], xmm0
call fcn.140028910
cmp qword [rsp + 0x50], rbx
je 0x14001903d
cmp qword [rsp + 0x58], 8
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rsp + 0x20]
mov rcx, rdi
mov r8, rax
mov rbx, rax
call fcn.140018010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14001905a
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
inc r8
call fcn.140004d70
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400812a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x14001f950
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1400d6d18]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8, rax
test rax, rax
jne 0x14001f97c
call fcn.140027ad0
mov r8, rax
movsxd rax, dword [rbx + 4]
add rax, rax
mov qword [r8 + rax*8], rdi
movsxd rcx, dword [rbx + 4]
mov eax, dword [rbx + 8]
add rcx, rcx
mov rbx, qword [rsp + 0x30]
mov dword [r8 + rcx*8 + 8], eax
add rsp, 0x20
pop rdi
ret
Function at 0x140020090
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x4b0]
sub rsp, 0x5b0
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rbp + 0x4a0], rax
mov rsi, rdx
mov qword [rsp + 0x20], rdx
mov rdx, rcx
movzx edi, r8b
lea rcx, [rbp + 0x1c0]
mov r9d, 3
xor r8d, r8d
call fcn.1400355c0
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x1c0]
call fcn.1400359b0
cmp qword [rbp + 0x190], 0
je 0x140020255
nop dword [rax]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1c0]
call fcn.140035860
mov ebx, dword [rsp + 0x30]
test bl, 1
je 0x14002014a
test dil, dil
jne 0x140020128
mov eax, ebx
shr eax, 4
test al, 1
jne 0x14002014a
cmp qword [rbp + 0x198], 8
lea rcx, [rbp + 0x180]
mov edx, ebx
cmovae rcx, qword [rbp + 0x180]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
shr ebx, 4
test bl, 1
je 0x140020190
test dil, dil
je 0x1400201b5
mov r8b, 1
lea rcx, [rbp + 0x180]
mov rdx, rsi
call fcn.140020090
test al, al
je 0x140020280
cmp qword [rbp + 0x198], 8
lea rcx, [rbp + 0x180]
cmovae rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400201ad
cmp qword [rbp + 0x198], 8
lea rcx, [rbp + 0x180]
cmovae rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140020280
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x1c0]
call fcn.1400359b0
mov rbx, rax
lea rax, [rbp + 0x180]
cmp rax, rbx
je 0x140020224
mov r8, qword [rbp + 0x198]
cmp r8, 8
jb 0x1400201fa
mov rdx, qword [rbp + 0x180]
lea rcx, [rbp + 0x180]
inc r8
call fcn.140004d70
xor eax, eax
mov qword [rbp + 0x198], 7
mov rdx, rbx
mov qword [rbp + 0x190], rax
lea rcx, [rbp + 0x180]
mov word [rbp + 0x180], ax
call fcn.140006000
mov r8, qword [rbp + 0x1b8]
cmp r8, 8
jb 0x140020247
mov rdx, qword [rbp + 0x1a0]
lea rcx, [rbp + 0x1a0]
inc r8
call fcn.140004d70
cmp qword [rbp + 0x190], 0
jne 0x140020100
mov rax, qword [rbp + 0x198]
cmp rax, 8
jb 0x1400202db
mov rcx, qword [rbp + 0x180]
inc rax
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x1400202a7
jmp 0x14002030e
mov r8, qword [rbp + 0x198]
cmp r8, 8
jb 0x1400202a3
mov rdx, qword [rbp + 0x180]
lea rcx, [rbp + 0x180]
inc r8
call fcn.140004d70
xor bl, bl
jmp 0x1400202dd
add rax, rax
cmp rax, 0x1000
jb 0x1400202d6
test byte [rbp + 0x180], 0x1f
jne 0x140020314
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14002031a
sub rcx, rax
cmp rcx, 8
jb 0x140020320
cmp rcx, 0x27
ja 0x140020326
mov rcx, rax
call fcn.140080c40
mov bl, 1
lea rcx, [rbp + 0x1c0]
call fcn.140035780
movzx eax, bl
mov rcx, qword [rbp + 0x4a0]
xor rcx, rsp
call fcn.1400812a0
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5b0
pop rdi
pop rsi
pop rbp
ret
call fcn.1400853c8
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3
call fcn.1400853c8
int3
Function at 0x140020420
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rcx + 0x10]
xor esi, esi
mov ebx, esi
movzx r14d, dl
mov dword [rsp + 0x20], ebx
mov rdi, rcx
test rax, rax
jne 0x14002045b
mov al, 1
jmp 0x140020649
cmp rax, 0x104
jb 0x14002046a
xor al, al
jmp 0x140020649
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x98], rbp
call fcn.14001d5a0
mov r9d, 2
lea rdx, [0x1400c2dbc]
xor r8d, r8d
mov rcx, rax
call fcn.14000b250
mov r8, qword [rsp + 0x40]
mov rbp, rax
cmp r8, 8
jb 0x1400204b4
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
inc r8
call fcn.140004d70
cmp rbp, 0xffffffffffffffff
je 0x140020542
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14001d5a0
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov rbx, rax
call fcn.14001d3f0
mov rcx, rax
movzx r8d, r14b
mov rdx, rbx
call fcn.140020090
mov r8, qword [rsp + 0x40]
movzx ebx, al
cmp r8, 8
jb 0x14002050a
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
inc r8
call fcn.140004d70
mov r8, qword [rsp + 0x60]
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
cmp r8, 8
jb 0x14002053a
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
inc r8
call fcn.140004d70
movzx eax, bl
jmp 0x140020641
cmp qword [rdi + 0x18], 8
jb 0x14002054e
mov rcx, qword [rdi]
jmp 0x140020551
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x140020565
mov al, 1
jmp 0x140020641
test bpl, 1
je 0x14002058d
cmp qword [rdi + 0x18], 8
jb 0x140020577
mov rcx, qword [rdi]
jmp 0x14002057a
mov rcx, rdi
mov edx, ebp
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14002063f
test bpl, 0x10
jne 0x1400205b0
cmp qword [rdi + 0x18], 8
jb 0x14002059d
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
jmp 0x140020641
test r14b, r14b
je 0x1400205fb
mov ebx, 1
mov qword [rsp + 0x40], 7
mov r8d, ebx
mov qword [rsp + 0x38], rsi
lea rdx, [0x1400c2dc4]
mov word [rsp + 0x28], si
lea rcx, [rsp + 0x28]
call fcn.14000b820
movzx r8d, bl
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140020090
test al, al
jne 0x1400205fb
xor bpl, bpl
jmp 0x1400205fe
mov bpl, 1
test bl, 1
je 0x140020620
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x140020620
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
inc r8
call fcn.140004d70
test bpl, bpl
je 0x14002063f
cmp qword [rdi + 0x18], 8
jb 0x14002062f
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x140020641
xor al, al
mov rbp, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400812a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x140020670
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
jb 0x140020692
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14002069c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x1400206b8
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400243b0
cmp qword [rdi + 0x18], 8
mov ebp, eax
jb 0x1400206d6
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x1400206e0
mov rbx, qword [rbx]
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
lea r9d, [rax + 2]
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
je 0x140020707
mov al, 1
jmp 0x140020723
test rsi, rsi
je 0x140020721
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400243b0
cmp eax, 0xfffffffc
cmove eax, ebp
mov dword [rsi], eax
xor al, al
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140020d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140020d2e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140020d4e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140020d64
shr eax, 4
and eax, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x140020d70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x140020f70
mov qword [rsp + 0x298], rsi
xor esi, esi
mov qword [rsp + 0x2a0], rdi
cmp word [rsp + 0x60], si
jne 0x140020dd4
mov r8d, esi
jmp 0x140020dea
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140020de0
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
test r8, r8
jne 0x140020e11
mov rdi, rsi
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
jmp 0x140020e25
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000b820
mov rdi, qword [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.140014cf0
cmp rax, 0xffffffffffffffff
je 0x140020e50
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.140004de0
mov rdi, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 8
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], 7
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
test rdi, rdi
jne 0x140020e85
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
jmp 0x140020e92
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.14000b820
xor edx, edx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140014cf0
mov rdi, qword [rsp + 0x2a0]
cmp rax, 0xffffffffffffffff
je 0x140020ec0
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140004de0
lea rcx, [rsp + 0x20]
call fcn.14001e500
lea rax, [rsp + 0x20]
cmp rbx, rax
je 0x140020f17
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140020eec
mov rdx, qword [rbx]
inc r8
mov rcx, rbx
call fcn.140004d70
mov qword [rbx + 0x18], 7
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rsi
jb 0x140020f04
mov rax, qword [rbx]
jmp 0x140020f07
mov rax, rbx
lea rdx, [rsp + 0x20]
mov word [rax], si
mov rcx, rbx
call fcn.140006000
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140020f34
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140004d70
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
mov rsi, qword [rsp + 0x298]
mov qword [rsp + 0x38], 7
cmp r8, 8
jb 0x140020f6c
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
inc r8
call fcn.140004d70
mov al, 1
jmp 0x140020f72
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400812a0
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rbp
ret