joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801bd0e0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
xor ebp, ebp
cmp dword [rcx + 0x24], 0xcc
mov rbx, rcx
je 0x1801bcffe
mov rax, qword [rcx + 0x200]
call qword [rax]
mov dword [rbx + 0x98], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x200]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp byte [rax + 0x10], bpl
je 0x1801bd0ad
nop dword [rax]
mov eax, dword [rbx + 0x98]
cmp eax, dword [rbx + 0x78]
jae 0x1801bd07d
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1801bd04f
mov dword [rcx + 8], eax
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x78]
mov dword [rcx + 0xc], eax
mov rax, qword [rbx + 0x10]
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x208]
mov edi, dword [rbx + 0x98]
lea r8, [rbx + 0x98]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x98]
cmp eax, edi
je 0x1801bd0d5
cmp eax, dword [rbx + 0x78]
jb 0x1801bd030
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx + 0x200]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x98], ebp
mov rax, qword [rbx + 0x200]
cmp byte [rax + 0x10], bpl
jne 0x1801bd020
cmp byte [rbx + 0x59], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
xor al, al
jmp 0x1801bd0c0
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x24], 0xca
mov rbx, rcx
jne 0x1801bd145
mov rax, qword [rcx + 8]
mov edx, 1
lea r8d, [rdx + 0x2f]
call qword [rax]
lea rcx, [0x1801b6310]
mov qword [rbx + 0x200], rax
mov qword [rax], rcx
lea rcx, [0x1801b62e0]
mov qword [rax + 8], rcx
mov rcx, rbx
mov byte [rax + 0x10], 0
call fcn.1801b6480
cmp byte [rbx + 0x58], 0
je 0x1801bd13e
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
mov eax, dword [rbx + 0x24]
cmp eax, 0xcb
jne 0x1801bd1d5
mov rax, qword [rbx + 0x220]
cmp byte [rax + 0x20], 0
je 0x1801bd1bc
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1801bd16e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x220]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x1801bd1b4
cmp eax, 2
je 0x1801bd1bc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1801bd160
dec eax
test eax, 0xfffffffd
jne 0x1801bd160
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x1801bd160
mov ecx, dword [rbx + 0x184]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x1801bd160
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp 0x1801bcfd0
cmp eax, 0xcc
je 0x1801bd1f7
mov rax, qword [rbx]
mov dword [rax + 0x28], SafeArrayGetElement
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x1801bcfd0
Function at 0x1801cf300
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x80
mov qword [rax - 0x28], r12
mov qword [rax - 0x30], r13
mov r13, rcx
mov rcx, qword [rcx + 0x18]
mov r9, rdx
lea rdx, [rax + 0x20]
add rcx, 8
mov qword [rax - 0x40], r15
call fcn.1801cf780
mov edi, dword [rsp + 0xa8]
mov r15d, 1
xor r12d, r12d
cmp dword [r13 + 0x28], r15d
jle 0x1801cf4b4
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rsi
lea eax, [r8 - 1]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], r12
movaps xmmword [rsp + 0x30], xmm6
movd xmm6, eax
mov ebp, reloc.OLEAUT32.dll_SafeArrayGetDim
cvtdq2pd xmm6, xmm6
mov rbx, qword [r13 + 0x18]
movaps xmm0, xmm6
mulsd xmm0, qword [rbx + rbp]
call fcn.180019c80
lea rcx, [rbp + 8]
lea rdx, [rsp + 0xa8]
mov esi, eax
add rcx, rbx
sub esi, r12d
call fcn.1801cf780
mov ecx, dword [rsp + 0xa8]
xor r14d, r14d
test esi, esi
jle 0x1801cf480
mov r13, qword [rsp + 0x98]
mov r11d, ecx
mov ebx, ecx
mov rcx, qword [rsp + 0x20]
shr r11d, 8
and ebx, 0xff00ff
and r11d, 0xff00ff
add r12d, esi
nop word [rax + rax]
mov eax, r14d
mov r10d, edi
mov r9d, r11d
shl eax, 8
shr r10d, 8
inc r14d
cdq
and r10d, 0xff00ff
inc rcx
sub r9d, r10d
idiv esi
mov edx, edi
and edx, 0xff00ff
imul r9d, eax
mov r8d, eax
mov eax, r10d
shl eax, 8
and r9d, 0xffffff00
add r9d, eax
mov eax, ebx
sub eax, edx
imul eax, r8d
shr eax, 8
add eax, edx
xor r9d, eax
mov eax, r11d
sub eax, r10d
shl r10d, 8
and r9d, 0xff00ff
imul eax, r8d
and eax, 0xffffff00
add eax, r10d
xor r9d, eax
mov dword [r13 + rcx*4 - 4], r9d
cmp r14d, esi
jl 0x1801cf3f0
mov r13, qword [rsp + 0x90]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0xa8]
inc r15d
add rbp, 0x10
mov edi, ecx
cmp r15d, dword [r13 + 0x28]
jl 0x1801cf383
mov r9, qword [rsp + 0x98]
movaps xmm6, xmmword [rsp + 0x30]
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
movsxd rcx, dword [rsp + 0xa0]
mov r15, qword [rsp + 0x48]
mov r13, qword [rsp + 0x58]
movsxd rax, r12d
mov r12, qword [rsp + 0x60]
cmp rax, rcx
jge 0x1801cf4e1
lea rdx, [r9 + rax*4]
sub rcx, rax
mov eax, edi
mov rdi, rdx
rep stosd dword [rdi], eax
add rsp, 0x80
pop rdi
ret
Function at 0x1801d3ea0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x30], 0xfffffffffffffffe
movaps xmmword [rsp + 0x60], xmm6
movaps xmm6, xmm1
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1801d3ec1
xor eax, eax
jmp 0x1801d3ec4
mov eax, dword [rcx + 0x18]
test rcx, rcx
jne 0x1801d3ecd
xor edx, edx
jmp 0x1801d3ed0
mov edx, dword [rcx + 0x14]
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], 0
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [rax + 0x20]
nop
mov ecx, dword [rsp + 0x40]
dec ecx
je 0x1801d403e
dec ecx
je 0x1801d3f8b
dec ecx
jne 0x1801d403e
xor r9d, r9d
mov r10d, dword [rsp + 0x50]
test r10d, r10d
jle 0x1801d403e
mov r8d, dword [rsp + 0x4c]
nop dword [rax]
mov eax, dword [rsp + 0x44]
imul eax, r9d
movsxd rcx, eax
add rcx, qword [rsp + 0x38]
xor edx, edx
test r8d, r8d
jle 0x1801d3f7e
nop word [rax + rax]
movzx eax, byte [rcx]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm6
cvttss2si rax, xmm0
mov byte [rcx], al
movsxd rax, dword [rsp + 0x48]
add rcx, rax
inc edx
mov r8d, dword [rsp + 0x4c]
cmp edx, r8d
jl 0x1801d3f50
mov r10d, dword [rsp + 0x50]
inc r9d
cmp r9d, r10d
jl 0x1801d3f30
jmp 0x1801d403e
xor r10d, r10d
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jle 0x1801d403e
movss xmm1, dword [0x180393978]
mov edx, dword [rsp + 0x4c]
nop word [rax + rax]
mov eax, dword [rsp + 0x44]
imul eax, r10d
movsxd r8, eax
add r8, qword [rsp + 0x38]
xor r11d, r11d
test edx, edx
jle 0x1801d4032
movaps xmm0, xmm6
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov r9d, 1
sub r9d, eax
nop dword [rax + rax]
mov ecx, dword [r8]
mov edx, ecx
and edx, 0xff00ff
imul edx, r9d
shr edx, 8
mov eax, ecx
shr eax, 8
and eax, 0xffff00ff
imul eax, r9d
xor edx, eax
and edx, 0xff00ff
shr ecx, 8
and ecx, 0xff00ff
imul ecx, r9d
xor edx, ecx
mov dword [r8], edx
movsxd rax, dword [rsp + 0x48]
add r8, rax
inc r11d
mov edx, dword [rsp + 0x4c]
cmp r11d, edx
jl 0x1801d3fe0
mov ecx, dword [rsp + 0x50]
inc r10d
cmp r10d, ecx
jl 0x1801d3fb0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1801d4052
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x1801db8b0
Capabilities:
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x90], ebx
lea r14, [rcx + 0x48]
mov qword [rsp + 0x38], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rdi + 0xb0]
call fcn.1800bed20
cmp byte [rdi + 0xfa], bl
jne 0x1801db9b7
lea rcx, [0x1802bccc0]
mov qword [rsp + 0x28], rcx
mov ebx, 1
mov dword [rsp + 0x90], ebx
mov rax, qword [rdi + 0xd0]
cmp rax, rcx
je 0x1801db9b7
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xa0]
call fcn.180019ca0
test eax, eax
je 0x1801db9b7
lea rdx, [rdi + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1801db971
cmp eax, 0xffffffff
jne 0x1801db9b7
lea rdx, [rsp + 0x20]
lea rcx, [rdi + 0xd0]
call fcn.1800e6c30
nop
mov dword [rsp + 0x90], 3
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.1800e5d60
mov ebx, 7
mov dword [rsp + 0x90], ebx
mov rax, qword [rax]
cmp byte [rax], 0
jne 0x1801db9b7
xor bpl, bpl
jmp 0x1801db9ba
mov bpl, 1
or esi, 0xffffffff
lea r15, [0x1802bccb0]
test bl, 4
je 0x1801db9fc
and ebx, 0xfffffffb
mov dword [rsp + 0x90], ebx
mov rcx, qword [rsp + 0xa8]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x1801db9fc
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jne 0x1801db9f5
call fcn.1800a0c6c
mov ebx, dword [rsp + 0x90]
test bl, 2
je 0x1801dba32
and ebx, 0xfffffffd
mov dword [rsp + 0x90], ebx
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x1801dba32
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801dba2b
call fcn.1800a0c6c
mov ebx, dword [rsp + 0x90]
test bl, 1
je 0x1801dba56
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
cmp rcx, r15
je 0x1801dba56
lock xadd dword [rcx], esi
lea eax, [rsi - 1]
cmp eax, 0xffffffff
jne 0x1801dba56
call fcn.1800a0c6c
test bpl, bpl
je 0x1801dba5f
xor bl, bl
jmp 0x1801dba7a
mov rcx, rdi
cmp dword [rdi + 0x100], 2
jne 0x1801dba72
call fcn.1801db4e0
jmp 0x1801dba77
call fcn.1801db1f0
movzx ebx, al
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, bl
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801ed2b0
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 0
lea r12, [rcx + 0x1bb]
mov qword [rax - 0x78], r12
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor edi, edi
mov eax, dword [rbp + 0x150]
lea rsi, [0x1802bccb0]
or ebx, 0xffffffff
test eax, eax
jle 0x1801ed440
nop word [rax + rax]
sub eax, edi
lea r8d, [rax - 1]
lea rdx, [rsp + 0xc0]
lea rcx, [rbp + 0x140]
call fcn.180088eb0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xc0]
call fcn.1800e6bb0
mov rcx, qword [r15]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rax]
cmp rdx, rcx
jne 0x1801ed361
xor eax, eax
jmp 0x1801ed37a
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.18001b990
test eax, eax
sete sil
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x1801ed3a7
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801ed3a7
call fcn.1800a0c6c
test sil, sil
je 0x1801ed3d8
mov rax, qword [rsp + 0xc0]
cmp byte [rax], 0
je 0x1801ed3e0
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x48]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1801ed413
mov rax, qword [rsp + 0xc0]
lea rcx, [rax - 0x10]
lea rsi, [0x1802bccb0]
cmp rcx, rsi
je 0x1801ed402
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801ed402
call fcn.1800a0c6c
inc edi
mov eax, dword [rbp + 0x150]
cmp edi, eax
jge 0x1801ed440
jmp 0x1801ed320
mov rax, qword [rsp + 0xc0]
mov qword [r14], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rax, qword [r15]
mov qword [rsp + 0x50], rax
lea rcx, [rax - 0x10]
lea rax, [0x1802bccb0]
cmp rcx, rax
jmp 0x1801ed481
mov rax, qword [0x180416ef0]
mov qword [r14], rax
mov rax, qword [0x180416ef0]
mov qword [rsp + 0x60], rax
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x1801ed468
mov eax, 1
lock xadd dword [rcx], eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rax, qword [r15]
mov qword [rsp + 0x70], rax
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x1801ed494
lock xadd dword [rcx], ebx
lea eax, [rbx - 1]
cmp eax, 0xffffffff
jne 0x1801ed494
call fcn.1800a0c6c
mov rax, r14
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801edf20
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r14, rdx
mov rdi, rcx
lea rcx, [rsp + 0x60]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 1
test al, 0x10
je 0x1801edf64
cmp eax, 0xffffffff
je 0x1801edf64
mov eax, ecx
jmp 0x1801edf66
xor eax, eax
mov byte [rdi + 0x1b9], al
mov rax, qword [r14]
mov qword [rsp + 0x70], rax
add rax, 0xfffffffffffffff0
lea r15, [0x1802bccb0]
cmp rax, r15
je 0x1801edf88
lock xadd dword [rax], ecx
mov rax, qword [r14]
mov qword [rsp + 0x78], rax
xchg qword [rdi + 0x198], rax
lea rcx, [rax - 0x10]
or esi, 0xffffffff
cmp rcx, r15
je 0x1801edfb4
mov eax, esi
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jne 0x1801edfb4
call fcn.1800a0c6c
cmp byte [rdi + 0x1b9], 0
jne 0x1801edffb
lea rcx, [rdi + 0x158]
call fcn.180224450
lea rbx, [rdi + 0x140]
mov rcx, rbx
call fcn.18000a800
cmp dword [rbx + 8], 0
je 0x1801edff4
mov rcx, qword [rbx]
call fcn.1800a09c8
mov qword [rbx], 0
mov dword [rbx + 8], 0
mov dword [rbx + 0x10], 0
movzx ebx, byte [rdi + 0x1b9]
mov rax, qword [r14]
mov qword [rsp + 0x28], rax
lea rcx, [rax - 0x10]
cmp rcx, r15
je 0x1801ee024
lock xadd dword [rcx], esi
lea edx, [rsi - 1]
cmp edx, 0xffffffff
jne 0x1801ee024
call fcn.1800a0c6c
movzx eax, bl
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801f48f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rbx, rdx
mov rsi, rcx
call fcn.1801f4f90
mov rax, qword [rbx]
lea rbp, [0x1802bccb0]
lea rcx, [rax - 0x10]
mov qword [rsp + 0x98], rax
cmp rcx, rbp
je 0x1801f4928
mov eax, 1
lock xadd dword [rcx], eax
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
xchg qword [rsi], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x1801f494f
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801f494f
call fcn.1800a0c6c
mov eax, dword [rbx + 0x3c]
lea rdi, [rbx + 8]
lea rdx, [rsp + 0x80]
mov rcx, rdi
xor r8d, r8d
mov dword [rsi + 0x3c], eax
call fcn.18004d860
xor ebx, ebx
mov rcx, qword [rax]
mov eax, ebx
test rcx, rcx
je 0x1801f497b
mov eax, dword [rcx + 0x14]
mov rcx, qword [rsp + 0x80]
mov dword [rsi + 0x48], eax
mov dword [rsi + 0x40], eax
test rcx, rcx
je 0x1801f499e
lock dec dword [rcx + 8]
jne 0x1801f499e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, rdi
call fcn.18004d860
mov rcx, qword [rax]
mov eax, ebx
test rcx, rcx
je 0x1801f49be
mov eax, dword [rcx + 0x18]
mov rcx, qword [rsp + 0x88]
mov dword [rsi + 0x4c], eax
mov dword [rsi + 0x44], eax
test rcx, rcx
je 0x1801f49e1
lock dec dword [rcx + 8]
jne 0x1801f49e1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rsi]
mov qword [rsp + 0x90], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x1801f49fe
mov eax, 1
lock xadd dword [rcx], eax
mov eax, dword [rsi + 0x44]
mov r9d, dword [rsi + 0x40]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x20], eax
call fcn.180226700
lea rcx, [rsi + 8]
mov rdx, rax
call fcn.18008a220
cmp dword [rsp + 0x48], ebx
jle 0x1801f4a5a
mov rdi, rbx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + rdi]
test rcx, rcx
je 0x1801f4a4e
lock dec dword [rcx + 8]
jne 0x1801f4a4e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x48]
jl 0x1801f4a30
mov rcx, qword [rsp + 0x38]
call fcn.1800a09c8
lea rcx, [rsi + 0x20]
lea rdx, [rsi + 8]
call fcn.18008a130
mov byte [rsi + 0x90], 0
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1801f7960
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r14
sub rsp, 0x28
mov rbx, qword [rdx]
lea rbp, [0x1802bccb0]
mov r14, rdx
lea rdi, [rbx - 0x10]
mov qword [rsp + 0x50], rbx
cmp rdi, rbp
je 0x1801f7997
mov eax, 1
lock xadd dword [rdi], eax
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1801f79ef
or ebx, 0xffffffff
cmp rdi, rbp
je 0x1801f79c1
mov eax, ebx
lock xadd dword [rdi], eax
dec eax
cmp eax, ebx
jne 0x1801f79c1
mov rcx, rdi
call fcn.1800a0c6c
mov rax, qword [r14]
mov qword [rsp + 0x58], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x1801f79e3
lock xadd dword [rcx], ebx
lea eax, [rbx - 1]
cmp eax, 0xffffffff
jne 0x1801f79e3
call fcn.1800a0c6c
xor al, al
add rsp, 0x28
pop r14
pop rdi
pop rbp
pop rbx
ret
mov edx, eax
mov qword [rsp + 0x20], rsi
or edx, 2
cmp edx, eax
je 0x1801f7a0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1801f7a0f
xor sil, sil
jmp 0x1801f7a12
mov sil, 1
or ebx, 0xffffffff
cmp rdi, rbp
je 0x1801f7a2e
mov eax, ebx
lock xadd dword [rdi], eax
dec eax
cmp eax, ebx
jne 0x1801f7a2e
mov rcx, rdi
call fcn.1800a0c6c
mov rax, qword [r14]
mov qword [rsp + 0x68], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x1801f7a50
lock xadd dword [rcx], ebx
lea edx, [rbx - 1]
cmp edx, 0xffffffff
jne 0x1801f7a50
call fcn.1800a0c6c
movzx eax, sil
mov rsi, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1801fa500
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xb0
mov qword [r11 - 0x80], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
movzx ebx, r8b
mov rdi, rdx
mov rax, qword [rdx]
cmp byte [rax], 0
je 0x1801fa6a3
lea rcx, [r11 + 0x20]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1801fa6a3
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rdi
call fcn.1800c4180
test bl, bl
je 0x1801fa5a2
mov rcx, rdi
call fcn.1800c3b60
test al, al
je 0x1801fa679
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
lea rcx, [rax - 0x10]
lea rsi, [0x1802bccb0]
cmp rcx, rsi
je 0x1801fa59b
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1801fa59b
call fcn.1800a0c6c
mov al, 1
jmp 0x1801fa73f
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800e5ae0
test al, al
jne 0x1801fa5f4
mov rcx, qword [rsp + 0x20]
call fcn.1800a09c8
nop
mov rax, qword [rdi]
mov qword [rsp + 0x58], rax
lea rcx, [rax - 0x10]
lea rsi, [0x1802bccb0]
cmp rcx, rsi
je 0x1801fa73d
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
jmp 0x1801fa733
mov rcx, rdi
call fcn.1800c3b60
test al, al
je 0x1801fa66e
mov r8d, 0x4000
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1800e3b70
nop
mov rax, qword [rsp + 0x80]
cmp byte [rax], 0
jne 0x1801fa663
mov r8, qword [rsp + 0x28]
test r8, r8
je 0x1801fa63e
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x60]
call qword [rax + 0x20]
nop
lea rcx, [rsp + 0x60]
call fcn.1800e3a90
nop
mov rcx, qword [rsp + 0x20]
call fcn.1800a09c8
nop
mov rcx, rdi
call fcn.180002fa0
mov al, 1
jmp 0x1801fa73f
lea rcx, [rsp + 0x60]
call fcn.1800e3a90
nop
mov rcx, qword [rsp + 0x20]
call fcn.1800a09c8
nop
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
lea rcx, [rax - 0x10]
lea rsi, [0x1802bccb0]
cmp rcx, rsi
je 0x1801fa73d
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
jmp 0x1801fa733
lea rdx, [rsp + 0xd0]
mov rcx, rdi
call fcn.1800e5f30
mov rcx, qword [rax]
cmp byte [rcx], 0
sete bpl
mov rcx, qword [rsp + 0xd0]
add rcx, 0xfffffffffffffff0
lea rsi, [0x1802bccb0]
or ebx, 0xffffffff
cmp rcx, rsi
je 0x1801fa6e9
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x1801fa6e9
call fcn.1800a0c6c
test bpl, bpl
je 0x1801fa71b
mov rcx, rdi
call fcn.1800c3b60
test al, al
je 0x1801fa71b
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x1801fa59b
lock xadd dword [rcx], ebx
lea eax, [rbx - 1]
jmp 0x1801fa591
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x1801fa73d
lock xadd dword [rcx], ebx
lea eax, [rbx - 1]
cmp eax, 0xffffffff
jne 0x1801fa73d
call fcn.1800a0c6c
xor al, al
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801fb4d0
Capabilities:
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rdx, [rsp + 0x58]
mov rcx, qword [rcx + 0xc0]
call fcn.180228d00
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800e7430
nop
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff0
lea rsi, [0x1802bccb0]
or edi, 0xffffffff
cmp rcx, rsi
je 0x1801fb52a
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x1801fb52a
call fcn.1800a0c6c
mov rax, qword [rsp + 0x50]
cmp byte [rax], 0
je 0x1801fb554
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.180016d90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1801fb554
mov bl, 1
jmp 0x1801fb556
xor bl, bl
mov rax, qword [rsp + 0x50]
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x1801fb575
lock xadd dword [rcx], edi
lea edx, [rdi - 1]
cmp edx, 0xffffffff
jne 0x1801fb575
call fcn.1800a0c6c
movzx eax, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret