joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402f8a60
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1405f45c5]
call fcn.140139918
nop
call fcn.1402f6e30
mov qword [rbp + 8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
add rax, 0x2c
mov r9d, 4
mov r8, rax
mov edx, 0x20001004
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1402f8ad3
mov rax, qword [rbp + 8]
mov dword [rax + 0x2c], 0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140397ae0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140139df0
movzx eax, al
test eax, eax
jne 0x140397b00
mov ecx, 7
call fcn.140138496
nop
mov byte [rsp + 0x20], 0
call fcn.140138694
mov byte [rsp + 0x21], al
cmp dword [0x1405ce820], 1
jne 0x140397b24
mov ecx, 7
call fcn.140138496
nop
jmp 0x140397b7c
cmp dword [0x1405ce820], 0
jne 0x140397b77
mov dword [0x1405ce820], 1
lea rdx, [0x1403b1b08]
lea rcx, [0x1403b17d8]
call fcn.14013589a
test eax, eax
je 0x140397b58
mov eax, 0xff
jmp 0x140397c81
lea rdx, [0x1403b16c8]
lea rcx, [section..rdata]
call fcn.14013863a
mov dword [0x1405ce820], 2
jmp 0x140397b7c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14013831f
call fcn.1401375ff
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140397bd9
mov rcx, qword [rsp + 0x30]
call fcn.140134d87
movzx eax, al
test eax, eax
je 0x140397bd9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1405f7020]
nop
call fcn.140137b8b
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140397c0d
mov rcx, qword [rsp + 0x38]
call fcn.140134d87
movzx eax, al
test eax, eax
je 0x140397c0d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14013953f
nop
call fcn.140397d30
mov dword [rsp + 0x28], eax
call fcn.1401372c1
movzx eax, al
test eax, eax
jne 0x140397c2c
mov ecx, dword [rsp + 0x28]
call fcn.1401328a2
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140397c3b
call fcn.1401396a2
nop
xor edx, edx
mov cl, 1
call fcn.140134b1b
mov eax, dword [rsp + 0x28]
jmp 0x140397c81
add rsp, 0x68
ret
Function at 0x14000255c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x58], xmm1
mov word [rsp + 0x48], si
mov rcx, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rsi
inc rdx
lea rcx, [rsp + 0x20]
call fcn.1400013c4
nop
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub r8, rdx
sar r8, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rbx, qword [rsp + 0x20]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
mov rcx, rbx
call fcn.14003687c
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.1400012c0
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000264d
mov rax, qword [rsp + 0x30]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002647
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000266f
call fcn.140031c2c
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140031d40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140036804
nop
int3

Function at 0x140002c5c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x68], rax
or qword [rcx + 8], 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
xor r9d, r9d
mov byte [rcx + 0x30], 1
mov rdi, rdx
mov rbx, rcx
movups xmmword [rcx + 0x20], xmm0
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
test rax, rax
je 0x140002d12
mov r8, rdi
lea rdx, str..pipe_
lea rcx, [rsp + 0x48]
call fcn.140002830
mov eax, dword [rbx]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
mov r9d, 1
mov edx, 0x40000003
cmova rcx, qword [rsp + 0x48]
xor r8d, r8d
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov eax, 0x4000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea rcx, [rsp + 0x48]
mov qword [rbx + 8], rax
call fcn.140001fa8
cmp qword [rbx + 8], 0xffffffffffffffff
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x140002d94
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov r8, rsi
lea rdx, str..pipe_
lea rcx, [rsp + 0x50]
call fcn.140002830
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
mov edx, 0xc0000000
cmova rcx, qword [rsp + 0x50]
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x140002e7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140002e51
cmp qword [rsp + 0x68], 7
lea rcx, [rsp + 0x50]
mov edx, dword [rdi]
cmova rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x140002e51
lea rcx, [rsp + 0x50]
call fcn.140001fa8
jmp 0x140002dc5
lea rcx, [rsp + 0x50]
call fcn.140001fa8
xor al, al
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x4b8]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rsp + 0x50]
call fcn.140001fa8
mov rax, qword [rbx + 8]
cmp qword [rbx], rax
je 0x140002ebf
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x44]
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140002f1b
cmp dword [rsp + 0x44], 0
je 0x140002f1b
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x44]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002e5b
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140002f1b
mov rdx, qword [rbx + 8]
lea r8, [rsp + 0x70]
mov r9d, eax
mov rcx, rbx
call fcn.1400028b0
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
mov eax, dword [rdi + 4]
cmp rcx, rax
jbe 0x140002e89
jmp 0x140002e5b
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8d, 4
mov dword [rsp + 0x40], 1
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
jmp 0x140002e5d
Function at 0x140002f50
Capabilities:
Connect pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rsi, [rcx + 0x10]
mov r14, rdx
mov rdi, rcx
mov rdx, rsi
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor ebx, ebx
test eax, eax
jne 0x140003024
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140002fb3
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002d30
test al, al
je 0x140003024
mov r8, qword [r14 + 8]
lea r9, [rsp + 0x30]
sub r8, qword [r14]
mov rdx, qword [r14]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140002fe8
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002d30
test al, al
je 0x140003024
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000301e
mov rdx, qword [rdi + 8]
mov r8, rsi
mov rcx, rdi
call fcn.140002d30
test al, al
je 0x140003020
mov bl, 1
mov al, bl
jmp 0x140003026
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret
Function at 0x140008548
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140067c00], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x1400085a8
movdqa xmm0, xmmword [0x140048bc0]
movdqa xmm1, xmmword [0x140048bb0]
movdqa xmmword [0x14005c9a0], xmm0
movdqa xmm0, xmmword [0x140048b90]
movdqa xmmword [0x14005c9b0], xmm1
movdqa xmm1, xmmword [0x140048ba0]
movdqa xmmword [0x14005c9c0], xmm0
movdqa xmmword [0x14005c9d0], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140045720
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140048b70]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x1400085c4
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140009928
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14000994e
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14005c9e0]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x14000992d
mov eax, ecx
ret

Function at 0x140009ba8
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x140009c3b
and qword [r11 - 0x58], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x60], 0
lea r8, [r11 - 0x48]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x68], 0
mov rcx, rsi
and qword [r11 - 0x70], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x78], rax
call fcn.14000a578
xor edx, edx
lea r9, [rsp + 0x58]
xor r8d, r8d
movzx eax, byte [r9]
mov ecx, r8d
and ecx, 3
inc r8d
shl ecx, 3
inc r9
shl eax, cl
xor edx, eax
cmp r8d, r14d
jb 0x140009c1d
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x140009c83
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a578
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140045080
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a894
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, qword [rbp + 0x180]
mov rax, r8
mov rsi, qword [rbp + 0x188]
mov r8d, 0x40
mov r14, qword [rbp + 0x190]
cmp r9, r8
mov r12, rdx
mov r15, rcx
cmovb r8, r9
lea rcx, [rbp + 0xa0]
mov rdx, rax
mov rbx, r9
call fcn.140045080
cmp rbx, 0x44
jae 0x14000aaef
lea rax, [rbx + 1]
mov byte [rbp + rbx + 0xa0], 0
cmp rax, 0x44
jae 0x14000aaef
mov byte [rbp + rax + 0xa0], 0
lea rax, [rbx + 2]
cmp rax, 0x44
jae 0x14000aaef
and qword [rsp + 0x40], 0
lea r9, [rbx + 4]
and qword [rsp + 0x38], 0
lea r8, [rbp + 0xa0]
and qword [rsp + 0x30], 0
mov rdx, r12
and qword [rsp + 0x28], 0
mov rcx, r15
mov byte [rbp + rax + 0xa0], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov byte [rbp + rbx + 0xa3], 1
call fcn.14000a578
mov ebx, 0x20
lea rdx, [rbp + 0x60]
mov r8d, ebx
lea rcx, [rbp + 0x80]
call fcn.140045080
mov eax, dword [rbp + 0x198]
dec eax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rsi
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x78], r14
lea rsi, [rsp + 0x68]
mov dword [rsp + 0x58], eax
lea r14d, [rbx - 0x1d]
mov dword [rsp + 0x5c], 0x10
mov dword [rsp + 0x60], 0x10
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
cmp dword [rdi], 0
jbe 0x14000aa70
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9d, 0x20
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x60]
lea rax, [rbp - 0x80]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
call fcn.14000a578
mov r8d, 0x20
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x60]
call fcn.140045080
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x80]
movdqu xmm1, xmmword [rbp + rax + 0x60]
lea rax, [rax + 0x10]
xorps xmm1, xmm0
movdqu xmmword [rbp + rax + 0x70], xmm1
sub rcx, 1
jne 0x14000aa41
sub rbx, 1
jne 0x14000a9df
lea ebx, [rcx + 0x20]
mov rcx, qword [rsi]
lea rdx, [rbp + 0x80]
mov r8, rbx
call fcn.140045080
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000a9d4
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xa0]
call fcn.14001b4b4
mov rdx, rbx
lea rcx, [rbp + 0x80]
call fcn.14001b4b4
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14001b4b4
mov rdx, rbx
lea rcx, [rbp + 0xf0]
call fcn.14001b4b4
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140031d40
add rsp, 0x220
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140032044
int3
Function at 0x140012090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x60
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jne 0x1400120c4
mov al, 1
jmp 0x14001225b
cmp dword [rcx + 0x14], 1
jne 0x1400120d9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rdi + 8], rax
mov r12d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140012135
xor ebx, ebx
test rsi, rsi
je 0x14001215f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r12d
cmp rcx, r12
cmovb r8d, eax
lea rdx, [r14 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140012156
add rbx, r12
cmp rbx, rsi
jb 0x1400120f4
jmp 0x140012156
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140012254
cmp byte [rdi + 0x22], 0
je 0x140012254
cmp dword [rdi + 0x14], 0
jne 0x140012254
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x140060a80]
call fcn.14000ac48
test al, al
je 0x1400121ce
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x1400120df
test ecx, ecx
je 0x1400120df
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140048528]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140048528]
jmp 0x1400120df
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rcx, [0x140048a04]
call fcn.14003687c
mov r8, rax
lea rdx, [0x140048a04]
lea rcx, [rsp + 0x38]
call fcn.1400012c0
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x140060a80]
call fcn.14000b3f4
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140012254
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001224f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001227c
call fcn.140031c2c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140036804
int3
Function at 0x14001248c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400124b7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140012554
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140012516
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012554
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001254f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012574
call fcn.140031c2c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140036804
int3

Function at 0x14001257c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400125a7
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
setne dil
test eax, eax
jne 0x140012644
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140012606
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne dil
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012644
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001263f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012664
call fcn.140031c2c
mov al, dil
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140036804
int3
Function at 0x140012680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x1400126ab
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140012741
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
xor esi, esi
mov word [rsp + 0x20], si
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140012703
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012741
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001273c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012760
call fcn.140031c2c
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.140036804
int3

Function at 0x140012a30
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.14001573c
cmp ax, 0x2e
je 0x140012a8e
cmp ax, 0x20
je 0x140012a8e
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140012a78
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x140012b2c
jmp 0x140012a92
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.140012680
cmp eax, 0xffffffff
jne 0x140012b40
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], bx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140015d18
test al, al
je 0x140012aea
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140012b28
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012b23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012b7d
call fcn.140031c2c
test esi, esi
je 0x140012b40
test bpl, bpl
je 0x140012b3c
mov edx, r14d
mov rcx, rdi
call fcn.140013108
xor eax, eax
jmp 0x140012b5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140012b56
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x140012b5b
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031d40
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140036804
int3
Function at 0x140012d24
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rdx + 0x18], 7
jbe 0x140012d5f
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140012d69
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
xor r14d, r14d
test eax, eax
setne sil
test eax, eax
jne 0x140012e82
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movdqa xmm6, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x30], xmm6
mov word [rbp - 0x40], r14w
movups xmmword [rbp - 0x60], xmm0
movdqu xmmword [rbp - 0x50], xmm6
mov word [rbp - 0x60], r14w
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140015d18
test al, al
je 0x140012df7
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140015d18
test al, al
je 0x140012def
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne sil
movdqa xmm6, xmmword [0x1400489f0]
mov ebx, 0x1000
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140012e40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x140012e33
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012eb4
call fcn.140031c2c
movdqa xmm6, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x50], xmm6
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140012e82
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, rbx
jb 0x140012e7d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012eae
call fcn.140031c2c
mov al, sil
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.140031d40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [rsp + 0x70]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140036804
nop
call fcn.140036804
nop
int3