joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005f00
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x30
call fcn.14000c460
sub rsp, rax
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140005f66
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140003e20
mov rcx, rax
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea rdx, str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__x
mov r8, rsi
call fcn.1400089d0
mov rbx, qword [rsp + 0x40]
mov eax, 0x3d
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140006020
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.14000c460
sub rsp, rax
mov ebp, 0x2f
mov rdi, rcx
mov edx, ebp
xor ebx, ebx
call fcn.14000d648
mov rsi, rax
test rax, rax
je 0x1400060b4
mov rcx, rdi
mov word [rax], bx
call fcn.140006020
test eax, eax
jne 0x1400060af
cmp word [rdi], bx
je 0x1400060af
mov rcx, rdi
call fcn.140019d04
test eax, eax
jns 0x1400060ad
call fcn.140019270
cmp dword [rax], 0x11
je 0x1400060ad
lfence
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov r9d, dword [rbx]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov rcx, rax
mov r8, rdi
call fcn.1400089d0
lea eax, [rbp - 0x28]
mov word [rsi], bp
jmp 0x1400060b6
mov eax, ebx
mov word [rsi], bp
jmp 0x1400060b6
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400067a0
Capabilities:
Get common file path
Move file

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
mov eax, 0x270
call fcn.14000c460
sub rsp, rax
mov rdi, rdx
mov rbp, rcx
lea rdx, [rsp + 0x30]
call fcn.140012f94
test eax, eax
jne 0x14000696f
movzx eax, word [rsp + 0x36]
mov ecx, 0xf000
and ax, cx
mov qword [rsp + 0x280], rbx
mov ecx, 0x4000
cmp ax, cx
je 0x14000687a
lea r9, [rsp + 0x60]
mov qword [rsp + 0x288], rsi
xor r8d, r8d
lea rdx, [0x14002eb48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x60]
call fcn.14001324c
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rbp
call fcn.140006980
test eax, eax
lea rdi, [rsp + 0x60]
mov esi, eax
cmovne rdi, rbp
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea rcx, str.remove_recursive_on_reboot:_failed_to_schedule_OS_reboot_removal_of_file:__S
lea rbx, str.remove_recursive_on_reboot:_file_will_be_removed_on_OS_reboot:__S
cmove rbx, rcx
call fcn.140003e20
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call fcn.1400089d0
mov eax, esi
mov rsi, qword [rsp + 0x288]
jmp 0x140006967
mov rcx, rbp
call fcn.140007f80
mov rbx, rax
test rax, rax
jne 0x1400068b9
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov rcx, rax
lea rdx, str.remove_recursive_on_reboot:_unable_to_open_directory:__S__rv:__d__err:__d
mov eax, dword [rbx]
xor r9d, r9d
mov r8, rbp
mov dword [rsp + 0x20], eax
call fcn.1400089d0
xor eax, eax
jmp 0x140006967
mov rcx, rbx
call fcn.140007fc0
test rax, rax
je 0x14000691f
cmp word [rax], 0x2e
jne 0x1400068e7
cmp word [rax + 2], 0
je 0x140006912
cmp word [rax], 0x2e
jne 0x1400068e7
cmp word [rax + 2], 0x2e
jne 0x1400068e7
cmp word [rax + 4], 0
je 0x140006912
mov r9, rbp
mov qword [rsp + 0x20], rax
lea r8, str._s__s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140006730
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400067a0
mov rcx, rbx
call fcn.140007fc0
test rax, rax
jne 0x1400068c6
mov rcx, rbx
call fcn.140007f50
mov rcx, rbp
call fcn.1400062c0
mov rcx, rbp
call fcn.140019d30
mov edi, eax
test eax, eax
je 0x140006965
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov edx, dword [rbx]
mov rcx, rax
mov dword [rsp + 0x20], edx
mov r9d, edi
lea rdx, str.remove_recursive_on_reboot:_unable_to_remove_directory:__S__rv:__d__err:__d
mov r8, rbp
call fcn.1400089d0
mov eax, edi
mov rbx, qword [rsp + 0x280]
mov rbp, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
Function at 0x140006980
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x60
call fcn.14000c460
sub rsp, rax
mov rsi, rcx
movzx ebx, r8b
mov rcx, rdx
mov rdi, rdx
call fcn.140006020
test eax, eax
jne 0x140006afe
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140012f94
test eax, eax
je 0x1400069fa
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov r9d, dword [rbx]
lea rdx, str.rename_file:_failed_to_read_file_status_info:__S__err:__d
mov rcx, rax
mov r8, rsi
call fcn.1400089d0
mov eax, 6
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
movzx eax, word [rsp + 0x36]
mov ecx, 0xf000
and ax, cx
mov ecx, 0x8000
cmp ax, cx
je 0x140006a6a
test bl, bl
je 0x140006a56
mov ecx, 0x4000
cmp ax, cx
je 0x140006a56
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov r9d, dword [rbx]
lea rdx, str.rename_file:_path_present__but_not_a_file:__S__err:__d
mov rcx, rax
mov r8, rsi
call fcn.1400089d0
mov eax, 0x30
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.140003e20
mov rcx, rax
lea rdx, str.rename_file:_proceeding_to_rename_the_directory
call fcn.1400089d0
xor edx, edx
mov rcx, rdi
call fcn.140012fe4
test eax, eax
jne 0x140006ab0
mov rcx, rdi
call fcn.1400060d0
test eax, eax
je 0x140006ab0
call fcn.140003e20
mov rcx, rax
lea rdx, str.rename_file:_destination_file_exists_and_could_not_be_removed:__S
mov r8, rdi
call fcn.1400089d0
mov eax, 0x3e
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rdx, rdi
mov rcx, rsi
call fcn.140019df4
test eax, eax
je 0x140006afc
call fcn.140019270
mov rbx, rax
call fcn.140003e20
mov rcx, rax
lea rdx, str.rename_file:_failed_to_rename_file___src:__S__dst:_S__err:__d
mov eax, dword [rbx]
mov r9, rdi
mov r8, rsi
mov dword [rsp + 0x20], eax
call fcn.1400089d0
mov eax, 7
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140007e20
Capabilities:
Encode data using xor

Disassembly:
call fcn.140007797
test edi, edi
je 0x140007e41
lea edx, [rdi - 1]
mov rax, rbx
shr edx, 2
inc edx
xor dword [rax], r13d
lea rax, [rax + 4]
sub rdx, 1
jne 0x140007e34
mov rax, qword [rsi + 0x90]
mov edx, dword [rax]
mov ecx, dword [rax + 0x118]
call qword [rsi + 0x10]
mov cl, byte [rbx]
mov r15, rax
test cl, cl
je 0x140007e72
mov rdx, rax
inc rbx
movsx ecx, cl
mov word [rdx], cx
lea rdx, [rdx + 2]
mov cl, byte [rbx]
test cl, cl
jne 0x140007e5f
mov rcx, rsi
call fcn.140008697
mov rdx, r14
mov rcx, r15
call fcn.140008c53
lea r9, [rbp + 0x7f]
mov qword [rsp + 0x28], r14
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 0x19]
mov rcx, rsi
mov r13d, eax
call fcn.1400088e3
test al, al
jne 0x140007f5f
mov rcx, qword [rsi + 0x90]
mov edx, dword [rcx]
mov ecx, dword [rcx + 0x118]
call qword [rsi + 0x10]
and dword [rbp + 0x77], 0
mov r12, rax
mov r14d, dword [rsp + 0x30]
mov qword [rbp - 0x71], rax
mov r9, rsi
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x71]
mov rcx, r15
call fcn.140008b6f
test al, al
jne 0x140007efb
and dword [rbp + 0x77], 0
mov edx, 0xdcf
mov rcx, qword [rsi + 0x28]
call fcn.140008dbb
jmp 0x140007ed0
lea r9, [rbp - 0x59]
mov rdx, r12
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.1400083bb
mov ebx, eax
cmp eax, 4
jb 0x140007ed0
mov rdi, qword [rsp + 0x40]
cmp dword [rdi], r14d
jne 0x140007ed0
xor ecx, ecx
test eax, eax
je 0x140007ed0
mov edx, dword [rsp + 0x38]
mov rax, rdi
cmp dword [rax], edx
je 0x140007f3c
inc ecx
inc rax
cmp ecx, ebx
jb 0x140007f2d
jmp 0x140007ed0
mov r14, qword [rsp + 0x48]
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x28], r14
mov r9d, ebx
mov r8, rdi
mov ebx, dword [rbp + 0x7f]
mov rdi, qword [rsp + 0x40]
mov r9, rsi
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x50]
mov edx, ebx
mov rcx, rdi
call fcn.1400081db
test al, al
Function at 0x1400081e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov r12, qword [rsp + 0xa0]
xor esi, esi
mov ebp, edx
mov r14, rcx
mov eax, dword [r12 + 0xa0]
cmp dword [rbp + rcx - 8], eax
jne 0x1400083a8
lea rdx, [r12 + 0xa8]
lea r8d, [rsi + 4]
lea rcx, [rsp + 0x28]
call fcn.140007797
lea rdx, [r12 + 0xc0]
lea r8d, [rsi + 4]
lea rcx, [rsp + 0x2c]
call fcn.140007797
lea edx, [rbp - 8]
xor ebx, ebx
lea rcx, [r14 + 1]
xor edi, edi
lea r9d, [rsi + 8]
xor r13d, r13d
lea r8, [rsp + 0x28]
call fcn.1400078c7
mov r15, rax
test rax, rax
je 0x1400083a8
mov ecx, dword [r15]
lea rbp, [r15 + 8]
mov dword [rsp + 0x20], ecx
movzx r14d, byte [rsp + 0x22]
movzx eax, byte [rsp + 0x21]
shl eax, 0x10
shl r14d, 8
add r14d, eax
movzx eax, cl
shl eax, 0x18
add r14d, eax
shr ecx, 0x18
mov eax, dword [r12 + 0xfc]
add r14d, ecx
cmp dword [rbp], eax
jne 0x1400082fa
test rbx, rbx
jne 0x1400082ff
mov edi, dword [rbp + 8]
mov r13, rbp
mov r8, qword [rsp + 0x98]
add edi, 0x10
mov eax, edi
jne 0x1400082d1
mov rax, qword [r8 + 0x90]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [r8 + 0x90]
mov ecx, dword [rax + 0x118]
call qword [r8 + 0x10]
mov r8d, r14d
mov rdx, rbp
mov rcx, rax
mov rbx, rax
call fcn.140007797
add esi, r14d
jmp 0x140008323
test rbx, rbx
je 0x140008323
mov ecx, esi
lea r12d, [r14 + rsi]
add rcx, rbx
mov rdx, rbp
cmp r12d, edi
ja 0x14000835a
mov r8d, r14d
call fcn.140007797
mov esi, r12d
mov r12, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x80]
lea rcx, [r15 + 1]
mov edx, dword [rsp + 0x88]
lea r8, [rsp + 0x28]
sub eax, r15d
add edx, 0xfffffff8
add edx, eax
mov r9d, 8
call fcn.1400078c7
mov r15, rax
test rax, rax
je 0x140008364
jmp 0x140008272
sub edi, esi
mov r8d, edi
call fcn.140007797
test rbx, rbx
je 0x1400083a8
mov r8d, dword [r13 + 4]
lea rcx, [rbx + 0x10]
mov eax, dword [r13 + 8]
jmp 0x140008379
dec eax
test al, 3
jne 0x140008377
test eax, eax
je 0x140008396
lea edx, [rax - 1]
shr edx, 2
inc edx
xor dword [rcx], r8d
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140008389
mov rax, qword [rsp + 0x90]
test esi, esi
mov qword [rax], rbx
setne al
jmp 0x1400083aa
xor al, al
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000937f
Capabilities:
Encode data using xor

Disassembly:
mov eax, r8d
mov byte [rsp + 0x13], r8b
shr eax, 0x18
mov r9, rcx
mov byte [rsp + 0x10], al
mov eax, r8d
shr eax, 0x10
mov byte [rsp + 0x11], al
mov eax, r8d
shr eax, 8
xor r8d, r8d
mov byte [rsp + 0x12], al
test edx, edx
je 0x1400093ce
mov r10d, edx
mov cl, byte [rsp + r8 + 0x10]
lea eax, [r8 + 1]
xor byte [r9], cl
xor r8d, r8d
inc r9
cmp eax, 4
cmovne r8d, eax
sub r10, 1
jne 0x1400093af
ret
Function at 0x1400094d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
mov r9d, dword [rcx + 0x10]
mov r14, r8
mov rdi, rdx
mov r15, rcx
mov rbx, 0xffffffffffffffff
cmp r8, 4
ja 0x140009501
xor eax, eax
mov rbx, qword [rsp + 0x38]
pop r15
pop r14
pop rdi
ret
mov qword [rsp + 0x20], rbp
mov ebp, 0
mov r8d, ebp
sub r14, 4
je 0x14000966c
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r12
lea r12, [0x140000000]
movzx eax, byte [r8 + rdi]
and al, 0xfe
cmp al, 0xe8
jne 0x140009656
mov rax, r8
sub rax, rbx
cmp rax, 3
jbe 0x140009563
mov r9d, ebp
movzx ecx, byte [r8 + rdi + 4]
mov rbx, r8
lea eax, [rcx - 1]
cmp al, 0xfd
ja 0x1400095a8
add r9d, r9d
or r9d, 1
jmp 0x140009656
lea ecx, [rax + 0xff]
shl r9d, cl
and r9d, 7
je 0x140009547
lfence
movzx eax, byte [r9 + r12 + 0x30c58]
mov rcx, r8
sub rcx, rax
movzx eax, byte [rcx + rdi + 4]
cmp byte [r9 + r12 + 0x30c50], bpl
je 0x140009599
inc al
test al, 0xfe
jne 0x140009547
add r9d, r9d
mov rbx, r8
or r9d, 1
jmp 0x140009656
mov esi, dword [r15 + 0xc]
mov eax, ecx
movzx ecx, byte [r8 + rdi + 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 + rdi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [r8 + rdi + 1]
shl eax, 8
or eax, ecx
sub eax, r8d
sub eax, esi
sub eax, 5
test r9d, r9d
je 0x140009620
mov ecx, r9d
mov r10d, 0x18
movzx r11d, byte [rcx + r12 + 0x30c58]
shl r11d, 3
sub r10d, r11d
mov edx, eax
mov ecx, r10d
shr edx, cl
inc dl
test dl, 0xfe
jne 0x140009620
mov ecx, 0x20
mov edx, 1
sub ecx, r11d
shl edx, cl
dec edx
xor eax, edx
sub eax, r8d
sub eax, esi
sub eax, 5
jmp 0x1400095f5
and eax, 0x1ffffff
mov ecx, eax
and ecx, 0x1000000
neg ecx
or eax, ecx
mov ecx, eax
mov byte [r8 + rdi + 1], al
shr ecx, 8
mov byte [r8 + rdi + 2], cl
mov ecx, eax
shr ecx, 0x10
shr eax, 0x18
mov byte [r8 + rdi + 3], cl
mov byte [r8 + rdi + 4], al
add r8, 4
inc r8
cmp r8, r14
jb 0x140009529
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rcx, r8
sub rcx, rbx
cmp rcx, 3
ja 0x140009681
add cl, 0xff
shl r9d, cl
mov ebp, r9d
mov rbx, qword [rsp + 0x38]
mov rax, r8
mov dword [r15 + 0x10], ebp
mov rbp, qword [rsp + 0x20]
pop r15
pop r14
pop rdi
ret

Function at 0x14000bd38
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14000bdb0
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000bdb0
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14000bdb0
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14000bda4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000bdc2
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000bd92
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14000bdb2
Function at 0x14000cc2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000cc76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000cc76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000cc76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000cc76
cmp dword [rcx + 0x84], 0xe
jbe 0x14000cc76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000cc78
xor al, al
add rsp, 0x28
ret

Function at 0x140012dac
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14003f5a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140031fa0]
mov rbp, rcx
call fcn.140010824
xor edi, edi
test rax, rax
je 0x140012e92
mov ebx, edi
call fcn.140019270
mov r14d, dword [rax]
call fcn.140019270
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140020c84
mov rsi, rax
test rax, rax
je 0x140012e23
call fcn.140019270
mov dword [rax], r14d
jmp 0x140012e4d
call fcn.140019270
cmp dword [rax], 0x22
jne 0x140012e8a
call fcn.140019270
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140020c84
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140012e8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140012e51
cmp rax, 3
je 0x140012e6c
mov rcx, rsi
call fcn.140012d08
test al, al
je 0x140012e7d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140012e7d
mov dil, 1
mov rcx, rbx
call fcn.1400109d4
mov al, dil
jmp 0x140012e94
mov rcx, rbx
call fcn.1400109d4
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002c6d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14001324c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001326c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400191e4
or eax, 0xffffffff
jmp 0x14001326e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140019ae4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140019b1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400191e4
call fcn.140019270
mov eax, dword [rax]
jmp 0x140019b96
cmp rdi, qword [rbx + 0x18]
ja 0x140019b2b
mov qword [rbx + 0x20], rdi
jmp 0x140019b94
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140019b42
mov rcx, qword [rbx + 0x10]
call fcn.14001e128
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.14001e164
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140019b96
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140019b09
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140019d30
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140019d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400191e4
or eax, 0xffffffff
jmp 0x140019d52
xor eax, eax
add rsp, 0x28
ret

Function at 0x140019d58
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14003f5a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x140019d97
call fcn.140019250
and dword [rax], ebx
call fcn.140019270
mov dword [rax], 0x16
call fcn.14001e548
or eax, 0xffffffff
jmp 0x140019ddb
lea r8, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x140019db7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400191e4
jmp 0x140019d92
mov edx, dword [rsp + 0x20]
test dil, dil
jns 0x140019dc5
and edx, 0xfffffffe
jmp 0x140019dc8
or edx, 1
mov rcx, rbx
mov dword [rsp + 0x20], edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140019da8
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002c6d0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14001a8ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000c460
sub rsp, rax
mov rax, qword [0x14003f5a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d40c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001a93b
mov rax, rbp
jmp 0x14001aa43
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x42d60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400232dc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x42d60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001aa3f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001aa3f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400232dc
test rax, rax
js 0x14001aa3f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001aa3f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001aa31
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001aa31
cmp byte [rcx], 0xd
jne 0x14001aa17
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001aa26
cmp byte [rcx + 1], 0xa
jne 0x14001aa26
inc rcx
jmp 0x14001aa26
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f860]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001a9f9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001aa43
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002c6d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001be80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001bc7c
Function at 0x14001fa94
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001faaa
mov al, 1
jmp 0x14001fb0a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001fabb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001fb08
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001a2d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fb08
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001fb08
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001fb08
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001fb0a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fdfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140042d60]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001fe53
cmp word [rdx], r13w
jne 0x14001fe53
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fe58
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ff7d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ff9e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fe91
mov rdx, r9
mov word [rbx], cx
jmp 0x14001feb8
cmp r9, r8
jae 0x14001fec8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001fe72
jmp 0x14001ff7d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001ff72
cmp dword [rsp + 0x80], esi
je 0x14001ff72
lea r8, [0x140042d60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ff4a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001ff1a
mov word [rbx], r13w
jmp 0x14001ff7a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001ff27
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ff7a
cmp word [rsp + 0x70], r13w
jne 0x14001ff57
cmp rbx, r14
je 0x14001ff14
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400232e4
cmp word [rsp + 0x70], r13w
je 0x14001ff7d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140042d60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ff77
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ff7d