joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015540
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, dword [rcx]
mov ebx, r8d
mov r8, rcx
mov eax, ebx
mov r9d, r10d
mov r11, rdx
xor r9, rax
shr r10d, 8
movzx eax, r9b
mov r9d, dword [rdx + rax*4]
mov edx, dword [rcx + 8]
xor r9d, r10d
mov dword [rcx], r9d
movzx eax, r9b
add eax, dword [rcx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [rcx + 4], eax
mov ecx, eax
shr ecx, 0x18
xor rcx, rdx
shr edx, 8
movzx eax, cl
mov eax, dword [r11 + rax*4]
xor eax, edx
mov dword [r8 + 8], eax
mov eax, ebx
mov rbx, qword [rsp + 8]
ret

Function at 0x140015610
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push r15
sub rsp, 0x48
mov rbp, r9
mov r15, rcx
cmp r8d, 0xc
jge 0x140015632
xor eax, eax
add rsp, 0x48
pop r15
pop rbp
ret
mov eax, dword [0x14006c480]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
inc eax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
mov dword [0x14006c480], eax
cmp eax, 1
jne 0x140015676
xor ecx, ecx
call fcn.14002158c
xor eax, 0xbb40e64e
mov ecx, eax
call fcn.140021618
mov r12, qword [rsp + 0x80]
mov rdx, rbp
mov rcx, r15
mov r8, r12
call fcn.1400155a0
mov r13d, 0xa
lea rsi, [rsp + 0x20]
mov r14d, r13d
nop word [rax + rax]
call fcn.1400215ec
mov rcx, rbp
sar eax, 7
movzx edi, al
call fcn.140015520
mov r8d, edi
mov rdx, r12
mov ebx, eax
call fcn.140015540
xor dil, bl
inc rsi
dec r14
mov byte [rsi - 1], dil
jne 0x1400156a0
mov r8, r12
mov rdx, rbp
mov rcx, r15
call fcn.1400155a0
mov r15, qword [rsp + 0x68]
lea rax, [rsp + 0x20]
mov r14, r15
lea rsi, [rsp + 0x20]
sub r14, rax
mov rcx, rbp
call fcn.140015520
movzx edi, byte [rsi]
mov rdx, r12
mov r8d, edi
mov ebx, eax
call fcn.140015540
xor dil, bl
inc rsi
dec r13
mov byte [r14 + rsi - 1], dil
jne 0x1400156f2
mov rcx, rbp
call fcn.140015520
mov esi, dword [rsp + 0x88]
mov rdx, r12
mov ebx, esi
mov edi, eax
shr ebx, 0x10
movzx r8d, bl
call fcn.140015540
xor bl, dil
mov rcx, rbp
mov byte [r15 + 0xa], bl
call fcn.140015520
shr esi, 0x18
mov r8d, esi
mov rdx, r12
mov ebx, eax
call fcn.140015540
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
xor sil, bl
mov rbx, qword [rsp + 0x60]
mov byte [r15 + 0xb], sil
mov rsi, qword [rsp + 0x70]
lea eax, [r13 + 0xc]
mov r13, qword [rsp + 0x38]
add rsp, 0x48
pop r15
pop rbp
ret
Function at 0x1400168a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rsi, rcx
je 0x140016923
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp dword [rcx + 0xd4], ebp
jbe 0x14001691e
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r12
lea rdi, [rcx + 0x100]
nop word [rax + rax]
lea rcx, [rsi + 0x10128]
call fcn.140015520
movzx r8d, byte [rdi]
mov rdx, qword [rsi + 0x10138]
lea rcx, [rsi + 0x10128]
mov ebx, eax
call fcn.140015540
xor byte [rdi], bl
inc ebp
inc rdi
cmp ebp, dword [rsi + 0xd4]
jb 0x1400168e0
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r9d, dword [rsi + 0xd4]
mov rdx, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x38]
mov ebx, dword [rsi + 0xd4]
lea r8, [rsi + 0x100]
call qword [rsi + 0x10]
or ecx, 0xffffffff
xor edx, edx
cmp eax, ebx
mov dword [rsi + 0xd4], 0
cmovne edx, ecx
mov ecx, dword [rsi + 0x84]
add qword [rsi + 0x10118], rbx
mov rbx, qword [rsp + 0x48]
add qword [rsi + 0x10120], rcx
mov dword [rsi + 0x84], 0
mov eax, edx
add rsp, 0x20
pop rsi
ret
Function at 0x140037868
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rbp - 0x30], r12d
cmp qword [rdx + 0x18], 8
jb 0x1400378a2
mov rax, qword [rdx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [0x14006dd90]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x1400378fb
lea rdx, [0x1400559f6]
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
xor r8d, r8d
mov byte [rdi], r12b
mov rcx, rdi
call fcn.14000159c
jmp 0x1400379c6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x140037920
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1400559f7]
jmp 0x1400378dc
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], r12
mov byte [rbp - 0x20], r12b
mov rdx, r14
test eax, eax
jne 0x140037942
mov qword [rbp - 0x10], rdx
mov byte [rbp + r14 - 0x20], r12b
jmp 0x14003794e
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.140001780
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rdx, qword [rbp - 0x20]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x28]
mov r8d, r14d
mov rcx, r15
call qword [0x14006dd60]
mov ebx, eax
mov rcx, r15
call qword [0x14006dd98]
test ebx, ebx
je 0x140037994
cmp dword [rbp + 0x28], r14d
jne 0x140037994
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140001228
jmp 0x1400379b6
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r12
mov byte [rdi], r12b
xor r8d, r8d
lea rdx, [0x1400559fe]
mov rcx, rdi
call fcn.14000159c
nop
cmp qword [rbp - 8], 0x10
jb 0x1400379c6
mov rcx, qword [rbp - 0x20]
call fcn.14001e48c
mov rax, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003a31c
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, qword [r8]
and dword [rsp + 0x20], 0
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
jne 0x14003a36e
and qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 0xf
lea rdx, [0x140055a1a]
xor r8d, r8d
mov byte [rcx], bl
call fcn.14000159c
jmp 0x14003a4c1
xor ebp, ebp
mov rax, rbx
lea r13d, [rbp + 1]
and eax, 3
jne 0x14003a388
cmp byte [rbx + rdx - 1], 0x3d
je 0x14003a388
xor r14d, r14d
jmp 0x14003a398
mov r14, r13
cmp rax, 2
ja 0x14003a39d
cmp byte [rbx + rdx - 2], 0x3d
jne 0x14003a39d
xor r15d, r15d
jmp 0x14003a3a0
mov r15, r13
and qword [rsp + 0x38], rbp
sub rbx, r14
lea rcx, [rsp + 0x28]
and rbx, 0xfffffffffffffffc
xor r8d, r8d
mov qword [rsp + 0x40], 0xf
mov rdx, rbx
mov byte [rsp + 0x28], bpl
shr rdx, 2
lea rax, [r15 + rdx*2]
add rdx, rax
add rdx, r14
call fcn.140005c44
cmp qword [rsp + 0x40], 0x10
lea r9, [rsp + 0x28]
cmovae r9, qword [rsp + 0x28]
lea r10, [0x140056610]
test rbx, rbx
je 0x14003a458
lea rdx, [rbx - 1]
lea r8, [rsi + 1]
shr rdx, 2
add rdx, r13
movzx eax, byte [r8 - 1]
mov ecx, dword [r10 + rax*4]
movzx eax, byte [r8]
lea r8, [r8 + 4]
shl ecx, 6
or ecx, dword [r10 + rax*4]
movzx eax, byte [r8 - 3]
shl ecx, 6
or ecx, dword [r10 + rax*4]
movzx eax, byte [r8 - 2]
shl ecx, 6
or ecx, dword [r10 + rax*4]
mov eax, ecx
sar eax, 0x10
mov byte [r9 + rbp], al
add rbp, r13
mov eax, ecx
sar eax, 8
mov byte [r9 + rbp], al
add rbp, r13
mov byte [r9 + rbp], cl
add rbp, r13
sub rdx, r13
jne 0x14003a404
test r14, r14
je 0x14003a4a2
movzx eax, byte [rbx + rsi]
movzx edx, byte [rbx + rsi + 1]
mov ecx, dword [r10 + rax*4]
mov r8d, dword [r10 + rdx*4]
shl ecx, 6
or r8d, ecx
shl r8d, 0xc
mov eax, r8d
sar eax, 0x10
mov byte [r9 + rbp], al
test r15, r15
je 0x14003a4a2
movzx eax, byte [rbx + rsi + 2]
sar r8d, 8
mov ecx, dword [r10 + rax*4]
shl ecx, 6
sar ecx, 8
or cl, r8b
mov byte [r9 + rbp + 1], cl
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.140001228
cmp qword [rsp + 0x40], 0x10
jb 0x14003a4c1
mov rcx, qword [rsp + 0x28]
call fcn.14001e48c
lea r11, [rsp + 0x50]
mov rax, rdi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x14003b100
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov r15, rdx
mov rbx, rcx
mov dword [rdx], edi
mov ebp, 0x3e8
xor r9d, r9d
lea rcx, str.Mozilla_5.0
xor r8d, r8d
lea edx, [r9 + 1]
mov dword [rsp + 0x20], edi
call qword [0x14006dde8]
mov r14, rax
test rax, rax
jne 0x14003b14c
mov ecx, ebp
call qword [0x14006dd30]
jmp 0x14003b11f
cmp qword [rbx + 0x18], 8
jb 0x14003b158
mov rdx, qword [rbx]
jmp 0x14003b15b
mov rdx, rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x80000000
call qword [0x14006df18]
mov rsi, rax
test rax, rax
je 0x14003b142
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x60]
mov edx, 0x20000005
mov rcx, rax
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rdi
call qword [0x14006def0]
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14003b206
mov r8d, dword [rsp + 0x60]
mov ebx, edi
mov rdx, rax
jmp 0x14003b1ee
cmp dword [rsp + 0x68], edi
jbe 0x14003b200
add ebx, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov edx, ebx
sub r8d, ebx
add rdx, rbp
lea r9, [rsp + 0x68]
mov rcx, rsi
call qword [0x14006dea0]
test eax, eax
jne 0x14003b1d7
mov dword [r15], ebx
mov rdi, rbp
mov rcx, rsi
call qword [0x14006dee0]
mov rcx, r14
call qword [0x14006dee0]
mov rbx, qword [rsp + 0x78]
mov rax, rdi
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003d9e4
Capabilities:
Capture screenshot

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x80
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov edi, r9d
mov esi, r8d
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov r8d, edi
mov edx, esi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rbp, rax
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x40], 0xcc0020
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.GDI32.dll_BitBlt]
lea edi, [r14 + 7]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rbx, qword [rsp + 0xb0]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140001e28
lea r9, [rsp + 0x58]
mov rcx, rbp
call fcn.14003db00
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
cmp qword [rbx + 0x18], 8
jb 0x14003dacb
mov rcx, qword [rbx]
call fcn.14001e48c
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov al, 1
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x14003e0b0
Capabilities:
Enumerate device drivers on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 - 0x18], 7
xor eax, eax
mov qword [r11 - 0x20], rax
mov word [rsp + 0x28], ax
lea r8d, [rax + 0x19]
lea rdx, str.driverquery___Drivers.txt
lea rcx, [r11 - 0x30]
call fcn.140001b58
nop
lea rcx, [rsp + 0x28]
call fcn.14003e1d0
nop
cmp qword [rsp + 0x40], 8
jb 0x14003e104
mov rcx, qword [rsp + 0x28]
call fcn.14001e48c
add rsp, 0x58
ret

Function at 0x14003e1d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov r8, rcx
lea rdx, [0x140058ec8]
lea rcx, [rbp - 0x39]
call fcn.1400063e4
xor edx, edx
lea rcx, [rbp - 0x15]
lea r8d, [rdx + 0x6c]
call fcn.140021640
cmp qword [rbp - 0x21], 8
lea rax, [0x140058ed0]
mov qword [rbp - 9], rax
lea rax, str.cmd.exe
lea rcx, [rbp - 0x19]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x39]
mov dword [rbp - 0x19], 0x70
cmovae rax, qword [rbp - 0x39]
xor ebx, ebx
mov dword [rbp - 0x15], 0x40
mov qword [rbp + 7], rax
mov dword [rbp + 0x17], ebx
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14003e266
mov rcx, qword [rbp + 0x4f]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x4f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
cmp qword [rbp - 0x21], 8
jb 0x14003e276
mov rcx, qword [rbp - 0x39]
call fcn.14001e48c
mov al, bl
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rbp
ret
Function at 0x14003e548
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x230
mov rdi, rdx
mov edx, 0x5c
mov rbx, rcx
call fcn.140020f4c
test rax, rax
je 0x14003e599
lea r9, [rax + 2]
lea rdx, [0x140058db8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x14006ddd0]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov rbx, qword [rsp + 0x240]
add rsp, 0x230
pop rdi
ret
Function at 0x140043660
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
xor edx, edx
mov rsi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004368d
xor al, al
jmp 0x1400436e6
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor edi, edi
test eax, eax
je 0x1400436da
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.140020ffc
test eax, eax
je 0x1400436d7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400436a9
mov rcx, rbx
call qword [0x14006dd98]
jmp 0x140043689
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140043c8c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140043cc9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140043d35
lea rax, [rsp + 0x4c]
mov rdx, rsi
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140043cea
add rax, 2
test r8d, r8d
jne 0x140043cd4
test ecx, ecx
jne 0x140043d1a
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140043d1a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [0x14006dd98]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140043cc9
mov rcx, rbx
call qword [0x14006dd98]
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140043e28
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x598]
sub rsp, 0x690
lea r8, [rbp + 0x380]
mov rdi, rcx
mov rdx, rcx
sub r8, rcx
xor esi, esi
movzx eax, word [rdx]
mov word [r8 + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140043e58
lea rcx, [rbp + 0x380]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140043e74
mov eax, dword [0x14005a984]
lea rdx, [rsp + 0x20]
mov dword [rcx], eax
movzx eax, word [0x14005a988]
mov word [rcx + 4], ax
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140043fb1
movzx ecx, word [rsp + 0x4c]
movzx eax, word [rsp + 0x4e]
cmp cx, word [0x140057b3c]
jne 0x140043ecf
cmp ax, word [0x140057b3e]
je 0x140043f79
cmp cx, word [0x14005a98c]
jne 0x140043ef3
cmp ax, word [0x14005a98e]
jne 0x140043ef3
movzx eax, word [rsp + 0x50]
cmp ax, word [0x14005a990]
je 0x140043f79
lea rdx, [rbp + 0x170]
mov rcx, rdi
sub rdx, rdi
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140043f00
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140043f1b
mov eax, dword [0x140057b54]
mov dword [rcx], eax
lea rcx, [rbp + 0x170]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140043f37
lea r8, [rsp + 0x4c]
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140043f47
test byte [rsp + 0x20], 0x10
lea rcx, [rbp + 0x170]
je 0x140043f6f
call fcn.140043e28
test al, al
jmp 0x140043f77
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140043fa8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140043eaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x140043fb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140045e58
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, r8
mov rsi, rcx
lea r8, str..
lea rcx, [rsp + 0x20]
call fcn.140015450
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140045fa0
mov dl, byte [rbp - 0x44]
mov cl, byte [rbp - 0x43]
cmp dl, byte [0x140058984]
jne 0x140045eda
cmp cl, byte [0x140058985]
je 0x140045f81
cmp dl, byte [0x140058994]
jne 0x140045ef9
cmp cl, byte [0x140058995]
jne 0x140045ef9
mov al, byte [rbp - 0x42]
cmp al, byte [0x140058996]
je 0x140045f81
lea r8, [0x1400589a4]
mov rdx, qword [rbp + 0xf8]
lea rcx, [rsp + 0x40]
call fcn.140015450
nop
lea r8, [rbp - 0x44]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400063b4
nop
cmp qword [rsp + 0x58], 0x10
jb 0x140045f36
mov rcx, qword [rsp + 0x40]
call fcn.14001e48c
mov qword [rsp + 0x58], 0xf
and qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
mov r8, rdi
lea rdx, [rsp + 0x60]
mov rcx, rsi
test byte [rbp - 0x70], 0x10
je 0x140045f69
mov r9b, byte [rbp + 0x108]
call fcn.140045e58
jmp 0x140045f6f
call fcn.140045fcc
nop
cmp qword [rsp + 0x78], 0x10
jb 0x140045f81
mov rcx, qword [rsp + 0x60]
call fcn.14001e48c
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140045ec0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x38], 0x10
jb 0x140045fb2
mov rcx, qword [rsp + 0x20]
call fcn.14001e48c
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140045fcc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x3cc0
call fcn.140021760
sub rsp, rax
mov r8, qword [r8 + 0x10]
mov rbx, rdx
mov rsi, rcx
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140015418
cmp qword [rbx + 0x18], 0x10
jb 0x140046005
mov rbx, qword [rbx]
lea rdx, [0x140058974]
mov rcx, rbx
call fcn.140021298
mov rbx, rax
test rax, rax
je 0x1400460f7
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x24]
call fcn.140021640
cmp qword [rsp + 0x68], 0x10
lea rdx, [rsp + 0x50]
cmovae rdx, qword [rsp + 0x50]
or dword [rsp + 0x48], 0xffffffff
mov dword [rsp + 0x40], 8
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x70]
xor r9d, r9d
mov rcx, rsi
call fcn.140017a90
test eax, eax
jne 0x1400460ef
lea rcx, [rsp + 0xa0]
mov r9, rbx
mov edx, 1
mov r8d, 0x3c18
call fcn.1400214c4
mov rdi, rax
cmp rax, 0x3c18
jae 0x1400460b6
mov rcx, rbx
call fcn.140021170
test eax, eax
jne 0x1400460d4
mov rcx, rbx
call fcn.140021198
test eax, eax
jne 0x1400460e7
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.140016990
test eax, eax
js 0x1400460e7
test rdi, rdi
je 0x1400460e7
jmp 0x140046078
lea rdx, [rsp + 0xa0]
mov r8d, edi
mov rcx, rsi
call fcn.140016990
mov rcx, rsi
call fcn.1400172b0
mov rcx, rbx
call fcn.1400201d4
cmp qword [rsp + 0x68], 0x10
jb 0x140046109
mov rcx, qword [rsp + 0x50]
call fcn.14001e48c
lea r11, [rsp + 0x3cc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400152f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140015312
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14001538c
mov rdi, r14
mov rcx, rbx
call fcn.140016da0
test rax, rax
jle 0x140015364
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400833e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001537c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140015384
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140015326
sub r14, rdi
jmp 0x14001546f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400153a3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400153a5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400153d7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400833e0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14001546c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015412
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001544d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14005e544
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14001546c
cmp rbp, rax
ja 0x140015420
test rbp, rbp
je 0x14001546c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14005e544
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret