joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003bd90
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x68]
sub rsp, 0x158
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
test rcx, rcx
je 0x14003bf68
mov rcx, qword [rcx + 0x108]
test rcx, rcx
je 0x14003bf68
mov qword [r11 + 0x10], rsi
mov qword [r11 - 0x18], r14
call fcn.140044230
xorps xmm0, xmm0
lea rdx, [rbp - 0x60]
mov r14, rax
mov rcx, rbx
xor eax, eax
mov dword [rbp + 0x30], eax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
call fcn.14003b9b0
mov esi, eax
test eax, eax
jne 0x14003bf42
mov eax, dword [rbp - 0x5c]
and eax, 0xff000000
cmp eax, 0x2000000
jne 0x14003bf42
mov ecx, 0x1000
mov qword [rsp + 0x180], rdi
call fcn.1400404e0
mov rdi, rax
test rax, rax
jne 0x14003be53
mov esi, 0x708
jmp 0x14003bf3a
mov rcx, qword [rbx + 0x108]
xorps xmm0, xmm0
xor eax, eax
mov dword [rsp + 0x20], 0x40200100
mov r8d, 0x1000
mov dword [rbp - 0x6c], eax
mov rdx, rdi
mov dword [rsp + 0x24], 0x6a09e667
movups xmmword [rsp + 0x44], xmm0
mov dword [rsp + 0x28], 0xbb67ae85
movups xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x2c], 0x3c6ef372
movups xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x30], 0xa54ff53a
movups xmmword [rsp + 0x74], xmm0
mov dword [rsp + 0x34], 0x510e527f
movups xmmword [rbp - 0x7c], xmm0
mov dword [rsp + 0x38], 0x9b05688c
mov dword [rsp + 0x3c], 0x1f83d9ab
mov dword [rsp + 0x40], 0x5be0cd19
call fcn.140044720
test rax, rax
je 0x14003bf0a
lfence
nop dword [rax + rax]
mov r8, rax
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140041630
mov rcx, qword [rbx + 0x108]
mov r8d, 0x1000
mov rdx, rdi
call fcn.140044720
test rax, rax
jne 0x14003bee0
lea rcx, [rsp + 0x20]
call fcn.140041360
mov r8d, 0x20
lea rdx, [rbp + 0xc]
lea rcx, [rsp + 0x24]
call fcn.140104540
test eax, eax
mov ecx, 0xbbd
cmovne esi, ecx
mov rcx, rdi
call fcn.1401120d4
mov rdi, qword [rsp + 0x180]
mov rcx, qword [rbx + 0x108]
xor r8d, r8d
mov rdx, r14
call fcn.1400448e0
mov r14, qword [rsp + 0x150]
mov eax, esi
mov rsi, qword [rsp + 0x178]
jmp 0x14003bf6d
mov eax, 0x8fc
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x140040450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400404a8
bt eax, 0xa
jae 0x1400404a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140040495
test al, 0x10
je 0x140040495
mov rcx, rbx
call fcn.14012fc74
jmp 0x14004049d
mov rcx, rbx
call fcn.140114a3c
test eax, eax
je 0x1400404a8
mov ecx, 0x1f
jmp 0x1400404b7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14012f72c
mov ecx, eax
xor eax, eax
test ecx, ecx
sete al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x60
pop rbx
ret
Function at 0x140041550
Capabilities:
Hash data using sha1
Hash data using sha256

Disassembly:
test rcx, rcx
je 0x1400415f5
xorps xmm0, xmm0
movzx edx, dx
movups xmmword [rcx], xmm0
xor eax, eax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
sub edx, 1
je 0x1400415cc
cmp edx, 0xff
jne 0x1400415f5
mov dword [rcx], 0x40200100
mov dword [rcx + 4], 0x6a09e667
mov dword [rcx + 8], 0xbb67ae85
mov dword [rcx + 0xc], 0x3c6ef372
mov dword [rcx + 0x10], 0xa54ff53a
mov dword [rcx + 0x14], 0x510e527f
mov dword [rcx + 0x18], 0x9b05688c
mov dword [rcx + 0x1c], 0x1f83d9ab
mov dword [rcx + 0x20], 0x5be0cd19
ret
mov dword [rcx], 0x40140001
mov dword [rcx + 4], 0x67452301
mov dword [rcx + 8], 0xefcdab89
mov dword [rcx + 0xc], 0x98badcfe
mov dword [rcx + 0x10], 0x10325476
mov dword [rcx + 0x14], 0xc3d2e1f0
ret
Function at 0x140044270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400442aa
mov edx, dword [rcx]
sub edx, 1
je 0x1400442be
cmp edx, 1
jne 0x1400442aa
mov rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x68
ret
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x68
ret
mov qword [rsp + 0x60], rbx
mov rbx, qword [rcx + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140044303
bt eax, 0xa
jae 0x140044303
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400442f7
test al, 0x10
je 0x1400442f7
mov rcx, rbx
call fcn.14012fc74
jmp 0x1400442ff
mov rcx, rbx
call fcn.140114a3c
test eax, eax
jne 0x14004431b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14012f72c
test eax, eax
jne 0x14004431b
movsxd rax, dword [rsp + 0x34]
jmp 0x14004431d
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x68
ret
Function at 0x1400444d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rsi, [0x14017f874]
mov rbx, rcx
test rcx, rcx
jne 0x140044500
lea eax, [rcx + 0x16]
jmp 0x140044668
mov qword [rsp + 0x70], rdi
call fcn.140043fa0
mov ecx, dword [rbx]
sub ecx, 1
je 0x140044534
cmp ecx, 1
jne 0x14004452a
cmp qword [rbx + 8], 0
je 0x14004452a
xor edi, edi
mov qword [rbx + 0x20], rdi
mov eax, edi
jmp 0x140044663
mov eax, 1
jmp 0x140044663
mov rax, qword [rbx + 0x18]
test rax, rax
cmovne rsi, rax
cmp dword [rbx + 4], 2
je 0x140044563
lea rdx, [0x14017fe68]
mov rcx, rsi
call fcn.140131020
test rax, rax
je 0x140044563
mov eax, 0xd
jmp 0x140044663
mov qword [rsp + 0x68], rbp
xor edi, edi
mov rbp, qword [rbx + 8]
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400445bc
bt eax, 0xa
jae 0x1400445bc
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400445a3
test al, 0x10
je 0x1400445a3
mov rcx, rbp
call fcn.14012fc74
jmp 0x1400445ab
mov rcx, rbp
call fcn.140114a3c
test eax, eax
je 0x1400445bc
mov rcx, rdi
mov eax, 0x1f
jmp 0x14004465a
xorps xmm0, xmm0
lea rcx, [rsp + 0x28]
mov r9, 0xffffffffffffffff
mov r8, rsi
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
lea edx, [r9 + 0x21]
call fcn.1401121b8
lea rdx, [0x14017fe68]
mov rcx, rsi
call fcn.140131020
test rax, rax
je 0x14004463d
mov edx, 0x63
mov rcx, rsi
call fcn.1401044b0
test rax, rax
jne 0x14004463d
lea edx, [rax + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14012c6b8
cmp rax, 0x20
jne 0x140044621
mov byte [rsp + 0x47], dil
jmp 0x14004463d
mov r9, 0xffffffffffffffff
lea r8, [0x14017fe6c]
lea rcx, [rsp + 0x28]
lea edx, [r9 + 0x21]
call fcn.140143244
lea r8, [rsp + 0x28]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140143614
mov rcx, qword [rsp + 0x20]
test rcx, rcx
cmovne eax, edi
mov rbp, qword [rsp + 0x68]
mov qword [rbx + 0x10], rcx
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140102a00
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x140044ae0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov r14, r8
mov r12, rdx
mov rdi, rcx
test rcx, rcx
je 0x140044bdf
test rdx, rdx
je 0x140044bdf
cmp dword [rcx + 4], 2
jne 0x140044bdf
mov ecx, dword [rcx]
sub ecx, 1
je 0x140044bc6
cmp ecx, 1
jne 0x140044bdf
mov rax, qword [rdi + 0x20]
mov rsi, qword [rdi + 8]
lea rbp, [rax + r8]
test rsi, rsi
je 0x140044b4c
cmp qword [rdi + 0x10], rbp
jae 0x140044b9d
and rbp, 0xfffffffffffffe00
mov qword [rsp + 0x40], rbx
add rbp, 0x200
mov rcx, rsi
mov rdx, rbp
mov rbx, rsi
call fcn.14012bc84
test rbx, rbx
mov rsi, rax
mov rbx, qword [rsp + 0x40]
jne 0x140044b8c
test rax, rax
je 0x140044bdf
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.140104310
test rsi, rsi
je 0x140044bdf
mov rax, qword [rdi + 0x20]
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rbp
lea rcx, [rsi + rax]
mov r8, r14
mov rdx, r12
call fcn.140044cc0
add qword [rdi + 0x20], r14
mov r15, r14
mov rcx, qword [rdi + 0x20]
cmp rcx, qword [rdi + 0x18]
cmovbe rcx, qword [rdi + 0x18]
mov qword [rdi + 0x18], rcx
jmp 0x140044bdf
mov r9, qword [rdi + 0x10]
test r9, r9
je 0x140044bdf
mov edx, 1
mov rcx, r12
call fcn.140144efc
mov r15, rax
mov rbp, qword [rsp + 0x48]
mov rax, r15
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140047520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor edi, edi
movsxd rbx, ecx
mov r14, r9
mov r15, r8
mov rsi, rdx
test rdx, rdx
je 0x14004755b
mov edx, 0x104
mov rcx, rsi
call fcn.14012c6b8
mov rbp, rax
jmp 0x14004755d
mov ebp, edi
imul rbx, rbx, 0x38
lea r12, [0x140280360]
mov qword [rsp + 0x78], rbx
lea rax, [rbx + r12]
mov rcx, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.DLL_AcquireSRWLockExclusive]
cmp qword [rbx + r12 + 0x28], rdi
je 0x1400476cc
mov qword [rsp + 0x70], r13
call fcn.140039620
mov qword [rsp + 0x28], r14
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rcx, qword [rax]
or rcx, 2
call fcn.14012bb54
test eax, eax
mov rcx, 0xffffffffffffffff
cmovs eax, ecx
movsxd r12, eax
add r12, 2
mov rcx, r12
lea r13d, [rax + 2]
call fcn.1401120e8
mov rbx, rax
test rax, rax
je 0x1400476c7
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.140104310
mov r9, r15
mov qword [rsp + 0x20], r14
mov r8, 0xffffffffffffffff
mov rdx, r12
mov rcx, rbx
call fcn.140049d80
mov r9d, eax
test r12, r12
je 0x140047615
cmp eax, 0xffffffff
jne 0x140047615
lea r9d, [r13 - 1]
mov rax, rbx
cmp byte [rbx], dil
je 0x140047633
nop dword [rax]
cmp byte [rax + 1], dil
je 0x140047633
cmp byte [rax], 0xa
jne 0x14004762e
mov byte [rax], 9
inc rax
jmp 0x140047620
test rsi, rsi
je 0x14004768b
cmp r9d, ebp
jle 0x14004768b
lea edi, [r9 + rbp]
cmp edi, r13d
jge 0x14004768b
lfence
movsxd rcx, ebp
mov r8, rsi
movsxd rax, r9d
sub rax, rcx
add rax, rbx
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140047673
inc rax
test ecx, ecx
jne 0x140047660
test edx, edx
je 0x14004768b
lfence
mov r8, r12
mov rdx, rsi
mov rcx, rbx
call fcn.140047bd0
mov r9d, edi
mov rsi, qword [rsp + 0x78]
lea rbp, [0x140280360]
movsxd r8, r9d
mov edx, 1
mov rcx, rbx
mov r9, qword [rsi + rbp + 0x28]
call fcn.140144efc
cmp byte [rsi + rbp + 0x30], 0
mov edi, eax
je 0x1400476bf
mov rcx, qword [rsi + rbp + 0x28]
call fcn.140144160
mov rcx, rbx
call fcn.1401120d4
mov r13, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_ReleaseSRWLockExclusive]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140047930
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x160], rax
xorps xmm0, xmm0
mov rdi, rcx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400479a3
bt eax, 0xa
jae 0x1400479a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14004798d
test al, 0x10
je 0x14004798d
mov rcx, rdi
call fcn.14012fc74
jmp 0x140047995
mov rcx, rdi
call fcn.140114a3c
test eax, eax
je 0x1400479a3
mov eax, 0x1f
jmp 0x140047b17
mov rcx, rdi
mov qword [rsp + 0x188], rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400479e7
bt eax, 0xa
jae 0x1400479e7
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400479db
test al, 0x10
je 0x1400479db
mov rcx, rdi
call fcn.14012fc74
jmp 0x1400479e3
mov rcx, rdi
call fcn.140114a3c
test eax, eax
jne 0x1400479fe
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14012f72c
mov ebx, eax
test eax, eax
je 0x140047b0d
test rdi, rdi
jne 0x140047a07
xor ebx, ebx
jmp 0x140047a17
mov edx, 0x104
mov rcx, rdi
call fcn.14012c6b8
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140104310
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
call fcn.1401121b8
lea rcx, [rbx - 2]
cmp rcx, 0x102
ja 0x140047a6b
cmp byte [rsp + rbx + 0x4f], 0x5c
jne 0x140047a6b
dec rbx
cmp rbx, 0x104
jae 0x140047b30
mov byte [rsp + rbx + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140047aaf
bt eax, 0xa
jae 0x140047aaf
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140047aa1
test al, 0x10
je 0x140047aa1
lea rcx, [rsp + 0x50]
call fcn.14012fc74
jmp 0x140047aab
lea rcx, [rsp + 0x50]
call fcn.140114a3c
test eax, eax
jne 0x140047ac4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14012f72c
mov ebx, eax
test eax, eax
je 0x140047b0d
lea rcx, [rsp + 0x50]
call fcn.14012f9f0
mov ebx, eax
test eax, eax
je 0x140047b0d
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140104a18
mov rdi, rax
test rax, rax
je 0x140047b0d
lea rcx, [rsp + 0x50]
mov byte [rax], 0
call fcn.140047930
mov ebx, eax
test eax, eax
jne 0x140047b0d
lea rcx, [rsp + 0x50]
mov byte [rdi], 0x5c
call fcn.14012f9f0
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x170
pop rdi
ret
call fcn.140102b64
int3
Function at 0x140051ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x428
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x410], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140104310
call fcn.140035f70
mov qword [0x140280530], rax
test rax, rax
jne 0x140051ef9
mov eax, 0x708
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x428
ret
xor r9d, r9d
mov qword [rsp + 0x420], rdi
mov edx, 0x80
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x390]
lea r8d, [r9 + 7]
call fcn.140047820
lea r8, [rsp + 0x30]
lea rdx, str.upe_.dll
lea rcx, [rsp + 0x390]
call fcn.140053be0
mov rdi, rax
test rax, rax
je 0x140052118
mov qword [rsp + 0x430], rbx
mov qword [rsp + 0x438], rsi
lea rsi, [0x14017f5f4]
nop
mov ecx, 0x30
call fcn.1401120e8
mov rbx, rax
test rax, rax
je 0x1400520ea
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movups xmmword [rax], xmm0
mov edx, 0x2e
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
call fcn.1401044b0
test rax, rax
je 0x140051fba
lea rcx, [rsp + 0x30]
mov byte [rax], 0
call fcn.14012fd88
mov qword [rbx + 0x18], rax
mov rdx, rbx
mov rcx, qword [0x140280530]
call fcn.140035dc0
jmp 0x140051fc2
mov rcx, rbx
call fcn.1401120d4
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x140
call fcn.140104310
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x104
call fcn.140104310
nop dword [rax]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
cmp eax, 1
jne 0x1400520c3
lea rax, [rsp + 0x16c]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rdi + 8]
lea r8, [0x14017f5f8]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x280]
call fcn.140054020
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400520b3
bt eax, 0xa
jae 0x1400520b3
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14005209e
bt eax, 0xa
jae 0x14005209e
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140052091
test al, 0x10
je 0x140052091
lea rcx, [rsp + 0x280]
call fcn.14012fc74
jmp 0x14005209e
lea rcx, [rsp + 0x280]
call fcn.140114a3c
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x140
call fcn.140104310
cmp byte [rsp + 0x16c], 0
je 0x140051ff0
jmp 0x1400520c7
test eax, eax
je 0x1400520ea
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x16c]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1401121b8
jmp 0x140051f60
mov rcx, qword [rdi]
mov rsi, qword [rsp + 0x438]
mov rbx, qword [rsp + 0x430]
cmp rcx, 0xffffffffffffffff
je 0x140052110
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rdi], 0xffffffffffffffff
mov rcx, rdi
call fcn.1401120d4
mov rdi, qword [rsp + 0x420]
xor eax, eax
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x428
ret
Function at 0x140053be0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x140
lea rcx, [rsp + 0x30]
call fcn.140104310
lea rbp, [0x14017f5f4]
mov qword [rsp + 0x28], rbx
mov r9, rdi
mov qword [rsp + 0x20], rbp
lea r8, [0x14017f5f8]
mov ecx, 0x104
lea rdx, [rsp + 0x170]
call fcn.140054020
mov ecx, 0x110
call fcn.1401120e8
mov rbx, rax
test rax, rax
je 0x140053c6b
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.140104310
test rbx, rbx
je 0x140053dc0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x140053d97
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x5c]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14017f5f8]
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x20], rbp
mov ecx, 0x104
call fcn.140054020
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140053d42
bt eax, 0xa
jae 0x140053d42
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140053d30
bt eax, 0xa
jae 0x140053d30
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140053d23
test al, 0x10
je 0x140053d23
lea rcx, [rsp + 0x170]
call fcn.14012fc74
jmp 0x140053d30
lea rcx, [rsp + 0x170]
call fcn.140114a3c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x140
call fcn.140104310
cmp byte [rsp + 0x5c], 0
jne 0x140053d66
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x140053ca0
cmp byte [rsp + 0x5c], 0
je 0x140053d9e
lea rcx, [rbx + 8]
mov r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
call fcn.1401121b8
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov rcx, rsi
call fcn.1401121b8
cmp byte [rsp + 0x5c], 0
jne 0x140053dc0
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140053db4
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rbx], 0xffffffffffffffff
mov rcx, rbx
call fcn.1401120d4
xor eax, eax
jmp 0x140053dc3
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140102a00
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006c930
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x140
lea rcx, [rsp + 0x30]
call fcn.140104310
lea rbp, [0x14017f5f4]
mov qword [rsp + 0x28], rbx
mov r9, rdi
mov qword [rsp + 0x20], rbp
lea r8, [0x14017f5f8]
mov ecx, 0x104
lea rdx, [rsp + 0x170]
call fcn.14006cb80
mov ecx, 0x110
call fcn.1401120e8
mov rbx, rax
test rax, rax
je 0x14006c9bb
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.140104310
test rbx, rbx
je 0x14006cb10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14006cae7
nop dword [rax]
nop dword [rax + rax]
lea rax, [rsp + 0x5c]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14017f5f8]
lea rdx, [rsp + 0x170]
mov qword [rsp + 0x20], rbp
mov ecx, 0x104
call fcn.14006cb80
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14006ca92
bt eax, 0xa
jae 0x14006ca92
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14006ca80
bt eax, 0xa
jae 0x14006ca80
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14006ca73
test al, 0x10
je 0x14006ca73
lea rcx, [rsp + 0x170]
call fcn.14012fc74
jmp 0x14006ca80
lea rcx, [rsp + 0x170]
call fcn.140114a3c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x140
call fcn.140104310
cmp byte [rsp + 0x5c], 0
jne 0x14006cab6
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x14006c9f0
cmp byte [rsp + 0x5c], 0
je 0x14006caee
lea rcx, [rbx + 8]
mov r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
call fcn.1401121b8
mov r9, 0xffffffffffffffff
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov rcx, rsi
call fcn.1401121b8
cmp byte [rsp + 0x5c], 0
jne 0x14006cb10
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14006cb04
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov qword [rbx], 0xffffffffffffffff
mov rcx, rbx
call fcn.1401120d4
xor eax, eax
jmp 0x14006cb13
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140102a00
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret