joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008e010
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x40]
add rcx, 0xffffffffffff0000
call fcn.18008e340
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp rax, qword [rsp + 0x38]
jbe 0x18008e173
mov rax, qword [rsp + 0x30]
cmp rax, qword [0x1802a38b0]
jb 0x18008e092
mov rax, qword [rsp + 0x30]
cmp rax, qword [0x1802a38b8]
ja 0x18008e092
mov rax, qword [rsp + 0x30]
add rax, 0xfffffffff8000000
mov qword [rsp + 0x30], rax
jmp 0x18008e049
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x30
call sub.KERNEL32.dll_VirtualQuery
cmp rax, 0
jne 0x18008e0c8
jmp 0x18008e173
cmp dword [rsp + 0x70], 0x10000
jne 0x18008e158
cmp qword [rsp + 0x68], 0x10000
jb 0x18008e158
mov rcx, qword [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18008e120
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x18008e17c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18008e13e
mov qword [rsp + 0x48], 0
jmp 0x18008e17c
jmp 0x18008e143
mov rax, qword [rsp + 0x30]
add rax, 0xffffffffffff0000
mov qword [rsp + 0x30], rax
jmp 0x18008e16e
mov rcx, qword [rsp + 0x58]
add rcx, 0xffffffffffff0000
call fcn.18008e340
mov qword [rsp + 0x30], rax
jmp 0x18008e049
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18008fc60
mov rax, qword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x18008e1b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x38]
call fcn.18008e390
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp rax, qword [rsp + 0x40]
jae 0x18008e30a
mov rax, qword [rsp + 0x30]
cmp rax, qword [0x1802a38b0]
jb 0x18008e22b
mov rax, qword [rsp + 0x30]
cmp rax, qword [0x1802a38b8]
ja 0x18008e22b
mov rax, qword [rsp + 0x30]
add rax, 0x8000000
mov qword [rsp + 0x30], rax
jmp 0x18008e1e2
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x30
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x30
call sub.KERNEL32.dll_VirtualQuery
cmp rax, 0
jne 0x18008e261
jmp 0x18008e30a
cmp dword [rsp + 0x70], 0x10000
jne 0x18008e2f1
cmp qword [rsp + 0x68], 0x10000
jb 0x18008e2f1
mov rcx, qword [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x3000
mov r9d, 0x40
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18008e2b9
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
jmp 0x18008e313
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18008e2d7
mov qword [rsp + 0x48], 0
jmp 0x18008e313
jmp 0x18008e2dc
mov rax, qword [rsp + 0x30]
add rax, 0x10000
mov qword [rsp + 0x30], rax
jmp 0x18008e305
mov rcx, qword [rsp + 0x50]
add rcx, qword [rsp + 0x68]
call fcn.18008e390
mov qword [rsp + 0x30], rax
jmp 0x18008e1e2
mov qword [rsp + 0x48], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18008fc60
mov rax, qword [rsp + 0x20]
add rsp, 0x88
ret

Function at 0x18008e3e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
sub rsp, 0x30
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x52727464
je 0x18008e407
mov dword [rsp + 0x2c], 0
jmp 0x18008e4cb
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
add rax, 0x10000
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x20]
add rax, 0x60
mov qword [rsp + 8], rax
mov dword [rsp + 4], 0
cmp dword [rsp + 4], 0x2a9
jae 0x18008e4c3
mov rax, qword [rsp + 8]
movsxd rcx, dword [rsp + 4]
imul rcx, rcx, 0x60
add rax, rcx
cmp qword [rax + 0x48], 0
je 0x18008e4ae
mov rax, qword [rsp + 8]
movsxd rcx, dword [rsp + 4]
imul rcx, rcx, 0x60
add rax, rcx
mov rax, qword [rax + 0x48]
cmp rax, qword [rsp + 0x18]
jb 0x18008e4a1
mov rax, qword [rsp + 8]
movsxd rcx, dword [rsp + 4]
imul rcx, rcx, 0x60
add rax, rcx
mov rax, qword [rax + 0x48]
cmp rax, qword [rsp + 0x10]
jb 0x18008e4ae
mov dword [rsp + 0x2c], 0
jmp 0x18008e4cb
jmp 0x18008e4b3
mov eax, dword [rsp + 4]
add eax, 1
mov dword [rsp + 4], eax
jmp 0x18008e437
mov dword [rsp + 0x2c], 1
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
ret
Function at 0x1800905b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800905ee
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800905f3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18009063c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18009c120]
cmp byte [rcx + rax], 0
je 0x18009063c
dec r8
sub rdx, 1
jne 0x180090622
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140002724
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
call fcn.1400026bc
nop
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
inc rdx
lea rcx, [rsp + 0x28]
call fcn.140001da4
nop
lea rcx, [rsp + 0x28]
call fcn.140001aec
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.140001adc
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x28]
call fcn.140001adc
mov rdx, rax
mov rcx, rdi
call fcn.1400020b4
nop
lea rcx, [rsp + 0x28]
call fcn.140001af8
nop
lea rcx, [rsp + 0x48]
call fcn.140002254
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140008b58
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140059354], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008b7d
call fcn.140007710
call fcn.1400091b0
xor r9d, r9d
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14004d330]
mov eax, dword [r9 + rax]
mov dword [r9 + rcx], eax
add r9, 4
cmp r9, 0x20
jl 0x140008b85
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret
Function at 0x14000a858
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, qword [rbp + 0x190]
mov rax, r8
mov rdi, qword [rbp + 0x198]
mov r12, rdx
mov rsi, qword [rbp + 0x1a0]
mov r15, rcx
mov rdx, rax
lea rcx, [rbp + 0xb0]
mov r8d, 0x10
call fcn.14002b420
xor r14d, r14d
mov dword [rbp + 0xc0], 0x1000000
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0xb0]
mov qword [rsp + 0x30], r14
mov rdx, r12
mov qword [rsp + 0x28], r14
lea r9d, [r14 + 0x14]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14000a53c
lea r13d, [r14 + 0x20]
mov r8d, r13d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x88]
call fcn.14002b420
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rsi
lea rdi, [rbp + 0x40]
mov byte [rsp + 0x51], r14b
lea rsi, [rbp + 0x50]
mov byte [rsp + 0x50], r14b
lea r14d, [r13 - 0x1d]
mov dword [rbp + 0x40], eax
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov qword [rbp + 0x50], rbx
cmp dword [rdi], 0
jbe 0x14000a9e2
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.14000a53c
mov r8, r13
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.14002b420
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000a9b5
sub rbx, 1
jne 0x14000a958
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, r13
call fcn.14002b420
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000a94d
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.140018678
lea rcx, [rbp + 0x88]
mov rdx, r13
call fcn.140018678
lea rcx, [rbp + 0x68]
call fcn.140018678
lea rcx, [rbp + 0x100]
call fcn.140018678
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ad3c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x14000adda
mov ecx, dword [rbx]
lea rdx, [rsp + 0x50]
call fcn.1400091a8
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a53c
xor r8d, r8d
lea r9, [rsp + 0x58]
xor edx, edx
movzx eax, byte [r9]
mov ecx, edx
and ecx, 3
inc edx
shl ecx, 3
inc r9
shl eax, cl
xor r8d, eax
cmp edx, r14d
jb 0x14000adbc
mov dword [rbx], r8d
cmp dword [rdi], 3
jne 0x14000ae22
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a53c
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14002b420
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140010990
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x1400109c7
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400109b3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140044528]
cmp byte [rbx + 0x21], 0
je 0x1400109c7
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.1400119c0
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400109d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x140010a03
mov al, 1
jmp 0x140010b32
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140010a1b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140010a76
xor ebx, ebx
test rsi, rsi
je 0x140010a9f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140010a96
add rbx, r13
cmp rbx, rsi
jb 0x140010a36
jmp 0x140010a96
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140010b2b
cmp byte [rdi + 0x22], 0
je 0x140010b2b
cmp dword [rdi + 0x14], 0
jne 0x140010b2b
lea rdx, [rdi + 0x40]
call fcn.14000b6f8
test al, al
je 0x140010b00
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140010a21
test ecx, ecx
je 0x140010a21
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140044528]
mov rdx, rax
mov eax, dword [rsp + 0x30]
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140044528]
jmp 0x140010a21
lea rdx, [0x14004d2d0]
lea rcx, [rsp + 0x38]
call fcn.1400020b4
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
call fcn.14000b6d8
nop
lea rcx, [rsp + 0x38]
call fcn.140002254
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140029240
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010cd8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x140010d0a
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010d87
mov rcx, rbx
call fcn.1400111a4
test al, al
je 0x140010d4d
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140010d4d
mov rdx, rbp
mov rcx, rbx
call fcn.140010cd8
jmp 0x140010d8b
cmp dword [rbx + 0x14], 1
jne 0x140010d62
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140010d62
xor eax, eax
jmp 0x140010d8b
cmp dword [rbx + 0x14], 0
jne 0x140010d82
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140010d82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140010d82
mov r8d, edi
jmp 0x140010d40
or eax, 0xffffffff
jmp 0x140010d8b
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140011028
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400111d4
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.14001349c
cmp ax, 0x2e
je 0x14001122c
cmp ax, 0x20
je 0x14001122c
mov rcx, rdi
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x14001127d
jmp 0x140011230
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400115f4
test al, al
jne 0x140011291
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014370
test al, al
je 0x14001126f
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea rcx, [rsp + 0x20]
call fcn.140002254
test esi, esi
je 0x140011291
test bpl, bpl
je 0x14001128d
mov edx, r14d
mov rcx, rdi
call fcn.1400116b4
xor eax, eax
jmp 0x1400112ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400112a7
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x1400112ac
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140029240
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001162c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140011698
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014370
test al, al
je 0x14001168e
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140002254
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400116b4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, edx
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14001172e
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014370
test al, al
je 0x140011724
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x1400118e4
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14000128c
mov rdx, rax
mov rcx, rsi
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14001199f
lea rcx, [rsp + 0x40]
call fcn.1400026bc
nop
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140014370
test al, al
je 0x14001198a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014370
test al, al
je 0x14001198a
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
nop
lea rcx, [rsp + 0x40]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140029240
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400119c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x140011a31
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014370
test al, al
je 0x140011a27
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140011a4c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x140011abd
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014370
test al, al
je 0x140011ab3
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140002254
mov al, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140011f28
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140011ff1
mov rcx, rdx
call fcn.14000128c
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012012
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140014370
test al, al
je 0x140011fbd
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140002254
cmp rbx, 0xffffffffffffffff
jne 0x140012012
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x140011fe7
cmp eax, 0x13
je 0x140011fe7
xor al, al
jmp 0x140011fe9
mov al, 1
mov byte [rdi + 0x64], al
jmp 0x1400120a4
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140012012
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x140011fe9
mov rdx, rsi
mov rcx, rdi
call fcn.140003be4
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400020b4
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400136d8
nop
lea rcx, [rsp + 0x20]
call fcn.140002254
mov ecx, dword [rsp + 0x5c]
shl rcx, 0x20
mov eax, dword [rsp + 0x60]
add rcx, rax
mov qword [rdi + 0x20], rcx
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x28], eax
mov rax, qword [rsp + 0x44]
mov qword [rdi + 0x48], rax
mov rax, qword [rsp + 0x4c]
mov qword [rdi + 0x50], rax
mov rax, qword [rsp + 0x54]
mov qword [rdi + 0x58], rax
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x54]
call fcn.14001b6a8
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x44]
call fcn.14001b6a8
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x4c]
call fcn.14001b6a8
and dword [rdi + 0x60], 0
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140012614
Capabilities:
Hash data using crc32b

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, 2
mov r11d, edx
lea edi, [rbx - 1]
cmp edx, edi
jbe 0x140012654
test r11b, 1
je 0x14001263f
mov r8d, ebx
mov edx, edi
call fcn.1400125d4
mov edi, eax
mov r8d, ebx
mov edx, ebx
call fcn.1400125d4
shr r11d, 1
mov ebx, eax
cmp r11d, 1
ja 0x14001262d
mov r8d, ebx
mov edx, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400125d4