joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ffa0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x280
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
test rdx, rdx
mov rbp, rdx
mov r12, rcx
je 0x18001ffe7
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
jmp 0x18001ffe9
mov ebx, esi
lea edi, [rbx + rbx + 0x212]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov r14, rax
je 0x1800201e0
cmp ebx, 0xff
mov qword [rsp + 0x2c0], r13
mov r13, rax
jb 0x180020075
lea rcx, [0x1800dd710]
mov r8, rbp
mov edi, esi
mov rdx, rcx
sub r8, rcx
nop
nop
movzx eax, word [rdx]
cmp word [r8 + rdx], ax
jne 0x180020058
add edi, 1
add rdx, 2
cmp edi, 4
jb 0x180020040
jmp 0x180020075
mov rdx, r14
sub rdx, rcx
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x180020060
lea r13, [r14 + 8]
mov eax, ebx
mov rdx, rbp
mov rcx, r13
lea rdi, [rax + rax]
mov r8, rdi
call fcn.180086b10
test ebx, ebx
je 0x180020099
lea eax, [rbx - 1]
cmp word [r13 + rax*2], 0x5c
je 0x1800200a3
mov word [rdi + r13], 0x5c
add ebx, 1
mov eax, ebx
lea rcx, [0x1800dd708]
lea rdx, [rax + rax]
lea rdi, [r13 + rax*2]
sub rdx, rcx
add rdx, r13
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdx + rcx - 2], ax
jne 0x1800200c0
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], esi
call fcn.180086e90
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1800201c4
lea rax, [rsp + 0x4c]
sub rdi, rax
nop
nop
lea rcx, [rsp + 0x4c]
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rdi + rcx - 2], ax
jne 0x180020120
mov eax, dword [rsp + 0x20]
test eax, 0x10400
jne 0x180020197
test al, 0x10
je 0x18002017e
cmp word [rsp + 0x4c], 0x2e
jne 0x180020158
movzx eax, word [rsp + 0x4e]
test ax, ax
je 0x180020197
cmp ax, 0x2e
je 0x180020197
mov rax, qword [r12]
lea r8, [rsp + 0x20]
mov rdx, r13
mov rcx, r12
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test al, al
je 0x180020197
mov rax, qword [r12]
mov rdx, r13
mov rcx, r12
call qword [rax]
add esi, eax
jmp 0x180020197
mov rax, qword [r12]
lea r8, [rsp + 0x20]
mov rdx, r13
mov rcx, r12
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x180020197
add esi, 1
mov rax, qword [r12]
mov rcx, r12
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test al, al
jne 0x1800201bb
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180020110
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r13, qword [rsp + 0x2c0]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180086e60
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x280
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180020600
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
test rdx, rdx
mov r13d, r9d
mov r15, r8
mov r12, rdx
je 0x180020629
test r8, r8
je 0x180020629
xor edi, edi
jmp 0x18002062e
mov edi, 0x80070057
lea eax, [r9 + 8]
mov r14d, 0x10000
cmp eax, r14d
cmovb r14d, eax
test edi, edi
js 0x1800207ad
cmp qword [rcx + 8], 0
jne 0x180020661
mov eax, 0x80070005
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x180020694
mov edi, 0x8007000e
jmp 0x180020777
mov qword [rsp + 0x40], rsi
xor esi, esi
nop
nop
cmp esi, r13d
jae 0x180020772
mov eax, r13d
lea ebx, [r14 - 8]
mov edx, esi
sub eax, esi
mov rcx, rbp
cmp eax, ebx
cmovb ebx, eax
add rdx, r15
mov r8d, ebx
mov dword [rsp + 0x98], ebx
call fcn.180086b10
xor r8d, r8d
lea rax, [rsp + 0x98]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
add ebx, esi
mov qword [rsp + 0x20], rbp
cmp ebx, r13d
sete r8b
xor r9d, r9d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x180020723
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, eax
jle 0x180020763
movzx edi, ax
or edi, 0x80070000
jmp 0x180020763
mov rax, qword [r12]
mov r8d, dword [rsp + 0x98]
lea r9, [rsp + 0x88]
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x88], 0
call qword [rax + 0x20]
test eax, eax
mov edi, eax
js 0x180020772
mov ecx, dword [rsp + 0x98]
cmp dword [rsp + 0x88], ecx
jne 0x18002076d
mov esi, ebx
test edi, edi
jns 0x1800206a0
jmp 0x180020772
mov edi, 0x8000ffff
mov rsi, qword [rsp + 0x40]
test rbp, rbp
mov rbx, qword [rsp + 0x90]
je 0x180020798
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180020b10
Capabilities:
Encrypt data using des via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor r12d, r12d
mov ebx, 0x80070005
mov rbp, rdx
cmp qword [rcx], r12
mov rdi, rcx
mov qword [rsp + 0x60], r12
cmovne ebx, r12d
test ebx, ebx
js 0x180020b4b
mov eax, 0x80070057
test rdx, rdx
cmove ebx, eax
lea rsi, [rcx + 8]
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x180020b61
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rsi], r12
test ebx, ebx
js 0x180020c56
mov rcx, qword [rdi]
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8004
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x180020ba0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180020ba0
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180020c56
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
lea rdx, [rsp + 0x50]
lea r8d, [r9 + 4]
mov dword [rsp + 0x50], 0x420042
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180020be0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180020be0
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180020c56
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
lea r8d, [rax + rax]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180020c1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180020c1b
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x180020c56
mov r8, qword [rsp + 0x60]
mov rcx, qword [rdi]
mov r9d, 0xc00000
mov edx, 0x6603
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x180020c56
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180020c56
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180020c66
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x180021ce0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, r9d
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call fcn.180021bf0
test ebx, ebx
je 0x180021dc7
mov r8d, dword [rdi + 0x1af80]
xor ebx, ebx
lea eax, [r8 + 3]
cmp eax, dword [rdi + 0x1af84]
jb 0x180021d37
mov rdx, qword [rdi + 0x1af78]
mov rcx, qword [rdi]
call fcn.18001ef80
mov dword [rdi + 0x1af80], ebx
mov ecx, dword [rdi + 0x1af80]
mov rax, qword [rdi + 0x1af78]
mov byte [rcx + rax], sil
add dword [rdi + 0x1af80], 1
mov edx, dword [rdi + 0x1af80]
mov rax, qword [rdi + 0x1af78]
movzx ecx, si
shr cx, 8
mov byte [rdx + rax], cl
add dword [rdi + 0x1af80], 1
mov edx, dword [rdi + 0x1af80]
mov rax, qword [rdi + 0x1af78]
movzx ecx, sil
not cl
mov byte [rdx + rax], cl
add dword [rdi + 0x1af80], 1
mov edx, dword [rdi + 0x1af80]
mov rax, qword [rdi + 0x1af78]
movzx ecx, si
not cx
shr cx, 8
mov byte [rdx + rax], cl
add dword [rdi + 0x1af80], 1
mov r8d, dword [rdi + 0x1af80]
mov rdx, qword [rdi + 0x1af78]
mov rcx, qword [rdi]
call fcn.18001ef80
mov dword [rdi + 0x1af80], ebx
mov rcx, qword [rdi]
mov r8d, esi
mov rdx, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.18001ef80

Function at 0x180021f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov edx, 0x8074b50
mov rcx, rdi
call fcn.18001eea0
mov edx, 0x807
mov rcx, rdi
call fcn.18001eea0
mov edx, dword [rbx + 8]
mov rcx, rdi
call fcn.18001eea0
movzx edx, word [rbx + 0xa]
mov rcx, rdi
call fcn.18001eea0
mov edx, dword [rbx + 0xc]
mov rcx, rdi
call fcn.18001eea0
movzx edx, word [rbx + 0xe]
mov rcx, rdi
call fcn.18001eea0
mov edx, dword [rbx + 0x10]
mov rcx, rdi
call fcn.18001eea0
movzx edx, word [rbx + 0x12]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18001eea0

Function at 0x180021fd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, dword [rcx + 4]
mov rbx, rcx
mov rcx, rdi
call fcn.18001eea0
movzx edx, word [rbx + 6]
mov rcx, rdi
call fcn.18001eea0
mov edx, dword [rbx + 8]
mov rcx, rdi
call fcn.18001eea0
movzx edx, word [rbx + 0xa]
mov rcx, rdi
call fcn.18001eea0
mov edx, dword [rbx + 0xc]
mov rcx, rdi
call fcn.18001eea0
movzx edx, word [rbx + 0xe]
mov rcx, rdi
call fcn.18001eea0
mov edx, dword [rbx + 0x10]
mov rcx, rdi
call fcn.18001eea0
movzx edx, word [rbx + 0x12]
mov rcx, rdi
call fcn.18001eea0
mov edx, dword [rbx + 0x14]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18001eea0
Function at 0x180022060
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
bt dword [rdx], 0x1f
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
jae 0x1800220d2
mov edx, 0x8b1f
call fcn.18001eea0
mov edx, 0x808
mov rcx, rbx
call fcn.18001eea0
mov edx, dword [rdi + 4]
mov rcx, rbx
call fcn.18001eea0
movzx edx, word [rdi + 6]
mov rcx, rbx
call fcn.18001eea0
mov edx, 0xb02
mov rcx, rbx
call fcn.18001eea0
mov r8d, dword [rdi + 0x14]
lea rdx, [rdi + 0x40]
add r8d, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18001ef80
mov edx, 0x4034b50
call fcn.18001eea0
mov edx, 0x403
mov rcx, rbx
call fcn.18001eea0
mov edx, SafeArrayGetElement
mov rcx, rbx
call fcn.18001eea0
movzx edx, word [rdi + 0x24]
mov rcx, rbx
call fcn.18001eea0
movzx edx, word [rdi + 2]
mov rcx, rbx
call fcn.18001eea0
mov rdx, rbx
mov rcx, rdi
call fcn.180021fd0
mov edx, dword [rdi + 0x18]
mov rcx, rbx
call fcn.18001eea0
mov r8d, dword [rdi + 0x14]
lea rdx, [rdi + 0x40]
mov rcx, rbx
call fcn.18001ef80
mov r8d, dword [rdi + 0x18]
test r8d, r8d
je 0x180022149
mov rdx, qword [rdi + 0x30]
mov rcx, rbx
call fcn.18001ef80
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180022c50
Capabilities:
Delete file

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov r13d, r9d
mov rbp, r8
mov rdi, rdx
mov r12, rcx
test rdx, rdx
je 0x180022c8c
test r8, r8
je 0x180022c8c
xor ebx, ebx
jmp 0x180022c91
mov ebx, 0x80070057
xor ecx, ecx
mov qword [rsp + 0x58], rcx
xor sil, sil
test ebx, ebx
js 0x180022d14
cmp qword [r12 + 8], 0
jne 0x180022cae
mov ebx, 0x80070005
jmp 0x180022d14
lea r8, [rsp + 0x58]
mov edx, 0x1011
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileW]
mov ebx, eax
test eax, eax
js 0x180022cdf
mov sil, 1
mov r9d, r13d
mov r8, rbp
mov rdx, qword [rsp + 0x58]
mov rcx, r12
call fcn.180020600
mov ebx, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180022cfd
mov qword [rsp + 0x58], 0
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x58]
test ebx, ebx
jns 0x180022d14
test sil, sil
je 0x180022d14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180022d23
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
jmp 0x180022d25
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x180024380
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x18010e350]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx ebx, r9b
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x40], rcx
mov dword [rcx], r8d
xor r14d, r14d
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
add rcx, 0x18
call fcn.180020c80
nop
test rsi, rsi
je 0x1800245c6
cmp word [rsi], r14w
je 0x1800245c6
test bl, bl
je 0x18002443d
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.180024150
lea rdx, [0x1800d7530]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
cmovne rdx, rbx
mov rcx, r12
call fcn.180021070
test rbx, rbx
je 0x1800245c6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800245c6
mov word [rsp + 0x50], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.180086e90
mov rdi, r14
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800244e8
mov rdi, qword [rsp + 0x38]
mov dword [rsp + 0x30], 0x206
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.ProductId
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800244e8
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1800244d4
cmp eax, 2
jne 0x1800244e8
movzx eax, word [rsp + 0x50]
cmp dword [rsp + 0x30], 0
cmove ax, r14w
mov word [rsp + 0x50], ax
mov rbx, r14
mov ebp, r14d
cmp word [rsi], bx
je 0x18002458f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r13d, eax
lea ebx, [r13 + r13 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18002458f
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r11d, eax
mov rcx, r14
test r13d, r13d
je 0x180024583
mov r9, rbx
sub r9, rsi
mov r8, r13
cmp ebp, r11d
jb 0x18002454e
mov ebp, r14d
mov rcx, r14
movzx eax, word [rsi]
movzx edx, word [rsp + rcx*2 + 0x50]
cmp ax, dx
je 0x18002455e
xor ax, dx
test ax, ax
je 0x180024569
cmp ax, 0x5c
jne 0x18002456d
mov ax, 0x2a
mov word [r9 + rsi], ax
add ebp, 1
add rcx, 1
add rsi, 2
sub r8, 1
jne 0x180024543
mov word [rbx + r13*2], 0
mov rdx, rbx
jmp 0x180024596
lea rdx, [0x1800d7530]
mov rcx, r12
call fcn.180021070
test rbx, rbx
je 0x1800245b7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x1800245c6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, r12
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180086e60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180025670
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800256c3
mov rcx, qword [rbx]
and eax, 0xfffffffe
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800256c3
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1800256b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1800256e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180026260
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
xor esi, esi
mov rcx, rdx
mov rdi, r8
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, 0xffffffffffffffff
lea r10d, [rax + 0x106]
mov eax, 2
mul r10
cmovo rax, rcx
mov rcx, rax
call fcn.1800605e0
test rdi, rdi
mov rbp, rsi
mov rbx, rax
jne 0x1800262bf
lea esi, [rbp + 9]
jmp 0x18002641c
test rax, rax
jne 0x1800262d2
mov eax, 2
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x180026304
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbp, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbx + rcx*2 - 2], 0x5c
je 0x180026321
mov word [rbx + rcx*2], 0x5c
add eax, 1
cdqe
lea rdx, [0x1800dd2d0]
lea rax, [rbx + rax*2]
mov rcx, rax
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
test rax, rax
mov qword [rsp + 0x20], rax
je 0x18002641c
test esi, esi
jne 0x180026411
mov rcx, qword [rsp + 0x28]
lea rdx, [rdi + 0x2c]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test byte [rdi], 0x10
je 0x1800263be
cmp word [rdi + 0x2c], 0x2e
jne 0x180026388
movzx eax, word [rdi + 0x2e]
test ax, ax
je 0x1800263f6
cmp ax, 0x2e
je 0x1800263f6
mov esi, dword [rsp + 0x78]
test esi, esi
je 0x1800263f6
test rbp, rbp
je 0x1800263a1
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x60]
lea r9d, [rsi - 1]
mov r8, rdi
mov rdx, rbx
call fcn.180026260
mov esi, eax
mov qword [rsp + 0x70], rsi
jmp 0x1800263fb
test rbp, rbp
je 0x1800263d4
lea rcx, [rdi + 0x2c]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x1800263f6
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov rcx, qword [rsp + 0x60]
mov r8, rbx
mov rdx, rax
call fcn.180025550
mov esi, eax
mov qword [rsp + 0x70], rsi
jmp 0x1800263fb
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180026356
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindClose]
test rbx, rbx
je 0x180026429
mov rcx, rbx
call fcn.180088170
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180026440
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
xor edi, edi
mov rcx, rdx
mov rbp, r8
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [rax + 0x106]
call fcn.1800605e0
test rbp, rbp
mov rsi, rdi
mov rbx, rax
jne 0x180026488
lea edi, [rsi + 9]
jmp 0x1800265e3
test rax, rax
jne 0x18002649b
mov eax, 2
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x1800264cd
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rcx, eax
cmp byte [rcx + rbx - 1], 0x5c
je 0x1800264e7
mov byte [rcx + rbx], 0x5c
add eax, 1
cdqe
lea rdx, [0x1800dcd74]
add rax, rbx
mov rcx, rax
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
test rax, rax
mov qword [rsp + 0x20], rax
je 0x1800265e3
nop
nop
test edi, edi
jne 0x1800265d8
mov rcx, qword [rsp + 0x28]
lea rdx, [rbp + 0x2c]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [rbp], 0x10
je 0x180026585
cmp byte [rbp + 0x2c], 0x2e
jne 0x18002654f
movzx eax, byte [rbp + 0x2d]
test al, al
je 0x1800265bd
cmp al, 0x2e
je 0x1800265bd
mov edi, dword [rsp + 0x78]
test edi, edi
je 0x1800265bd
test rsi, rsi
je 0x180026568
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov rcx, qword [rsp + 0x60]
lea r9d, [rdi - 1]
mov r8, rbp
mov rdx, rbx
call fcn.180026440
mov edi, eax
mov qword [rsp + 0x70], rdi
jmp 0x1800265c2
test rsi, rsi
je 0x18002659b
lea rcx, [rbp + 0x2c]
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
test eax, eax
je 0x1800265bd
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov rcx, qword [rsp + 0x60]
mov r8, rbx
mov rdx, rax
call fcn.180025530
mov edi, eax
mov qword [rsp + 0x70], rdi
jmp 0x1800265c2
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180026520
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindClose]
test rbx, rbx
je 0x1800265f0
mov rcx, rbx
call fcn.180088170
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800553d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
test rcx, rcx
mov rax, rdx
mov rdi, rcx
je 0x1800553f3
test rdx, rdx
mov ebx, esi
jne 0x1800553f8
mov ebx, 0x80070057
test ebx, ebx
mov qword [rsp + 0x60], rsi
js 0x1800554ab
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x180055449
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x180055449
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x18005549b
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
mov ebx, eax
js 0x18005549b
mov r8d, dword [rdi + 0x18]
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18005549b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ebx, eax
jle 0x18005549b
movzx ebx, ax
or ebx, 0x80070000
cmp qword [rsp + 0x60], rsi
je 0x1800554ab
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x180055a10
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rcx + 0xf48], 0
mov rcx, qword [rcx + 0xf60]
test rcx, rcx
mov edi, edx
je 0x180055a38
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xf50]
test rcx, rcx
je 0x180055a77
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180055a5f
mov rcx, qword [rbx + 0xf50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0xf50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xf50], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret