joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cb60
Capabilities:
Delete directory

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400643c8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov byte [rsp + 0x20], 1
xor eax, eax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], 0xf
mov byte [rsp + 0x70], al
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], al
jne 0x14001cba2
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140005480
nop
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_2241a3a96db0082524e97a66b71414a3___bool__char____ptr64__char____ptr64__void____ptr64_.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14001c1f0
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x14001cc28
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cc23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001cc59
call fcn.14001df5c
movzx eax, byte [rsp + 0x20]
test al, al
je 0x14001cc40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14001df00
add rsp, 0xa0
pop rbx
ret
call fcn.140024798
int3

Function at 0x1400250a0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140024eff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024eff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024eff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024eff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024eff
cmp dword [rcx + 0x84], 0xe
jbe 0x140024eff
cmp dword [rcx + 0xf8], 0
je 0x140024eff
mov ecx, ebx
call fcn.140024fbc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140024d8c
nop
cmp dword [rbp + 0x20], 0
je 0x140024f4d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024f58
int3
xor r8d, r8d
xor edx, edx
jmp 0x140024e90
Function at 0x14002a900
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1400643c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14004eec0]
mov rbp, rcx
call fcn.14003b740
xor edi, edi
test rax, rax
je 0x14002a9e6
mov ebx, edi
call fcn.140028610
mov r14d, dword [rax]
call fcn.140028610
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14003b68c
mov rsi, rax
test rax, rax
je 0x14002a977
call fcn.140028610
mov dword [rax], r14d
jmp 0x14002a9a1
call fcn.140028610
cmp dword [rax], 0x22
jne 0x14002a9de
call fcn.140028610
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14003b68c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14002a9de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14002a9a5
cmp rax, 3
je 0x14002a9c0
mov rcx, rsi
call fcn.14002a85c
test al, al
je 0x14002a9d1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14002a9d1
mov dil, 1
mov rcx, rbx
call fcn.140024b7c
mov al, dil
jmp 0x14002a9e8
mov rcx, rbx
call fcn.140024b7c
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001df00
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14003458c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140066eb0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400345ea
cmp word [rdx], r12w
jne 0x1400345ea
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400345f0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003474b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140034726
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140034629
mov rcx, r9
jmp 0x14003464c
cmp r9, rdx
jae 0x140034663
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14003460d
jmp 0x14003474b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140034720
cmp dword [rsp + 0x80], edi
je 0x140034720
mov rdx, r14
lea r11, [0x140066eb0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400346f9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400346cc
mov word [rbx], r12w
jmp 0x140034747
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400346d5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140034747
cmp word [rsp + 0x70], r12w
jne 0x140034706
cmp rbx, rsi
je 0x1400346c6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400420bc
cmp word [rsp + 0x70], r12w
je 0x14003474b
mov word [rbx], r13w
jmp 0x140034747
lea r11, [0x140066eb0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140034743
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003474b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003b56c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003b58c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140028584
or eax, 0xffffffff
jmp 0x14003b58e
xor eax, eax
add rsp, 0x28
ret
Function at 0x14003e7cc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003e7fc
xor eax, eax
jmp 0x14003e8bf
mov rbp, rbx
cmp word [rax], si
je 0x14003e821
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003e808
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003e804
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003becc
movsxd r14, eax
test eax, eax
jne 0x14003e85f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003e7f5
mov rcx, r14
call fcn.1400389ac
mov rdi, rax
test rax, rax
jne 0x14003e878
xor ecx, ecx
call fcn.140037e58
jmp 0x14003e854
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003becc
test eax, eax
jne 0x14003e8a9
mov rcx, rdi
call fcn.140037e58
jmp 0x14003e8b3
xor ecx, ecx
call fcn.140037e58
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14003e8dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003e963
mov rsi, rbx
cmp word [rax], bp
je 0x14003e922
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003e90c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003e908
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400389ac
mov rdi, rax
test rax, rax
je 0x14003e950
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001ff70
mov rbp, rdi
xor ecx, ecx
call fcn.140037e58
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140041cb8
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400420bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400420bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140041e08
cmp rax, 0xffffffffffffffff
je 0x140041e08
xor edi, edi
test rbp, rbp
jle 0x140041db3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140038288
mov rbx, rax
test rax, rax
jne 0x140041d40
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140041da9
mov edx, 0x8000
mov ecx, r14d
call fcn.140031cd8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14003597c
cmp eax, 0xffffffff
je 0x140041d89
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140041d50
mov edx, r15d
mov ecx, r14d
call fcn.140031cd8
jmp 0x140041da9
cmp byte [rsi + 0x38], dil
je 0x140041da0
cmp dword [rsi + 0x34], 5
jne 0x140041da0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140041da9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140037e58
jmp 0x140041e1c
jns 0x140041e1c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400420bc
cmp rax, 0xffffffffffffffff
jne 0x140041dd4
cmp byte [rsi + 0x30], dil
je 0x140041e1c
mov edi, dword [rsi + 0x2c]
jmp 0x140041e1c
mov ecx, r14d
call fcn.14003bc20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140041e1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140041e1c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140041e15
mov eax, dword [rsi + 0x2c]
jmp 0x140041e1a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400420bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140044f04
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.140024b90
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140044f8e
cmp byte [rbp - 0x21], r15b
je 0x140044f89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140044fc4
call fcn.140037560
test eax, eax
jne 0x140044fb0
cmp byte [rbp - 0x21], r15b
je 0x140044fa8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140044fc4
cmp byte [rbp - 0x21], r15b
je 0x140044fc1
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.14002a0c0
test eax, eax
jne 0x140045064
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140024b90
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140045003
cmp byte [rbp - 0x21], r15b
je 0x140045038
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140045038
call fcn.140037560
test eax, eax
jne 0x140045024
cmp byte [rbp - 0x21], r15b
je 0x14004501d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140045038
cmp byte [rbp - 0x21], r15b
je 0x140045035
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.14002a0c0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140045064
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140045067
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140045075
mov rcx, rdi
call fcn.140037e58
cmp byte [rbp + 0x3f], r15b
je 0x140045084
mov rcx, qword [rbp + 0x27]
call fcn.140037e58
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 0x140001448
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1080
call fcn.14000b1c0
sub rsp, rax
mov rax, qword [0x14002e2b0]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140001501
mov ecx, eax
call fcn.140004d0c
xor esi, esi
test al, al
je 0x140001501
mov ecx, ebx
call fcn.140004d20
test al, al
jne 0x140001501
mov r8d, 0x800
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140007698
lea rcx, [rsp + 0x60]
call fcn.14000edd8
lea rax, [rax*2 + 2]
cmp rax, 0x1002
jae 0x140001526
xor edx, edx
mov word [rsp + rax + 0x60], si
lea r8d, [rsi + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000bf00
lea eax, [rsi + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14000b230
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000af20
int3

Function at 0x140001580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov eax, r8d
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x104
jb 0x1400015c0
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov edx, eax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400015c0
mov bl, 1
jmp 0x1400015d2
mov r8, rdi
lea rdx, str.unknown_folder
mov rcx, rsi
call fcn.140007698
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001918
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdi, [0x1400207b8]
mov rbx, rcx
mov rdx, rdi
lea rcx, str.Setup.rar
call fcn.140009344
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lz
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0xe]
lea rcx, str.Setup.xz
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0xf]
lea rcx, str.Setup.zipx
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0x10]
lea rcx, str.Setup.001
mov rdx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
mov rcx, rdi
lea rdx, str.Desktop
call fcn.140009344
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0x17]
lea rdi, str.Setup
mov rcx, rdi
lea rdx, str.ShellExt
call fcn.140009344
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.140009344
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140009344
Function at 0x140003ae4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [0x14002ede0]
mov r10, r8
mov rbx, rdx
mov r11d, ecx
test r8, r8
je 0x140003b2d
test bl, 7
je 0x140003b2d
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x140003b08
cmp r10, 8
jb 0x140003bd7
mov rdi, r10
shr rdi, 3
imul rax, rdi, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
mov r8d, dword [rsi + rdx*4]
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r11d
shr eax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1000]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8d, dword [rsi + rcx*4 + 0x1400]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x140003b45
test r10, r10
je 0x140003bfc
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x140003bdc
mov rbx, qword [rsp + 8]
mov eax, r11d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

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

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140003c57
xor r9d, r9d
mov r10d, r9d
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 0x140003c25
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x140003c1c
ret

Function at 0x1400043f8
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
je 0x14000440f
xor al, al
add rsp, 0x20
pop rbx
ret
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x14000441c
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rbx + 0x1b], 0
je 0x140004407
lea rcx, [rbx + 0x26]
add rsp, 0x20
pop rbx
jmp fcn.140004b60
Function at 0x140004430
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
jne 0x14000445d
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, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400044dc
mov rcx, rbx
call fcn.14000456c
test al, al
je 0x1400044a0
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x1400044a0
mov rdx, rsi
mov rcx, rbx
call fcn.140004430
jmp 0x1400044e0
cmp dword [rbx + 0x14], 1
jne 0x1400044b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400044b5
xor eax, eax
jmp 0x1400044e0
cmp dword [rbx + 0x14], 0
jne 0x1400044d7
cmp rdi, 0x8000
jbe 0x1400044d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x1400044d7
mov r8d, 0x8000
jmp 0x140004493
or eax, 0xffffffff
jmp 0x1400044e0
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400049a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov r13, rdx
mov rsi, rcx
test r8, r8
jne 0x1400049d3
mov al, 1
jmp 0x140004b43
cmp dword [rcx + 0x14], 1
jne 0x1400049e8
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov r14b, dil
mov dword [rsp + 0x70], edi
cmp dword [rsi + 0x14], edi
je 0x140004a45
mov rbx, rdi
test rbp, rbp
je 0x140004a6f
mov r8d, 0x4000
mov qword [rsp + 0x20], rdi
mov eax, ebp
lea rdx, [rbx + r13]
sub eax, ebx
lea r9, [rsp + 0x70]
mov rcx, rbp
sub rcx, rbx
cmp rcx, r8
mov rcx, qword [rsi + 8]
cmovb r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r14b
test r14b, r14b
je 0x140004a6f
add rbx, 0x4000
cmp rbx, rbp
jb 0x1400049fc
jmp 0x140004a66
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov r8d, ebp
mov qword [rsp + 0x20], rdi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r14b
test r14b, r14b
jne 0x140004b3c
cmp byte [rsi + 0x1c], dil
je 0x140004b3c
cmp dword [rsi + 0x14], edi
jne 0x140004b3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsi]
mov rcx, rsi
mov edi, eax
call qword [rdx + 0x28]
lea r12, [rsi + 0x26]
mov r15, rax
mov rcx, r12
call fcn.140004c74
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x140004ada
mov rcx, r15
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x140004ada
lea rax, [r15 + rbp]
cmp rax, rbx
jbe 0x140004ada
mov rdx, r12
lea rcx, [0x140030ea8]
call fcn.140003f88
xor r8d, r8d
lea rcx, [0x140030ea8]
mov rdx, r12
call fcn.140003db8
xor edi, edi
test al, al
je 0x140004b2a
mov ecx, dword [rsp + 0x70]
mov eax, ecx
cmp rcx, rbp
jae 0x1400049e8
test ecx, ecx
je 0x1400049e8
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x28]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call qword [rbx + 0x20]
jmp 0x1400049e8
lea r8, [rsi + 0x26]
xor edx, edx
lea rcx, [0x140030ea8]
call fcn.14000795c
mov byte [rsi + 0x10], 1
mov al, r14b
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140004b60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14000b1c0
sub rsp, rax
mov rax, qword [0x14002e2b0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x140004bbe
mov r8d, 0x800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140005d48
test al, al
je 0x140004bbe
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000b230
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret