joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400679a0
Capabilities:
Enumerate gui resources

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x20]
lea rdx, [0x140d3d038]
mov r8d, 1
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call fcn.14001c650
add rsp, 0x38
ret
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov dword [rsp + 0x10], edx
sub rsp, 0x48
lea rax, [r11 + 0x10]
lea r9, [r11 - 0x28]
lea rdx, [0x140d3d038]
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
mov r8d, 2
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x28], 0
call fcn.14001c650
add rsp, 0x48
ret
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x20]
lea rdx, [0x140d3d038]
mov r8d, 4
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call fcn.14001c650
add rsp, 0x38
ret
test edx, edx
jne 0x140024c7d
push rbx
sub rsp, 0x20
mov rbx, r9
mov r10, rcx
cmp r8d, 0xe
ja case.default.0x140024b31
lea rcx, [0x140000000]
movsxd rax, r8d
mov edx, dword [rcx + rax*4 + 0x24c80]
add rdx, rcx
jmp rdx
lea rdx, [0x140d3d038]
xor r9d, r9d
xor r8d, r8d
mov rcx, r10
add rsp, 0x20
pop rbx
jmp fcn.14001c650
mov rax, qword [r9 + 8]
mov rcx, r10
mov edx, dword [rax]
add rsp, 0x20
pop rbx
jmp 0x1400230e0
mov rcx, qword [r9 + 8]
mov rax, qword [r9 + 0x10]
mov edx, dword [rcx]
mov r8d, dword [rax]
mov rcx, r10
add rsp, 0x20
pop rbx
jmp 0x140023120
mov rax, qword [r9 + 8]
mov rcx, r10
mov edx, dword [rax]
add rsp, 0x20
pop rbx
jmp fcn.140023170
mov rax, qword [r9 + 8]
mov rcx, r10
mov edx, dword [rax]
add rsp, 0x20
pop rbx
jmp 0x1400231b0
xor r9d, r9d
lea rdx, [0x140d3d038]
mov rcx, r10
lea r8d, [r9 + 5]
add rsp, 0x20
pop rbx
jmp fcn.14001c650
xor r9d, r9d
lea rdx, [0x140d3d038]
mov rcx, r10
lea r8d, [r9 + 6]
add rsp, 0x20
pop rbx
jmp fcn.14001c650
mov rcx, qword [r10 + 8]
add rsp, 0x20
pop rbx
jmp 0x1400679a0
mov rcx, qword [r10 + 8]
add rsp, 0x20
pop rbx
jmp fcn.1400679f0
mov rcx, qword [r10 + 8]
call fcn.140024270
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140024410
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.1400245b0
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140023820
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140024770
mov rcx, qword [rbx]
test rcx, rcx
je case.default.0x140024b31
mov byte [rcx], al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [r10 + 8]
call fcn.140068300
add rsp, 0x20
pop rbx
repz ret
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x100]
mov rbx, rcx
test rax, rax
je 0x1400679e0
mov edx, dword [rax + 0x10]
lea rcx, [0x140067950]
call qword [sym.imp.USER32.dll_EnumWindows]
mov r11, qword [rbx + 0x100]
xor r9d, r9d
mov ecx, dword [r11 + 0x14]
lea edx, [r9 + 0x10]
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
add rsp, 0x20
pop rbx
ret
Function at 0x1400679f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x100]
test rcx, rcx
je 0x140067a0e
mov rcx, qword [rcx]
mov edx, 0xf291
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140067eb0
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 0x158]
cmp rcx, 0xffffffffffffffff
jne 0x140067ed8
xor eax, eax
jmp 0x140067ffd
xor esi, esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [rbx + 0xec], 2
jne 0x140067ff9
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140067ffd
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400052f0
nop
mov dword [rsp + 0x68], esi
mov rcx, qword [rsp + 0x78]
mov edi, dword [rcx + 8]
mov eax, dword [rcx]
cmp eax, 1
jne 0x140067f46
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x18]
cmp qword [rax + 0x10], rdx
je 0x140067f58
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.140005410
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140067fe1
cmp dword [rsp + 0x68], 0
jbe 0x140067fe1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
test rax, rax
je 0x140067fe1
mov dword [rsp + 0x70], esi
mov rcx, qword [rsp + 0x78]
mov edx, dword [rcx]
mov rcx, qword [rsp + 0x78]
cmp edx, 1
jne 0x140067fb3
lea rdx, [rcx + 0x18]
cmp qword [rcx + 0x10], rdx
je 0x140067fc5
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.140005410
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rcx + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x60], esi
mov rax, qword [rsp + 0x78]
lock dec dword [rax]
jne 0x140067ff9
mov rcx, qword [rsp + 0x78]
call fcn.140004d80
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140068010
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 0x188]
cmp rcx, 0xffffffffffffffff
jne 0x140068038
xor eax, eax
jmp 0x14006815d
xor esi, esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [rbx + 0xec], 2
jne 0x140068159
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14006815d
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.1400052f0
nop
mov dword [rsp + 0x68], esi
mov rcx, qword [rsp + 0x78]
mov edi, dword [rcx + 8]
mov eax, dword [rcx]
cmp eax, 1
jne 0x1400680a6
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x18]
cmp qword [rax + 0x10], rdx
je 0x1400680b8
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.140005410
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbx + 0x188]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140068141
cmp dword [rsp + 0x68], 0
jbe 0x140068141
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
test rax, rax
je 0x140068141
mov dword [rsp + 0x70], esi
mov rcx, qword [rsp + 0x78]
mov edx, dword [rcx]
mov rcx, qword [rsp + 0x78]
cmp edx, 1
jne 0x140068113
lea rdx, [rcx + 0x18]
cmp qword [rcx + 0x10], rdx
je 0x140068125
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.140005410
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rcx + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x60], esi
mov rax, qword [rsp + 0x78]
lock dec dword [rax]
jne 0x140068159
mov rcx, qword [rsp + 0x78]
call fcn.140004d80
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140068170
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140067eb0
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x58]
cmp rbx, rax
mov qword [rsp + 0x58], rax
cmovge r9, rcx
xor eax, eax
mov r8d, dword [r9]
mov dword [rsp + 0x58], eax
test r8d, r8d
je 0x1400681ec
mov rcx, qword [rdi + 0x158]
lea r9, [rsp + 0x58]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400681e8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140068200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140068010
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x58]
cmp rbx, rax
mov qword [rsp + 0x58], rax
cmovge r9, rcx
xor eax, eax
mov r8d, dword [r9]
mov dword [rsp + 0x58], eax
test r8d, r8d
je 0x14006827c
mov rcx, qword [rdi + 0x188]
lea r9, [rsp + 0x58]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140068278
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14006b230
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
lock inc dword [rax]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 2
jne 0x14006b2df
mov rcx, qword [rax + 0x10]
cmp word [rcx + 2], 0x3a
jne 0x14006b2df
mov ecx, dword [rax]
cmp ecx, 1
jne 0x14006b298
mov edx, dword [rax + 8]
inc edx
mov rcx, qword [rsp + 0x20]
cmp edx, dword [rcx + 4]
jle 0x14006b2b3
mov ecx, dword [rax + 8]
inc ecx
call fcn.140007cf0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14000aeb0
mov rcx, qword [rsp + 0x20]
movsxd rdx, dword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov ecx, 0x5c
mov word [rax + rdx*2], cx
mov rax, qword [rsp + 0x20]
inc dword [rax + 8]
mov rax, qword [rsp + 0x20]
movsxd rdx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
xor eax, eax
mov word [rcx + rdx*2], ax
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.1400701b0
nop
mov rcx, rax
call fcn.14000b320
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x28]
lock dec dword [rdx]
jne 0x14006b316
mov rcx, qword [rsp + 0x28]
call fcn.14000ade0
cmp edi, 0xffffffff
jne 0x14006b34e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14006b32b
cmp eax, 0x20
jne 0x14006b34e
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400701b0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14006aee0
test al, al
cmovne edi, dword [rsp + 0x40]
test rsi, rsi
je 0x14006b35b
cmp edi, 0xffffffff
setne al
mov byte [rsi], al
cmp edi, 0xffffffff
jne 0x14006b378
mov rax, qword [rsp + 0x20]
lock dec dword [rax]
jne 0x14006b374
mov rcx, qword [rsp + 0x20]
call fcn.14000ade0
xor al, al
jmp 0x14006b397
shr edi, 4
and dil, 1
mov rax, qword [rsp + 0x20]
lock dec dword [rax]
jne 0x14006b393
mov rcx, qword [rsp + 0x20]
call fcn.14000ade0
movzx eax, dil
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400ac900
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14006b3c0
Capabilities:
Copy file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov rbp, r8
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14006f260
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14006f260
mov rdi, rax
mov rcx, rsi
call fcn.14000b320
mov rbx, rax
mov rcx, rdi
call fcn.14000b320
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]
lock dec dword [rcx]
jne 0x14006b447
mov rcx, qword [rsp + 0x58]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x20]
lock dec dword [rax]
jne 0x14006b45b
mov rcx, qword [rsp + 0x20]
call fcn.14000ade0
test dil, dil
jne 0x14006b47b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rbp], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14006b4a0
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov rbp, r8
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14006f260
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14006f260
mov rdi, rax
mov rcx, rsi
call fcn.14000b320
mov rbx, rax
mov rcx, rdi
call fcn.14000b320
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x58]
lock dec dword [rcx]
jne 0x14006b521
mov rcx, qword [rsp + 0x58]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x20]
lock dec dword [rax]
jne 0x14006b535
mov rcx, qword [rsp + 0x20]
call fcn.14000ade0
test dil, dil
jne 0x14006b555
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 2
mov rcx, qword [rsp + 0x58]
mov qword [rbp], rcx
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14006b570
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rdx
lea rdx, [rsp + 0x50]
call fcn.14006f260
nop
mov rcx, rax
call fcn.14000b320
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x14006b5bc
mov rcx, qword [rsp + 0x50]
call fcn.14000ade0
test bl, bl
jne 0x14006b5da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 2
mov rcx, qword [rsp + 0x50]
mov qword [rdi], rcx
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006c730
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x4e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x510], rbx
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x38], 0
lea rax, [0x140dd80a8]
mov qword [rcx], rax
lock inc dword [0x140dd80a8]
mov dword [rsp + 0x38], 1
xor sil, sil
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140daec08]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140daec28]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, 0x800401f0
jne 0x14006c7e7
mov sil, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
lea r9, [0x140daec08]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140daec28]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14006c8cd
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x140daec18]
call qword [rax]
test eax, eax
js 0x14006c8c2
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14006f260
mov rcx, rax
mov rax, qword [rsp + 0x40]
mov rbx, qword [rax]
call fcn.14000b320
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [rbx + 0x28]
mov ebp, eax
mov rcx, qword [rsp + 0x50]
or ebx, 0xffffffff
lock dec dword [rcx]
jne 0x14006c851
mov rcx, qword [rsp + 0x50]
call fcn.14000ade0
test ebp, ebp
js 0x14006c8b7
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 0x14006c8b7
mov r8d, ebx
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x48]
call fcn.14000ed80
mov r11, rax
mov rcx, qword [rdi]
mov rax, qword [rax]
mov qword [rdi], rax
mov qword [r11], rcx
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x14006c8b7
mov rcx, qword [rsp + 0x48]
call fcn.14000ade0
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 0x14006c8d8
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rax, rdi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.1400ac900
mov rbx, qword [rsp + 0x510]
add rsp, 0x4e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006d640
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x28], 0
lea rax, [0x140dd80a8]
mov qword [rcx], rax
lock inc dword [0x140dd80a8]
mov dword [rsp + 0x28], 1
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
or edi, 0xffffffff
test eax, eax
je 0x14006d6e3
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14000ed80
mov r11, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [r11], rcx
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x14006d6e3
mov rcx, qword [rsp + 0x30]
call fcn.14000ade0
mov rax, qword [rbx]
cmp dword [rax + 8], 0
je 0x14006d769
mov esi, 0x5c
mov word [rsp + 0x20], si
lea r8d, [rsi - 0x5b]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400081c0
test al, al
je 0x14006d739
nop dword [rax + rax]
mov edx, 1
mov rcx, rbx
call fcn.14000ce60
mov word [rsp + 0x20], si
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400081c0
test al, al
jne 0x14006d710
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140025b60
mov r11, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [r11], rcx
mov rax, qword [rsp + 0x38]
lock dec dword [rax]
jne 0x14006d769
mov rcx, qword [rsp + 0x38]
call fcn.14000ade0
mov rdx, qword [rbx]
mov eax, dword [rdx + 8]
test eax, eax
jne 0x14006d7a9
mov r8d, edi
lea rdx, [0x140d88bc0]
lea rcx, [rsp + 0x40]
call fcn.14000c980
mov rdx, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x40]
lock dec dword [rcx]
jne 0x14006d816
mov rcx, qword [rsp + 0x40]
call fcn.14000ade0
jmp 0x14006d816
cmp eax, 2
jl 0x14006d816
cmp eax, 1
jle 0x14006d816
mov rax, qword [rdx + 0x10]
cmp word [rax + 2], 0x3a
jne 0x14006d816
movzx ecx, word [rax]
mov word [rsp + 0x22], cx
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x22]
call fcn.140008e30
mov rdi, rax
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
jg 0x14006d7ed
xor edx, edx
mov rcx, rbx
call fcn.14000b720
jmp 0x14006d809
mov eax, dword [rcx]
cmp eax, 1
jne 0x14006d801
mov rcx, qword [rbx]
lea rax, [rcx + 0x1a]
cmp qword [rcx + 0x10], rax
je 0x14006d809
mov rcx, rbx
call fcn.14000b0c0
movzx edx, word [rdi]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x10]
mov word [rcx], dx
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400ac900
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14006d840
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x30], 0
lea rax, [0x140dd80a8]
mov qword [rsp + 0x20], rax
lock inc dword [0x140dd80a8]
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14006d963
cmp esi, 0x104
jbe 0x14006d92a
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.1400abb70
mov r12, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14006d920
mov r8d, esi
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.14000ed80
mov r11, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [r11], rcx
mov rax, qword [rsp + 0x38]
lock dec dword [rax]
jne 0x14006d920
mov rcx, qword [rsp + 0x38]
call fcn.14000ade0
mov rcx, r12
call fcn.1400ad4f8
jmp 0x14006d963
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000ed80
mov r11, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [r11], rcx
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x14006d963
mov rcx, qword [rsp + 0x40]
call fcn.14000ade0
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 8]
cmp ecx, 2
jl 0x14006d9e2
cmp ecx, 1
jle 0x14006d9e2
mov rcx, qword [rax + 0x10]
cmp word [rcx + 2], 0x3a
jne 0x14006d9e2
movzx eax, word [rcx]
mov word [rsp + 0x2a], ax
lea rdx, [rsp + 0x2c]
lea rcx, [rsp + 0x2a]
call fcn.140008e30
mov rsi, rax
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jg 0x14006d9b3
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14000b720
jmp 0x14006d9d3
mov ecx, dword [rax]
cmp ecx, 1
jne 0x14006d9c9
mov r11, qword [rsp + 0x20]
lea rax, [r11 + 0x1a]
cmp qword [r11 + 0x10], rax
je 0x14006d9d8
lea rcx, [rsp + 0x20]
call fcn.14000b0c0
mov r11, qword [rsp + 0x20]
movzx ecx, word [rsi]
mov rax, qword [r11 + 0x10]
mov word [rax], cx
xor eax, eax
mov byte [rsp + 0x28], al
movzx r8d, al
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14006e5c0
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x20]
lock dec dword [rcx]
jne 0x14006da15
mov rcx, qword [rsp + 0x20]
call fcn.14000ade0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400ac900
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14006dc90
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rdx
mov rbp, rcx
xor dil, dil
xor esi, esi
call fcn.14006ea60
test al, al
je 0x14006dd24
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.14006ef50
nop
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x10]
movzx ecx, word [rdx]
mov word [rsp + 0x70], cx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.140008e30
movzx ecx, word [rax]
sub ecx, 0x41
mov ebp, 1
shl ebp, cl
mov rax, qword [rsp + 0x28]
lock dec dword [rax]
jne 0x14006dd0f
mov rcx, qword [rsp + 0x28]
call fcn.14000ade0
test esi, ebp
je 0x14006de0a
mov esi, 0x14
mov dil, 1
jmp 0x14006ddd9
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.14006f260
nop
lea rax, [0x140d88c40]
mov qword [rsp + 0x30], rax
mov ebp, 1
mov r8d, ebp
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140009de0
test al, al
je 0x14006ddc0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov r9d, ebp
lea r8d, [rbp + 6]
movzx edx, word [rcx]
lea rcx, [rsp + 0x20]
call fcn.140009d50
test eax, eax
jle 0x14006dda9
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 0x10]
lea r8d, [rax + 1]
mov r9d, ebp
movzx edx, word [rdx]
lea rcx, [rsp + 0x20]
call fcn.140009d50
test eax, eax
jle 0x14006dda9
mov rcx, qword [rsp + 0x20]
mov edx, dword [rcx + 8]
dec edx
cmp eax, edx
jne 0x14006ddc0
lea rcx, [rsp + 0x20]
call fcn.14006da40
test al, al
je 0x14006ddc0
mov esi, 0x10
movzx edi, bpl
mov rax, qword [rsp + 0x20]
lock dec dword [rax]
jne 0x14006ddd4
mov rcx, qword [rsp + 0x20]
call fcn.14000ade0
test dil, dil
je 0x14006de0a
mov dword [rbx + 0x10], esi
test sil, 2
je 0x14006dde9
or dword [rbx + 4], 0x100000
test sil, 0x10
mov eax, 0x20000
mov ecx, 0x40000
cmovne eax, ecx
or dword [rbx + 4], eax
or dword [rbx + 4], 0x400000
or dword [rbx], 0x560000
movzx eax, dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret