joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d300
Capabilities:
Enumerate process modules

Disassembly:
push rdi
mov eax, 0x1270
call fcn.1400fac80
sub rsp, rax
mov rax, qword [0x1414cdb60]
xor rax, rsp
mov qword [rsp + 0x1250], rax
mov rdi, rcx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x40]
mov edx, 0x1000
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x14000d4b7
mov qword [rsp + 0x1280], rbx
mov qword [rsp + 0x1288], rbp
mov ebp, dword [rsp + 0x20]
mov qword [rsp + 0x1290], rsi
shr ebp, 2
xor esi, esi
mov qword [rsp + 0x1268], r14
mov qword [rsp + 0x1260], r15
test ebp, ebp
je 0x14000d48d
lea r14, [rsp + 0x40]
or r15, 0xffffffffffffffff
mov r8d, dword [r14]
test r8d, r8d
je 0x14000d47f
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000d47f
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x14000d476
mov rdx, qword [rsp + 0x28]
lea r8, [rsp + 0x1040]
mov r9d, 0x104
mov rcx, rbx
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x14000d476
cmp word [rsp + 0x1040], 0
jne 0x14000d3f9
xor eax, eax
jmp 0x14000d40e
lea rcx, [rsp + 0x1040]
mov rax, r15
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000d404
cmp qword [rdi + 0x18], 8
mov r10, qword [rdi + 0x10]
jb 0x14000d41e
mov rdx, qword [rdi]
jmp 0x14000d421
mov rdx, rdi
cmp r10, rax
mov r9, rax
cmovb r9, r10
test r9, r9
je 0x14000d45a
lea r8, [rsp + 0x1040]
nop dword [rax + rax]
movzx ecx, word [r8]
cmp word [rdx], cx
jne 0x14000d4d0
add rdx, 2
add r8, 2
dec r9
jne 0x14000d440
xor r9d, r9d
movsxd rcx, r9d
test r9d, r9d
jne 0x14000d472
cmp r10, rax
jb 0x14000d476
xor ecx, ecx
cmp r10, rax
setne cl
test ecx, ecx
je 0x14000d4e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
add r14, 4
cmp esi, ebp
jb 0x14000d382
xor al, al
mov r14, qword [rsp + 0x1268]
mov rsi, qword [rsp + 0x1290]
mov rbp, qword [rsp + 0x1288]
mov rbx, qword [rsp + 0x1280]
mov r15, qword [rsp + 0x1260]
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.1400face0
add rsp, 0x1270
pop rdi
ret
cmp word [rdx], cx
mov r9d, 1
cmovb r9d, r15d
jmp 0x14000d45d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000d48f
Function at 0x14000e380
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x150
mov rax, qword [0x1414cdb60]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor esi, esi
mov rbx, rcx
mov qword [rcx], 0x114
mov qword [rcx + 8], rsi
mov dword [rcx + 0x10], esi
mov word [rcx + 0x14], si
add rcx, 0x16
xor edx, edx
mov r8d, 0xfe
call fcn.1400fad10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbx + 4], 6
jne 0x14000e4d0
cmp dword [rbx + 8], 2
jne 0x14000e4d0
lea edx, [rsi + 2]
mov r8b, 3
xor ecx, ecx
mov qword [rsp + 0x160], rdi
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rsi + 1]
mov rcx, rax
mov r8b, 3
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rsi + 8]
mov r8b, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov ecx, dword [rbx + 4]
xor edx, edx
mov dword [rsp + 0x24], ecx
mov ecx, dword [rbx + 8]
mov r8d, 0xfe
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbx + 0xc]
mov rdi, rax
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rbx + 0x10]
mov dword [rsp + 0x20], 0x11c
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x36]
mov word [rsp + 0x34], si
call fcn.1400fad10
lea edx, [rsi + 0xb]
lea rcx, [rsp + 0x20]
mov r8, rdi
mov qword [rsp + 0x134], rsi
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14000e4a4
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rsp + 0x28]
lea rcx, [rsp + 0x20]
mov r8, rdi
mov dword [rbx + 8], eax
inc eax
mov edx, 0xb
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x14000e480
mov rdi, qword [rsp + 0x160]
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400face0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rsi
ret
mov rax, rbx
jmp 0x14000e4af

Function at 0x14000e750
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov r9, r8
mov r8, rdx
mov edx, ecx
lea rcx, [rsp + 0x58]
call fcn.14000f870
nop
call fcn.14000ffe0
lea rcx, [rsp + 0x58]
test al, al
jne 0x14000e795
call fcn.14001a740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000e7f8
lea rdx, [rsp + 0x20]
call fcn.1400415d0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
add rbx, rcx
call fcn.1400fa8dc
lea rcx, [rax + 0x60]
mov r8, rbx
lea rdx, [0x14135c6e8]
call fcn.1400fb850
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14000e7db
cmp eax, 0xffffffff
je 0x14000e7e9
lock dec dword [rcx]
jne 0x14000e7e9
mov rcx, qword [rsp + 0x20]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1400112a0
call fcn.1400fa8dc
lea rcx, [rax + 0x60]
call fcn.1400f9e8c
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14000e812
cmp eax, 0xffffffff
je 0x14000e820
lock dec dword [rcx]
jne 0x14000e820
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140059660
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 + 0x9c], 1
je 0x140059692
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 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 0x14006a5f0
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 + 0x70]
test rax, rax
jne 0x14006a714
cmp dword [rcx + 0x98], 0xffffffff
jne 0x14006a70f
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14006a775
mov edi, r8d
mov dword [r11 + 8], r8d
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1413cf710]
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x90]
cmp edi, 0x2000000
cmovae rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa8]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006a6b2
mov ecx, dword [rsp + 0xa8]
test ecx, ecx
je 0x14006a70a
add rbx, rcx
sub edi, ecx
mov dword [rsp + 0x90], edi
cmp rbx, rbp
jge 0x14006a70a
jmp 0x14006a660
test rbx, rbx
jne 0x14006a70a
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14000dd60
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r15
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14006a6f6
cmp eax, 0xffffffff
je 0x14006a775
lock dec dword [rcx]
jne 0x14006a775
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
or rax, 0xffffffffffffffff
jmp 0x14006a789
mov rax, rbx
jmp 0x14006a789
test rax, rax
je 0x14006a77b
call fcn.14006a370
test al, al
je 0x14006a77b
mov rcx, qword [rsi + 0x70]
call fcn.1400fcc10
test eax, eax
je 0x14006a77b
call fcn.1400fcba0
mov edx, dword [rax]
lea rcx, [rsp + 0x38]
call fcn.14000dd60
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14006a767
cmp eax, 0xffffffff
je 0x14006a775
lock dec dword [rcx]
jne 0x14006a775
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
or rax, 0xffffffffffffffff
jmp 0x14006a789
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.1400596b0
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 0x1400596b0
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 rsi, r8
mov r12, rdx
mov rbp, rcx
mov r13, qword [rcx + 0x18]
test r8, r8
js 0x14005982c
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x140059788
mov r15b, 1
nop dword [rax]
nop word [rax + rax]
mov r8, rsi
sub r8, rbx
lea rcx, [rbx + r12]
mov r9, qword [rbp + 0x70]
mov edx, 1
call fcn.1400fcfb8
mov rdi, rax
mov rcx, qword [rbp + 0x70]
call fcn.1400fcc10
test eax, eax
setne r14b
test r15b, r15b
je 0x140059756
test r14b, r14b
je 0x140059756
test rdi, rdi
jne 0x140059756
mov rcx, qword [rbp + 0x70]
call fcn.1400fbbc8
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rbp + 0x70]
call fcn.1400fa24c
xor r15b, r15b
jmp 0x140059759
add rbx, rdi
test r14b, r14b
jne 0x140059882
test rdi, rdi
jne 0x140059776
call fcn.1400fcba0
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x14005977e
xor ecx, ecx
cmp rbx, rsi
setl cl
test ecx, ecx
jne 0x140059700
jmp 0x1400597e3
cmp dword [rcx + 0x98], 0xffffffff
je 0x1400597ec
nop dword [rax]
nop word [rax + rax]
mov r8d, esi
sub r8d, ebx
lea rdx, [rbx + r12]
mov ecx, dword [rbp + 0x98]
call fcn.1400fd200
movsxd rdi, eax
cmp edi, 0xffffffff
jne 0x1400597c9
call fcn.1400fcba0
cmp dword [rax], 4
jne 0x1400597d5
jmp 0x1400597a0
test eax, eax
jle 0x1400597d5
add rbx, rdi
cmp rbx, rsi
jl 0x1400597a0
cmp edi, 0xffffffff
setne al
test al, al
jne 0x140059882
test rbx, rbx
jne 0x140059882
or rbx, 0xffffffffffffffff
call fcn.1400fcba0
mov edx, dword [rax]
lea rcx, [rsp + 0x70]
call fcn.14000dd60
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x140059873
cmp eax, ebx
je 0x140059882
lock dec dword [rcx]
jne 0x140059882
mov rcx, qword [rsp + 0x70]
jmp 0x140059873
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.14000dd60
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140059873
cmp eax, ebx
je 0x140059882
lock dec dword [rcx]
jne 0x140059882
mov rcx, qword [rsp + 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400112a0
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 0x140059d90
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
cmp dword [rbx + 0x9c], 2
je 0x140059dc2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x9c], 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 0x14006a980
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x18]
cmp qword [rcx + 0x70], 0
jne 0x14006aa89
cmp dword [rcx + 0x98], 0xffffffff
jne 0x14006aa89
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14006aa7e
mov edi, r8d
xor r12d, r12d
mov ebx, r12d
lea r13, [0x1413cf714]
mov dword [rsp + 0x80], edi
lea rax, [rsp + 0x80]
cmp edi, 0x2000000
cmovae rax, r13
lea rdx, [rbx + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x98]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006aa34
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x14006aa84
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jge 0x14006aa84
jmp 0x14006a9e1
test rbx, rbx
jne 0x14006aa84
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14000dd60
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14006aa70
cmp eax, 0xffffffff
je 0x14006aa7e
lock dec dword [rcx]
jne 0x14006aa7e
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
or rax, 0xffffffffffffffff
jmp 0x14006aa8e
mov rax, rbx
jmp 0x14006aa8e
call fcn.140059de0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140059de0
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 0x140059f0b
xor ebx, ebx
cmp qword [rcx + 0x70], rbx
je 0x140059e5d
nop word [rax + rax]
mov r8, rdi
sub r8, rbx
lea rcx, [rbx + rbp]
mov r9, qword [rsi + 0x70]
mov edx, 1
call fcn.1400fa504
add rbx, rax
test rax, rax
jne 0x140059e4f
call fcn.1400fcba0
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140059e57
xor ecx, ecx
cmp rbx, rdi
setl cl
test ecx, ecx
jne 0x140059e20
jmp 0x140059ea4
cmp dword [rcx + 0x98], 0xffffffff
je 0x140059ea4
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
lea rdx, [rbx + rbp]
mov ecx, dword [rsi + 0x98]
call fcn.1400fdb8c
cmp eax, 0xffffffff
jne 0x140059e96
call fcn.1400fcba0
cmp dword [rax], 4
jne 0x140059ea4
jmp 0x140059e70
test eax, eax
jle 0x140059ea4
cdqe
add rbx, rax
cmp rbx, rdi
jl 0x140059e70
test rdi, rdi
je 0x140059f02
test rbx, rbx
jne 0x140059f02
or rbx, 0xffffffffffffffff
call fcn.1400fcba0
mov edx, dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14000dd60
mov rdi, rax
call fcn.1400fcba0
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rdi
mov rcx, r14
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x140059f49
cmp eax, ebx
je 0x140059f58
lock dec dword [rcx]
jne 0x140059f58
mov rcx, qword [rsp + 0x50]
jmp 0x140059f49
and dword [rsi + 0x40], 0xffdfffff
jmp 0x140059f58
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.14000dd60
nop
mov r8, rax
mov edx, 2
mov rcx, r14
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
or rbx, 0xffffffffffffffff
test eax, eax
je 0x140059f49
cmp eax, ebx
je 0x140059f58
lock dec dword [rcx]
jne 0x140059f58
mov rcx, qword [rsp + 0x60]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1400112a0
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 0x14005ab90
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140058f90
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.QFSFileEngine.virtual_96
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rsi, rcx
mov rdi, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140057bf0
nop
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140058640
mov rbx, rax
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x70]
call fcn.140058640
mov rdi, rax
mov rcx, rbx
call fcn.14001a740
mov rbx, rax
mov rcx, rdi
call fcn.14001a740
mov rcx, rax
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x14006ae1e
cmp eax, ebx
je 0x14006ae2d
lock dec dword [rcx]
jne 0x14006ae2d
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x14006ae4d
cmp eax, 0xffffffff
je 0x14006ae5c
lock dec dword [rcx]
jne 0x14006ae5c
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x14006ae76
cmp eax, 0xffffffff
je 0x14006ae85
lock dec dword [rcx]
jne 0x14006ae85
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x14006aea4
cmp eax, 0xffffffff
je 0x14006aeb2
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
jne 0x14006aeb2
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
test dil, dil
jne 0x14006af1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], 2
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x88]
call fcn.1400a5360
nop
mov r8, rax
mov edx, 0xa
mov rcx, rsi
call fcn.140057ac0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14006af0d
cmp eax, 0xffffffff
je 0x14006af1b
lock dec dword [rcx]
jne 0x14006af1b
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
movzx eax, dil
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005b310
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.140058640
mov rsi, rax
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140058640
mov rdi, rax
mov rcx, rsi
call fcn.14001a740
mov rbx, rax
mov rcx, rdi
call fcn.14001a740
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]
test eax, eax
je 0x14005b39c
cmp eax, 0xffffffff
je 0x14005b3ab
lock dec dword [rcx]
jne 0x14005b3ab
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005b3c5
cmp eax, 0xffffffff
je 0x14005b3d3
lock dec dword [rcx]
jne 0x14005b3d3
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
test dil, dil
jne 0x14005b3f2
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 0x14005b7c0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1414cdb60]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x2c], 0
lea rax, [0x14135c948]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
or rbx, 0xffffffffffffffff
test eax, eax
je 0x14005b903
cmp esi, 0x104
jbe 0x14005b8b6
mov eax, 2
mul rsi
cmovo rax, rbx
mov rcx, rax
call fcn.1400f8bec
mov r14, rax
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14005b8ac
mov r8d, esi
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14000da20
mov rdx, rax
mov rcx, qword [rsp + 0x20]
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 0x14005b89e
cmp eax, ebx
je 0x14005b8ac
lock dec dword [rcx]
jne 0x14005b8ac
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rcx, r14
call fcn.14008adb0
jmp 0x14005b903
mov r8d, esi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.14000da20
mov rdx, rax
mov rcx, qword [rsp + 0x20]
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 0x14005b8f5
cmp eax, 0xffffffff
je 0x14005b903
lock dec dword [rcx]
jne 0x14005b903
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
cmp ecx, 2
jl 0x14005b96e
cmp ecx, 1
jle 0x14005b96e
mov rdx, qword [rax + 0x10]
cmp word [rdx + rax + 2], 0x3a
jne 0x14005b96e
movzx ecx, word [rdx + rax]
call fcn.140019db0
mov esi, eax
mov rax, qword [rsp + 0x20]
mov edx, dword [rax + 4]
test edx, edx
jg 0x14005b946
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140014530
jmp 0x14005b961
cmp dword [rax], 1
ja 0x14005b952
cmp qword [rax + 0x10], 0x18
je 0x14005b966
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.140016bc0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x10]
mov word [rax + rcx], si
xor eax, eax
mov byte [rsp + 0x28], al
movzx r8d, al
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140057c50
mov dword [rsp + 0x2c], 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005b9a7
cmp eax, 0xffffffff
je 0x14005b9b5
lock dec dword [rcx]
jne 0x14005b9b5
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rax, rdi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400face0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14005d1f0
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1414cdb60]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov rax, qword [rcx]
mov qword [rsp + 0x20], rax
mov ecx, dword [rax]
inc ecx
cmp ecx, 1
jbe 0x14005d23a
lock inc dword [rax]
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 4]
cmp r8d, 2
jne 0x14005d2b0
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax + 2], 0x3a
jne 0x14005d2b0
cmp dword [rax], 1
ja 0x14005d264
mov edx, dword [rax + 8]
btr edx, 0x1f
lea ecx, [r8 + 2]
cmp ecx, edx
jbe 0x14005d27a
lea edx, [r8 + 2]
mov r8b, 1
lea rcx, [rsp + 0x20]
call fcn.140016bc0
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.140069bc0
nop
mov rcx, rax
call fcn.14001a740
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x14005d2ed
cmp eax, 0xffffffff
je 0x14005d2fb
lock dec dword [rcx]
jne 0x14005d2fb
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
cmp ebx, 0xffffffff
jne 0x14005d333
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14005d310
cmp eax, 0x20
jne 0x14005d333
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140069bc0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.14005c9e0
test al, al
cmovne ebx, dword [rsp + 0x40]
test rsi, rsi
je 0x14005d340
cmp ebx, 0xffffffff
setne al
mov byte [rsi], al
cmp ebx, 0xffffffff
jne 0x14005d349
xor bl, bl
jmp 0x14005d34f
shr ebx, 4
and bl, 1
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x14005d369
cmp eax, 0xffffffff
je 0x14005d377
lock dec dword [rcx]
jne 0x14005d377
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400face0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret