joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14021e070
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.1402115b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402115b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14021e1c0
cmp rax, 0xffffffffffffffff
je 0x14021e1c0
xor edi, edi
test rbp, rbp
jle 0x14021e16b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14020ce3c
mov rbx, rax
test rax, rax
jne 0x14021e0f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14021e161
mov edx, 0x8000
mov ecx, r14d
call fcn.1402074b8
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.14020c3c8
cmp eax, 0xffffffff
je 0x14021e141
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14021e108
mov edx, r15d
mov ecx, r14d
call fcn.1402074b8
jmp 0x14021e161
cmp byte [rsi + 0x38], dil
je 0x14021e158
cmp dword [rsi + 0x34], 5
jne 0x14021e158
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
cmp byte [rsi + 0x30], dil
je 0x14021e161
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14020ceb4
jmp 0x14021e1d4
jns 0x14021e1d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402115b4
cmp rax, 0xffffffffffffffff
jne 0x14021e18c
cmp byte [rsi + 0x30], dil
je 0x14021e1d4
mov edi, dword [rsi + 0x2c]
jmp 0x14021e1d4
mov ecx, r14d
call fcn.1402148a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14021e1d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
jmp 0x14021e1d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14021e1cd
mov eax, dword [rsi + 0x2c]
jmp 0x14021e1d2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402115b4
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 0x141d54058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141d541df
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 0x141d54089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d5406f
add dl, dl
jne 0x141d54096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d540f6
xor eax, eax
add dl, dl
jne 0x141d540a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d541ad
add dl, dl
jne 0x141d540b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d540c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d540d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d540dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141d540ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141d5407e
mov eax, 1
add dl, dl
jne 0x141d54106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d54113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d540fb
sub eax, ebx
mov ebx, 1
jne 0x141d5414c
mov ecx, 1
add dl, dl
jne 0x141d5412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d5413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d54123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d5407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141d54168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d54175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d5415d
cmp eax, 0x7d00
jae 0x141d5419b
cmp eax, 0x500
jb 0x141d54196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d5407e
cmp eax, 0x7f
ja 0x141d5419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d5407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141d541d2
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 0x141d5407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x14000189c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140002198]
test rax, rax
je 0x1400018e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400018e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400018e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400018e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400018e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400018e8
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140261ff0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140262000]
mov dword [rax], 1
mov rax, qword [0x140262010]
mov dword [rax], 1
mov rax, qword [0x140261fa0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140261fe0]
mov dword [0x14026500c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1402620c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1402620a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [str.0_b_]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001810
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001880
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402b00b4]
mov rbx, rcx
test esi, esi
jle 0x1400019b0
mov rax, qword [0x1402b00b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001955
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018b0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400019d2
mov rax, qword [0x1402b00b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402b00b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000194e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001960
add dword [0x1402b00b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402b00b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000194e
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 esi, esi
jmp 0x1400018d8
mov rax, qword [0x1402b00b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402b0120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402b0100]
test rbx, rbx
je 0x140001fbc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001fb3
test eax, eax
jne 0x140001fb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002200
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 0x14000224d
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 0x140002244
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000224f
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022e0
mov rdx, qword [0x140261fa0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400022ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400022ce
cmp word [rax + 0x18], 0x20b
jne 0x1400022ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400022e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400022b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400022e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400022b0
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 0x1400022f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140261fa0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002310
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002318
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002310
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000236d
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 0x140002364
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002310
add rax, 0x28
cmp rax, r9
jne 0x140002350
xor eax, eax
ret

Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140261fa0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000238f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002398
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000238f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140261fa0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002420
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002417
test rcx, rcx
je 0x1400023d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002408
xor eax, eax
ret
Function at 0x140002430
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140261fa0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002490
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002490
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 0x1400024e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400024f0
add rdx, 0x28
cmp rdx, r9
jne 0x1400024d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140261fa0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002522
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002530
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002522
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002522
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002522
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 0x140002585
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002598
add rdx, 0x28
cmp r10, rdx
jne 0x140002570
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000258e
test ecx, ecx
jg 0x1400025a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1800043a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x18004f010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
test eax, eax
jne 0x1800043c2
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180004410
mov eax, dword [rsp + 0x30]
jmp 0x180004420
cmp dword [rsp + 0x38], 4
je 0x18000441e
mov eax, 0xd
jmp 0x180004420
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18001d650
add rsp, 0x58
ret
Function at 0x1800117a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
je 0x1800117c5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800117c9
xor eax, eax
jmp 0x180011837
mov dx, 0x2e
mov rcx, qword [rsp + 0x48]
call fcn.18001f4c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800117e8
xor eax, eax
jmp 0x180011837
lea rdx, str..exe
mov rcx, qword [rsp + 0x20]
call fcn.180028378
test eax, eax
je 0x180011812
lea rdx, str..bat
mov rcx, qword [rsp + 0x20]
call fcn.180028378
test eax, eax
jne 0x180011819
mov eax, 1
jmp 0x180011837
lea rdx, str..lnk
mov rcx, qword [rsp + 0x20]
call fcn.180028378
test eax, eax
jne 0x180011835
mov eax, 2
jmp 0x180011837
xor eax, eax
add rsp, 0x38
ret

Function at 0x180011840
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x840
mov rax, qword [0x18004f010]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rdx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x850]
call fcn.1800117a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jne 0x180011903
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x850]
call fcn.180011920
lea rcx, [rsp + 0x30]
call fcn.1800188f0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180011903
mov rdx, qword [rsp + 0x858]
lea rcx, [rsp + 0x30]
call fcn.18001d190
test rax, rax
jne 0x180011903
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x850]
call fcn.1800117a0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jne 0x180011903
mov eax, 1
jmp 0x180011905
xor eax, eax
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.18001d650
add rsp, 0x840
pop rdi
ret
Function at 0x180011920
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2d8
mov rax, qword [0x18004f010]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov dword [rsp + 0x38], 0
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x180038460]
mov r8d, 1
xor edx, edx
lea rcx, [0x180038480]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x180011a7d
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x60]
lea rdx, [0x180038490]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x180011a6d
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x48]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x180011a5d
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x70]
mov r8d, 0x104
mov rdx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x180011a4d
mov dword [rsp + 0x34], 1
jmp 0x180011a55
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [rax + 0x10]
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.18001d650
add rsp, 0x2d8
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.180003300
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x18001240c
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x18001240c
mov dword [rsp + 0x24], 1
jmp 0x180012414
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1800125a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x18004f010]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rdx, [0x180042488]
lea rcx, [rsp + 0x50]
call fcn.180004700
nop
lea r8, [rsp + 0x50]
lea rdx, [0x180000000]
lea rcx, [rsp + 0x70]
call fcn.1800120c0
nop
lea rcx, [rsp + 0x50]
call fcn.180003350
mov rcx, qword [rsp + 0xb0]
call fcn.180003300
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.180003300
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
lea rdx, [0x1800424a0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0x20
jle 0x180012653
mov dword [rsp + 0x34], 1
jmp 0x18001265b
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x70]
call fcn.180003350
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18001d650
add rsp, 0xa8
ret

Function at 0x180012690
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x18004f010]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.imageope.exe
lea rcx, [rsp + 0x48]
call fcn.180004700
nop
lea r8, [rsp + 0x48]
lea rdx, [0x180000000]
lea rcx, [rsp + 0x68]
call fcn.1800120c0
nop
lea rcx, [rsp + 0x48]
call fcn.180003350
mov rcx, qword [rsp + 0xa0]
call fcn.180003300
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x68]
call fcn.180003300
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea rdx, [0x1800424d0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x68]
call fcn.180003350
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18001d650
add rsp, 0x98
ret

Function at 0x180012760
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x98
mov rax, qword [0x18004f010]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rax, [0x18004119c]
mov qword [rsp + 0x30], rax
lea rdx, str.softcope.exe
lea rcx, [rsp + 0x40]
call fcn.180004700
nop
lea r8, [rsp + 0x40]
lea rdx, [0x180000000]
lea rcx, [rsp + 0x60]
call fcn.1800120c0
nop
lea rcx, [rsp + 0x40]
call fcn.180003350
lea rcx, [rsp + 0x60]
call fcn.180003300
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
call fcn.180003350
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18001d650
add rsp, 0x98
ret
Function at 0x18002d954
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 0x18002d984
xor eax, eax
jmp 0x18002da47
mov rbp, rbx
cmp word [rax], si
je 0x18002d9a9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002d990
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002d98c
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.18002d8a4
movsxd r14, eax
test eax, eax
jne 0x18002d9e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002d97d
mov rcx, r14
call fcn.18002a3a0
mov rdi, rax
test rax, rax
jne 0x18002da00
xor ecx, ecx
call fcn.18002a364
jmp 0x18002d9dc
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.18002d8a4
test eax, eax
jne 0x18002da31
mov rcx, rdi
call fcn.18002a364
jmp 0x18002da3b
xor ecx, ecx
call fcn.18002a364
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