joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056b70
Capabilities:
Delete directory

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [rdx]
mov qword [rbp + 0x38], rax
lock inc dword [rax]
test r8b, r8b
je 0x140056d32
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x20]
call fcn.14001c7e0
nop
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14001c550
nop
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.140012be0
nop
mov rcx, qword [rbp - 0x28]
lock dec dword [rcx]
jne 0x140056bd6
mov rcx, qword [rbp - 0x28]
call fcn.140012a00
nop
mov rax, qword [rbp - 0x20]
lock dec dword [rax]
jne 0x140056be8
mov rcx, qword [rbp - 0x20]
call fcn.140012a00
xor esi, esi
mov rax, qword [rbp + 0x38]
mov edi, dword [rax + 8]
test edi, edi
jle 0x140056d1c
mov r8d, edi
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x38]
call fcn.140014430
nop
mov rax, qword [rbp - 0x30]
cmp dword [rax + 8], 2
jne 0x140056c3f
mov rcx, qword [rax + 0x10]
movzx eax, word [rcx]
mov word [rbp + 0x30], ax
lea rcx, [rbp + 0x30]
call fcn.14000eef0
test al, al
je 0x140056c3f
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax + 0x10]
cmp word [rcx + 2], 0x3a
je 0x140056cc8
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140056690
test al, al
je 0x140056cf3
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x18]
call fcn.140056170
nop
mov rcx, rax
call fcn.140012e50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rax, qword [rbp - 0x18]
lock dec dword [rax]
jne 0x140056c89
mov rcx, qword [rbp - 0x18]
call fcn.140012a00
test dil, dil
je 0x140056cd8
lea rcx, [rbp + 0x28]
call fcn.14001c120
lea r8d, [rsi - 1]
mov r9d, 1
movzx edx, word [rax]
lea rcx, [rbp + 0x38]
call fcn.140010500
mov edi, eax
mov rax, qword [rbp - 0x30]
lock dec dword [rax]
jne 0x140056cc1
mov rcx, qword [rbp - 0x30]
call fcn.140012a00
mov esi, edi
jmp 0x140056bf1
lock dec dword [rax]
jne 0x140056d1c
mov rcx, qword [rbp - 0x30]
call fcn.140012a00
jmp 0x140056d1c
test esi, esi
setne dil
mov rax, qword [rbp - 0x30]
lock dec dword [rax]
jne 0x140056cf1
mov rcx, qword [rbp - 0x30]
call fcn.140012a00
nop
jmp 0x140056d6c
mov rax, qword [rbp - 0x30]
lock dec dword [rax]
jne 0x140056d06
mov rcx, qword [rbp - 0x30]
call fcn.140012a00
nop
mov rax, qword [rbp + 0x38]
lock dec dword [rax]
jne 0x140056d18
mov rcx, qword [rbp + 0x38]
call fcn.140012a00
xor al, al
jmp 0x140056d82
mov rax, qword [rbp + 0x38]
lock dec dword [rax]
jne 0x140056d2e
mov rcx, qword [rbp + 0x38]
call fcn.140012a00
mov al, 1
jmp 0x140056d82
lea rcx, [rbp - 0x10]
call fcn.140056170
nop
mov rcx, rax
call fcn.140012e50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rcx, qword [rbp - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
jne 0x140056d6c
mov rcx, qword [rbp - 0x10]
call fcn.140012a00
nop
mov rcx, qword [rbp + 0x38]
lock dec dword [rcx]
jne 0x140056d7e
mov rcx, qword [rbp + 0x38]
call fcn.140012a00
movzx eax, dil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140056d90
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1415dbbb0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x24], 0
lea rax, [0x1415d9378]
mov qword [rcx], rax
lock inc dword [0x1415d9378]
mov dword [rsp + 0x24], 1
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
or edi, 0xffffffff
test eax, eax
je 0x140056e31
mov r8d, edi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140016c40
nop
mov rdx, rax
mov rcx, rbx
call fcn.140012be0
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x140056e31
mov rcx, qword [rsp + 0x30]
call fcn.140012a00
mov rax, qword [rbx]
cmp dword [rax + 8], 0
je 0x140056eb7
mov esi, 0x5c
mov word [rsp + 0x20], si
lea r8d, [rsi - 0x5b]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010990
test al, al
je 0x140056e89
nop dword [rax]
mov edx, 1
mov rcx, rbx
call fcn.140014b50
mov word [rsp + 0x20], si
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010990
test al, al
jne 0x140056e60
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14001c5f0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140012be0
nop
mov rax, qword [rsp + 0x28]
lock dec dword [rax]
jne 0x140056eb7
mov rcx, qword [rsp + 0x28]
call fcn.140012a00
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x140056ef5
mov r8d, edi
lea rdx, [0x14158e000]
lea rcx, [rsp + 0x38]
call fcn.140014670
nop
mov rdx, rax
mov rcx, rbx
call fcn.140012be0
nop
mov rcx, qword [rsp + 0x38]
lock dec dword [rcx]
jne 0x140056ef5
mov rcx, qword [rsp + 0x38]
call fcn.140012a00
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400af490
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140057ba0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rcx + 0x40]
cmp rbx, 0xffffffffffffffff
jne 0x140057c97
cmp dword [rcx + 0x60], ebx
jne 0x140057c80
mov rax, qword [rcx + 0x28]
cmp dword [rax + 8], 0
je 0x140057cf9
lea rdx, [rcx + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140020d80
nop
mov dword [rsp + 0x70], 3
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140020270
test al, al
je 0x140057c74
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140021850
movzx ebx, al
test al, al
jne 0x140057c62
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.140027750
nop
mov r8, rax
mov edx, 0xc
mov rcx, rdi
call fcn.140065a50
nop
mov rax, qword [rsp + 0x80]
lock dec dword [rax]
jne 0x140057c62
mov rcx, qword [rsp + 0x80]
call fcn.140012a00
nop
lea rcx, [rsp + 0x28]
call fcn.140021250
movzx eax, bl
jmp 0x140057cfb
lea rcx, [rsp + 0x28]
call fcn.140021250
jmp 0x140057cf9
cmp rbx, 0xffffffffffffffff
jne 0x140057c97
mov ecx, dword [rcx + 0x60]
call fcn.1400b2568
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140057cf9
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rbp, rax
mov qword [rsp + 0x88], rax
mov r8, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [r8 + 0x30]
test al, al
je 0x140057ced
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140057ced
lea rdx, [rsp + 0x88]
lea rax, [rsp + 0x78]
cmp rbp, rsi
cmovge rdx, rax
mov rax, qword [rdi]
mov rdx, qword [rdx]
mov rcx, rdi
call qword [rax + 0x30]
mov al, 1
jmp 0x140057cfb
mov rax, qword [rdi]
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x30]
xor al, al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140067960
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 r14, rdx
mov rbp, rcx
mov r15, qword [rcx + 0x18]
test r8, r8
js 0x140067ab7
xor ebx, ebx
cmp qword [rcx + 0x38], rbx
je 0x140067a38
mov r13b, 1
nop word [rax + rax]
mov r8, rsi
sub r8, rbx
lea rcx, [rbx + r14]
mov r9, qword [rbp + 0x38]
mov edx, 1
call fcn.1400b4d7c
mov rdi, rax
mov rcx, qword [rbp + 0x38]
call fcn.1400b2d3c
test eax, eax
setne r12b
test r13b, r13b
je 0x140067a06
test r12b, r12b
je 0x140067a06
test rdi, rdi
jne 0x140067a06
mov rcx, qword [rbp + 0x38]
call fcn.1400b0ec4
mov rdx, rax
xor r8d, r8d
mov rcx, qword [rbp + 0x38]
call fcn.1400af7e4
xor r13b, r13b
jmp 0x140067a09
add rbx, rdi
test r12b, r12b
jne 0x140067af9
test rdi, rdi
jne 0x140067a26
call fcn.1400b2ba0
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140067a2e
xor ecx, ecx
cmp rbx, rsi
setl cl
test ecx, ecx
jne 0x1400679b0
jmp 0x140067a7c
cmp dword [rcx + 0x60], 0xffffffff
je 0x140067a81
nop
mov r8d, esi
sub r8d, ebx
lea rdx, [rbx + r14]
mov ecx, dword [rbp + 0x60]
call fcn.1400b4980
movsxd rdi, eax
cmp edi, 0xffffffff
jne 0x140067a66
call fcn.1400b2ba0
cmp dword [rax], 4
jne 0x140067a72
jmp 0x140067a40
test eax, eax
jle 0x140067a72
add rbx, rdi
cmp rbx, rsi
jl 0x140067a40
cmp edi, 0xffffffff
setne al
test al, al
jne 0x140067af9
test rbx, rbx
jne 0x140067af9
or rbx, 0xffffffffffffffff
call fcn.1400b2ba0
mov edx, dword [rax]
lea rcx, [rsp + 0x70]
call fcn.14001ad90
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r15
call fcn.140065a50
nop
mov rcx, qword [rsp + 0x70]
lock dec dword [rcx]
jne 0x140067af9
mov rcx, qword [rsp + 0x70]
jmp 0x140067af4
mov edx, 0x16
lea rcx, [rsp + 0x80]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 1
mov rcx, r15
call fcn.140065a50
nop
mov rcx, qword [rsp + 0x80]
or rbx, 0xffffffffffffffff
lock dec dword [rcx]
jne 0x140067af9
mov rcx, qword [rsp + 0x80]
call fcn.140012a00
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 0x140067c40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbp
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x18]
test r8, r8
js 0x140067d50
xor edi, edi
cmp qword [rcx + 0x38], rdi
je 0x140067cbd
nop word [rax + rax]
mov r8, rbx
sub r8, rdi
lea rcx, [rdi + rbp]
mov r9, qword [rsi + 0x38]
mov edx, 1
call fcn.1400af63c
add rdi, rax
test rax, rax
jne 0x140067caf
call fcn.1400b2ba0
xor ecx, ecx
cmp dword [rax], 4
sete cl
jmp 0x140067cb7
xor ecx, ecx
cmp rdi, rbx
setl cl
test ecx, ecx
jne 0x140067c80
jmp 0x140067cf4
cmp dword [rcx + 0x60], 0xffffffff
je 0x140067cf4
mov r8d, ebx
sub r8d, edi
lea rdx, [rdi + rbp]
mov ecx, dword [rsi + 0x60]
call fcn.1400b5664
cmp eax, 0xffffffff
jne 0x140067ce6
call fcn.1400b2ba0
cmp dword [rax], 4
jne 0x140067cf4
jmp 0x140067cc3
test eax, eax
jle 0x140067cf4
cdqe
add rdi, rax
cmp rdi, rbx
jl 0x140067cc3
test rbx, rbx
je 0x140067d89
test rdi, rdi
jne 0x140067d89
or rdi, 0xffffffffffffffff
call fcn.1400b2ba0
mov edx, dword [rax]
lea rcx, [rsp + 0x50]
call fcn.14001ad90
mov rbx, rax
call fcn.1400b2ba0
mov edx, 2
mov ecx, 4
cmp dword [rax], 0x1c
cmove edx, ecx
mov r8, rbx
mov rcx, r12
call fcn.140065a50
nop
mov rcx, qword [rsp + 0x50]
lock dec dword [rcx]
jne 0x140067d89
mov rcx, qword [rsp + 0x50]
jmp 0x140067d84
mov edx, 0x16
lea rcx, [rsp + 0x60]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 2
mov rcx, r12
call fcn.140065a50
nop
mov rcx, qword [rsp + 0x60]
or rdi, 0xffffffffffffffff
lock dec dword [rcx]
jne 0x140067d89
mov rcx, qword [rsp + 0x60]
call fcn.140012a00
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140067f00
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbp, r8
mov r12, rdx
mov rsi, rcx
mov r13, qword [rcx + 0x18]
mov rax, qword [rcx + 0x38]
test rax, rax
jne 0x1400553ca
cmp dword [rcx + 0x60], 0xffffffff
jne 0x1400553c5
cmp qword [rcx + 0x40], 0xffffffffffffffff
je 0x140055417
mov edi, r8d
mov dword [r11 + 8], r8d
xor r14d, r14d
mov ebx, r14d
lea r15, [0x14158dc48]
lea rax, [rsp + 0x90]
cmp edi, 0x2000000
cmovae rax, r15
lea rdx, [rbx + r12]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa8]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140055384
mov ecx, dword [rsp + 0xa8]
test ecx, ecx
je 0x1400553c0
add rbx, rcx
sub edi, ecx
mov dword [rsp + 0x90], edi
cmp rbx, rbp
jge 0x1400553c0
jmp 0x140055332
test rbx, rbx
jne 0x1400553c0
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14001ad90
nop
mov r8, rax
lea edx, [rbx + 1]
mov rcx, r13
call fcn.140065a50
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x1400553ba
mov rcx, qword [rsp + 0x30]
call fcn.140012a00
or rax, 0xffffffffffffffff
jmp 0x14005542b
mov rax, rbx
jmp 0x14005542b
test rax, rax
je 0x14005541d
call fcn.1400549b0
test al, al
je 0x14005541d
mov rcx, qword [rsi + 0x38]
call fcn.1400b2d3c
test eax, eax
je 0x14005541d
call fcn.1400b2ba0
mov edx, dword [rax]
lea rcx, [rsp + 0x38]
call fcn.14001ad90
nop
mov r8, rax
mov edx, 1
mov rcx, r13
call fcn.140065a50
nop
mov rcx, qword [rsp + 0x38]
lock dec dword [rcx]
jne 0x140055417
mov rcx, qword [rsp + 0x38]
call fcn.140012a00
or rax, 0xffffffffffffffff
jmp 0x14005542b
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call fcn.140067960
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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 + 0x64], 1
je 0x140067f2c
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x64], 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 0x1400552d0
Function at 0x140067fa0
Capabilities:
Write file on windows

Disassembly:
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 r12, rdx
mov rsi, rcx
mov r13, qword [rcx + 0x18]
cmp qword [rcx + 0x38], 0
jne 0x140055544
cmp dword [rcx + 0x60], 0xffffffff
jne 0x140055544
cmp qword [rcx + 0x40], 0xffffffffffffffff
je 0x140055539
mov edi, r8d
xor r14d, r14d
mov ebx, r14d
lea r15, [0x14158dc48]
nop
mov dword [rsp + 0x80], edi
lea rax, [rsp + 0x80]
cmp edi, 0x2000000
cmovae rax, r15
lea rdx, [rbx + r12]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x98]
mov r8d, dword [rax]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140055503
mov eax, dword [rsp + 0x98]
test eax, eax
je 0x14005553f
add rbx, rax
sub rdi, rax
cmp rbx, rbp
jge 0x14005553f
jmp 0x1400554b0
test rbx, rbx
jne 0x14005553f
or edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.14001ad90
nop
mov r8, rax
lea edx, [rbx + 2]
mov rcx, r13
call fcn.140065a50
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x140055539
mov rcx, qword [rsp + 0x30]
call fcn.140012a00
or rax, 0xffffffffffffffff
jmp 0x140055549
mov rax, rbx
jmp 0x140055549
call fcn.140067c40
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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 + 0x64], 2
je 0x140067fcc
mov rax, qword [rcx]
call qword [rax + 0x18]
mov dword [rbx + 0x64], 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 0x140055450

Function at 0x140068f90
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140067e90
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp method.QFSFileEngine.virtual_80
Function at 0x14006a420
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rcx
mov dword [rax - 0x28], 0x18
mov dword [rax - 0x18], 1
mov r9d, 0x100000
lea r8, [rax - 0x28]
mov qword [rax - 0x20], rsi
test dl, dl
je 0x14006a478
lea rdx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14006a4d6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rdi + 8]
jmp 0x14006a4a0
lea rdx, [rcx + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14006a4d6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9, rdi
mov rdx, qword [rsp + 0x80]
mov dword [rsp + 0x30], 2
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14006a4d6
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14006a5e0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x108]
mov rbx, rcx
test rax, rax
je 0x14006a620
mov edx, dword [rax + 0x10]
lea rcx, [0x14006a590]
call qword [sym.imp.USER32.dll_EnumWindows]
mov r11, qword [rbx + 0x108]
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 0x14006a630
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x108]
test rcx, rcx
je 0x14006a64e
mov rcx, qword [rcx]
mov edx, 0xf291
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14006aaf0
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 + 0x160]
cmp rcx, 0xffffffffffffffff
jne 0x14006ab18
xor eax, eax
jmp 0x14006ac3d
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 + 0xf4], 2
jne 0x14006ac39
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14006ac3d
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.14000cb80
nop
mov dword [rsp + 0x68], esi
mov rcx, qword [rsp + 0x78]
mov edi, dword [rcx + 8]
mov eax, dword [rcx]
cmp eax, 1
jne 0x14006ab86
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x18]
cmp qword [rax + 0x10], rdx
je 0x14006ab98
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.14000cc90
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 + 0x160]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006ac21
cmp dword [rsp + 0x68], 0
jbe 0x14006ac21
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
test rax, rax
je 0x14006ac21
mov dword [rsp + 0x70], esi
mov rcx, qword [rsp + 0x78]
mov edx, dword [rcx]
mov rcx, qword [rsp + 0x78]
cmp edx, 1
jne 0x14006abf3
lea rdx, [rcx + 0x18]
cmp qword [rcx + 0x10], rdx
je 0x14006ac05
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.14000cc90
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 0x14006ac39
mov rcx, qword [rsp + 0x78]
call fcn.14000c4e0
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14006ac50
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 + 0x190]
cmp rcx, 0xffffffffffffffff
jne 0x14006ac78
xor eax, eax
jmp 0x14006ad9d
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 + 0xf4], 2
jne 0x14006ad99
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x14006ad9d
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x78]
call fcn.14000cb80
nop
mov dword [rsp + 0x68], esi
mov rcx, qword [rsp + 0x78]
mov edi, dword [rcx + 8]
mov eax, dword [rcx]
cmp eax, 1
jne 0x14006ace6
mov rax, qword [rsp + 0x78]
lea rdx, [rax + 0x18]
cmp qword [rax + 0x10], rdx
je 0x14006acf8
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.14000cc90
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 + 0x190]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006ad81
cmp dword [rsp + 0x68], 0
jbe 0x14006ad81
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
test rax, rax
je 0x14006ad81
mov dword [rsp + 0x70], esi
mov rcx, qword [rsp + 0x78]
mov edx, dword [rcx]
mov rcx, qword [rsp + 0x78]
cmp edx, 1
jne 0x14006ad53
lea rdx, [rcx + 0x18]
cmp qword [rcx + 0x10], rdx
je 0x14006ad65
mov edx, dword [rcx + 8]
lea rcx, [rsp + 0x78]
call fcn.14000cc90
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 0x14006ad99
mov rcx, qword [rsp + 0x78]
call fcn.14000c4e0
mov eax, dword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x14006adb0
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.14006aaf0
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 0x14006ae2c
mov rcx, qword [rdi + 0x160]
lea r9, [rsp + 0x58]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006ae28
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 0x14006ae40
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.14006ac50
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 0x14006aebc
mov rcx, qword [rdi + 0x190]
lea r9, [rsp + 0x58]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006aeb8
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 0x14006be80
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp + 0x4f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp + 0x77]
call fcn.14006b9e0
nop
mov dword [rbp - 0x39], 0x68
xor esi, esi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], rsi
mov dword [rbp - 0x19], 0x80000000
mov dword [rbp - 0x15], 0x80000000
mov dword [rbp - 0x11], 0x80000000
mov dword [rbp - 0xd], 0x80000000
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
mov dword [rbp + 7], esi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x17], rsi
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], rsi
mov rax, qword [rbx]
cmp dword [rax + 8], esi
jne 0x14006bf11
mov ebx, esi
jmp 0x14006bf1c
mov rcx, rbx
call fcn.140012e50
mov rbx, rax
lea rcx, [rbp + 0x77]
call fcn.140012e50
mov rdx, rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x410
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
je 0x14006bf86
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14006bf86
mov ecx, dword [rbp + 0x47]
mov qword [rdi], rcx
mov rcx, qword [rbp + 0x77]
lock dec dword [rcx]
jne 0x14006bf98
mov rcx, qword [rbp + 0x77]
call fcn.140012a00
movzx eax, bl
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret