joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000c0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001bc0
mov rax, qword [0x14000c0b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001adb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001b65
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001ac0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001be2
mov rax, qword [0x14000c0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b70
add dword [0x14000c0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000c0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001ae8
mov rax, qword [0x14000c0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020b0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14000c120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x14000210c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002103
test r12, r12
je 0x140002103
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020e8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002358
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002360
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002370
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400023b5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400023ac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400023b7
add rax, 0x28
cmp rax, r9
jne 0x140002398
xor eax, eax
ret

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002450
mov rdx, qword [0x140009700]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000243e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000243e
cmp word [rax + 0x18], 0x20b
jne 0x14000243e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002450
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002429
add r12, 0x28
cmp r12, rsi
je 0x140002450
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002420
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002460
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002480
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002488
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002480
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400024d5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024cc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002480
add rax, 0x28
cmp rax, r9
jne 0x1400024b8
xor eax, eax
ret

Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002500
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002508
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002500
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009700]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002540
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002548
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002540
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002588
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000257f
test rcx, rcx
je 0x140002540
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002570
xor eax, eax
ret
Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400025b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400025b8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400025d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025f0
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400025f0
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000263c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002650
add rdx, 0x28
cmp rdx, r9
jne 0x140002628
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002660
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140009700]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002682
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002690
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002682
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002682
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002682
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026dd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026f0
add rdx, 0x28
cmp r10, rdx
jne 0x1400026c8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026ff
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000270f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026e6
test ecx, ecx
jg 0x1400026f8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14001130c
Capabilities:
Terminate process

Disassembly:
jmp 0x140016630
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113e3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017980
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400179a0
xor al, al
jmp 0x140017a21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400179b3
xor al, al
jmp 0x140017a21
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400179dd
xor al, al
jmp 0x140017a21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400179f1
xor al, al
jmp 0x140017a21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017a03
xor al, al
jmp 0x140017a21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017a1f
xor al, al
jmp 0x140017a21
mov al, 1
add rsp, 0x38
ret
Function at 0x140011645
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x1400135b0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400280fa]
call fcn.140011573
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400115a5]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x140022440], rax
cmp qword [0x140022440], 0
jne 0x140013604
lea rcx, str.Unable_to_create_hook__n
call fcn.14001128a
jmp 0x140013610
lea rcx, str.Hook_created_n
call fcn.14001128a
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140001000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140001047
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 0x140001015
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x14000100c
repz ret

Function at 0x1400010c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x140025ba0]
test r8, r8
je 0x140001109
test bl, 7
je 0x140001109
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x1400010e4
cmp r10, 8
jb 0x1400011b6
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
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 0x140001124
test r10, r10
je 0x1400011db
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x1400011bb
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret
Function at 0x140001998
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 r15, rdx
mov rsi, rcx
cmp r8, rdi
jne 0x1400019cb
mov al, 1
jmp 0x140001b3d
cmp dword [rcx + 0x14], 1
jne 0x1400019e0
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov r12b, dil
mov dword [rsp + 0x70], edi
cmp dword [rsi + 0x14], edi
je 0x140001a3d
mov rbx, rdi
cmp rbp, rdi
jbe 0x140001a67
mov r8d, 0x4000
mov eax, ebp
mov rcx, rbp
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r15]
cmp rcx, r8
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
cmovb r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
je 0x140001a67
add rbx, 0x4000
cmp rbx, rbp
jb 0x1400019f4
jmp 0x140001a5e
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
jne 0x140001b36
cmp byte [rsi + 0x1c], dil
je 0x140001b36
cmp dword [rsi + 0x14], edi
jne 0x140001b36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsi]
mov rcx, rsi
mov edi, eax
call qword [rdx + 0x20]
lea rcx, [rsi + 0x26]
mov r13, rax
call fcn.140002020
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x140001ad1
mov rcx, r13
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x140001ad1
lea rax, [r13 + rbp]
cmp rax, rbx
jbe 0x140001ad1
lea rdx, [rsi + 0x26]
lea rcx, [0x140027bc0]
call fcn.140001510
lea rdx, [rsi + 0x26]
lea rcx, [0x140027bc0]
xor r8d, r8d
call fcn.140001380
xor edi, edi
cmp al, dil
je 0x140001b24
mov ecx, dword [rsp + 0x70]
mov rax, rcx
cmp rcx, rbp
jae 0x1400019e0
cmp ecx, edi
jbe 0x1400019e0
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x20]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call qword [rbx + 0x18]
jmp 0x1400019e0
lea r8, [rsi + 0x26]
lea rcx, [0x140027bc0]
xor edx, edx
call fcn.140008868
mov byte [rsi + 0x10], 1
mov al, r12b
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 0x140001d14
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 0x140001d41
mov ecx, 0xfffffff6
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 0x140001dc0
mov rcx, rbx
call fcn.140001be8
test al, al
je 0x140001d84
mov r8d, 0x4e20
cmp rdi, r8
jbe 0x140001d84
mov rdx, rsi
mov rcx, rbx
call fcn.140001d14
jmp 0x140001dc4
cmp dword [rbx + 0x14], 1
jne 0x140001d99
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140001d99
xor eax, eax
jmp 0x140001dc4
cmp dword [rbx + 0x14], 0
jne 0x140001dbb
cmp rdi, 0x8000
jbe 0x140001dbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140001dbb
mov r8d, 0x8000
jmp 0x140001d77
or eax, 0xffffffff
jmp 0x140001dc4
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140002020
Capabilities:
Get disk size

Disassembly:
mov eax, 0x1058
call fcn.14001ba30
sub rsp, rax
mov rax, qword [0x1400242f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x800
call fcn.1400059bc
movzx eax, word [rsp + 0x40]
and dword [rsp + 0x24], 0
and dword [rsp + 0x20], 0
neg ax
lea rax, [rsp + 0x40]
sbb rcx, rcx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
and rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14000209c
mov eax, dword [rsp + 0x24]
cmp eax, dword [rsp + 0x2c]
ja 0x14000209c
mov ecx, dword [rsp + 0x20]
shl rax, 0x20
add rax, rcx
jmp 0x14000209e
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a6b0
add rsp, 0x1058
ret

Function at 0x1400020d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14001ba30
sub rsp, rax
mov rax, qword [0x1400242f8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140002131
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140005728
test al, al
je 0x140002131
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a6b0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret
Function at 0x140002154
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14001ba30
sub rsp, rax
mov rax, qword [0x1400242f8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x1400021bb
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rsi
call fcn.140005728
test al, al
je 0x1400021bb
lea rcx, [rsp + 0x20]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a6b0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400021e4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1030
call fcn.14001ba30
sub rsp, rax
mov rax, qword [0x1400242f8]
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 0x140002242
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rdi
call fcn.140005728
test al, al
je 0x140002242
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.14000a6b0
mov rbx, qword [rsp + 0x1048]
add rsp, 0x1030
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14001ba30
sub rsp, rax
mov rax, qword [0x1400242f8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, r8d
mov dil, dl
mov rbx, rcx
call fcn.1400054c4
cmp word [rax], 0x2e
je 0x1400022d7
cmp word [rax], 0x20
je 0x1400022d7
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000230c
mov rcx, rbx
call fcn.1400020d8
cmp eax, 0xffffffff
jne 0x14000231f
lea rdx, [rsp + 0x20]
mov r8d, 0x800
mov rcx, rbx
call fcn.140005728
test al, al
je 0x14000231f
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000231f
test dil, dil
je 0x14000231b
mov edx, esi
mov rcx, rbx
call fcn.140002154
xor eax, eax
jmp 0x140002339
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140002334
cmp eax, 3
mov eax, 1
jne 0x140002339
mov eax, 2
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a6b0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002a90
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r12
mov eax, 0x1280
call fcn.14001ba30
sub rsp, rax
mov rax, qword [0x1400242f8]
xor rax, rsp
mov qword [rsp + 0x1270], rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140002b44
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002b6e
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140005728
test al, al
je 0x140002b1b
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140002b37
cmp eax, 3
je 0x140002b37
cmp eax, 0x12
je 0x140002b37
mov eax, 1
jmp 0x140002b39
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x140002c04
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140002b64
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x140002c04
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.140008444
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.140005974
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.14000884c
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14000884c
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14000884c
and dword [rdi + 0x1040], 0
mov rax, rbx
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.14000a6b0
mov rbx, qword [rsp + 0x12b8]
add rsp, 0x1280
pop r12
pop rdi
pop rsi
ret
Function at 0x1400030f8
Capabilities:
Enumerate pe sections
Set registry value

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

Function at 0x140003a48
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, [rsp + 0x58]
mov ebx, edx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r11, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
cmp eax, ecx
sete bl
cmp bl, cl
je 0x140003aad
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
cmp eax, 1
mov rax, qword [rcx]
sete bl
call qword [rax + 0x28]
jmp 0x140003ab0
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret