joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012270
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140012288
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140012290
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400122a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400122ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400122e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400122ef
add rax, 0x28
cmp rax, r9
jne 0x1400122d0
xor eax, eax
ret

Function at 0x1400122f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140012380
mov rdx, qword [0x14001b210]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001236e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001236e
cmp word [rax + 0x18], 0x20b
jne 0x14001236e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140012380
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140012359
add rbx, 0x28
cmp rbx, rdi
je 0x140012380
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140012350
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14001b210]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400123b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400123b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400123b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001240d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140012404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400123b0
add rax, 0x28
cmp rax, r9
jne 0x1400123f0
xor eax, eax
ret

Function at 0x140012410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001b210]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001242f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140012438
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001242f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140012450
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001b210]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140012470
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140012478
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140012470
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400124c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400124b7
test rcx, rcx
je 0x140012470
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400124a8
xor eax, eax
ret

Function at 0x1400124d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001b210]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400124ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400124f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14001b210]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140012530
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140012538
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140012530
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140012530
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140012584
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140012590
add rdx, 0x28
cmp rdx, r9
jne 0x140012570
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14001b210]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400125c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400125d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400125c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400125c2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400125c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140012625
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140012638
add rdx, 0x28
cmp r10, rdx
jne 0x140012610
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140012647
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140012657
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001262e
test ecx, ecx
jg 0x140012640
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140a86058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a861df
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 0x140a86089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a8606f
add dl, dl
jne 0x140a86096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a860f6
xor eax, eax
add dl, dl
jne 0x140a860a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a861ad
add dl, dl
jne 0x140a860b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a860c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a860d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a860dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a860ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a8607e
mov eax, 1
add dl, dl
jne 0x140a86106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a86113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a860fb
sub eax, ebx
mov ebx, 1
jne 0x140a8614c
mov ecx, 1
add dl, dl
jne 0x140a8612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a8613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a86123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a86168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a86175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a8615d
cmp eax, 0x7d00
jae 0x140a8619b
cmp eax, 0x500
jb 0x140a86196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8607e
cmp eax, 0x7f
ja 0x140a8619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a861d2
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 0x140a8607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x18], 0
mov rbx, rcx
je 0x140001606
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x17
jb 0x1400015f1
mov byte [rdx + 0x18], 0
call fcn.140003e70
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140001620
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400016a7
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000169e
cmp qword [rbx + 0x18], 7
mov rcx, rbx
jbe 0x14000167d
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rdi
test eax, eax
je 0x1400016ca
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001670
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140004e70
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x1400016a9

Function at 0x1400016e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
mov rcx, rdx
mov rdi, qword [rdx + 0x18]
cmp rdi, 0xf
jbe 0x14000171e
mov rcx, qword [rdx]
mov r8, qword [rdx + 0x10]
cmp r8, 0xb
jne 0x1400017aa
lea rdx, str.BlazingPack
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400017aa
lea rdx, str.__tQFVVzw_KFBOq_FWS
cmp byte [0x140101edd], al
je 0x140001766
xor ecx, ecx
nop dword [rax]
lea eax, [rcx + 0x1e]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 0x1c
jb 0x140001750
mov byte [0x140101edd], 0
mov rcx, rsi
call fcn.1400037a0
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400017a5
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400017a0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000180d
mov rcx, r8
call fcn.1400051dc
mov rax, rsi
jmp 0x1400017dd
cmp rdi, 0xf
jbe 0x1400017dd
lea rdx, [rdi + 1]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400017d8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000180d
mov rcx, r8
call fcn.1400051dc
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140004e70
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140001820
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x38], rdx
mov rcx, rdx
mov rdi, qword [rdx + 0x18]
cmp rdi, 0xf
jbe 0x14000185e
mov rcx, qword [rdx]
mov r8, qword [rdx + 0x10]
cmp r8, 0xb
jne 0x14000190a
lea rdx, str.BlazingPack
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000190a
mov dword [rsp + 0x20], 0x5b41735c
mov dword [rsp + 0x24], 0x75434d4b
mov dword [rsp + 0x28], 0x434447
mov byte [rsp + 0x2c], 1
xor ecx, ecx
nop
lea eax, [rcx + 0x1e]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 0xb
jb 0x1400018a0
mov byte [rsp + 0x2c], 0
lea r8, [rsp + 0x2b]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140004610
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400018fe
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400018f9
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001903
mov rcx, r8
call fcn.1400051dc
mov rax, rsi
jmp 0x14000193d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rdi, 0xf
jbe 0x14000193d
lea rdx, [rdi + 1]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140001938
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000196d
mov rcx, r8
call fcn.1400051dc
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004e70
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140001ce0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0xf], 0
mov rbx, rcx
je 0x140001d06
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0xe
jb 0x140001cf1
mov byte [rdx + 0xf], 0
call fcn.140003e70
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400026b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x1b], 0
mov rbx, rcx
je 0x1400026d6
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x1a
jb 0x1400026c1
mov byte [rdx + 0x1b], 0
call fcn.140003e70
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400026f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x19], 0
mov rbx, rcx
je 0x140002716
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x18
jb 0x140002701
mov byte [rdx + 0x19], 0
call fcn.140003e70
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140002c00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002c22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002c31
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002c54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002c56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002c92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002d2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002ccd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002d0e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002d2e
cmp rbx, rax
ja 0x140002ce0
test rbx, rbx
je 0x140002d2e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax - 0x77], cl
stosd dword [rdi], eax
pop rax
sbb al, 0
add byte [rax - 0x77], cl
stosd dword [rdi], eax
invalid
Function at 0x140003190
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400031bd
xor eax, eax
jmp 0x140003329
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400031f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400031f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003329
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000331c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000323a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003265
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003321
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400032d4
sub eax, 1
je 0x1400032d4
cmp eax, 2
jne 0x14000331c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003321
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003302
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000331c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003321
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004e70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003b30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003c03
cmp byte [rcx + 0x71], 0
je 0x140003c03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003bff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003bc4
sub eax, 1
je 0x140003bc8
cmp eax, 2
jne 0x140003bff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004e70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003bf6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140003bff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003bac
xor al, al
jmp 0x140003bac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004e70
add rsp, 0x60
pop rbx
ret

Function at 0x140005960
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400059aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400059aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400059aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400059aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400059aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400059ac
xor al, al
add rsp, 0x28
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.14000bac0
sub rsp, rax
mov rax, qword [0x1400318e0]
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.140004c0c
xor esi, esi
test al, al
je 0x140001501
mov ecx, ebx
call fcn.140004c20
test al, al
jne 0x140001501
mov r8d, 0x800
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140007f78
lea rcx, [rsp + 0x60]
call fcn.14000f758
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.14000c840
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.14000bb30
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000b81c
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.140007f78
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, [0x1400227b8]
mov rbx, rcx
mov rdx, rdi
lea rcx, str.Setup.rar
call fcn.140009c40
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lz
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0xe]
lea rcx, str.Setup.xz
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0xf]
lea rcx, str.Setup.zipx
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0x10]
lea rcx, str.Setup.001
mov rdx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
mov rcx, rdi
lea rdx, str.Desktop
call fcn.140009c40
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0x17]
lea rdi, str.Setup
mov rcx, rdi
lea rdx, str.ShellExt
call fcn.140009c40
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.140009c40
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140009c40