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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xff60]
mov eax, 0x10060
call fcn.140048f90
sub rsp, rax
mov rcx, qword [rcx]
lea r8, [rsp + 0x60]
mov bl, dl
mov edx, 0x7fff
call fcn.14007ca34
lea rcx, [rsp + 0x60]
call fcn.14007ced4
xor edi, edi
test al, al
je 0x14007d6e7
lea rcx, [rsp + 0x60]
test bl, bl
jne 0x14007d6fe
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14007d74a
xor al, al
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140028d58
xorps xmm0, xmm0
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x44], edi
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + rax*2 + 0x62], di
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14007d6e7
mov al, 1
jmp 0x14007d6e9

Function at 0x14007d750
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, edx
mov edi, ecx
lea rdx, str.SeShutdownPrivilege
lea rcx, [rsp + 0x30]
call fcn.14007b500
lea rcx, [rsp + 0x30]
call fcn.14006d5cc
xor ebx, ebx
test al, al
je 0x14007d7da
lea eax, [rdi - 0x20]
test eax, 0xffffffdf
je 0x14007d7c8
test dil, 0xb
jne 0x14007d7a0
xor edx, edx
mov ecx, edi
call qword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x14007d7d8
mov eax, edi
mov dword [rsp + 0x28], esi
shr eax, 1
and eax, 1
test dil, 0x14
mov dword [rsp + 0x20], eax
setne bl
xor r8d, r8d
mov r9d, ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x14007d7d8
cmp edi, 0x20
sete bl
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.14006cce0
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14007d7f8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test ecx, ecx
js 0x14007d879
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x14007d86e
cmp ebx, 0xf
jae 0x14007d86c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14007d86c
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x40]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x48]
cvtsi2sd xmm1, rax
divsd xmm1, xmm0
mulsd xmm1, qword [0x1400c71c8]
cvttsd2si rax, xmm1
cmp eax, ebx
jb 0x14007d826
jmp 0x14007d874
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x20
pop rbx
ret
Function at 0x14007da1c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov rbx, rcx
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x1f4
mov rcx, rbx
mov dword [rsp + 0x20], 2
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14007da9e
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret

Function at 0x14007f9ec
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
and dword [rsp + 0x50], 0
mov rbx, r9
and qword [rsp + 0x48], 0
mov eax, dword [rcx]
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14007fa3a
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14007fac7
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14007f808
jmp 0x14007faf0
test edx, eax
je 0x14007fa70
mov rax, qword [r9]
test rax, rax
jne 0x14007faf3
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14007facd
or rax, 0xffffffffffffffff
jmp 0x14007faf3
mov ecx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
jbe 0x14007fa24
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
lea rcx, [0x1400dd640]
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14007facd
and qword [rbx], 0
jmp 0x14007faf0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.14007f808
mov rcx, rbx
call fcn.14007f7b8
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret
Function at 0x14007fafc
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x60
and dword [rsp + 0x50], 0
mov rbx, r9
and qword [rsp + 0x48], 0
mov eax, dword [rcx]
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetElement
test al, 0x10
je 0x14007fb4c
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14007fbdb
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14007f808
jmp 0x14007fc04
test al, 1
je 0x14007fb82
mov rax, qword [r9]
test rax, rax
jne 0x14007fc07
mov rdx, qword [rsp + 0x90]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14007fbe1
or rax, 0xffffffffffffffff
jmp 0x14007fc07
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx], rax
mov r8d, 1
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
jbe 0x14007fb3c
and qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
lea rcx, [0x1400dd640]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x14007fbe1
and qword [rbx], 0
jmp 0x14007fc04
mov rcx, qword [rbx]
lea rdx, [rsp + 0x70]
mov r8d, 1
call fcn.14007f808
mov rcx, rbx
call fcn.14007f7b8
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rbx]
add rsp, 0x60
pop rbx
ret

Function at 0x14007ffc8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x60], 0
mov rbx, rcx
jne 0x14007ffff
lea rax, [rsp + 0x40]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x14007ffb8]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x60], rax
add rsp, 0x30
pop rbx
ret

Function at 0x140080008
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 0x60]
mov rdi, rcx
cmp qword [rsi], 0
je 0x140080070
mov eax, dword [rcx + 0x68]
mov ebp, 0x1f6
xchg dword [rcx + 0x68], eax
cmp eax, ebp
je 0x140080070
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.14007f7b8
xchg dword [rdi + 0x68], ebp
lea rcx, [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140081918
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [reloc.WSOCK32.dll_accept], 1
jne 0x14008192a
call fcn.140081a18
mov rax, qword [0x1400f3078]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400f3078], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
add rsp, 0x28
ret
Function at 0x14008196c
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
sub dword [reloc.WSOCK32.dll_accept], 1
jne 0x14008197e
call fcn.140081a18
mov rax, qword [0x1400f3078]
xorps xmm0, xmm0
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400f3078], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400def88]
add rsp, 0x28
ret

Function at 0x1400819d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [0x1400f26b0], ecx
mov ecx, r8d
lea rdx, [0x1400f26b4]
mov eax, dword [rdx - 4]
shr eax, 0x1e
xor eax, dword [rdx - 4]
imul eax, eax, 0x6c078965
add eax, ecx
add ecx, r8d
mov dword [rdx], eax
lea rdx, [rdx + 4]
cmp ecx, 0x270
jl 0x1400819e6
mov dword [reloc.WSOCK32.dll_accept], r8d
mov dword [0x1400f3070], r8d
ret

Function at 0x140081a18
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1400f3070], 0
lea rbx, [0x1400f26b0]
jne 0x140081a3d
xor ecx, ecx
call fcn.1400347bc
mov rcx, rax
call fcn.1400819d0
mov dword [reloc.WSOCK32.dll_accept], 0x270
mov edx, 0xe3
mov qword [0x1400f3078], rbx
mov r11d, 0x7ffffffe
mov eax, dword [rbx + 4]
mov ecx, eax
xor ecx, dword [rbx]
and al, 1
and ecx, r11d
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx + 0x634]
mov dword [rbx], ecx
add rbx, 4
sub edx, 1
jne 0x140081a59
mov eax, dword [rbx]
mov r10d, 0x18c
mov edx, eax
lea r8, [rbx + 4]
mov r9d, dword [r8]
xor edx, r9d
and edx, r11d
xor edx, eax
mov eax, r9d
shr edx, 1
and al, 1
neg al
mov eax, r9d
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [rbx - 0x38c]
mov dword [rbx], edx
lea rbx, [r8]
sub r10d, 1
jne 0x140081a8d
mov eax, dword [0x1400f26b0]
mov ecx, r9d
xor ecx, eax
and al, 1
and ecx, r11d
xor ecx, r9d
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [r8 - 0x38c]
mov dword [r8], ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140081e88
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, dword [rcx + 0x18]
mov rbx, rcx
cmp dword [rcx + 0x458], edi
jae 0x140081fb0
mov r14d, 0x1ffff
mov edx, 1
mov rcx, rbx
call fcn.140081bd0
mov rcx, rbx
cmp eax, 1
jne 0x140081eee
lea edx, [rax + 7]
call fcn.140081bd0
mov edx, dword [rbx + 0x458]
mov rcx, qword [rbx + 0x450]
and rdx, r14
mov byte [rdx + rcx], al
inc dword [rbx + 0x458]
inc dword [rbx + 0x45c]
jmp 0x140081f49
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
call fcn.140081c9c
mov r8d, dword [rbx + 0x458]
sub r8d, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x30]
test r9d, r9d
je 0x140081f49
mov ecx, dword [rbx + 0x458]
mov eax, r8d
mov rdx, qword [rbx + 0x450]
and rax, r14
and rcx, r14
inc r8d
mov al, byte [rax + rdx]
mov byte [rcx + rdx], al
inc dword [rbx + 0x458]
inc dword [rbx + 0x45c]
add r9d, 0xffffffff
jne 0x140081f13
mov dword [rsp + 0x30], r9d
mov rcx, rbx
call fcn.1400820cc
mov eax, dword [0x1400f3080]
cmp eax, 0x1000
jbe 0x140081f93
and dword [0x1400f3080], 0
mov r9, qword [rbx + 0x470]
test r9, r9
je 0x140081f9b
imul eax, dword [rbx + 0x10], 0x64
xor edx, edx
mov ecx, dword [rbx + 0x14]
div dword [rbx + 0x18]
mov edx, dword [rbx + 0x10]
mov r8d, eax
call r9
test eax, eax
jne 0x140081f9b
mov byte [rbx + 0x464], 1
jmp 0x140081f9b
inc eax
mov dword [0x1400f3080], eax
cmp byte [rbx + 0x464], 0
jne 0x140081fed
cmp dword [rbx + 0x458], edi
jb 0x140081eb0
movsxd rax, dword [rbx + 0x488]
test eax, eax
je 0x140081fda
mov r9, qword [rbx + 0x30]
mov r8, rax
mov rcx, qword [rbx + 0x478]
mov edx, 1
call fcn.140032a04
and dword [rbx + 0x488], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, 4
jmp 0x140081fdc

Function at 0x140082038
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov edx, 1
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x140082069
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x30]
call fcn.140025d00
jmp 0x140082077
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140034c5c
movzx ecx, byte [rsp + 0x34]
lea rdx, str.EA06
movzx eax, byte [rsp + 0x35]
add dword [rbx + 0x14], 8
xor ebx, ebx
shl ecx, 8
or ecx, eax
mov byte [rsp + 0x34], bl
movzx eax, byte [rsp + 0x36]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x37]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x30]
call fcn.140034d40
test eax, eax
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400820cc
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x460]
mov rbx, rcx
cmp eax, dword [rcx + 0x458]
jae 0x14008219b
cmp dword [rcx + 0x20], 1
jne 0x140082128
mov r8d, dword [rbx + 0x460]
mov rax, qword [rbx + 0x450]
and r8d, 0x1ffff
mov edx, dword [rbx + 0x10]
mov rcx, qword [rbx]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x460]
inc dword [rbx + 0x10]
mov eax, dword [rbx + 0x460]
cmp eax, dword [rbx + 0x458]
jb 0x1400820ed
jmp 0x14008219b
movsxd rdx, dword [rbx + 0x488]
mov r8d, eax
mov rax, qword [rbx + 0x450]
and r8d, 0x1ffff
mov rcx, qword [rbx + 0x478]
mov al, byte [r8 + rax]
mov byte [rdx + rcx], al
inc dword [rbx + 0x488]
cmp dword [rbx + 0x488], 0x10000
jne 0x140082182
mov r9, qword [rbx + 0x30]
mov edx, 1
mov rcx, qword [rbx + 0x478]
mov r8d, 0x10000
call fcn.140032a04
and dword [rbx + 0x488], 0
mov eax, dword [rbx + 0x460]
inc dword [rbx + 0x10]
inc eax
mov dword [rbx + 0x460], eax
cmp eax, dword [rbx + 0x458]
jb 0x140082128
and dword [rbx + 0x45c], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400821a8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x48c]
mov rbx, rcx
mov r8d, 0x10000
test edx, edx
je 0x1400821c6
cmp edx, r8d
jne 0x1400821e4
mov r9, qword [rcx + 0x28]
mov edx, 1
mov rcx, qword [rcx + 0x480]
call fcn.140034c5c
and dword [rbx + 0x48c], 0
xor edx, edx
mov rax, qword [rbx + 0x480]
movsxd rcx, edx
mov al, byte [rcx + rax]
lea ecx, [rdx + 1]
mov dword [rbx + 0x48c], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x14008240c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x100
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x20]
mov ebx, r8d
call fcn.140082200
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14008225c
test esi, esi
je 0x140082457
mov ebx, esi
lea rcx, [rsp + 0x20]
call fcn.1400823d4
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x140082442
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140083e20
Capabilities:
Create directory
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x4ff68]
mov eax, 0x50050
call fcn.140048f90
sub rsp, rax
mov sil, r9b
mov rdi, r8
mov rcx, rdx
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xff50]
mov edx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor r14d, r14d
test eax, eax
je 0x140083efc
lea r8, [rbp + 0xff50]
lea rdx, str.___s
lea rcx, [rsp + 0x50]
call fcn.140024834
lea rcx, [rsp + 0x50]
call fcn.140028d58
mov rbx, rax
cmp word [rsp + rax*2 + 0x4e], 0x5c
jne 0x140083ead
cmp word [rsp + rax*2 + 0x4c], 0x3a
je 0x140083ead
mov word [rsp + rax*2 + 0x4e], r14w
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140083ec1
test sil, sil
je 0x140083efc
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140083f16
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
lea r11, [rsp + 0x50050]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
xor edx, edx
lea rcx, [rbp + 0x1ff50]
mov r8d, 0x2fffa
call fcn.140026240
add bx, bx
mov dword [rbp + 0x1ff50], 0xa0000003
mov word [rbp + 0x1ff5a], bx
lea rdx, [rsp + 0x50]
add bx, 2
lea rcx, [rbp + 0x1ff60]
mov r8d, 0x7fff
mov word [rbp + 0x1ff5c], bx
call fcn.140032024
movzx eax, word [rbp + 0x1ff5a]
lea r8, [rbp + 0x1ff50]
add ax, 0xc
mov qword [rsp + 0x38], r14
movzx r9d, ax
mov edx, 0x900a4
lea rax, [rbp + 0x4ff70]
mov word [rbp + 0x1ff54], r9w
mov qword [rsp + 0x30], rax
add r9d, 8
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
test eax, eax
jne 0x140083fbd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140083ef3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140083efe
Function at 0x14008a350
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov r13, rdx
xor ebx, ebx
mov rcx, r13
lea rdx, [rsp + 0x30]
mov r15d, r9d
mov r12d, r8d
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008a404
lea rdx, [0x1400b64f8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a3f2
lea rdx, [0x1400dd7c8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a3f2
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
lea rcx, [rsp + 0x5c]
mov eax, r15d
or edx, r12d
not eax
and edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14008a421
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008a39f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14b, byte [rbp + 0x1d0]
test r14b, r14b
jne 0x14008a431
mov al, sil
jmp 0x14008a4d5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14008a4d5
lea rdx, [rsp + 0x30]
lea rcx, [0x1400dd7c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008a4c8
mov rsi, qword [rbp + 0x1b0]
test byte [rsp + 0x30], 0x10
je 0x14008a4b6
lea rdx, [0x1400b64f8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a4b6
lea rdx, [0x1400dd7c8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a4b6
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, r15d
mov byte [rsp + 0x20], r14b
mov r8d, r12d
mov rdx, r13
mov rcx, rsi
call fcn.14008a350
test al, al
je 0x14008a4ca
lea rcx, [0x1400dd7c8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008a453
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14008a4f8
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov r12, rdx
mov r13, rcx
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, r12
mov r14d, r9d
mov r15, r8
mov sil, bl
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008a592
lea rdx, [0x1400b64f8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a580
lea rdx, [0x1400dd7c8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a580
mov r8d, r14d
lea rcx, [rsp + 0x5c]
mov rdx, r15
call fcn.14007c67c
test al, al
je 0x14008a5b0
mov sil, 1
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008a53f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bpl, byte [rsp + 0x2d0]
test bpl, bpl
jne 0x14008a5c0
mov al, sil
jmp 0x14008a65d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x14008a65d
lea rdx, [rsp + 0x30]
lea rcx, [0x1400dd7c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14008a650
test byte [rsp + 0x30], 0x10
je 0x14008a63e
lea rdx, [0x1400b64f8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a63e
lea rdx, [0x1400dd7c8]
lea rcx, [rsp + 0x5c]
call fcn.1400295bc
test eax, eax
je 0x14008a63e
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov r9d, r14d
mov byte [rsp + 0x20], bpl
mov r8, r15
mov rdx, r12
mov rcx, r13
call fcn.14008a4f8
test al, al
je 0x14008a652
lea rcx, [0x1400dd7c8]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008a5db
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14008a874
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
lea rcx, [rsp + 0x40]
mov r14, r9
mov r12, r8
call fcn.14000ec00
mov rax, qword [rsp + 0x40]
lea rdx, [0x1400dd7c0]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x78], rax
inc dword [rax]
call fcn.1400071f8
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov bl, 1
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x14008aa12
mov r15b, byte [rbp + 0x230]
mov sil, byte [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
mov rcx, qword [rbp + 0x200]
call fcn.140083824
cmp eax, 1
je 0x14008aa10
cmp eax, 0xb
jne 0x14008a941
lea ecx, [rax - 1]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14008a91c
lea rdx, [0x1400b64f8]
lea rcx, [rbp - 0x54]
call fcn.1400295bc
test eax, eax
je 0x14008a9f9
lea rdx, [0x1400dd7c8]
lea rcx, [rbp - 0x54]
call fcn.1400295bc
test eax, eax
je 0x14008a9f9
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14000e0a8
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x40]
call fcn.1400071f8
test byte [rbp - 0x80], 0x10
je 0x14008a9e0
test sil, sil
je 0x14008a99c
inc qword [rdi]
test r15b, r15b
je 0x14008a9f9
lea rdx, [0x1400b62a4]
lea rcx, [rsp + 0x40]
call fcn.1400071f8
mov rdx, qword [rsp + 0x40]
mov r9, r14
mov rcx, qword [rbp + 0x200]
mov r8, r12
mov byte [rsp + 0x30], r15b
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rdi
call fcn.14008a874
mov bl, al
test al, al
je 0x14008aa12
jmp 0x14008a9f9
mov ecx, dword [rbp - 0x64]
mov eax, dword [rbp - 0x60]
shl rcx, 0x20
or rcx, rax
add qword [r12], rcx
test sil, sil
je 0x14008a9f9
inc qword [r14]
lea rdx, [rbp - 0x80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008a91c
jmp 0x14008aa12
xor bl, bl
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x60]
call fcn.14000a07c
lea rcx, [rsp + 0x40]
call fcn.14000a07c
lea r11, [rsp + 0x2d0]
mov al, bl
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret