joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c1c0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r11d, r11d
lea rax, [rcx - 1]
add rax, rdx
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov ebx, r11d
mov rbp, r8
mov r10d, r11d
cmp byte [rax], 0x3d
jne 0x14000c21b
nop dword [rax + rax]
dec rax
inc r10
cmp byte [rax], 0x3d
je 0x14000c210
lea r15, [rdx + rdx*2]
add r15, r15
shr r15, 3
sub r15, r10
cmp r9, r15
jae 0x14000c235
xor al, al
jmp 0x14000c3fc
test rdx, rdx
je 0x14000c3f2
mov rax, r11
mov r8d, 0x3f
nop word [rax + rax]
movzx ecx, byte [rsi]
dec rdi
cmp cl, 0x3d
je 0x14000c31f
mov byte [rsp + rax + 0x20], cl
inc ebx
inc rax
inc rsi
cmp rax, 4
jne 0x14000c316
mov rdx, r11
nop dword [rax + rax]
movzx ecx, byte [rsp + rdx + 0x20]
lea eax, [rcx - 0x41]
cmp al, 0x19
jbe 0x14000c2b9
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x14000c298
lea eax, [rcx - 0x47]
jmp 0x14000c2b9
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000c2a4
lea eax, [rcx + 4]
jmp 0x14000c2b9
cmp cl, 0x2b
jne 0x14000c2ad
mov al, 0x3e
jmp 0x14000c2b9
cmp cl, 0x2f
mov eax, 0xff
cmove eax, r8d
mov byte [rsp + rdx + 0x20], al
inc rdx
cmp rdx, 4
jl 0x14000c280
movzx eax, byte [rsp + 0x20]
mov ebx, r11d
movzx edx, byte [rsp + 0x21]
shl al, 2
movzx ecx, dl
shr cl, 4
and cl, 3
shl dl, 4
add cl, al
mov byte [rsp + 0x24], cl
movzx ecx, byte [rsp + 0x22]
movzx eax, cl
shl cl, 6
add cl, byte [rsp + 0x23]
shr al, 2
and al, 0xf
mov byte [r14 + 2], cl
add al, dl
mov byte [rsp + 0x25], al
movzx eax, word [rsp + 0x24]
mov word [r14], ax
add r14, 3
mov rax, r11
test rdi, rdi
jne 0x14000c250
test ebx, ebx
je 0x14000c3f2
movsxd rax, ebx
cmp rax, 4
jge 0x14000c350
jae 0x14000c422
mov byte [rsp + rax + 0x20], r11b
inc rax
cmp rax, 4
jl 0x14000c330
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rsp + r11 + 0x20]
lea eax, [rcx - 0x41]
cmp al, 0x19
jbe 0x14000c38a
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x14000c369
lea eax, [rcx - 0x47]
jmp 0x14000c38a
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000c375
lea eax, [rcx + 4]
jmp 0x14000c38a
cmp cl, 0x2b
jne 0x14000c37e
mov al, 0x3e
jmp 0x14000c38a
cmp cl, 0x2f
mov eax, 0xff
cmove eax, r8d
mov byte [rsp + r11 + 0x20], al
inc r11
cmp r11, 4
jl 0x14000c350
movzx edx, byte [rsp + 0x21]
movzx eax, byte [rsp + 0x20]
movzx ecx, dl
shl al, 2
shr cl, 4
and cl, 3
shl dl, 4
add cl, al
mov byte [rsp + 0x24], cl
movzx ecx, byte [rsp + 0x22]
movzx eax, cl
shl cl, 6
add cl, byte [rsp + 0x23]
shr al, 2
and al, 0xf
mov byte [rsp + 0x26], cl
add al, dl
mov byte [rsp + 0x25], al
lea eax, [rbx - 1]
movsxd rbx, eax
test eax, eax
jle 0x14000c3f2
mov r8, rbx
lea rdx, [rsp + 0x24]
mov rcx, r14
call fcn.14009b2c0
add r14, rbx
lea rax, [r15 + rbp]
cmp r14, rax
sete al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400784c0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call fcn.140078d4c
int3
Function at 0x14000d830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp rcx, rdx
je 0x14000d919
cmp rcx, r8
je 0x14000d919
cmp word [rdx + 0x22], 0
je 0x14000d8f8
cmp word [r8 + 0x22], 0
je 0x14000d8f8
movzx eax, byte [rdx + 0x24]
xor al, byte [r8 + 0x24]
mov byte [rcx + 0x24], al
movzx eax, word [r8 + 0x22]
xor r8d, r8d
movzx edx, word [rdx + 0x22]
add edx, eax
call fcn.14000c580
movzx eax, word [rsi + 0x22]
add ax, word [rdi + 0x22]
mov rcx, qword [rbx + 0x18]
mov word [rbx + 0x22], ax
movzx eax, word [rdi + 0x22]
movzx r9d, word [rsi + 0x22]
mov r8, qword [rdi + 0x18]
mov rdx, qword [rsi + 0x18]
mov dword [rsp + 0x20], eax
call fcn.14000cb50
movzx eax, word [rbx + 0x22]
test eax, eax
jle 0x14000d8e2
mov r8, qword [rbx + 0x18]
lea edx, [rax - 1]
nop dword [rax + rax]
movsxd rcx, edx
cmp dword [r8 + rcx*4], 0
jne 0x14000d8e2
dec eax
dec edx
test eax, eax
jg 0x14000d8d0
mov word [rbx + 0x22], ax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, qword [rcx + 0x18]
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x18]
xor ecx, ecx
mov dword [rax], ecx
mov byte [rbx + 0x24], cl
mov word [rbx + 0x22], cx
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rdx, [0x14012e060]
lea rax, vtable.ArithmeticException.0
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x48], cl
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.14009d9d8
int3
Function at 0x140017cc0
Capabilities:
Encode data using xor
Get file attributes
Hash data with crc32

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140017cfc
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x140017ddf
test al, 0x10
jne 0x140017ddf
xor edi, edi
xor eax, eax
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
or r14, 0xffffffffffffffff
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], pe_nt_image_headers64
mov dword [rbp - 0x18], 1
mov word [rbp - 0x14], ax
mov byte [rbp - 0x12], al
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14001d000
test al, al
je 0x140017da2
mov r8, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
sub r8, rcx
je 0x140017d9e
mov r9, qword [rbp - 0x50]
add r9, rcx
lea r10, [0x14010c2a0]
nop word [rax + rax]
movzx edx, byte [r9 + rdi]
movzx ecx, bl
xor rdx, rcx
mov eax, ebx
shr eax, 8
mov ebx, dword [r10 + rdx*4]
xor ebx, eax
inc rdi
cmp rdi, r8
jb 0x140017d80
not ebx
mov edi, ebx
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140017ddb
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140017ddb
mov rbx, qword [rbp - 0x48]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x140017ddb
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rcx]
call qword [rdx + htons]
nop
mov eax, edi
jmp 0x140017de1
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14001a580
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14001a72a
cmp byte [rcx + 0x72], 0
je 0x14001a72a
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + Ordinal_26]
cmp bx, ax
jne 0x14001a5de
xor al, al
jmp 0x14001a72c
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14001a3b0
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x14001a64e
sub eax, 1
jne 0x14001a6c2
jmp 0x14001a652
mov byte [rdi + 0x72], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14001a69f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1400a3bc0
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14001a6cf
cmp byte [rdi + 0x72], 0
je 0x14001a6d3
test rbx, rbx
jne 0x14001a610
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140016880
jmp 0x14001a603
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x14001a6d3
xor bl, bl
jmp 0x14001a6d5
mov bl, 1
cmp r9, 0x10
jb 0x14001a725
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x14001a720
test byte [rbp - 0x30], 0x1f
je 0x14001a6f3
call fcn.14009e984
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001a702
call fcn.14009e984
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001a711
call fcn.14009e984
int3
cmp rcx, 0x27
jbe 0x14001a71d
call fcn.14009e984
int3
mov rcx, rax
call fcn.140078bcc
movzx eax, bl
jmp 0x14001a72c
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001d0d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x58
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 8
mov rbx, r8
mov rbp, rdx
jb 0x14001d0f9
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov r14d, 1
mov r8d, r14d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001d136
xor al, al
jmp 0x14001d1a7
xor edx, edx
mov qword [rsp + 0x50], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov esi, eax
test rbp, rbp
jne 0x14001d15e
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r14b
jmp 0x14001d1a2
cmp dword [rbx], esi
lea r9, [rsp + 0x40]
mov rdx, rbp
mov dword [rsp + 0x40], 0
cmovb esi, dword [rbx]
xor bl, bl
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d196
cmp dword [rsp + 0x40], esi
movzx ebx, bl
cmove ebx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x58
pop r14
pop rdi
pop rbp
pop rbx
ret

Function at 0x14001d1c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x80
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
test rdx, rdx
je 0x14001d316
test r8d, r8d
je 0x14001d316
cmp qword [rcx + 0x18], 8
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
jb 0x14001d209
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov r15d, 1
cmp rax, 0xffffffffffffffff
jne 0x14001d2a3
cmp qword [rbx + 0x18], 8
jb 0x14001d24c
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001d2a3
xor al, al
mov rdi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x80
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov qword [rsp + 0x58], rax
xor bl, bl
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14001d305
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14001d305
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001d305
cmp dword [rsp + 0x40], esi
movzx ebx, bl
cmove ebx, r15d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
jmp 0x14001d281
xor al, al
jmp 0x14001d28b
Function at 0x14001d540
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x14013aea0], eax
jle 0x14001d5dd
lea rcx, [0x14013aea0]
call fcn.1400786bc
cmp dword [0x14013aea0], 0xffffffff
jne 0x14001d5dd
mov qword [0x14013aec0], 7
xor eax, eax
mov qword [0x14013aeb8], rax
mov word [0x14013aea8], ax
lea r8d, [rax + 2]
lea rdx, [0x14010cc08]
lea rcx, [0x14013aea8]
call fcn.140007ad0
lea rcx, [0x1400eac40]
call fcn.140078bb4
nop
lea rcx, [0x14013aea0]
call fcn.14007865c
cmp qword [rbx + 0x18], 8
jb 0x14001d5e9
mov rcx, qword [rbx]
jmp 0x14001d5ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001d680
mov rcx, rbx
call fcn.14001df40
cmp rax, 0xffffffffffffffff
je 0x14001d665
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140013570
nop
lea rcx, [rsp + 0x28]
call fcn.14001d540
nop
mov r8, qword [rsp + 0x40]
test al, al
jne 0x14001d64d
cmp r8, 8
jb 0x14001d649
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140007ea0
xor al, al
jmp 0x14001d689
cmp r8, 8
jb 0x14001d665
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.140007ea0
cmp qword [rbx + 0x18], 8
jb 0x14001d66f
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001d687
jmp 0x14001d689
test eax, 0x410
je 0x14001d649
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400784c0
add rsp, 0x50
pop rbx
ret
Function at 0x14001d6a0
Capabilities:
Delete directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rsi, rcx
xor eax, eax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp + 0x1f]
call fcn.14001d930
nop
xor eax, eax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp - 1], 7
mov qword [rbp - 9], rax
mov word [rbp - 0x19], ax
lea r8d, [rax + 3]
lea rdx, [0x14010cc10]
lea rcx, [rbp - 0x19]
call fcn.140007ad0
nop
lea r9, [rbp - 0x19]
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.14001dc30
nop
mov r8, qword [rbp - 1]
cmp r8, 8
jb 0x14001d74b
inc r8
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp - 0x19]
call fcn.140007ea0
mov qword [rbp - 1], 7
xor eax, eax
mov qword [rbp - 9], rax
mov word [rbp - 0x19], ax
cmp qword [rbp + 0x17], rax
jne 0x14001d7f4
mov rdi, qword [rbp + 0x1f]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14001d7f8
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov qword [rbp + 0x47], 7
mov qword [rbp + 0x3f], rax
mov word [rbp + 0x2f], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x2f]
call fcn.140007c20
nop
xor edx, edx
lea rcx, [rbp + 0x2f]
call fcn.14001d6a0
nop
mov r8, qword [rbp + 0x47]
test al, al
je 0x14001d7de
cmp r8, 8
jb 0x14001d7cf
inc r8
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp + 0x2f]
call fcn.140007ea0
mov rbx, qword [rbx]
cmp rbx, rdi
mov eax, 0
jne 0x14001d780
jmp 0x14001d7f8
cmp r8, 8
jb 0x14001d7f4
inc r8
mov rdx, qword [rbp + 0x2f]
lea rcx, [rbp + 0x2f]
call fcn.140007ea0
xor bl, bl
jmp 0x14001d80d
cmp qword [rsi + 0x18], 8
jb 0x14001d802
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
lea rcx, [rbp + 0xf]
call fcn.1400166e0
mov rcx, qword [rbp + 0xf]
call fcn.140078bcc
nop
lea rcx, [rbp + 0x1f]
call fcn.1400166e0
mov rcx, qword [rbp + 0x1f]
call fcn.140078bcc
movzx eax, bl
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001e410
Capabilities:
Delete file
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14001e462
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rsi + 0x28]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14001e462
cmp qword [rsi + 0x68], 8
lea rcx, [rsi + 0x50]
jb 0x14001e45c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rdi, [rsi + 0x70]
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x14001e487
mov rdx, qword [rdi]
inc r8
mov rcx, rdi
call fcn.140007ea0
xor ebx, ebx
mov qword [rdi + 0x18], 7
cmp qword [rdi + 0x18], 8
mov qword [rdi + 0x10], rbx
jb 0x14001e49f
mov rdi, qword [rdi]
mov word [rdi], bx
lea rdi, [rsi + 0x50]
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x14001e4be
mov rdx, qword [rdi]
inc r8
mov rcx, rdi
call fcn.140007ea0
mov qword [rdi + 0x18], 7
cmp qword [rdi + 0x18], 8
mov qword [rdi + 0x10], rbx
jb 0x14001e4d4
mov rdi, qword [rdi]
mov word [rdi], bx
mov r8, qword [rsi + 0x48]
cmp r8, 8
jb 0x14001e4f1
mov rdx, qword [rsi + 0x30]
lea rcx, [rsi + 0x30]
inc r8
call fcn.140007ea0
mov qword [rsi + 0x48], 7
cmp qword [rsi + 0x48], 8
mov qword [rsi + 0x40], rbx
jb 0x14001e51b
mov rax, qword [rsi + 0x30]
mov word [rax], bx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov word [rsi + 0x30], bx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e960
Capabilities:
Delete file
Get file size

Disassembly:
push rdi
sub rsp, 0x90
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rcx
cmp byte [rcx + 0xa4], 0
jne 0x14001e9b6
cmp r9d, dword [rcx + 0x98]
jne 0x14001e9b6
cmp r8d, dword [rcx + 0x94]
jne 0x14001e9b6
cmp edx, dword [rcx + 0x90]
je 0x14001eb66
mov dword [rcx + 0x90], edx
mov dword [rcx + 0x94], r8d
mov dword [rcx + 0x98], r9d
mov eax, dword [rsp + 0xc0]
mov dword [rcx + 0x9c], eax
mov eax, dword [rsp + 0xc8]
mov dword [rcx + 0xa0], eax
mov byte [rcx + 0xa4], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14001ea31
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor edx, edx
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14001ea31
lea rcx, [rdi + 0x50]
cmp qword [rcx + 0x18], 8
jb 0x14001ea2b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 0x70]
call fcn.14001d540
lea r8, [rdi + 0x30]
cmp qword [r8 + 0x18], 8
jb 0x14001ea48
mov r8, qword [r8]
mov eax, dword [rdi + 0x9c]
mov dword [rsp + 0x30], eax
mov eax, dword [rdi + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x94]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdi + 0x90]
lea rdx, str._s__04d__02d__02d__02d.log
lea rcx, [rsp + 0x40]
call fcn.1400211c0
nop
mov r8, rax
lea rdx, [rdi + 0x70]
lea rcx, [rsp + 0x68]
call fcn.14001d430
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x14001eaae
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140007ea0
mov qword [rsp + 0x58], 7
xor eax, eax
mov qword [rsp + 0x50], rax
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x28], rax
lea rcx, [rdi + 0x50]
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x14001eb21
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x68]
call fcn.140007c20
mov rcx, qword [rdi + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14001eb3c
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov r8, qword [rsp + 0x80]
cmp r8, 8
jb 0x14001eb66
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.140007ea0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400784c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x14001eb90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x10]
add rax, rax
cmp qword [rbx + 0x18], 8
jb 0x14001ebcd
mov rdx, qword [rbx]
jmp 0x14001ebd0
mov rdx, rbx
mov rcx, qword [rsi + 0x28]
lea r9, [rsp + 0x30]
xor edi, edi
mov r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14001ec0a
mov rdx, qword [rbx]
inc r8
mov rcx, rbx
call fcn.140007ea0
mov qword [rbx + 0x18], 7
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rdi
jb 0x14001ec25
mov rax, qword [rbx]
mov word [rax], di
jmp 0x14001ec28
mov word [rbx], di
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400784c0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14001ecf0
Capabilities:
Access peb ldr_data

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1401310c8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
test rdx, rdx
je 0x14001eea6
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp rdx, qword [rcx + 0x10]
je 0x14001eea6
xor eax, eax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
lea rcx, [r11 - 0x48]
call fcn.14001ef10
nop
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rdx, rax
je 0x14001ee4a
nop
cmp qword [rdx], rbx
je 0x14001ed83
add rdx, 0x60
cmp rdx, rax
jne 0x14001ed70
jmp 0x14001ee4a
add rdx, 0x20
lea rcx, [rsp + 0x48]
call fcn.14001d860
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x14001eda9
mov rax, qword [rdi]
jmp 0x14001edac
mov rax, rdi
mov word [rax], si
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.140007d60
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x14001edd9
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140007ea0
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14001eee9
mov rsi, qword [rsp + 0x38]
cmp rbx, rsi
je 0x14001ee1a
mov rcx, rbx
call fcn.14001f250
add rbx, 0x60
cmp rbx, rsi
jne 0x14001ee04
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, rbx
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 4
mov r8, rdx
shr r8, 0x3f
add r8, rdx
mov rdx, rbx
call fcn.14001f380
jmp 0x14001eee9
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x14001ee62
mov rax, qword [rdi]
jmp 0x14001ee65
mov rax, rdi
mov word [rax], si
xor r8d, r8d
lea rdx, [0x14010c8e4]
mov rcx, rdi
call fcn.140007ad0
nop
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14001eee9
mov rsi, qword [rsp + 0x38]
cmp rbx, rsi
je 0x14001ee1a
nop
mov rcx, rbx
call fcn.14001f250
add rbx, 0x60
cmp rbx, rsi
jne 0x14001ee90
jmp 0x14001ee15
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x20]
movzx r8d, word [rax + 0x60]
shr r8, 1
mov rdx, qword [rax + 0x68]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x18], 8
jb 0x14001eedb
mov rax, qword [rdi]
jmp 0x14001eede
mov rax, rdi
mov word [rax], si
mov rcx, rdi
call fcn.140007ad0
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400784c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret