joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005cd0
Capabilities:
Encode data using xor

Disassembly:
pop r10
xor r14, 0x5e
xor rax, rax
or r15, 0x29
lea r15, [r10 + rax]
rol r12, 0x10
mov r14b, byte [r15]
sub r12, r12
xor r14b, 0x89
lea r12, [r12 + 0x32]
add r14b, 0x57
ror r12, 0x31
mov byte [r15], r14b
add r12, 0xc4
inc rax
rol r12, 0x2e
cmp rax, r11
nop
jne 0x140005cdd
ror r12, 9
mov rax, 0x7c
and r14, r15
mov r12, 0x5c
and r14, 0x49
xor rax, r12
xchg r14, r15
push r10
ror r14, 0xf
sub rsp, 0x20
addps xmm12, xmm0
mov rcx, r10
xorps xmm7, xmm4
mov rdx, r11
sub r15, r10
mov r8, rax
or r12, 0x3e
lea r9, [rsp + 0x48]
lea r15, [r15 + 0x87]
call r13
mov r13, 0xf8
add rsp, 0x20
nop
ret
Function at 0x140024aa0
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
lea rcx, str.Dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140024b84
mov rsi, rax
lea rdx, str.MiniDumpWriteDump
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rdi
mov qword [0x1401bca48], rax
lea rdx, str.StackWalk64
mov rcx, rsi
call rdi
mov qword [0x1401bca50], rax
lea rdx, str.SymGetModuleBase64
mov rcx, rsi
call rdi
mov qword [0x1401bca58], rax
lea rdx, str.SymGetSymFromAddr64
mov rcx, rsi
call rdi
mov qword [0x1401bca60], rax
lea rdx, str.SymGetLineFromAddr64
mov rcx, rsi
call rdi
mov qword [0x1401bca68], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, rsi
call rdi
mov qword [0x1401bca70], rax
lea rdx, str.SymFunctionTableAccess64
mov rcx, rsi
call rdi
mov qword [0x1401bca78], rax
lea rdx, str.SymSetOptions
mov rcx, rsi
call rdi
mov qword [0x1401bca80], rax
lea rdx, str.SymInitialize
mov rcx, rsi
call rdi
mov qword [0x1401bca88], rax
lea rdx, str.EnumerateLoadedModules64
mov rcx, rsi
call rdi
mov qword [0x1401bca30], rax
movq xmm0, qword [0x1401bca50]
movq xmm1, qword [0x1401bca88]
punpcklqdq xmm1, xmm0
movq xmm0, qword [0x1401bca48]
movq xmm2, qword [0x1401bca80]
punpcklqdq xmm2, xmm0
pxor xmm0, xmm0
pcmpeqd xmm2, xmm0
pshufd xmm3, xmm2, 0xb1
pand xmm3, xmm2
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
packssdw xmm0, xmm3
movmskps eax, xmm0
test eax, eax
je 0x140024bdc
add rsp, 0x28
pop rdi
pop rsi
ret
cmp byte [0x1401bca38], 1
jne case.default.0x140024bf2
lea rcx, [0x1401bc928]
add rsp, 0x28
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x1401bd298], 0
jne case.default.0x140024c50
lea rcx, [0x1401bc928]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x1401bd298], 1
lea rcx, [0x1401bc928]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [0x1401bca38], 1
lea rcx, [0x1400254b0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov qword [0x1401bca40], rax
lea rcx, [0x1400260c0]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
jo 0x1402f942c
and byte [r10 + 0x2e], r12b
push rbx
jl 0x1402f9433
add byte cs:[rcx + 0x6e], al
outsb dx, byte [rsi]
push rsi
add byte [rbp + 0x2e], ch
insd dword [rdi], dx
push rsp
pop rcx
add byte [rbp + 0x2e], ah
and byte cs:[ecx + 0x20], bh
jb str.HX.Ln
pop rax
pop rax
outsb dx, byte cs:[rsi]
add byte [rsi + 0x3e], dl
push rsi
invalid
and byte [rbx + 0x20], cl
push 0x78005820
js 0x1402f945d
and al, 0x2e
pop rcx
add byte cs:[rax + 0x20], dil
js 0x1402f9464
je 0x1402f94b4
invalid
and al, 0x20
invalid
Function at 0x1400262e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x490], rax
test rcx, rcx
je 0x1400263a2
mov rsi, rdx
mov r14, rcx
mov dword [rsp + 0x4c], 0
lea r15, [rsp + 0x4c]
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r8, str.DumpFolder
xor ebx, ebx
xor edx, edx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140026410
mov ebx, dword [rsp + 0x4c]
lea rdi, [rsp + 0x288]
mov qword [rsp + 0x270], rdi
mov qword [rsp + 0x278], 0
mov qword [rsp + 0x280], 0x104
cmp rbx, 0x105
jb 0x1400263a6
lea rcx, [rsp + 0x270]
mov r9d, 2
mov rdx, rdi
mov r8, rbx
call fcn.14001dc70
mov rcx, qword [rsp + 0x270]
jmp 0x1400263b1
xor ebx, ebx
jmp 0x140026410
mov rcx, rdi
mov rax, rdi
test rbx, rbx
je 0x1400263c4
lea r8, [rbx + rbx]
xor edx, edx
call fcn.140122ca0
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r8, str.DumpFolder
xor ebx, ebx
mov rcx, r14
xor edx, edx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140026433
mov rcx, qword [rsp + 0x270]
cmp rcx, rdi
je 0x140026410
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1401213e0
mov eax, ebx
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x270]
xor ebx, ebx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400263fd
mov r15d, eax
mov r12d, eax
lea r14, [rsp + 0x68]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0x104
mov rcx, r14
cmp eax, 0x105
jb 0x140026493
lea rcx, [rsp + 0x50]
mov r9d, 2
mov rdx, r14
mov r8, r12
call fcn.14001dc70
mov rcx, qword [rsp + 0x50]
lea r8, [r12 + r12]
xor ebx, ebx
xor edx, edx
call fcn.140122ca0
mov qword [rsp + 0x58], r12
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x270]
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp r15d, eax
jne 0x1400264e0
dec r15d
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov r8, r15
mov r9, rsi
call fcn.14005a5c0
cmp dword [rsp + 0x38], 0
sete bl
mov rcx, qword [rsp + 0x50]
cmp rcx, r14
je 0x1400263fd
call qword [0x14017cb20]
jmp 0x1400263fd
Function at 0x140049d90
Capabilities:
Get number of processors

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0xa0], 0
mov eax, dword [0x1401bc800]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140049e8e
mov rax, qword [0x1401bc7f8]
mov qword [rsp + 0xa8], rax
lea r14, [rsp + 0x70]
movzx eax, word [rbx]
lea r8, [rsp + 0x32]
mov word [rsp + 0x30], ax
mov qword [rsp + 0x28], 0
movzx eax, byte [rdi]
mov byte [rsp + 0x20], al
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, rdi
mov r9, r14
call fcn.140049ee0
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x20], r14
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.14004a100
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401bc800]
call fcn.140121230
cmp dword [0x1401bc800], 0xffffffff
jne 0x140049e10
mov rax, qword [0x1401bdc70]
test rax, rax
movabs rcx, 0xff51afd7ed558ccd
cmovne rcx, rax
mov qword [0x1401bc7f8], rcx
lea rcx, [0x1401bc800]
call fcn.140121298
jmp 0x140049e10
Function at 0x140058150
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x858
mov rsi, rdx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov qword [rdx + 8], 0
lea rdi, [rsp + 0x50]
xor r13d, r13d
lea rbp, [0x140127210]
mov rbx, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r14, [rsp + 0x38]
jmp 0x1400581b5
inc r13
cmp r13, 3
sete al
or al, r15b
cmp al, 1
je 0x14005827c
mov r15, qword [rbp + r13*8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0x400
mov r12d, 0x400
xor r8d, r8d
nop word [rax + rax]
cmp r8, r12
je 0x14005820a
ja 0x140058202
cmp qword [rsp + 0x48], r12
jae 0x140058202
mov r9d, 2
mov rcx, r14
mov rdx, rdi
mov r8, r12
call fcn.14001dc70
mov qword [rsp + 0x40], r12
mov r8, r12
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call rbx
test eax, eax
je 0x140058260
mov r12d, eax
mov r8, qword [rsp + 0x40]
cmp r8, r12
jb 0x1400581e0
mov qword [rsp + 0x40], r12
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x28]
mov edx, 0xfde9
mov r9, r12
call fcn.14005d320
cmp dword [rsp + 0x28], 0
sete r15b
jmp 0x140058263
xor r15d, r15d
mov rcx, qword [rsp + 0x38]
cmp rcx, rdi
je 0x1400581a0
call qword [0x14017cb20]
jmp 0x1400581a0
test r15b, r15b
je 0x14005829a
mov rcx, rsi
xor edx, edx
call fcn.1400567a0
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.140059100
jmp 0x1400582df
mov rax, qword [rsi + 8]
lea r8, [rax + 7]
cmp qword [rsi + 0x10], r8
jae 0x1400582be
lea rdx, [rsi + 0x18]
mov r9d, 1
mov rcx, rsi
call fcn.14001dc70
mov rax, qword [rsi + 8]
mov rcx, qword [rsi]
mov dword [rcx + rax + 3], 0x706d6554
mov dword [rcx + rax], 0x545c3a43
add qword [rsi + 8], 7
mov rcx, rsi
xor edx, edx
call fcn.1400567a0
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1401213e0
nop
add rsp, 0x858
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400592a0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdi, [rsp + 0x48]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0x104
mov eax, 0x104
xor ecx, ecx
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r14, [rsp + 0x30]
nop word [rax + rax]
mov r15d, eax
cmp rcx, r15
je 0x14005932d
ja 0x140059325
cmp qword [rsp + 0x40], r15
jae 0x140059325
mov r9d, 2
mov rcx, r14
mov rdx, rdi
mov r8, r15
call fcn.14001dc70
mov qword [rsp + 0x38], r15
mov rcx, r15
mov rdx, qword [rsp + 0x30]
call r12
test eax, eax
je 0x1400593a5
mov r9d, eax
mov rcx, qword [rsp + 0x38]
cmp rcx, r9
jb 0x140059300
mov qword [rsp + 0x38], r9
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov edx, 0xfde9
call fcn.14005d320
cmp dword [rsi], 0
jne 0x1400593b5
mov rcx, rbx
xor edx, edx
call fcn.1400567a0
mov dword [rsi], 0
mov eax, dword [0x1401bc758]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400593e9
lea rax, section..data
mov qword [rsi + 8], rax
jmp 0x1400593b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400660f0
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x1400593c5
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1401bc758]
call fcn.140121230
cmp dword [0x1401bc758], 0xffffffff
jne 0x140059398
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc758]
call fcn.140121298
jmp 0x140059398

Function at 0x140059850
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x140
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0x80
lea r8, [rsp + 0x20]
mov r9d, 0xf8
call fcn.14005a040
cmp dword [rsi], 0
jne 0x1400598f7
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400598c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140059925
test bl, bl
je 0x140059925
mov dword [rsi], 0
mov eax, dword [0x1401bc758]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140059931
lea rax, section..data
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x140059907
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0x140
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
mov edx, eax
call fcn.1400660f0
jmp 0x1400598f7
lea rcx, [0x1401bc758]
call fcn.140121230
cmp dword [0x1401bc758], 0xffffffff
jne 0x1400598ec
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc758]
call fcn.140121298
jmp 0x1400598ec
Function at 0x140059f00
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [r8 + 8]
lea rcx, [r8 + 0x18]
mov qword [rsp + 0x38], rcx
mov r12d, 0xffffffff
cmp r9, r12
cmovb r12, r9
lea r13, [rsp + 0x5c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rsi, rax
nop word cs:[rax + rax]
lea rbp, [rsi + rbx]
cmp rax, rbp
je 0x140059f8b
ja 0x140059f87
cmp qword [rdi + 0x10], rbp
jae 0x140059f87
mov r9d, 1
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
mov r8, rbp
call fcn.14001dc70
mov qword [rdi + 8], rbp
mov rdx, qword [rdi]
add rdx, rsi
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x20], 0
mov rcx, r14
mov r8d, r12d
mov r9, r13
call r15
test eax, eax
jne 0x140059fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x140059fd0
cmp eax, 0x26
jne 0x14005a014
nop word cs:[rax + rax]
mov eax, dword [rsp + 0x5c]
test rax, rax
je 0x140059fe5
add rsi, rax
mov rax, qword [rdi + 8]
jmp 0x140059f60
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov qword [rbx], rax
mov qword [rdi + 8], rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401213e0
mov rax, rbx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov edx, eax
call fcn.1400660f0
lea rcx, [rsp + 0x50]
mov rdx, rbx
call fcn.140054270
mov rax, qword [rsp + 0x50]
jmp 0x140059fe7
Function at 0x14005a620
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
sub rsp, 0x148
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0x80
lea r8, [rsp + 0x28]
mov r9d, 0x104
call fcn.14005a040
cmp dword [rsi], 0
jne 0x14005a6c2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14005a6b2
mov dword [rsi], 0
mov eax, dword [0x1401bc758]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005a6ef
lea rax, section..data
mov qword [rsi + 8], rax
jmp 0x14005a6c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.1400660f0
mov rcx, qword [rsp + 0x28]
cmp rcx, rdi
je 0x14005a6d2
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0x148
pop rdi
pop rsi
ret
lea rcx, [0x1401bc758]
call fcn.140121230
cmp dword [0x1401bc758], 0xffffffff
jne 0x14005a6a5
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc758]
call fcn.140121298
jmp 0x14005a6a5
Function at 0x14005ab50
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0x80
mov r15d, 0x80
mov r13, qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r12, [rsp + 0x28]
nop word cs:[rax + rax]
mov rcx, qword [rsp + 0x30]
cmp rcx, r15
je 0x14005ac0b
ja 0x14005ac06
cmp qword [rsp + 0x38], r15
jae 0x14005abec
mov r9d, 2
mov rcx, r12
mov rdx, rdi
mov r8, r15
call fcn.14001dc70
mov rcx, qword [rsp + 0x30]
mov r8, r15
sub r8, rcx
je 0x14005ac06
add rcx, rcx
add rcx, qword [rsp + 0x28]
add r8, r8
xor edx, edx
call fcn.140122ca0
mov qword [rsp + 0x30], r15
mov rdx, qword [rsp + 0x28]
mov rcx, qword [r14]
mov r8d, r15d
call r13
test eax, eax
jne 0x14005ac36
call rbp
add r15, r15
cmp eax, 0x7a
je 0x14005abc0
mov rcx, rsi
mov edx, eax
call fcn.1400660f0
jmp 0x14005acc6
mov rax, qword [rsp + 0x30]
lea r8, [rax + 1]
cmp r8, qword [rsp + 0x38]
ja 0x14005ad2d
mov rcx, qword [rsp + 0x28]
mov word [rcx + rax*2], 0
inc qword [rsp + 0x30]
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [0x14017cb78]
mov qword [rsp + 0x30], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [rax - 4]
cmp ecx, 3
jb 0x14005ac8d
cmp eax, 2
je 0x14005ac8d
cmp eax, 3
jne 0x14005acfd
mov byte [rbx], 1
jmp 0x14005ac90
mov byte [rbx], 0
mov dword [rsi], 0
mov eax, dword [0x1401bc758]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005ad4a
lea rax, section..data
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x28]
cmp rcx, rdi
je 0x14005acd6
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1401bc75c]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005ad80
mov dword [rsi], 2
lea rax, [0x140180010]
jmp 0x14005acc2
lea rcx, [rsp + 0x28]
mov r9d, 2
mov rdx, rdi
call fcn.14001dc70
mov rax, qword [rsp + 0x30]
jmp 0x14005ac4a
lea rcx, [0x1401bc758]
call fcn.140121230
cmp dword [0x1401bc758], 0xffffffff
jne 0x14005acbb
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc758]
call fcn.140121298
jmp 0x14005acbb
lea rcx, [0x1401bc75c]
call fcn.140121230
cmp dword [0x1401bc75c], 0xffffffff
jne 0x14005ad1e
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc75c]
call fcn.140121298
jmp 0x14005ad1e
Function at 0x14005aee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x140
mov edi, r8d
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea rbx, [rsp + 0x38]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0x80
lea r8, [rsp + 0x20]
mov r9d, 0x104
call fcn.14005a040
cmp dword [rsi], 0
jne 0x14005b03a
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005af5b
cmp edi, 1
jne 0x14005af78
mov ecx, eax
and ecx, 1
je 0x14005af78
mov dword [rsi], 0
jmp 0x14005af8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 4]
cmp ecx, 0xfffffffd
ja 0x14005afc8
mov rcx, rsi
mov edx, eax
call fcn.1400660f0
jmp 0x14005b03a
mov dword [rsi], 0
cmp edi, 2
jne 0x14005b00a
and eax, 0x10
je 0x14005b00a
mov qword [rsi + 8], 0
mov eax, dword [0x1401bc75c]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005b068
mov dword [rsi], 0xd
lea rax, [0x140180010]
jmp 0x14005b036
mov dword [rsi], 0
mov qword [rsi + 8], 0
mov eax, dword [0x1401bc75c]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005b09e
mov dword [rsi], 2
lea rax, [0x140180010]
jmp 0x14005b036
mov eax, dword [0x1401bc758]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005b0d4
lea rax, section..data
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x20]
cmp rcx, rbx
je 0x14005b04a
call qword [0x14017cb20]
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0x140
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401bc75c]
call fcn.140121230
cmp dword [0x1401bc75c], 0xffffffff
jne 0x14005afb9
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc75c]
call fcn.140121298
jmp 0x14005afb9
lea rcx, [0x1401bc75c]
call fcn.140121230
cmp dword [0x1401bc75c], 0xffffffff
jne 0x14005affb
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc75c]
call fcn.140121298
jmp 0x14005affb
lea rcx, [0x1401bc758]
call fcn.140121230
cmp dword [0x1401bc758], 0xffffffff
jne 0x14005b02f
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc758]
call fcn.140121298
jmp 0x14005b02f
Function at 0x14005b1e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, r8
mov rsi, rcx
mov rax, qword [0x140180518]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp rdx, 0xffffffffffffffff
je case.default.0x14005b222
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov eax, eax
lea rcx, [0x14005b3f0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005b39e
pxor xmm0, xmm0
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
movabs rax, 0xffff00000009
jmp 0x14005b34c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x14005b222
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x48]
movdqu xmm0, xmmword [rsp + 0x2c]
pshufd xmm0, xmm0, 0xb1
pshufd xmm1, xmmword [rsp + 0x20], 0x50
movdqu xmmword [rdi], xmm0
movq xmm0, qword [rsp + 0x40]
pand xmm1, xmmword [0x140127100]
pxor xmm2, xmm2
pcmpeqd xmm2, xmm1
movdqa xmm1, xmm2
pandn xmm1, xmmword [0x140127110]
pand xmm2, xmmword [0x140127120]
por xmm2, xmm1
punpcklqdq xmm0, xmm2
movdqu xmmword [rdi + 0x10], xmm0
mov dword [rdi + 0x20], ecx
mov dword [rdi + 0x24], eax
mov rax, qword [rsp + 0x4c]
mov qword [rdi + 0x28], rax
jmp 0x14005b355
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
pxor xmm0, xmm0
cmp ecx, 2
jne 0x14005b2f8
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x18], 1
jmp 0x14005b392
cmp eax, 0x20
jne 0x14005b389
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov dword [rdi + 0x18], 9
jmp 0x14005b392
pxor xmm0, xmm0
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
movabs rax, 0xffff00000006
jmp 0x14005b34c
pxor xmm0, xmm0
movdqu xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
movabs rax, 0xffff00000007
mov qword [rdi + 0x18], rax
movdqu xmmword [rdi + 0x20], xmm0
mov dword [rsi], 0
mov eax, dword [0x1401bc758]
mov ecx, dword [0x1401bd448]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005b3c0
lea rax, section..data
mov qword [rsi + 8], rax
jmp 0x14005b3a8
movdqu xmmword [rdi + 0xc], xmm0
movdqu xmmword [rdi], xmm0
mov dword [rdi + 0x1c], 0xffff
movdqu xmmword [rdi + 0x20], xmm0
mov rcx, rsi
mov edx, eax
call fcn.1400660f0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401213e0
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401bc758]
call fcn.140121230
cmp dword [0x1401bc758], 0xffffffff
jne 0x14005b37c
lea rcx, [fcn.1400055a0]
call fcn.140121400
lea rcx, [0x1401bc758]
call fcn.140121298
jmp 0x14005b37c