joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1417cb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1417cb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1417cb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417cb06f
add dl, dl
jne 0x1417cb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417cb0f6
xor eax, eax
add dl, dl
jne 0x1417cb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417cb1ad
add dl, dl
jne 0x1417cb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417cb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417cb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417cb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417cb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1417cb07e
mov eax, 1
add dl, dl
jne 0x1417cb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417cb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417cb0fb
sub eax, ebx
mov ebx, 1
jne 0x1417cb14c
mov ecx, 1
add dl, dl
jne 0x1417cb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417cb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417cb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417cb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1417cb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417cb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417cb15d
cmp eax, 0x7d00
jae 0x1417cb19b
cmp eax, 0x500
jb 0x1417cb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417cb07e
cmp eax, 0x7f
ja 0x1417cb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417cb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417cb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1417cb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002ae0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x6b0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov r12, rcx
lea rbx, [rax - 0x608]
test r9, r9
je 0x140002b50
lea rcx, [rax - 0x608]
mov rdx, r9
call fcn.14000c978
lea rcx, [rsp + 0xb0]
call fcn.14000c808
mov rdx, rdi
lea rbx, [rsp + rax + 0xb1]
mov rcx, rbx
call fcn.14000c978
mov rcx, rbx
call fcn.14000c808
lea rbx, [rbx + rax + 1]
mov ecx, 0x85
call fcn.14000b944
mov rcx, rbx
mov rdx, rax
call fcn.14000c978
mov rcx, rbx
call fcn.14000c808
lea rdx, [0x140016588]
lea rbx, [rbx + rax + 1]
mov rcx, rbx
call fcn.14000c978
mov rcx, rbx
call fcn.14000c808
lea rcx, [rsp + 0x20]
xor edx, edx
mov byte [rax + rbx + 1], 0
mov ebx, 0x88
mov r8, rbx
call fcn.14000c654
mov rax, qword [0x14001a100]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xb0]
mov ebx, 0x400
mov rcx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x78], rbp
call fcn.140008968
cmp rax, rsi
jne 0x140002c01
lea rdx, [rsp + 0x2b0]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea r11, [rsp + 0x2b0]
mov qword [rsp + 0x70], r11
mov dil, byte [rsp + 0x6e0]
mov dword [rsp + 0x80], 0x1080c
lea rcx, [rsp + 0x20]
test dil, dil
je 0x140002c26
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x140002c2c
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov ebx, eax
test eax, eax
jne 0x140002c5d
call qword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x140002c5b
mov byte [rsi], bl
lea rcx, [rsp + 0x20]
test dil, dil
je 0x140002c53
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x140002c59
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov ebx, eax
test ebx, ebx
lea r11, [rsp + 0x6b0]
setne al
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x14000308c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor r8d, r8d
lea r9, [0x140019240]
mov r10d, r8d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x14000309f
inc r8d
mov dword [r9], r10d
add r9, 4
cmp r8d, 0x100
jl 0x140003096
repz ret
Function at 0x1400030d4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, r8
mov rbp, rdx
mov ebx, ecx
cmp dword [0x140019244], esi
jne 0x1400030ff
call fcn.14000308c
lea r9, [0x140019240]
jmp 0x140003129
test bpl, 7
je 0x14000312e
movzx ecx, byte [rbp]
movzx eax, bl
dec rdi
xor rcx, rax
mov eax, ebx
mov ebx, dword [r9 + rcx*4]
shr eax, 8
xor ebx, eax
inc rbp
cmp rdi, rsi
ja 0x140003108
cmp rdi, 8
jb 0x1400031b9
mov r8, rdi
shr r8, 3
mov rax, r8
imul rax, rax, 0xfffffffffffffff8
add rdi, rax
xor ebx, dword [rbp]
add rbp, 8
movzx eax, bl
shr ebx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, ebx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, dword [rbp - 4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov ebx, dword [r9 + rax*4]
xor ebx, ecx
sub r8, 1
jne 0x140003149
cmp rdi, rsi
jbe 0x1400031db
movzx ecx, byte [rsi + rbp]
movzx eax, bl
inc rsi
xor rcx, rax
mov eax, ebx
mov ebx, dword [r9 + rcx*4]
shr eax, 8
xor ebx, eax
cmp rsi, rdi
jb 0x1400031be
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003838
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1400198ec], 0
mov rbx, rdx
jne 0x140003861
mov ecx, 0x76
call fcn.14000b944
mov r8, rbx
xor ecx, ecx
mov rdx, rax
call fcn.14000ddd8
mov eax, dword [0x14001a108]
mov ebx, 2
test eax, eax
je 0x140003875
cmp eax, 1
jne 0x14000387b
mov dword [0x14001a108], ebx
inc dword [0x14001a10c]
call fcn.1400061a0
call fcn.14000e4a8
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14000cbf4

Function at 0x14000391c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x1400198ec], 0
mov rbx, rdx
jne 0x140003945
mov ecx, 0x204
call fcn.14000b944
mov r8, rbx
xor ecx, ecx
mov rdx, rax
call fcn.14000ddd8
mov eax, dword [0x14001a108]
mov ebx, 2
test eax, eax
je 0x140003959
cmp eax, 1
jne 0x14000395f
mov dword [0x14001a108], ebx
inc dword [0x14001a10c]
call fcn.1400061a0
call fcn.14000e4a8
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.14000cbf4

Function at 0x140003a2c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 0x6b
call fcn.14000b944
mov rcx, rax
call fcn.14000d7b0
inc dword [0x14001a10c]
mov dword [0x14001a108], 8
call fcn.1400061a0
call fcn.14000e4a8
mov ecx, 8
add rsp, 0x28
jmp fcn.14000cbf4

Function at 0x140003a6c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, rdx
xor edx, edx
call fcn.1400039bc
mov eax, dword [0x14001a108]
test eax, eax
je 0x140003a89
cmp eax, 1
jne 0x140003a93
mov dword [0x14001a108], 2
inc dword [0x14001a10c]
call fcn.1400061a0
call fcn.14000e4a8
mov ecx, 2
add rsp, 0x28
jmp fcn.14000cbf4
Function at 0x140003ab4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.1400039f0
inc dword [0x14001a10c]
mov dword [0x14001a108], 5
call fcn.1400061a0
call fcn.14000e4a8
mov ecx, 5
add rsp, 0x28
jmp fcn.14000cbf4

Function at 0x140005610
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x24f0
call fcn.140015e00
sub rsp, rax
mov rdi, rcx
lea rcx, [rsp + 0x1434]
mov rbx, rdx
call fcn.1400116fc
lea rcx, [rsp + 0x1458]
call fcn.1400116fc
lea rcx, [rsp + 0x147c]
call fcn.1400116fc
lea r8, [rsp + 0x820]
xor r9d, r9d
mov rdx, rbx
mov rcx, rdi
call fcn.14000703c
test al, al
je 0x1400057fb
cmp byte [rsp + 0x820], 0
je 0x1400057fb
cmp byte [rsp + 0x14a0], 0
je 0x1400057fb
lea rcx, [rsp + 0x820]
call fcn.140008968
lea rdx, [rsp + 0x14a0]
mov rcx, rax
call fcn.1400110ac
test eax, eax
je 0x1400057fb
mov rcx, rdi
call fcn.140008968
lea rdx, [rsp + 0x14a0]
mov rcx, rax
call fcn.1400110ac
test eax, eax
jne 0x1400057fb
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
mov rdx, rdi
call fcn.140011194
lea rcx, [rsp + 0x20]
call fcn.140008968
lea rdx, str.rtmp_d
mov r8d, ebx
mov rcx, rax
call fcn.14000cc0c
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140006560
test al, al
je 0x14000571b
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x1400056d1
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140006560
test al, al
jne 0x1400057fb
lea rcx, [rsp + 0x420]
mov r8d, 0x400
mov rdx, rdi
call fcn.140011194
lea rcx, [rsp + 0x820]
call fcn.140008968
lea rcx, [rsp + 0x420]
mov rbx, rax
call fcn.140008968
mov rdx, rbx
mov rcx, rax
call fcn.14000c978
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x420]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1400057fb
lea rcx, [rsp + 0x18c0]
call fcn.140005a64
xor edx, edx
mov rcx, rdi
xor bl, bl
call fcn.140006560
test al, al
jne 0x1400057b9
lea rcx, [rsp + 0x18c0]
mov r9b, 1
xor r8d, r8d
mov rdx, rdi
call fcn.140005e54
mov bl, al
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test bl, bl
je 0x1400057ea
lea rcx, [rsp + 0x18c0]
call fcn.140005adc
lea rcx, [rsp + 0x18c0]
call fcn.140005b80
lea rcx, [rsp + 0x18c0]
call fcn.140005c78
mov al, 1
jmp 0x1400057fd
xor al, al
mov rbx, qword [rsp + 0x2500]
add rsp, 0x24f0
pop rdi
ret

Function at 0x140005c2c
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 0x140005cac
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rbx, rcx
mov r12, rdx
cmp byte [rcx + 0x1e], r14b
lea edx, [r14 + 1]
movzx eax, r9b
cmovne eax, edx
cmp byte [rsp + 0x90], r14b
mov dword [rcx + 0xc20], r14d
mov ecx, 0xc0000000
mov r13d, edx
mov ebp, 0x80000000
cmovne ebp, ecx
cmp al, r14b
mov al, byte [rbx + 0x1d]
lea r15d, [r14 + 3]
mov rdi, r8
cmovne r13d, r15d
neg al
sbb esi, esi
not esi
and esi, 0x8000000
call fcn.140008384
cmp eax, r14d
je 0x140005d52
cmp rdi, r14
je 0x140005d52
cmp word [rdi], r14w
je 0x140005d52
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x140005d71
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005d8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140005d8f
mov dword [rbx + 0xc20], 1
cmp rsi, 0xffffffffffffffff
mov byte [rbx + 0x1a], r14b
mov dword [rbx + 0x14], r14d
setne bpl
mov byte [rbx + 0x18], r14b
cmp bpl, r14b
je 0x140005dfb
mov qword [rbx + 8], rsi
cmp rdi, r14
je 0x140005dc2
lea rcx, [rbx + 0x420]
mov rdx, rdi
call fcn.140011b5c
jmp 0x140005dca
mov word [rbx + 0x420], r14w
cmp r12, r14
je 0x140005ddd
lea rcx, [rbx + 0x1f]
mov rdx, r12
call fcn.14000c978
jmp 0x140005def
lea rdx, [rbx + 0x1f]
mov r8d, 0x1000000
mov rcx, rdi
call fcn.1400118e4
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.140005aac
lea r11, [rsp + 0x40]
mov al, bpl
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140005fa8
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 rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x140005fe6
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140006040
mov rcx, rbx
call fcn.140005c48
test al, al
je 0x140006026
cmp rdi, rbp
jbe 0x140006026
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.140005fa8
jmp 0x140006044
cmp dword [rbx + 0x14], 1
jne 0x14000603b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x14000603b
xor eax, eax
jmp 0x140006044
or eax, 0xffffffff
jmp 0x140006044
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 0x140006278
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
call fcn.14000605c
test al, al
je 0x1400062a4
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140006248
add rsp, 0x20
pop rbx
ret

Function at 0x1400062f0
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x14000643b
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x30
mov rbx, rcx
mov ecx, dword [rcx + 0x14]
mov rdi, r8
mov rbp, rdx
test ecx, ecx
je 0x14000633b
sub ecx, 1
je 0x14000632c
cmp ecx, 1
jne 0x14000633b
mov ecx, 0xfffffff4
jmp 0x140006331
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov r13d, 0x4000
and dword [rsp + 0x60], 0
cmp dword [rbx + 0x14], 0
je 0x140006394
xor esi, esi
test rdi, rdi
je 0x1400063b9
mov eax, edi
mov r8d, r13d
mov rcx, rdi
sub rcx, rsi
sub eax, esi
lea rdx, [rsi + rbp]
cmp rcx, r13
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x60]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x1400063b9
add rsi, r13
cmp rsi, rdi
jb 0x140006353
jmp 0x1400063b5
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x140006425
cmp byte [rbx + 0x1c], 0
je 0x140006425
cmp dword [rbx + 0x14], 0
jne 0x140006425
lea rdx, [rbx + 0x1f]
lea rcx, [0x14001a108]
xor r8d, r8d
call fcn.140003898
test al, al
je 0x140006413
mov ecx, dword [rsp + 0x60]
cmp rcx, rdi
jae 0x140006341
test ecx, ecx
je 0x140006341
mov rcx, rbx
call fcn.140005bbc
mov ecx, dword [rsp + 0x60]
xor r8d, r8d
sub rax, rcx
mov rcx, rbx
mov rdx, rax
call fcn.140006248
jmp 0x140006341
lea r8, [rbx + 0x1f]
lea rcx, [0x14001a108]
xor edx, edx
call fcn.140003ab4
mov rbp, qword [rsp + 0x58]
mov byte [rbx + 0x10], 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret

Function at 0x140006560
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call fcn.140008384
xor ebx, ebx
cmp eax, ebx
je 0x140006595
cmp rdi, rbx
je 0x140006595
cmp word [rdi], bx
je 0x140006595
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x14000659e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x1400065c8
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140008384
xor ecx, ecx
cmp eax, ecx
je 0x1400065f8
cmp rbx, rcx
je 0x1400065f8
cmp word [rbx], cx
je 0x1400065f8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140006601
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400066c8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140008384
xor esi, esi
cmp eax, esi
je 0x1400066fd
cmp rbx, rsi
je 0x1400066fd
cmp word [rbx], si
je 0x1400066fd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140006706
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x30]
cmp eax, esi
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov ebp, r9d
mov sil, r8b
mov rbx, rdx
mov rdi, rcx
call fcn.140008384
xor r12d, r12d
cmp eax, r12d
je 0x140006766
cmp rbx, r12
je 0x140006766
cmp word [rbx], r12w
je 0x140006766
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x140006771
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, r12d
je 0x14000678d
cmp sil, r12b
je 0x140006789
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.14000660c
xor eax, eax
jmp 0x1400067a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400067a2
cmp eax, 3
mov eax, 1
jne 0x1400067a7
mov eax, 2
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14000761c
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rbp, rdx
mov rsi, rcx
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov rax, qword [rsi]
lea rdx, [rsp + 0x90]
mov rcx, rsi
call qword [rax + 0x90]
cmp eax, ebx
jl 0x140007667
mov rcx, qword [rsp + 0x90]
cmp rcx, rbx
jne 0x1400076c9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x2710
ja 0x1400076bc
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebx
je 0x140007642
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x140007642
mov rcx, qword [rsp + 0x90]
cmp rcx, rbx
je 0x140007717
mov rax, qword [rcx]
lea r8, [rsp + 0x80]
lea rdx, [0x140016bf8]
call qword [rax]
cmp eax, ebx
jl 0x140007717
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp eax, ebx
jl 0x140007709
mov rcx, qword [rsp + 0x80]
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x28]
cmp eax, ebx
setge bl
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx]
call qword [rdx + InitCommonControls]
mov al, bl
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140007884
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x140007903
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x90]
mov r8, qword [rcx]
call qword [r8 + 0x1c0]
cmp dword [rsp + 0x90], 4
je 0x140007912
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140007903
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageA]
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
jbe 0x14000789e
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x18]
and qword [rsp + 0x20], 0
mov r11d, 3
mov dword [rsp + 0x38], 0x96
lea r9, [rsp + 0x30]
mov word [rsp + 0x30], r11w
mov rax, qword [rcx]
lea edx, [r11 + 0x3c]
lea r8d, [r11 - 1]
call qword [rax + 0x1b0]
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x1400081a4
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
cmp byte [rcx + 0x28], 0
mov rbp, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
jne 0x1400081dc
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
mov byte [rbx + 0x28], 1
xor edx, edx
mov rcx, rsi
mov byte [rbx + 0x29], 0
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, rdi
mov rcx, rbx
call fcn.140008114
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov qword [rbx + 0x20], rbp
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
lea r8, [rsp + 0x60]
mov r9d, 2
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140008236
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x68]
mov r10d, dword [rsp + 0x64]
mov r9d, dword [rsp + 0x6c]
mov qword [rsp + 0x58], rbx
lea edx, [rcx + 1]
sub r8d, ecx
mov rcx, qword [rbx]
mov qword [rsp + 0x50], rcx
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
sub r9d, r10d
sub r8d, 2
xor ecx, ecx
mov dword [rsp + 0x38], r9d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], edx
lea rdx, str.RarHtmlClassName
mov r9d, 0x40000000
xor r8d, r8d
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, 5
mov qword [rbx + 8], rax
test rax, rax
je 0x1400082c5
mov edx, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp byte [rbx + 0x29], 0
je 0x1400082e2
cmp dword [rbx + 0x2c], 0x64
jbe 0x14000836e
mov rcx, rbx
call fcn.140007884
jmp 0x14000836e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400082f6
call qword [sym.imp.USER32.dll_DestroyWindow]
and qword [rbx + 8], 0
mov edx, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbp
call fcn.14000c808
lea rcx, [rax + rax*2]
lea rcx, [rcx + rcx + 0x100]
call fcn.14000c574
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.14000c978
mov rdx, rdi
mov rcx, rbx
call fcn.14000772c
test al, al
jne 0x14000833f
mov rdx, rdi
call fcn.140007760
mov rdx, rdi
mov rcx, rbx
call fcn.140007d18
mov rcx, rdi
mov rbx, rax
call fcn.14000c598
test rbx, rbx
je 0x14000836e
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, rbx
call fcn.14000c598
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret