joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002a30
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x340]
lea rbx, [rcx + 0x260]
mov rdi, rcx
cmp dword [r8 - 0x10], 0
je 0x140002a94
cmp qword [rbx + 0xf0], 0
jne 0x140002a7f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0xf0], rax
test rax, rax
je 0x140002a94
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140002a94
mov rcx, rbx
call fcn.140001ac0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140001b50
test al, al
jne 0x140002aba
mov edx, 0x8b
lea ecx, [rdx + 1]
call fcn.140007190
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 0x168]
mov qword [rdi + 0x40], rbx
mov rax, qword [rcx]
call qword [rax + 0xd0]
mov rcx, qword [rdi + 0x40]
lea r8, str.Subscription_Center___Help
lea rdx, str.No_Help_available.
mov r9d, 0x40010
call qword [sym.imp.mfc100u.dll_CMouseManager::LoadState]
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140002b00
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
test dl, dl
je 0x140002b4e
add rcx, 0x358
call fcn.140003e30
test al, al
jne 0x140002b3b
mov edx, 0x8b
lea ecx, [rdx + 1]
call fcn.140007190
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 0x260]
lea rdx, [rdi + 0x358]
call fcn.140001850
mov r8, qword [rdi + 0x340]
lea rbx, [rdi + 0x260]
cmp dword [r8 - 0x10], 0
je 0x140002ba5
cmp qword [rbx + 0xf0], 0
jne 0x140002b90
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0xf0], rax
test rax, rax
je 0x140002ba5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140002ba5
mov rcx, rbx
call fcn.140001ac0
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140001b50
test al, al
je 0x140002b21
lea rcx, [rdi + 0x168]
mov qword [rdi + 0x40], rbx
mov rax, qword [rcx]
call qword [rax + 0xd0]
mov rbx, qword [rsp + 0x30]
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140003270
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov dword [rsp + 0x30], esi
mov ebx, esi
nop word [rax + rax]
cmp byte [rdi + 8], sil
jne 0x140003301
xor r8d, r8d
lea rcx, str.http:__www.autodesk.com
lea edx, [r8 + 1]
call qword [sym.imp.WININET.dll_InternetCheckConnectionW]
mov r11d, eax
test eax, eax
jne 0x1400032e6
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1400032c9
test byte [rsp + 0x30], 0x20
je 0x1400032e0
mov r11d, esi
cmp ebx, 6
jae 0x1400032e6
mov ecx, 0x64
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003290
mov r11d, 1
mov eax, 0x3f0
test r11d, r11d
cmovne eax, esi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, 0x3f4
add rsp, 0x20
pop rdi
ret
Function at 0x140007250
Capabilities:
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x140011030]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbp, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
jne 0x1400072a3
mov rcx, rbx
call qword [0x14000a3d0]
jmp 0x140007364
lea rcx, [rsp + 0x20]
call qword [0x14000a448]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CMFCTabCtrl::Draw3DTab]
mov r8d, new[]
lea rdx, [rsp + 0x30]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x1400072ef
cmp edi, 0x104
jae 0x1400072f7
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CVSListBoxBase::CVSListBoxBase]
jmp 0x14000734a
cmp edi, 0x104
jb 0x14000734a
mov eax, 2
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.mfc100u.dll_new__]
mov rsi, rax
test rax, rax
je 0x14000734a
mov r8d, edi
mov rdx, rax
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140007341
cmp eax, edi
jae 0x140007341
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CVSListBoxBase::CVSListBoxBase]
mov rcx, rsi
call qword [sym.imp.mfc100u.dll_delete__]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [0x14000a3d0]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140007d60
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000826f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140011030]
jne 0x140007d7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140007d76
repz ret
ror rcx, 0x10
jmp 0x1400081c8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140011430]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140011528]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000824d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140011430]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000826f
mov rax, qword [rsp + 0x88]
mov qword [0x140011528], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400114c8], rax
mov rax, qword [0x140011528]
mov qword [0x1400113a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400114b0], rax
mov dword [0x140011390], 0xc0000409
mov dword [0x140011394], 1
mov rax, qword [0x140011030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140011038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140011428], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000abc0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140011428], 0
jne 0x1400082f6
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140004bd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140004c68
test r8, r8
jle 0x140004c60
nop word [rax + rax]
mov rcx, rdi
call fcn.140006020
test rax, rax
jle 0x140004c3e
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov rax, qword [rdi + 0x40]
mov r8, rsi
mov rcx, qword [rax]
call fcn.14000ce80
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140004c58
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004c60
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140004c00
sub r14, rbx
mov rax, r14
jmp 0x140004ce6
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x140004c81
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004c83
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x140004cdb
test ecx, ecx
jle 0x140004cbc
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.14000ce80
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x140004cdb
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004cdb
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140013450
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140004d00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004d31
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140004dab
mov rdi, r14
mov rcx, rbx
call fcn.140006040
test rax, rax
jle 0x140004d83
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14000ce80
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140004d9b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004da3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004d45
sub r14, rdi
jmp 0x140004e8f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004dc2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004dc4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004df6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000ce80
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004e8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004e31
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
cmp rbp, 0xfff
jbe 0x140004e6d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140013b0c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140004e8c
cmp rbp, rax
ja 0x140004e40
test rbp, rbp
je 0x140004e8c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140013b0c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140009e30
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x140044a60], 0
jne 0x14000a010
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
mov rax, qword [r9 + 0x30]
test rax, rax
je 0x14000a01a
mov r8, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
test ecx, ecx
je 0x140009e9e
lea rdx, [r8 + rcx]
mov ecx, dword [r8 + rcx + 0xc]
mov eax, dword [rcx + r8]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x140009e9e
mov eax, dword [rcx + r8 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140009eaa
mov r9, qword [r9]
mov rax, qword [r9 + 0x30]
test rax, rax
jne 0x140009e61
test rdx, rdx
je 0x14000a01a
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r8
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x38], rdi
add rsi, r8
mov qword [rsp + 0x10], r12
mov r12d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r8
mov qword [rsp], r15
xor edx, edx
lea r15, [0x140044a60]
nop word [rax + rax]
lea eax, [rbx - 1]
mov r10d, dword [rsi + rax*4]
mov ebx, eax
add r10, r8
mov edi, eax
cmp word [r10], r12w
jne 0x140009f61
xor r11d, r11d
mov r9d, 0x8906de3
mov rax, r10
movzx eax, word [rax]
mov ecx, r9d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, r10
xor r9d, ecx
cmp byte [rax], 0
jne 0x140009f20
lea rcx, [rdx*8]
inc edx
mov dword [rcx + r15 + 4], r9d
movzx eax, word [rbp + rdi*2]
mov eax, dword [r14 + rax*4]
mov dword [rcx + r15 + 8], eax
cmp edx, 0x1f4
je 0x140009f65
test ebx, ebx
jne 0x140009f00
mov r14, qword [rsp + 8]
lea eax, [rdx - 1]
mov r12, qword [rsp + 0x10]
xor r8d, r8d
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov dword [0x140044a60], edx
test eax, eax
je 0x14000a002
nop dword [rax]
mov ecx, edx
xor eax, eax
sub ecx, r8d
cmp ecx, 1
je 0x140009ff7
nop dword [rax]
mov ecx, eax
lea r9d, [rax + 1]
lea r10, [r9*8]
mov ebx, dword [r10 + r15 + 8]
lea r11, [rcx*8]
mov edi, dword [r11 + r15 + 8]
cmp edi, ebx
jbe 0x140009fe8
mov ecx, dword [r11 + r15 + 4]
mov eax, dword [r10 + r15 + 4]
mov dword [r11 + r15 + 4], eax
mov dword [r10 + r15 + 4], ecx
mov dword [r11 + r15 + 8], ebx
mov dword [r10 + r15 + 8], edi
mov edx, dword [0x140044a60]
mov ecx, edx
mov eax, r9d
sub ecx, r8d
dec ecx
cmp r9d, ecx
jb 0x140009fa0
inc r8d
lea eax, [rdx - 1]
cmp r8d, eax
jb 0x140009f90
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret

Function at 0x14000a030
Capabilities:
Execute syscall

Disassembly:
mov rax, rcx
mov rcx, rdx
add rsp, 8
mov rdx, r8
mov r8, r9
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
sub rsp, 8
ret
Function at 0x14000bb5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bba6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bba6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bba6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bba6
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bba6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bba8
xor al, al
add rsp, 0x28
ret

Function at 0x140018c5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018a88
Function at 0x140002080
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002169
mov r10, qword [rcx + 0x20]
mov r9, qword [rcx + 0x18]
mov rax, r10
mov rdx, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
mov rcx, r9
rol rax, 0x12
rol rcx, 0xc
add rax, rcx
mov rcx, r8
rol rcx, 7
add rax, rcx
mov rcx, rdx
imul rdx, rbp
imul r8, rbp
imul r9, rbp
imul r10, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 1
add rax, rcx
rol r8, 0x1f
xor rax, rdx
rol r9, 0x1f
imul rax, rsi
imul r8, rsi
imul r9, rsi
sub rax, r15
rol r10, 0x1f
xor rax, r8
imul rax, rsi
imul r10, rsi
sub rax, r15
xor rax, r9
imul rax, rsi
sub rax, r15
xor rax, r10
imul rax, rsi
sub rax, r15
jmp 0x140002170
mov rax, qword [rcx + 0x18]
add rax, r14
add rax, rdi
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x1400021aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002180
lea rdx, [r11 + 4]
movabs r9, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r9
xor edx, edx
mov r8, rbx
sub r8, r11
cmp r11, rbx
cmova r8, rdx
test r8, r8
je 0x14000220f
nop dword [rax]
movzx ecx, byte [r11]
lea r11, [r11 + 1]
imul rcx, r14
inc rdx
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp rdx, r8
jb 0x1400021f0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r9
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a8f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a992
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a94d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a940
cmp rcx, 1
jb 0x14000a9c3
mov byte [rsp + 0x20], dl
or rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a960
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000df2c
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a930
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bd60
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000dbf8
int3
Function at 0x14000ab50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000ab95
xor al, al
jmp 0x14000abe2
cmp word [rbx], 0
je 0x14000abad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000aba0
cmp word [rsp + 0x30], 0
je 0x14000abdb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000ac03
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000abc0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bd60
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000dbf8
int3
Function at 0x14000b380
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x14000b413
push rbx
push rbp
sub rsp, 0x38
mov qword [rsp + 0x50], rsi
mov rbx, rdx
mov qword [rsp + 0x60], rdi
mov rbp, rcx
mov qword [rsp + 0x30], r14
xor r14d, r14d
nop word [rax + rax]
mov edi, 0x8000
lea rcx, [0x140036e20]
cmp rbx, rdi
cmovbe edi, ebx
movsxd rsi, edi
mov rdx, rsi
call fcn.14000b240
cmp rbp, 0xffffffffffffffff
je 0x14000b3f9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], r14d
mov r8d, edi
mov qword [rsp + 0x20], r14
lea rdx, [0x140036e20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000b414
sub rbx, rsi
jne 0x14000b3b0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x30]
add rsp, 0x38
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error__couldnt_unpack_file_to_target_path.
call fcn.14000b100
int3

Function at 0x14000b430
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001e410
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fdbc]
lea rsi, [0x140031e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000b4a9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000ac10
test al, al
je 0x14000b589
lea rcx, [rsp + 0x20]
call fcn.140013134
movsxd r11, dword [0x14002fdbc]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fdbc], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b4e8
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000b4d4
add rax, 2
test ecx, ecx
jne 0x14000b4c0
test edx, edx
je 0x14000b585
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000b4b4
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b4f0
cmp rax, 2
jne 0x14000b507
cmp word [rdi + 2], 0x3a
je 0x14000b585
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test bl, bl
jne 0x14000b532
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b559
mov bl, 1
cmp dword [0x14002fdbc], 0x400
jge 0x14000b559
mov rcx, rdi
call fcn.140013134
movsxd rdx, dword [0x14002fdbc]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fdbc], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bd60
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
mov al, 1
jmp 0x14000b564
mov ecx, 2
call fcn.14000e0e8
mov rcx, rax
lea r8, str.HOME
lea rdx, str.Error__couldnt_runtime_expand_spec__ls._n
call fcn.140001010
call fcn.14000dbf8
int3
Function at 0x14000b6c0
Capabilities:
Check if file exists
Delete file

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, 0x60
xor edi, edi
mov dword [rax - 0x40], 3
lea rbp, [0x140029578]
mov qword [rax - 0x48], rdi
lea rsi, [0x14002fde0]
mov qword [rax - 0x30], rbp
mov r14d, 0x414
mov qword [rax - 0x38], rsi
lea rcx, [rax - 0x48]
mov word [rax - 0x28], r14w
mov dword [rax - 0x24], edi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x18], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b77a
test al, 0x10
je 0x14000b77a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b720
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
sub rsp, 0x28
mov rcx, qword [0x140031de0]
test rcx, rcx
je 0x14000b7db
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b7ce
mov rcx, qword [0x140031de0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031de0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fdb8], 0
je 0x14000b7ed
add rsp, 0x28
jmp 0x14000b6c0
add rsp, 0x28
ret
Function at 0x14000b7a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

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, 0x60
xor edi, edi
mov dword [rax - 0x40], 3
lea rbp, [0x140029578]
mov qword [rax - 0x48], rdi
lea rsi, [0x14002fde0]
mov qword [rax - 0x30], rbp
mov r14d, 0x414
mov qword [rax - 0x38], rsi
lea rcx, [rax - 0x48]
mov word [rax - 0x28], r14w
mov dword [rax - 0x24], edi
mov qword [rax - 0x20], rdi
mov qword [rax - 0x18], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
nop
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b77a
test al, 0x10
je 0x14000b77a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b720
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
sub rsp, 0x28
mov rcx, qword [0x140031de0]
test rcx, rcx
je 0x14000b7db
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b7ce
mov rcx, qword [0x140031de0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031de0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fdb8], 0
je 0x14000b7ed
add rsp, 0x28
jmp 0x14000b6c0
add rsp, 0x28
ret