joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab6a4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14008ac48
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ab72e
cmp byte [rbp - 0x21], r15b
je 0x1400ab729
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ab764
call fcn.1400a25f4
test eax, eax
jne 0x1400ab750
cmp byte [rbp - 0x21], r15b
je 0x1400ab748
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ab764
cmp byte [rbp - 0x21], r15b
je 0x1400ab761
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14009025c
test eax, eax
jne 0x1400ab804
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008ac48
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ab7a3
cmp byte [rbp - 0x21], r15b
je 0x1400ab7d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ab7d8
call fcn.1400a25f4
test eax, eax
jne 0x1400ab7c4
cmp byte [rbp - 0x21], r15b
je 0x1400ab7bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ab7d8
cmp byte [rbp - 0x21], r15b
je 0x1400ab7d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14009025c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ab804
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ab807
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ab815
mov rcx, rdi
call fcn.14004dbe0
cmp byte [rbp + 0x3f], r15b
je 0x1400ab824
mov rcx, qword [rbp + 0x27]
call fcn.14004dbe0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400ac584
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400ac59a
mov al, 1
jmp 0x1400ac5fa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400ac5ab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400ac5f8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400933fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ac5f8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400ac5f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ac5f8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400ac5fa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14030235e
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap rbp
mov qword [rsp + 0xc], rbp
xchg qword [rsp + 9], rdi
xchg r8, r9
jmp 0x140302752
xchg r9d, r12d
mov r10d, r13d
mov dl, byte [rsp + 9]
setle dl
xchg r9b, r12b
xchg byte [rsp + 0xc], dil
jmp 0x14030238e
mov r15d, esp
pop qword [rsp + 1]
mov r13d, esp
mov r11, r10
lea rsp, [rsp + 0xb]
pushfq
jmp 0x1403023a4

Function at 0x14030532a
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, dword [rsp + 0x38]
xchg r13b, al
jmp 0x1403053c0
pop qword [rsp + 0x15]
mov r8d, dword [rsp + 5]
bswap r12
jmp 0x1403053d9
xchg r13w, r14w
setae bl
lea rdi, [rsi + r11]
clc
lea rsp, [rsp + 0x13]
pop r13
jmp 0x140305359
bswap r8
lea rbx, [r13 + rbp]
rdtsc
sub rsp, 2
mov dx, r13w
mov r8, qword [rsp + 0x33]
jmp 0x14030536f
xchg rdx, r14
mov r14b, r9b
xchg dword [rsp + 0x19], r14d
xchg di, bx
mov r14b, byte [rsp + 0x3b]
rol r8d, 0x15
jmp 0x140305394
mov r12b, byte [rsp + 0x14]
xchg byte [rsp + 8], dil
sub rsp, 0x14
pop r12w
jmp 0x140305424
xchg r9w, bx
lea rsp, [rsp + 0x19]
mov dword [rsp + 0x13], ebp
jmp 0x140305468
mov rdx, 0xffffffffec22d351
mov bx, r11w
lea r13, [r13*4]
jmp 0x14030540e
rcr ax, 7
mov r14, qword [rsp + 6]
dec dl
rdtsc
jmp 0x140305547
setb r8b
mov rdx, qword [rsp + 0x18]
sub rsp, 0x1a
xchg qword [rsp + 0x27], rax
push qword [rsp + 0x25]
xchg edi, r14d
jmp 0x140305452
pop rax
push r15
sub rsp, 0xa
xchg word [rsp + 0x19], r12w
bswap r8
xchg rdx, rax
call fcn.14030549a
xchg r8, r12
std
pop r13w
lea r13, [rsi + r13]
xchg word [rsp + 0xd], r13w
std
jmp 0x14030551c
rdtsc
dec edx
xchg byte [rsp + 0x1d], r14b
pop qword [rsp + 0xf]
clc
lea rbx, [rdi + r9]
jmp 0x1403054c8
mov dword [rsp + 0x1f], r10d
xchg r8w, r12w
mov qword [rsp + 0xc], rsi
mov bl, byte [rsp + 7]
push word [rsp + 0x27]
pop rdi
jmp 0x1403067e4
mov word [rsp + 0x34], di
mov r14d, dword [rsp + 3]
mov bl, r8b
lea rax, [0x5955fda]
pop qword [rsp + 0x1c]
mov byte [rsp + 9], cl
jmp 0x140305507
mov r12d, dword [rsp + 0x37]
cld
xchg dword [rsp + 0x14], r14d
bswap r14
rdtsc
mov edi, r14d
call fcn.1403059e1
pop r12w
cmc
mov r8b, byte [rsp]
mov r14d, 0x11bf7031
jmp 0x140305fe3
bswap r14
std
mov byte [rsp + 7], dl
mov bl, 0xea
call fcn.140305fc7
sub rsp, 0x1b
sub rsp, 5
btr r13, rsi
call fcn.140306048
invalid
mov byte [rsp + 0xe], bpl
xchg qword [rsp + 0x2d], r9
xchg byte [rsp + 5], r13b
lea rdx, [r12 + rbp]
mov dword [rsp + 0x12], r12d
xchg word [rsp + 3], dx
jmp 0x140305f63
mov qword [rsp + 0x28], r8
mov word [rsp + 0x31], r15w
mov r12b, 0x8e
setne r9b
mov r8d, dword [rsp + 0x2d]
bswap r12
jmp 0x140306063
not edi
setne dil
pop word [rsp + 0x11]
shl r13d, 0x13
xchg bx, r9w
mov dword [rsp + 0x1a], r9d
jmp 0x14030676e
Function at 0x140305ade
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x140305b4e
xchg dword [rsp], edx
xor r8w, r8w
mov r9b, byte [rsp + 2]
jmp 0x140305be6
xchg word [rsp + 3], bx
xchg r8w, r9w
mov dx, r8w
sub rsp, 0x14
lea rsp, [rsp + 0x19]
mov rdi, rbp
jmp 0x140305b38
sub rsp, 0x16
add rsp, 0xd
mov r9w, cx
jmp 0x140305bbb
lea rdi, [rdi + riz - 0x15ac]
xchg r9d, r13d
neg eax
bswap r8d
mov r8w, r15w
sbb bl, bpl
jmp 0x140305b69
bts dx, sp
lea rax, [rax + riz + 0xed]
lea rsp, [rsp + 0xc]
xchg byte [rsp], dil
bt rdx, r12
mov ax, 0x2a92
jmp 0x140305b7f
lea rax, [rsp + 0x59f3c896]
mov byte [rsp + 3], spl
mov r14w, bx
lea r9, [r11 + r14]
bts rdx, r10
mov r14b, byte [rsp + 9]
jmp 0x140305c4d
lea r9, [rdx + riz - 0x21]
dec r13b
mov r13w, 0xdc9f
push rbx
mov r13b, dil
mov qword [rsp], rsp
jmp 0x140305b9c
setg bl
mov dword [rsp + 4], r8d
push qword [rsp + 5]
rdtsc
bsr r13d, ebp
jmp 0x140305d7e
xchg rdi, rdx
xchg r9, r14
xchg di, dx
xchg edx, r14d
lea rdi, [rcx + riz + 0x4ea1]
rcr al, 5
jmp 0x140305c33
pop word [rsp + 6]
mov r14w, 0xc7ff
neg bx
rdtsc
mov dword [rsp + 3], esi
call fcn.140305cad
xchg ebp, eax
adc eax, dword [rbx + reloc.KERNEL32.dll_Process32First]
xchg esp, eax
or ch, byte [rbp - 0x64]
sbb ebx, dword [rbp + 0x3f09101]
xchg byte [rax + 3], al
mov edx, 0x24448b44
or ah, byte [rsi - 1]
xchg edi, r8d
mov r8d, dword [rsp + 0xa]
push dx
xchg edi, r8d
bswap rdx
mov eax, 0xe244b703
pop rbx
jmp 0x140305d08
lea rdi, [0x7becd758]
mov r12b, 0x4a
cld
mov di, r11w
mov word [rsp + 0xc], r14w
bswap r13
jmp 0x140305d35
Function at 0x1403065cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
setae r14b
push word [rsp + 0xe]
jmp 0x1403065ce
jmp 0x1403065b6
mov r8, 0x1bba59e4
mov r9d, dword [rsp + 5]
sub rsp, 3
bswap r12d
neg rdi
clc
jmp 0x140306630
mov ebx, dword [rsp + 9]
mov r12, rax
pop qword [rsp + 5]
sub rsp, 0x10
jmp 0x14030661a

Function at 0x140307578
Capabilities:
Access peb ldr_data

Disassembly:
inc dword [0x1401af008]
pushfq
sub rsp, 0
std
call fcn.1402fffcd
lea r13, [r11 + riz]
push r9
bswap r13d
sub rsp, 0x13
jmp 0x140300103
jmp 0x140301a3b
bswap r13
call fcn.140300073
lea r9, [r11*8]
xchg r9w, r15w
mov qword [rsp], rdi
mov word [rsp + 4], r9w
xchg r15w, r13w
xchg r9, r15
jmp 0x1403000e7
neg r15d
lea r13, [rsp - 0x76e888a3]
sbb r15, rcx
std
xchg r9d, r15d
sete r13b
jmp 0x140300089
cmc
xchg r15w, r13w
mov r9b, cl
xchg qword [rsp], r13
jmp 0x1403001d8
mov byte [rsp + 4], r11b
pushfq
pop word [rsp + 8]
not r13
xchg r9, r15
lea r13, [r12 + r15]
jmp 0x1403000d1
dec r13w
lea rsp, [rsp + 0xe]
mov r13d, r8d
lea rsp, [rsp + 5]
push r15
bswap r15d
jmp 0x1403000b9
mov byte [rsp + 0x16], spl
push qword [rsp + 0x10]
bswap r13
mov r15b, sil
jmp 0x1403001ac
rcl r9d, cl
lea r13, [r15 + r15]
btc r13d, edi
sub rsp, 0x18
pop r15
setl r13b
jmp 0x14030011b
rcr r15, 0x11
xchg dword [rsp + 7], r9d
bswap r9d
mov r13b, 0xce
lea r15, [r9*8]
xchg qword [rsp], r9
jmp 0x140300131
lea rsp, [rsp + 6]
sub rsp, 6
lea rsp, [rsp]
jmp 0x140300208
mov r9w, word [rsp + 3]
pop word [rsp]
mov r15b, 0x85
xchg r13d, r9d
xchg r13d, r15d
and r9b, 0x2e
jmp 0x140300171
push qword [rsp + 0x23]
mov r9w, word [rsp + 0x2d]
mov r9w, 0xdcf0
pop r15
push qword [rsp + 4]
add rsp, 0x23
jmp 0x140300187
rol r13w, 0xc
std
clc
inc r9w
neg r9b
mov r9w, r11w
jmp 0x140300154
mov dword [rsp], eax
bswap r9d
mov r9, 0x32de7ea4
call fcn.140300220
popfq
sbb al, 0xb2
invalid
setp r15b
lea rsp, [rsp + 3]
bswap r15
adc r9, r11
mov r13w, bp
xchg r13b, r9b
jmp 0x1403001ef
push word [rsp + 1]
mov qword [rsp], r11
mov word [rsp + 3], cx
pop word [rsp + 1]
mov dword [rsp], esi
call fcn.1403016ff
mov dword [rsp + 0xa], r15d
pop word [rsp + 5]
call fcn.1403018a6
xchg dword [rsi], ebx
mov ebx, gs
movabs eax, dword es:[0x66f6f47586e373f3]
push word [rsp + 9]
mov word [rsp + 5], bx
push bp
push r12w
jmp 0x140301730
add rsp, 8
push r13
mov qword [rsp], rsp
lea rsp, [rsp + 4]
mov byte [rsp + 2], r14b
push word [rsp + 2]
jmp 0x140301715
cmp dword [0x1401af008], 0
je 0x14030001b
lea rsp, [rsp + 0x10]
jmp 0x140301958
call 0x14030708b
jmp 0x1403075d6
mov qword [rsp + 2], r11
mov byte [rsp + 3], al
lea rsp, [rsp + 1]
jmp 0x140307594
lea rsp, [rsp + 0x10]
mov rax, qword gs:[0x60]
mov rax, qword [rax + riz + 0x18]
jmp 0x140307607
pop rax
jmp 0x14030762d
push rax
jmp 0x140307086
mov rax, qword [rax + riz + 0x30]
mov rax, qword [rax + riz]
mov rax, qword [rax + riz + 0x10]
jmp 0x1403075ec
sub rax, 0x30708b
push rax
jmp 0x14030005d
Function at 0x14000bea0
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x4f88]
mov eax, 0x5070
call fcn.140025670
sub rsp, rax
mov rbx, rcx
mov r15d, 0x800
mov r8d, r15d
lea rdx, [rbp + 0x2f70]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
lea edi, [r15 - 2]
cmp eax, edi
ja 0x14000c084
mov r8d, r15d
lea rdx, [rbp + 0x3f70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
dec eax
cmp eax, edi
ja 0x14000c084
lea rcx, [rbp + 0x2f70]
call fcn.14000f68c
mov rsi, rax
lea rcx, [rbp + 0x3f70]
call fcn.14000f68c
mov rdi, rax
xor r14d, r14d
cmp word [rax], r14w
je 0x14000c084
mov rdx, rax
mov rcx, rsi
call fcn.140015f74
test eax, eax
je 0x14000c084
mov rcx, rbx
call fcn.14000f68c
mov rcx, rax
mov rdx, rdi
call fcn.140015f74
test eax, eax
jne 0x14000c084
movzx eax, r14w
mov word [rsp + 0x20], ax
mov edi, r14d
test ax, ax
jne 0x14000bfd6
mov r8, r15
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14001424c
lea rcx, [rsp + 0x20]
call fcn.14000f68c
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r15
call fcn.1400053bc
lea rcx, [rsp + 0x20]
call fcn.14000cf1c
test al, al
je 0x14000bfbd
mov eax, r14d
mov word [rsp + 0x20], ax
jmp 0x14000bfc2
movzx eax, word [rsp + 0x20]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000bf71
test ax, ax
je 0x14000c084
mov r8, r15
mov rdx, rbx
lea rcx, [rbp + 0x1f70]
call fcn.14001424c
mov r8, r15
mov rdx, rsi
lea rcx, [rbp + 0x1f70]
call fcn.14000f718
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x1f70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000c084
lea rcx, [rbp + 0xf20]
call fcn.14000c0a4
nop
mov dil, r14b
mov rcx, rbx
call fcn.14000cf1c
test al, al
jne 0x14000c044
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rbp + 0xf20]
call fcn.14000c1c8
mov dil, al
lea rdx, [rbp + 0x1f70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test dil, dil
je 0x14000c074
lea rcx, [rbp + 0xf20]
call fcn.14000c160
lea rcx, [rbp + 0xf20]
call fcn.14000c2f0
nop
lea rcx, [rbp + 0xf20]
call fcn.14000c0ec
mov al, 1
jmp 0x14000c086
xor al, al
lea r11, [rsp + 0x5070]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14000c2f0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x14000c327
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14000c313
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003a508]
cmp byte [rbx + 0x21], 0
je 0x14000c327
lea rcx, [rbx + 0x3a]
add rsp, 0x20
pop rbx
jmp fcn.14000cebc
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14000c330
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 0x14000c362
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 0x14000c3df
mov rcx, rbx
call fcn.14000c498
test al, al
je 0x14000c3a5
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x14000c3a5
mov rdx, rbp
mov rcx, rbx
call fcn.14000c330
jmp 0x14000c3e3
cmp dword [rbx + 0x14], 1
jne 0x14000c3ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000c3ba
xor eax, eax
jmp 0x14000c3e3
cmp dword [rbx + 0x14], 0
jne 0x14000c3da
mov edi, 0x8000
cmp rsi, rdi
jbe 0x14000c3da
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x14000c3da
mov r8d, edi
jmp 0x14000c398
or eax, 0xffffffff
jmp 0x14000c3e3
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 0x14000c674
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000c6b0
test al, al
je 0x14000c6a8
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14003a508]
add rsp, 0x20
pop rbx
ret

Function at 0x14000cb80
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret
Function at 0x14000cc04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x14000cc2f
mov al, 1
jmp 0x14000cd47
cmp dword [rcx + 0x14], 1
lea r14, [rcx + 8]
jne 0x14000cc47
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
and dword [rsp + 0x70], 0
xor bpl, bpl
cmp dword [rdi + 0x14], 0
je 0x14000cca1
xor ebx, ebx
test rsi, rsi
je 0x14000ccc7
mov eax, esi
lea rdx, [rbx + r15]
sub eax, ebx
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rcx, rsi
sub rcx, rbx
cmp rcx, r13
mov rcx, qword [r14]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
jne 0x14000ccc2
add rbx, r13
cmp rbx, rsi
jb 0x14000cc62
jmp 0x14000ccc2
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bpl
test bpl, bpl
jne 0x14000cd40
cmp byte [rdi + 0x22], 0
je 0x14000cd40
cmp dword [rdi + 0x14], 0
jne 0x14000cd40
xor r8d, r8d
lea rdx, [rdi + 0x3a]
lea rcx, [0x14004e538]
call fcn.140008630
test al, al
je 0x14000cd2e
mov ecx, dword [rsp + 0x70]
cmp rcx, rsi
jae 0x14000cc4d
test ecx, ecx
je 0x14000cc4d
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x14003a508]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rdi
mov rdx, rax
mov rax, qword [rbx + 0x20]
call qword [0x14003a508]
jmp 0x14000cc4d
lea r8, [rdi + 0x3a]
xor edx, edx
lea rcx, [0x14004e538]
call fcn.140008ac0
mov byte [rdi + 0x10], 1
mov al, bpl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret

Function at 0x14000ce5c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140025670
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000cea8
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000cea8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

Function at 0x14000cebc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140025670
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14000cf08
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000cf08
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret
Function at 0x14000cf30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1020
call fcn.140025670
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000cf77
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000cf77
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x1030]
add rsp, 0x1020
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1020
call fcn.140025670
sub rsp, rax
mov ebp, r8d
mov sil, dl
mov rdi, rcx
call fcn.14000f664
xor ebx, ebx
cmp word [rax], 0x2e
je 0x14000cff0
cmp word [rax], 0x20
je 0x14000cff0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d025
mov rcx, rdi
call fcn.14000cf30
cmp eax, 0xffffffff
jne 0x14000d038
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000d038
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000d038
test sil, sil
je 0x14000d034
mov edx, ebp
mov rcx, rdi
call fcn.14000d3e4
xor eax, eax
jmp 0x14000d053
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000d04e
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14000d053
mov eax, 2
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000d188
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2020
call fcn.140025670
sub rsp, rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
test eax, eax
jne 0x14000d1fe
mov r8d, 0x800
lea rdx, [rsp + 0x1020]
mov rcx, rdi
call fcn.14000eda0
test al, al
je 0x14000d1fe
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000eda0
test al, al
je 0x14000d1fe
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x1020]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
lea r11, [rsp + 0x2020]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000d3e4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x1020
call fcn.140025670
sub rsp, rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x14000d439
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000eda0
test al, al
je 0x14000d439
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea r11, [rsp + 0x1020]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000d60c
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x1178]
mov eax, 0x1270
call fcn.140025670
sub rsp, rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov rdi, r8
mov rbx, rcx
mov r15d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x14000d6b8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d6d4
mov r8d, r15d
lea rdx, [rbp + 0x170]
mov rcx, rsi
call fcn.14000eda0
test al, al
je 0x14000d691
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d6d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
test ecx, 0xffffffee
jne 0x14000d6ab
cmp eax, 0x13
je 0x14000d6ab
xor al, al
jmp 0x14000d6ad
mov al, 1
mov byte [rdi + 0x1044], al
jmp 0x14000d769
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000d6d4
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x14000d6ad
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.14001424c
mov r8, r15
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.14000f718
mov eax, dword [rsp + 0x40]
lea rdx, [rsp + 0x34]
mov ecx, dword [rsp + 0x3c]
shl rcx, 0x20
add rcx, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1000], rcx
lea rcx, [rdi + 0x1010]
mov qword [rdi + 0x1038], rax
call fcn.140015500
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.140015500
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.140015500
and dword [rdi + 0x1040], 0
lea r11, [rsp + 0x1270]
mov rsi, qword [r11 + 0x18]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000e040
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
xor bl, bl
cmp byte [0x14004e550], bl
jne 0x14000e093
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x14000e082
jne 0x14000e084
cmp dword [rsp + 0x2c], 0x55f0
jb 0x14000e084
call fcn.14000e0a4
test al, al
jne 0x14000e084
mov bl, 1
mov byte [0x14004e551], bl
mov byte [0x14004e550], 1
jmp 0x14000e099
mov bl, byte [0x14004e551]
mov al, bl
add rsp, 0x140
pop rbx
ret