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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
movzx edi, cl
cmp dword [0x1402f0ac0], 0xffffffff
jne 0x140054bc6
lea rbx, [0x141476698]
mov rcx, rbx
call fcn.14004c2c0
or rbx, 1
cmp dword [0x1402f0ac0], 0xffffffff
jne 0x140054bb5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402f0ac0], eax
test bl, 1
je 0x140054bc6
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.14004c770
mov ecx, dword [0x1402f0ac0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140054ccf
test dil, dil
je 0x140054ccf
lea ecx, [rax + 0x78]
call fcn.14010a1a4
mov qword [rsp + 0x78], rax
lea edx, [rsi + 1]
mov rcx, rax
call fcn.140056130
mov rsi, rax
mov qword [rsp + 0x88], rax
mov rdx, rax
mov ecx, dword [0x1402f0ac0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov ecx, 0x10
call fcn.14010a1a4
mov qword [rsp + 0x78], rax
mov rdx, rsi
mov rcx, rax
call fcn.140056010
nop
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x38], rax
mov rcx, rsi
call fcn.1400566a0
mov byte [rsi + 0x72], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rsi + 0x40], rax
mov rax, qword [0x141476408]
test rax, rax
jne 0x140054c7a
mov rax, qword [rsi + 0x38]
mov qword [0x141476408], rax
jmp 0x140054ccf
mov qword [rsp + 0x78], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov dword [rsp + 0x30], 2
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x78]
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsp + 0x78]
call fcn.1400554e0
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400554e0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
mov rdi, rcx
lea rbx, [0x141476690]
mov rcx, rbx
call fcn.14004c2c0
or rbx, 1
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x141476678]
jne 0x140055533
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140055673
mov rax, qword [0x1402f0ac8]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x140055556
cmp r8d, ecx
jb 0x140055559
jmp 0x14005557e
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x1402f0ac8]
call fcn.140055830
mov rax, qword [0x1402f0ac8]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rdi
mov rax, qword [0x1402f0ac8]
inc dword [rax + 4]
mov rax, qword [0x1402f0ad0]
mov r8d, dword [rax + 8]
btr r8d, 0x1f
movsxd rdx, dword [rax + 4]
lea ecx, [rdx + 1]
cmp dword [rax], 1
ja 0x1400555b7
cmp r8d, ecx
jb 0x1400555ba
jmp 0x1400555df
cmp r8d, ecx
sbb r9d, r9d
and r9d, 8
cmp ecx, r8d
cmova r8d, ecx
lea rcx, [0x1402f0ad0]
call fcn.1400556a0
mov rax, qword [0x1402f0ad0]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea rdx, [rcx + rdx*8]
mov qword [rdx + rax], rsi
mov rax, qword [0x1402f0ad0]
inc dword [rax + 4]
cmp dword [0x141476678], 0
jne 0x140055665
cmp qword [0x141476680], 0
jne 0x140055632
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x141476680], rax
lea rdx, [0x141476680]
lea rcx, [0x1402f0ac8]
call fcn.140054ef0
lea rax, [0x141476678]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140054fe0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140055673
mov rcx, qword [0x141476680]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop
test bl, 1
je 0x140055684
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.14004c770
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140055f60
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 8]
mov rsi, rcx
lea rbx, [rdi + 0x70]
test rbx, rbx
je 0x140055d8b
mov rcx, rbx
call fcn.14004c2c0
or rbx, 1
cmp byte [rdi + 0x7c], 0
je 0x140055dbc
cmp byte [rdi + 0xa0], 0
jne 0x140055da3
mov byte [rdi + 0xa1], 1
jmp 0x140055dbc
mov rcx, qword [rdi + 0x90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor edx, edx
mov rcx, rsi
call fcn.140054d00
test bl, 1
je 0x140055dcd
and rbx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.14004c770
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test edx, edx
jne 0x140055fba
cmp r8d, 5
ja case.default.0x140055f83
movsxd rax, r8d
lea r8, [0x140000000]
mov edx, dword [r8 + rax*4 + 0x55ff0]
add rdx, r8
jmp rdx
movzx edx, byte [rsp + 0x10]
jmp fcn.140056b10
movzx edx, byte [rsp + 0x10]
jmp fcn.1400568d0
mov rax, qword [r9 + 8]
mov edx, dword [rax]
jmp fcn.1400559c0
mov edx, 7
jmp fcn.1400559c0
jmp 0x140055d60
xor edx, edx
jmp fcn.140056800
cmp edx, 0xa
jne case.default.0x140055f83
mov rax, qword [r9 + 8]
mov rcx, qword [r9]
mov rdx, qword [rax]
lea rax, [fcn.140056b10]
cmp rdx, rax
jne 0x140055fdc
mov dword [rcx], 0
ret
lea rax, [fcn.1400568d0]
cmp rdx, rax
jne case.default.0x140055f83
mov dword [rcx], 1
ret
Function at 0x1400644b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
cmp dword [rbx + 0xa4], 1
je 0x1400644e2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140079960
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov rax, qword [rcx + 0x78]
test rax, rax
jne 0x140079a94
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x140079a8f
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x140079af8
mov rdi, r8
mov qword [r11 + 0x20], r8
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1401da6f8]
nop word [rax + rax]
lea rax, [rsp + 0xa8]
cmp rdi, 0x2000000
cmovge rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x90]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140079a28
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x140079a8a
add rbx, rax
sub rdi, rax
mov qword [rsp + 0xa8], rdi
cmp rbx, rbp
jge 0x140079a8a
jmp 0x1400799d0
test rbx, rbx
jne 0x140079a8a
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14004b9a0
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140062800
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140079a73
cmp eax, 0xffffffff
je 0x140079af8
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140079af8
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
or rax, 0xffffffffffffffff
jmp 0x140079b0c
mov rax, rbx
jmp 0x140079b0c
test rax, rax
je 0x140079afe
call fcn.1400796b0
test al, al
je 0x140079afe
mov rcx, qword [rsi + 0x78]
call fcn.1401173d8
test eax, eax
je 0x140079afe
or edx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.14004bb40
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140062800
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140079aea
cmp eax, 0xffffffff
je 0x140079af8
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140079af8
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
or rax, 0xffffffffffffffff
jmp 0x140079b0c
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140064500
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140064500
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbp, r8
mov r12, rdx
mov rsi, rcx
mov r13, qword [rcx + 0x18]
test r8, r8
js 0x14006466a
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x1400645d8
mov r15b, 1
nop dword [rax]
nop word [rax + rax]
mov r8, rbp
sub r8, rbx
lea rcx, [rbx + r12]
mov r9, qword [rsi + 0x78]
mov edx, 1
call fcn.140117770
mov rdi, rax
mov rcx, qword [rsi + 0x78]
call fcn.1401173d8
test eax, eax
setne r14b
test r15b, r15b
je 0x1400645a6
test r14b, r14b
je 0x1400645a6
test rdi, rdi
jne 0x1400645a6
mov rcx, qword [rsi + 0x78]
call fcn.1401136c8
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsi + 0x78]
call fcn.140117a50
xor r15b, r15b
jmp 0x1400645a9
add rbx, rdi
test r14b, r14b
jne 0x1400646c6
test rdi, rdi
jne 0x1400645c6
call fcn.140114510
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x1400645ce
xor ecx, ecx
cmp rbx, rbp
setl cl
test ecx, ecx
jne 0x140064550
jmp 0x140064620
cmp dword [rcx + 0xa0], 0xffffffff
je 0x140064629
mov rax, rbp
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + r12]
mov ecx, dword [rsi + 0xa0]
call fcn.14011855c
movsxd rcx, eax
test eax, eax
jle 0x140064612
add rbx, rcx
cmp rbx, rbp
jl 0x1400645e1
cmp ecx, 0xffffffff
setne al
test al, al
jne 0x1400646c6
test rbx, rbx
jne 0x1400646c6
or rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14004bb40
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.140062800
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400646b7
cmp eax, ebx
je 0x1400646c6
mov edx, ebx
lock xadd dword [rcx], edx
cmp edx, 1
jne 0x1400646c6
mov rcx, qword [rsp + 0x70]
jmp 0x1400646b7
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.14004bb40
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.140062800
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x1400646b7
cmp eax, ebx
je 0x1400646c6
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400646c6
mov rcx, qword [rsp + 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cd80
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140064c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
and dword [rbx + 0x40], 0xfdffffff
cmp dword [rbx + 0xa4], 2
je 0x140064c59
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0xa4], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140079d20
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x78], 0
jne 0x140079e49
cmp dword [rcx + 0xa0], 0xffffffff
jne 0x140079e49
cmp qword [rcx + 0x80], 0xffffffffffffffff
je 0x140079e3e
mov rdi, r8
mov qword [rax + 0x20], r8
xor r12d, r12d
mov ebx, r12d
mov qword [rax - 0x40], 0x2000000
nop word [rax + rax]
lea rax, [rsp + 0x98]
lea rcx, [rsp + 0x38]
cmp rdi, 0x2000000
cmovge rax, rcx
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140079ded
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x140079e44
add rbx, rax
sub rdi, rax
mov qword [rsp + 0x98], rdi
cmp rbx, rbp
jge 0x140079e44
jmp 0x140079d90
test rbx, rbx
jne 0x140079e44
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14004b9a0
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.140062800
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140079e30
cmp eax, 0xffffffff
je 0x140079e3e
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140079e3e
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
or rax, 0xffffffffffffffff
jmp 0x140079e4e
mov rax, rbx
jmp 0x140079e4e
call fcn.140064c80
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140064c80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbp
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov r14, qword [rcx + 0x18]
test r8, r8
js 0x140064db3
xor ebx, ebx
test r8, r8
je 0x140064daa
cmp qword [rcx + 0x78], rbx
je 0x140064d0d
nop dword [rax]
nop word [rax + rax]
mov r8, rdi
sub r8, rbx
lea rcx, [rbx + rbp]
mov r9, qword [rsi + 0x78]
mov edx, 1
call fcn.140117c94
add rbx, rax
test rax, rax
jne 0x140064cff
call fcn.140114510
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140064d07
xor ecx, ecx
cmp rbx, rdi
setl cl
test ecx, ecx
jne 0x140064cd0
jmp 0x140064d50
cmp dword [rcx + 0xa0], 0xffffffff
je 0x140064d55
nop word [rax + rax]
mov rax, rdi
sub rax, rbx
mov r8d, 0x7fffffff
cmp rax, r8
cmovb r8d, eax
lea rdx, [rbx + rbp]
mov ecx, dword [rsi + 0xa0]
call fcn.140119270
test eax, eax
jle 0x140064d50
cdqe
add rbx, rax
cmp rbx, rdi
jl 0x140064d20
test rbx, rbx
jne 0x140064daa
or rbx, 0xffffffffffffffff
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14004bb40
mov rdi, rax
call fcn.140114510
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rdi
mov rcx, r14
call fcn.140062800
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140064df7
cmp eax, ebx
je 0x140064e06
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140064e06
mov rcx, qword [rsp + 0x50]
jmp 0x140064df7
and dword [rsi + 0x40], 0xffdfffff
jmp 0x140064e06
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.14004bb40
nop
mov r8, rax
mov edx, 2
mov rcx, r14
call fcn.140062800
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140064df7
cmp eax, ebx
je 0x140064e06
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140064e06
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cd80
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400667b0
Capabilities:
Copy file

Disassembly:
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov r14, r8
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400631a0
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400631a0
mov rdi, rax
mov rcx, rsi
call fcn.140021850
mov rbx, rax
mov rcx, rdi
call fcn.140021850
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x140066844
cmp eax, ebx
je 0x140066853
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140066853
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140066871
cmp eax, 0xffffffff
je 0x14006687f
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x14006687f
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
test dil, dil
jne 0x14006689e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [r14], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140066c70
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
lea rax, [0x140172000]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140066dcd
cmp esi, 0x104
jbe 0x140066d75
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.14010a714
mov r15, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140066d6b
mov r8d, esi
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140005580
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140066d5d
cmp eax, ebx
je 0x140066d6b
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140066d6b
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rcx, r15
call fcn.14010a1e0
jmp 0x140066dcd
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140005580
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x58], rcx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x140066dbf
cmp eax, 0xffffffff
je 0x140066dcd
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140066dcd
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
cmp ecx, 2
jl 0x140066e50
cmp ecx, 1
jle 0x140066de9
mov rcx, qword [rax + 0x10]
movzx r14d, word [rcx + rax + 2]
cmp r14w, 0x3a
jne 0x140066e50
mov rcx, qword [rax + 0x10]
movzx ecx, word [rax + rcx]
call fcn.140020cc0
mov esi, eax
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x140066e28
mov eax, 0x20
mov word [rsp + 0x28], ax
movzx r8d, ax
lea edx, [rax - 0x1f]
lea rcx, [rsp + 0x20]
call fcn.14001fae0
jmp 0x140066e43
cmp dword [rax], 1
ja 0x140066e34
cmp qword [rax + 0x10], 0x18
je 0x140066e48
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.14001e090
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov word [rax + rcx], si
movzx r8d, byte [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140062970
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140066e82
cmp eax, 0xffffffff
je 0x140066e90
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140066e90
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14010a180
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140068b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, rdx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x140068b98
lock inc dword [rax]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 4]
cmp r8d, 2
jne 0x140068c0e
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x140068c0e
cmp dword [rax], 1
ja 0x140068bc2
mov edx, dword [rax + 8]
btr edx, 0x1f
lea ecx, [r8 + 2]
cmp ecx, edx
jbe 0x140068bd8
lea edx, [r8 + 2]
mov r8b, 1
lea rcx, [rsp + 0x20]
call fcn.14001e090
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea r8, [rcx + rdx*2]
mov ecx, 0x5c
mov word [r8 + rax], cx
mov rax, qword [rsp + 0x20]
inc dword [rax + 4]
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 4]
mov rcx, qword [rax + 0x10]
lea r8, [rcx + rdx*2]
xor ecx, ecx
mov word [r8 + rax], cx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140078ef0
nop
lea rcx, [rsp + 0x28]
call fcn.140021850
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140068c74
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140068c48
cmp eax, 0x20
jne 0x140068c74
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x140068c5e
lock inc dword [rax]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140067fa0
test al, al
cmovne ebx, dword [rsp + 0x40]
test rdi, rdi
je 0x140068c81
cmp ebx, 0xffffffff
setne al
mov byte [rdi], al
cmp ebx, 0xffffffff
jne 0x140068c8a
xor bl, bl
jmp 0x140068c90
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
or edi, 0xffffffff
test eax, eax
je 0x140068cb2
cmp eax, edi
je 0x140068cc1
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140068cc1
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x140068cdf
cmp eax, 0xffffffff
je 0x140068ced
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140068ced
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14010a180
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x140069260
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x4e0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x510], rbx
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x38], 0
lea rax, [0x140172000]
mov qword [rcx], rax
mov dword [rsp + 0x38], 1
xor sil, sil
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14013c9b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14028fdd8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x800401f0
jne 0x140069310
mov sil, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14013c9b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14028fdd8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14006942c
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x14028fdc8]
call qword [rax]
test eax, eax
js 0x140069421
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400631a0
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
call fcn.140021850
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [rbx + 0x28]
mov ebp, eax
mov rcx, qword [rsp + 0x48]
mov edx, dword [rcx]
or ebx, 0xffffffff
test edx, edx
je 0x140069385
cmp edx, ebx
je 0x140069393
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140069393
mov rcx, qword [rsp + 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
test ebp, ebp
js 0x140069416
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x70]
mov r8d, 0x104
lea rdx, [rsp + 0x2c0]
call qword [rax + 0x18]
test eax, eax
jne 0x140069416
mov r8d, ebx
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x50]
call fcn.140005580
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rsp + 0x68], rcx
mov rax, qword [rax]
mov qword [rdi], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140069408
cmp eax, 0xffffffff
je 0x140069416
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x140069416
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test sil, sil
je 0x140069437
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rdi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14010a180
mov rbx, qword [rsp + 0x510]
add rsp, 0x4e0
pop rdi
pop rsi
pop rbp
ret