joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ef10
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000f012
lea r8, str.General
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.140001c10
test rax, rax
je 0x14000f012
mov qword [rsp + 0x268], rdi
lea r8, [rsp + 0x30]
xor edi, edi
lea rdx, str.Language
mov rcx, rax
mov word [rsp + 0x30], di
mov ebx, edi
lea r9d, [rdi + 4]
call fcn.140002100
test eax, eax
je 0x14000efed
cmp word [rsp + 0x30], bx
je 0x14000efe8
lea rdx, str.Japanese
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000efe8
lea rdx, [0x14003ac50]
lea rcx, [0x14003aa40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.Languages_
lea rcx, [0x14003aa40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14003aa40]
lea rcx, [rsp + 0x30]
call fcn.140001100
mov qword [0x140033138], rax
test rax, rax
je 0x14000efed
mov ebx, 1
mov rcx, qword [0x140036ed8]
test rcx, rcx
je 0x14000f006
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x140036ed8], rdi
mov rdi, qword [rsp + 0x268]
mov eax, ebx
jmp 0x14000f014
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140013ba0
add rsp, 0x250
pop rbx
ret

Function at 0x14000f1a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
xor ecx, ecx
lea edx, [rbx + 6]
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14000f1e2
xor eax, eax
jmp 0x14000f2ad
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400226e0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140022720]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14000f2a5
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140022700]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x14000f29a
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x14000f28f
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 2]
call qword [rax + 0x98]
test eax, eax
js 0x14000f28f
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov r8d, 0x104
mov dword [rsp + 0x20], 2
mov rdx, rdi
mov ebx, 1
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov r8d, 0x104
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140013ba0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000f2e0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub rsp, 0x28
cmp word [0x14003ae62], 0x3a
jne 0x14000f389
cmp word [0x14003ae64], 0x5c
jne 0x14000f389
mov qword [rsp + 0x30], rbx
lea rbx, [0x14003ae66]
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x20], rdi
movzx edi, word [0x14003ae66]
nop
test di, di
je 0x14000f342
nop word [rax + rax]
add rbx, 2
cmp di, 0x5c
movzx edi, word [rbx]
je 0x14000f35b
test di, di
jne 0x14000f330
mov rsi, qword [rsp + 0x38]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rcx, [0x14003ae60]
mov word [rbx], si
call fcn.14000f3a0
test eax, eax
je 0x14000f373
mov word [rbx], di
jmp 0x14000f320
mov rsi, qword [rsp + 0x38]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rcx, [0x14003ae60]
add rsp, 0x28
jmp fcn.14000f3a0

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x860
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x14000f52a
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rsp + 0x20]
test eax, eax
je 0x14000f4bc
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14000f52a
mov rax, qword [0x140033138]
lea r8, [rsp + 0x640]
mov rcx, qword [0x140033570]
test rax, rax
mov r9d, 0x104
mov edx, 0x38f
cmovne rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x640]
lea rcx, [rsp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdi, qword [0x140033590]
xor ebx, ebx
mov rcx, qword [0x1400330c8]
test rdi, rdi
je 0x14000f472
mov rbx, rdi
jmp 0x14000f48c
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov rcx, qword [0x1400330c8]
test eax, eax
mov rdi, qword [0x140033590]
cmovne rbx, rcx
mov qword [0x140033590], rcx
lea r8, [0x140029ee8]
mov rcx, rbx
lea rdx, [rsp + 0x230]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov qword [0x140033590], rdi
jmp 0x14000f52f
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000f52a
mov rax, qword [0x140033138]
lea r8, [rsp + 0x230]
mov rcx, qword [0x140033570]
test rax, rax
mov r9d, 0x208
mov edx, 0x390
cmovne rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdi, qword [0x140033590]
xor ebx, ebx
mov rcx, qword [0x1400330c8]
test rdi, rdi
je 0x14000f472
mov rbx, rdi
jmp 0x14000f48c
mov eax, 1
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140013ba0
mov rbx, qword [rsp + 0x878]
add rsp, 0x860
pop rdi
ret
Function at 0x1400108d0
Capabilities:
Copy file
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc80
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0xc70], rax
mov rdi, rcx
lea rdx, [0x14003ac50]
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x14003ae60]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test eax, eax
je 0x14001096e
mov edx, 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
jmp 0x140010af4
mov qword [rsp + 0xc98], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140010a31
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x230]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x230]
xor r8d, r8d
lea rdx, [0x14002c140]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
test eax, eax
je 0x1400109fc
mov rcx, rdi
call fcn.1400108d0
mov ebx, eax
test eax, eax
jne 0x140010aea
mov rax, qword [0x140033138]
lea r8, [rsp + 0x650]
mov rcx, qword [0x140033570]
test rax, rax
mov r9d, 0x104
mov edx, 0x391
cmovne rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rsp + 0x20]
jmp 0x140010a74
cmp eax, 0x50
jne 0x140010a3e
lea ebx, [rax - 0x4f]
jmp 0x140010aea
mov rax, qword [0x140033138]
lea r8, [rsp + 0x650]
mov rcx, qword [0x140033570]
test rax, rax
mov r9d, 0x104
mov edx, 0x392
cmovne rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rsp + 0x440]
lea rdx, [rsp + 0x650]
lea rcx, [rsp + 0x860]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rsi, qword [0x140033590]
xor edi, edi
mov rcx, qword [0x1400330c8]
test rsi, rsi
je 0x140010aa4
mov rdi, rsi
jmp 0x140010abe
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov rcx, qword [0x1400330c8]
test eax, eax
mov rsi, qword [0x140033590]
cmovne rdi, rcx
mov qword [0x140033590], rcx
lea r8, [0x140029ee8]
mov rcx, rdi
lea rdx, [rsp + 0x860]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
mov qword [0x140033590], rsi
mov rsi, qword [rsp + 0xc98]
mov eax, ebx
mov rcx, qword [rsp + 0xc70]
xor rcx, rsp
call fcn.140013ba0
mov rbx, qword [rsp + 0xca0]
add rsp, 0xc80
pop rdi
ret
Function at 0x140010b20
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, edx
mov esi, r8d
lea rdx, [rsp + 0x250]
mov edi, ecx
call fcn.14000f0d0
test ebx, ebx
jne 0x140010b6f
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140010c77
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x140010c77
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400226e0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140022720]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140010c71
lea rdx, [0x14003ae60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
test esi, esi
lea rdx, str.ClAdmin.exe
lea rcx, [rsp + 0x40]
cmove rdx, qword [0x14002bde0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x14003ae60]
mov rax, qword [rcx]
call qword [rax + 0x48]
cmp edi, 7
jne 0x140010c11
lea rdx, [0x14003b070]
jmp 0x140010c1d
cmp edi, 0x10
jne 0x140010c28
lea rdx, [0x14003b278]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x58]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [0x140022700]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140010c66
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x250]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140013ba0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140012e20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012ef5
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x200
mov word [rsp + 0x240], bx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140012eea
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140012ecc
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.140012e20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140012ece
inc ebx
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov r9d, 0x200
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140012e91
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140013ba0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140012f30
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
sub rsp, 0xa78
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140012f86
mov eax, 1
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.140013ba0
add rsp, 0xa78
ret
lea rcx, [rsp + 0x20]
mov qword [rsp + 0xa90], rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x140012fad
mov edx, 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
test eax, eax
jne 0x1400130f4
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x230]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0x230]
xor r8d, r8d
lea rdx, [0x14002c140]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, eax
test eax, eax
jne 0x1400130f4
mov rax, qword [0x140033138]
lea r8, [rsp + 0x440]
mov rcx, qword [0x140033570]
test rax, rax
mov qword [rsp + 0xa98], rsi
mov r9d, 0x104
cmovne rcx, rax
mov qword [rsp + 0xa70], rdi
mov edx, 0x395
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x650]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rsi, qword [0x140033590]
xor edi, edi
mov rcx, qword [0x1400330c8]
test rsi, rsi
je 0x14001309e
mov rdi, rsi
jmp 0x1400130b8
call qword [sym.imp.USER32.dll_IsWindowVisible]
mov rcx, qword [0x1400330c8]
test eax, eax
mov rsi, qword [0x140033590]
cmovne rdi, rcx
mov qword [0x140033590], rcx
lea r8, [0x140029ee8]
mov rcx, rdi
lea rdx, [rsp + 0x650]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdi, qword [rsp + 0xa70]
mov qword [0x140033590], rsi
mov rsi, qword [rsp + 0xa98]
mov eax, ebx
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.140013ba0
add rsp, 0xa78
ret
Function at 0x140013650
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14003aa18]
mov edi, 1
movsxd rbp, edx
call section..text
mov rsi, qword [rsp + 0x70]
cmp eax, 0x1f4
jb 0x1400136c4
lea rcx, str.shell32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SHGetFolderPathW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.0x1400136e6.1
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov edx, ebp
xor ecx, ecx
call rax
mov edi, eax
jmp case.0x1400136e6.1
cmp ebp, 0x27
ja case.0x1400136e6.1
lea rdx, [0x140000000]
movzx eax, byte [rdx + rbp + 0x1383c]
mov ecx, dword [rdx + rax*4 + 0x13808]
add rcx, rdx
jmp rcx
lea rbx, str.Desktop
jmp 0x140013752
lea rbx, str.Personal
jmp 0x140013752
lea rbx, str.My_Pictures
jmp 0x140013752
lea rbx, str.My_Music
jmp 0x140013752
lea rbx, str.My_Video
jmp 0x140013752
lea rbx, str.Favorites
jmp 0x140013752
lea rbx, str.Recent
jmp 0x140013752
lea rbx, str.History
jmp 0x140013752
lea rbx, str.SendTo
jmp 0x140013752
lea rbx, str.Start_Menu
jmp 0x140013752
lea rbx, str.Programs
jmp 0x140013752
lea rbx, str.Startup
lea rax, [rsp + 0x60]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne case.0x1400136e6.1
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbx
mov dword [rsp + 0x68], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test ebx, ebx
setne dil
cmp ebp, 0x26
jne 0x1400137f9
cmp edi, 1
jne 0x1400137f9
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp word [rsi + 2], 0x3a
jne 0x1400137f9
lea rcx, [rsi + 4]
lea rdx, str.Program_Files
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140014504
Capabilities:
Parse pe header

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

Function at 0x140019150
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018f4c
Function at 0x14001bc84
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001bd0b
mov rsi, rbx
cmp word [rax], bp
je 0x14001bcca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001bcb4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001bcb0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001c6a4
mov rdi, rax
test rax, rax
je 0x14001bcf8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140017510
mov rbp, rdi
xor ecx, ecx
call fcn.14001a9e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140020d80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020da8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020da8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400172a0
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
cmp r8, 0x201
jae 0x140017340
jmp 0x14001732f
jae 0x1400173fe
cmp r8, 0x201
jae 0x140017340
lea rbx, [rbp - 0x58]
mov r14d, 0x200
mov rsi, r8
jmp 0x140017397
sub r8, rdi
sub r13, rdi
cmp r13, r8
jae 0x14001736f
lea rcx, [rbp + 0x3c8]
mov rdx, rdi
call fcn.14003aff0
mov r12, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp r12, rax
mov edi, 0xffffffff
cmovb rdi, r12
mov qword [rbp + 0x3d8], rdi
mov r13, r12
mov rbx, qword [rbp + 0x3e8]
mov r14, rdi
mov rsi, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r15d, eax
test eax, eax
jne 0x1400173bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140017466
mov r8d, r15d
cmp rsi, r8
jne 0x140017320
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140017489
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x14001732f
jmp 0x140017340
cmp r14, r8
jb 0x1400174a3
lea rcx, [rbp + 0x3a8]
mov rdx, rbx
call fcn.1400193d0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test r12, r12
je 0x14001744f
add r12, r12
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, r12
call fcn.14000f780
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 + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test r12, r12
jne 0x140017437
jmp 0x14001744f
lea rcx, [0x140048f50]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003bb20
jmp 0x1400174b8
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14003bf10
ud2
Function at 0x140019cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140019ce3
test ecx, ecx
jne 0x140019d32
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140019cf0
test ecx, ecx
jne 0x140019d32
mov rcx, rdi
call fcn.140019b90
movzx r10d, al
test bl, bl
jne 0x140019d39
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140019d26.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x140019eac]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140019d26.2
xor r10d, r10d
test bl, bl
je 0x140019d00
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140019e8e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
cmp rdx, rcx
jne 0x140019d6b
movzx r8d, byte [rdi + 0x10]
xor edi, edi
jmp 0x140019de8
movzx r8d, byte [rdi + 0x10]
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140019db0
nop dword [rax + rax]
cmp byte [rax], 0x5c
je 0x140019dcb
inc rsi
dec rax
cmp rsi, 1
jne 0x140019d90
jmp 0x140019de8
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x140019dcb
cmp ebx, 0x5c
je 0x140019dcb
inc rsi
dec rax
cmp rsi, 1
jne 0x140019db0
jmp 0x140019de8
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x140019e9c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140019e12
mov al, 9
cmp rdx, 2
je 0x140019e16
cmp rdx, 1
jne 0x140019e26
cmp byte [r9], 0x2e
jne 0x140019e26
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140019e26
mov al, 0xa
jmp 0x140019e26
cmp byte [r9], 0x2e
jne 0x140019e26
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140019d26.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140019d26.2
mov esi, 2
jmp case.0x140019d26.2
lea r8, str.library_std_srcpath.rs
call fcn.14003bf00
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14003bf00
ud2