joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f560
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14001f600
jmp 0x14001f5ef
jae 0x14001f6bf
cmp r8, 0x201
jae 0x14001f600
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14001f657
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14001f62f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140043c30
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14001f680
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14001f72b
mov r8d, r13d
cmp r12, r8
jne 0x14001f5e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001f75f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001f5ef
jmp 0x14001f600
cmp r14, r8
jb 0x14001f779
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140022730
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14001f714
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400053e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14001f6ff
jmp 0x14001f714
lea rcx, str.internal_error:_entered_unreachable_code_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140044f40
jmp 0x14001f78e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400452d0
ud2
Function at 0x14001fd00
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14001fd15
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14001fd30
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140028190

Function at 0x140028190
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14002a600
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400281f0
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.14002b640
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x1400281fc
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x140028228
test rdi, rdi
je 0x140028254
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.1400053e0
xor eax, eax
jmp 0x1400281f3
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x1400281f3
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.1400053e0
jmp 0x1400281f0
xor eax, eax
jmp 0x1400281f3

Function at 0x140028a10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140107030]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140028a48
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140028a9f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x140028aac
xor edx, edx
xor eax, eax
jmp 0x140028ad6
cmp eax, 0x103
je 0x140028ae0
test eax, eax
js 0x140028abf
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140028ad6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400220c0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14001c6e0
mov ecx, 7
int 0x29
ud2
Function at 0x140028b30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140107030]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140028b68
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140028bc6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140028bf3
test eax, eax
js 0x140028bd2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140028be9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1400220c0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14001c6e0
mov ecx, 7
int 0x29
ud2
Function at 0x14003d500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14003d58a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14003d580
cmp r11, r10
ja 0x14003d606
cmp r10, rdx
ja 0x14003d618
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14003d582
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003d560
jmp 0x14003d5e7
ja 0x14003d58a
mov r11, r10
cmp rax, r8
jne 0x14003d527
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14003d5eb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14003d5c0
mov r8, r10
sub ecx, r9d
jns 0x14003d5de
jmp 0x14003d5ed
cmp r10, rdx
je 0x14003d5fa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003d5ed
xor al, 1
cmp r8, rdx
jne 0x14003d5a0
jmp 0x14003d5ed
xor eax, eax
jmp 0x14003d5ed
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140044e40
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400452e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400452d0
int3

Function at 0x140040c84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140040cce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140040cce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140040cce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140040cce
cmp dword [rcx + 0x84], 0xe
jbe 0x140040cce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140040cd0
xor al, al
add rsp, 0x28
ret
Function at 0x140007964
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000798a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140008c5c
jmp 0x1400079f1
cmp byte [0x14001db68], 0
jne 0x1400079ce
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400079be
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001db60], rax
jmp 0x1400079c5
mov rax, qword [0x14001db60]
mov byte [0x14001db68], 1
jmp 0x1400079d5
mov rax, qword [0x14001db60]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400079eb
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1400079f1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140007ff0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x300
mov rax, qword [0x14001cf10]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov bl, dl
lea rdx, [rsp + 0xe0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xe0]
mov edx, 0x5c
call qword [sym.imp.MSVCR110.dll_wcsrchr]
lea rdx, str.MechanicalMDTLINK.EXE
lea rcx, [rax + 2]
call qword [sym.imp.MSVCR110.dll_wcscpy]
lea rcx, [rsp + 0xe0]
lea rdx, str.__RegServer
test bl, bl
jne 0x14000805f
lea rdx, str.__UnregServer
call qword [sym.imp.MSVCR110.dll_wcscat]
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.MSVCR110.dll_memset
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.14000d430
add rsp, 0x300
pop rbx
ret

Function at 0x140008c5c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140008cbf
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008cd3
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008cd3
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140008cd8
cmp dword [rcx + 8], 0
je 0x140008cd3
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140008cd8
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000941c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14001cf10]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400094a9
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400094a9
call fcn.140006688
mov ebx, eax
jmp 0x1400095ba
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400094ca
call fcn.140006688
jmp 0x1400095a9
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400094c0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140009505
mov ebx, 0x8007000e
jmp 0x1400095ab
mov ecx, eax
test eax, eax
je 0x14000953d
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140009533
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000953d
lea rcx, [rsp + 0x70]
call fcn.140006314
jmp 0x140009547
mov ecx, 0x80070216
call fcn.14000185c
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140009559
cmp qword [rsp + 0x70], rdi
je 0x1400094fb
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400094c0
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400090f4
mov ebx, eax
test rsi, rsi
je 0x1400095ba
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400095d1
lea rcx, [rsp + 0x70]
call fcn.140007a70
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000d430
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140009f78
Capabilities:
Set registry value

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, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x140009fa6
lea eax, [rbx + 0xd]
jmp 0x140009fdc
mov rsi, r8
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_wcslen]
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140009fa9
mov rcx, qword [r14]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14000a09c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
mov qword [rdi + 0x58], rax
test rax, rax
je 0x14000a0ec
lea rax, [rsp + 0x40]
lea r8, [0x140008244]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
setne al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000aa0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0xbb0]
sub rsp, 0xcb0
mov rax, qword [0x14001cf10]
xor rax, rsp
mov qword [rbp + 0xba0], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
mov bl, cl
lea r8, [rbp + 0x380]
lea rcx, [rsp + 0x60]
lea rdx, [rbp + 0x170]
mov dword [rsp + 0x38], 0x208
call fcn.140007a7c
lea rdx, str.Inventor_OEM
lea rcx, [rbp + 0x380]
call qword [sym.imp.MSVCR110.dll_wcscmp]
lea rsi, [0x14001dc40]
test eax, eax
je 0x14000ab98
lea rdx, str.Inventor_View
lea rcx, [rbp + 0x380]
call qword [sym.imp.MSVCR110.dll_wcscmp]
test eax, eax
je 0x14000ab98
test bl, bl
jne 0x14000ab98
lea rax, [rsp + 0x40]
mov ebx, 0x20019
lea rdx, str.Software
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000abad
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea rdx, str.Autodesk
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000abad
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
lea rdx, [rbp + 0x380]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000abad
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000abad
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.CurrentLanguage
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000abad
lea r8, [rbp + 0x170]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.MSVCR110.dll_wcscpy_s]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rbp + 0xba0]
xor rcx, rsp
call fcn.14000d430
lea r11, [rsp + 0xcb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14000b4b0
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x14001cf10]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
lea rcx, [rsp + 0x232]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], di
call sub.MSVCR110.dll_memset
lea rdx, [rsp + 0x230]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x14000b50c
xor al, al
jmp 0x14000b570
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call sub.MSVCR110.dll_memset
lea r9, [rsp + 0x20]
lea rdx, [0x1400147a0]
lea rcx, [rsp + 0x230]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000b508
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR110.dll__wunlink]
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000b508
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000d430
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret

Function at 0x14000bac0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, rdx
mov rdi, rcx
mov dword [rbp - 0x39], 0x68
xor esi, esi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 0x19], rsi
mov qword [rbp + 3], 1
mov qword [rbp + 0xf], rsi
lea rcx, [rbp + 0x3f]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x39]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.__Automation
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000bb57
mov eax, 0x80004005
jmp 0x14000bbbd
mov edx, 0x7530
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov qword [rbp + 0x6f], rsi
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [0x14000fd40]
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [0x140013d10]
call qword [sym.imp.ole32.dll_CoGetClassObject]
mov ebx, eax
test eax, eax
js 0x14000bbac
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
mov r9, rdi
lea r8, [0x140013d00]
xor edx, edx
call qword [rax + SafeArrayCopy]
mov ebx, eax
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x14000bbbb
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, ebx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000be50
Capabilities:
Delete directory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rsi, rcx
mov dword [rbp + 0x38], r14d
call fcn.14000cde0
lea rcx, [rbp - 0x10]
mov rdx, rax
call sub.mfc110u.dll_Ordinal_322
lea rcx, [0x14001cfd0]
call fcn.1400053dc
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14000b594
test al, al
jne 0x14000bea0
mov ebx, 0x80004005
jmp 0x14000bfbd
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14000b4b0
test al, al
je 0x14000bfae
mov rcx, qword [rsi + 0x10]
mov qword [rbp + 0x40], r14
test rcx, rcx
je 0x14000bfae
mov rax, qword [rcx]
lea r8, [rbp + 0x40]
lea rdx, [0x140014670]
call qword [rax]
mov rcx, qword [rbp + 0x40]
test eax, eax
cmovs rcx, r14
mov qword [rbp + 0x40], rcx
test rcx, rcx
je 0x14000bfae
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
call qword [rax + 0x98]
test eax, eax
js 0x14000bf5a
mov rcx, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x48]
test rcx, rcx
jne 0x14000bf7f
mov rbx, r14
mov rax, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x40]
test eax, eax
js 0x14000bf3f
mov rcx, qword [rbp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x88]
mov dil, r14b
test eax, eax
jns 0x14000bf42
mov dil, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test dil, dil
je 0x14000bf8f
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, 0x80004005
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14000bf6e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14000bfb3
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000bfb3
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x14000bf1b
jmp 0x14000bfd3
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.14000b2dc
mov rcx, qword [rbp + 0x38]
test al, al
je 0x14000bf54
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, r14d
jmp 0x14000bf5f
mov ebx, 0x80004005
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
lea rcx, [rbp - 0x10]
call sub.mfc110u.dll_Ordinal_1032
mov eax, ebx
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.14000185c
int3