joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002968
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x250], rax
and dword [rsp + 0x30], 0
lea r9, str.871C5380_42A0_1069_A2EA_08002B30309D
mov edi, r8d
lea rcx, [rsp + 0x40]
mov ebx, edx
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionExplorerCLSID_sShellFolder
mov edx, 0x104
call fcn.140001380
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x28], rax
lea r8, str.Attributes
lea rax, [rsp + 0x30]
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
nop dword [rax + rax]
and ebx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
or ebx, edi
mov dword [rsp + 0x28], 4
mov r9d, 4
mov dword [rsp + 0x30], ebx
lea r8, str.Attributes
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000d000
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140002a58
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x490
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
lea rdx, [rsp + 0x270]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140002b13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140002aff
lea rdx, [rsp + 0x20]
lea rcx, str..871C5380_42A0_1069_A2EA_08002B30309D
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002aff
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.140001f70
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140002acb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000d000
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x490
pop rdi
ret
Function at 0x140002b3c
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x140002bd4
lea rcx, [rsp + 0x40]
call fcn.140002a58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x104
lea r8, [rbp + 0x150]
mov rcx, rax
mov edx, 0x10
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x140002bd4
lea r8, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.140007d88
lea rcx, [rsp + 0x40]
call fcn.140002a58
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp + 0x150]
mov rcx, 0xffffffff80000002
lea r8, str.DesktopShortcutsFolderName
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionOemStartMenuData
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x140002c4f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x104
lea r8, [rbp + 0x150]
mov rcx, rax
mov edx, 0x11
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
test eax, eax
je 0x140002c88
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x140002c88
lea r8, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.140007d88
lea rcx, [rsp + 0x40]
call fcn.140002a58
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14000d000
add rsp, 0x470
pop rbp
ret

Function at 0x140002ca8
Capabilities:
Get common file path

Disassembly:
test r8d, r8d
je 0x140002d38
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov esi, r9d
mov edi, r8d
mov rbx, rdx
mov ebp, ecx
mov r8d, dword [rbx]
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x140002d0c
mov r9d, esi
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov edx, ebp
call fcn.14000270c
add rbx, 4
sub rdi, 1
jne 0x140002cdd
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d000
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002d40
Capabilities:
Get common file path

Disassembly:
test r8d, r8d
je 0x140002db9
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, r9d
mov edi, r8d
mov rbx, rdx
lea r9, [rsp + 0x20]
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x140002da0
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
mov r9d, esi
lea edx, [r8 + 2]
call fcn.14000270c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
add rbx, 0x10
sub rdi, 1
jne 0x140002d5d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140002dc4
Capabilities:
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov r8d, ecx
lea rdx, [rbp + 0x350]
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x140002f11
lea r9, [0x14000f038]
lea r8, [rbp + 0x350]
lea rcx, [rbp + 0x140]
call fcn.140007a8c
xor r9d, r9d
lea rcx, [rbp + 0x140]
xor r8d, r8d
lea edx, [r9 + 2]
call fcn.14000270c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x104
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x2db
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
nop dword [rax + rax]
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x350]
lea rcx, [rbp + 0x140]
call fcn.140007a8c
xor r9d, r9d
lea rcx, [rbp + 0x140]
xor r8d, r8d
lea edx, [r9 + 2]
call fcn.14000270c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x104
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x2dd
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
nop dword [rax + rax]
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x350]
lea rcx, [rbp + 0x140]
call fcn.140007a8c
xor r9d, r9d
lea rcx, [rbp + 0x140]
xor r8d, r8d
lea edx, [r9 + 2]
call fcn.14000270c
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14000d000
add rsp, 0x670
pop rbp
ret

Function at 0x140002ff0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x458
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop dword [rax + rax]
test eax, eax
je 0x14000307d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov r9d, 0x104
lea r8, [rsp + 0x230]
mov rcx, rax
mov edx, 0x2da
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call fcn.140007d88
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
lea edx, [r9 + 1]
call fcn.14000270c
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000d000
add rsp, 0x458
ret
Function at 0x14000309c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
lea r8, [rsp + 0x30]
mov rdx, rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000313e
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14000313e
mov rcx, qword [rsp + 0x30]
lea rdx, str.Implementing
xor eax, eax
mov dword [rsp + 0x28], 0x1e
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
mov dword [rsp + 0x50], eax
mov r9d, 3
mov word [rsp + 0x54], ax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d000
add rsp, 0x60
pop rbx
ret
Function at 0x140003158
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
lea rax, [rbp - 0x18]
mov qword [r11 - 0x50], r12
mov r14, r8
mov qword [r11 - 0x58], r12
mov r15, rdx
mov qword [r11 - 0x60], r12
xor r9d, r9d
mov qword [r11 - 0x68], rax
xor r8d, r8d
lea rax, [rbp - 0x1c]
mov dword [rbp + 0x48], r12d
mov qword [r11 - 0x70], rax
xor edx, edx
mov qword [r11 - 0x78], r12
lea rax, [rbp - 0x20]
mov qword [r11 - 0x80], rax
mov rsi, rcx
lea rax, [rbp + 0x48]
mov dword [rbp - 0x1c], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14000336f
or r8, 0xffffffffffffffff
cmp dword [rbp + 0x48], r12d
jbe 0x1400032bb
mov eax, dword [rbp - 0x20]
test eax, eax
je 0x1400032bb
inc eax
mov ecx, eax
mov dword [rbp - 0x20], eax
lea eax, [r12 + 2]
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.14000cbc4
mov rdi, rax
test rax, rax
je 0x1400032b7
mov ebx, r12d
cmp dword [rbp + 0x48], r12d
jbe 0x1400032af
mov ecx, dword [rbp - 0x20]
lea r9, [rbp - 0x14]
mov qword [rsp + 0x38], r12
mov r8, rdi
mov dword [rbp - 0x14], ecx
mov edx, ebx
mov qword [rsp + 0x30], r12
mov rcx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400032a4
lea rax, [rbp - 0x10]
mov qword [rbp - 0x10], r12
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400032a4
mov rcx, qword [rbp - 0x10]
mov r8, r14
mov rdx, r15
call fcn.140003158
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
inc ebx
cmp ebx, dword [rbp + 0x48]
jb 0x140003223
mov rcx, rdi
call fcn.14000cbb8
or r8, 0xffffffffffffffff
cmp dword [rbp - 0x1c], r12d
jbe 0x14000336f
mov ecx, dword [rbp - 0x18]
test ecx, ecx
je 0x14000336f
inc ecx
mov eax, 2
mul rcx
mov dword [rbp - 0x18], ecx
cmovo rax, r8
mov rcx, rax
call fcn.14000cbc4
mov rdi, rax
test rax, rax
je 0x14000336f
mov ebx, dword [rbp - 0x1c]
test ebx, ebx
je 0x140003367
mov ecx, dword [rbp - 0x18]
lea edx, [rbx - 1]
mov qword [rsp + 0x38], r12
lea r9, [rbp - 0x14]
mov dword [rbp - 0x14], ecx
mov r8, rdi
mov qword [rsp + 0x30], r12
mov rcx, rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140003362
mov eax, dword [rbp - 0x14]
cmp rax, r14
jb 0x140003362
mov r8, r14
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140003362
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
add ebx, 0xffffffff
jne 0x1400032f8
mov rcx, rdi
call fcn.14000cbb8
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140003480
Capabilities:
Delete file
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x378]
sub rsp, 0x470
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rbp + 0x360], rax
lea rcx, [rsp + 0x50]
call fcn.140009bec
mov ebx, eax
test eax, eax
js 0x140003687
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
and dword [rsp + 0x28], 0
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r14d, [r9 + 1]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000354a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140003527
jg 0x140003527
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
cmove ebx, r14d
jmp 0x140003542
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r14d
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140003687
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x44]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x140003577
xor ebx, ebx
jmp 0x1400035ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x14000359f
jg 0x14000359f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
cmove ebx, r14d
jmp 0x1400035ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r14d
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
js 0x140003687
cmp dword [rsp + 0x40], 4
jne 0x1400035e6
cmp dword [rsp + 0x44], 0x4020000
je 0x140003687
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140003642
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140003623
jg 0x140003623
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov ebx, eax
cmove ebx, r14d
jmp 0x14000363e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r14d
movzx ebx, ax
or ebx, 0x80070000
test ebx, ebx
js 0x140003687
lea rcx, [rbp + 0x160]
call fcn.140009c60
mov ebx, eax
test eax, eax
js 0x140003687
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
lea r8, [rbp + 0x160]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x50]
call fcn.14000a1d4
mov ebx, eax
test eax, eax
js 0x140003687
mov rcx, qword [rsp + 0x48]
call fcn.14000a3d0
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14000d000
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140003a24
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
test ecx, ecx
je 0x140003a68
lea r8, str.iexplore.exe
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerRemoveAccess
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
nop dword [rax + rax]
jmp 0x140003ac5
mov r8d, 0x26
lea rcx, [rsp + 0x30]
call fcn.140004e14
test al, al
je 0x140003ac5
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140003a85
add eax, eax
lea r8, str.iexplore.exe
mov dword [rsp + 0x28], eax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerRemoveAccess
lea rax, [rsp + 0x30]
mov r9d, 1
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000d000
add rsp, 0x250
pop rbx
ret

Function at 0x140003d90
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
lea rax, [rsp + 0x30]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov edx, 0x801c
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [rax + rax]
test eax, eax
js 0x140003e40
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, rbx
call int.140001260
test eax, eax
js 0x140003e40
lea r8, str.MicrosoftInternet_Explorer
mov rcx, rbx
call fcn.140007d88
test eax, eax
js 0x140003e40
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
je 0x140003e35
cmp eax, 0xb7
je 0x140003e35
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140003e40
mov r8, rdi
mov rcx, rbx
call fcn.140007d88
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000d000
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret

Function at 0x140004038
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
xor r9d, r9d
xor edx, edx
xor r8d, r8d
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
test rax, rax
je 0x1400040ce
lea rax, [0x1400140f0]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea r8, [0x140003e70]
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [0x1400140f8], rax
test rax, rax
je 0x1400040ce
mov rcx, qword [rsp + 0x30]
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov dil, 1
mov rbx, qword [rsp + 0x50]
mov al, dil
add rsp, 0x40
pop rdi
ret
Function at 0x140004478
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x30], rbp
mov rbx, rcx
test rcx, rcx
je 0x1400045a1
test rdx, rdx
je 0x1400045a1
mov rdx, rcx
lea r8d, [rbp + 5]
lea rcx, str.HKLM_
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
nop dword [rax + rax]
test eax, eax
jne 0x1400044da
add rbx, 0xa
lea rax, [0x14000f900]
mov r9, rbx
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140001380
mov ebx, eax
test eax, eax
js 0x14000459d
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14000458f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000453e
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.DeferMigrationCommand
mov r9d, 1
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test edi, edi
je 0x14000459d
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov eax, ebx
jmp 0x1400045a6
mov eax, 0x80070057
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000d000
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400046b8
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x248
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x1400046f3
mov eax, 1
jmp 0x140004701
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000d000
add rsp, 0x248
ret
Function at 0x140004e14
Capabilities:
Get common file path
Get system information on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x20], ebx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
nop dword [rax + rax]
lea r14d, [rbx + 0x26]
cmp dword [rsp + 0x20], ebx
je 0x140004ee1
cmp edi, r14d
jne 0x140004ee1
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, str._ProgramW6432_Internet_Explorer
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x140004f5f
lea r8, str.IEXPLORE.EXE
lea rcx, [rsp + 0x60]
call fcn.140007d88
test eax, eax
js 0x140004f5f
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, rsi
call int.140001260
test eax, eax
js 0x140004f5f
lea ebx, [r14 - 0x25]
jmp 0x140004f5f
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop dword [rax + rax]
cmp word [rsp + 0x28], bx
jne 0x140004f00
cmp edi, 0x2a
cmove edi, r14d
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov r8d, edi
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x140004f5f
lea r8, str.Internet_Explorer_
lea rcx, [rsp + 0x60]
call fcn.140007d88
test eax, eax
js 0x140004f5f
lea r8, str.IEXPLORE.EXE
lea rcx, [rsp + 0x60]
call fcn.140007d88
test eax, eax
js 0x140004f5f
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, rsi
call int.140001260
test eax, eax
movzx ebx, bl
mov edx, 1
cmovns ebx, edx
mov al, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000d000
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400089e4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x140014198]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [rdx], r15
lea r8, [rsp + 0x30]
mov edi, r15d
sub rcx, rax
mov r14, rdx
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140008a5a
movzx eax, word [rcx + r8]
test ax, ax
je 0x140008a5a
mov word [r8], ax
add r8, 2
sub r9, 1
jne 0x140008a36
lea rax, [r8 - 2]
test r9, r9
lea rcx, [rsp + 0x30]
cmovne rax, r8
lea r8, [0x140010678]
mov word [rax], r15w
call fcn.1400012d4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140008ac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140008bc2
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.140006284
mov esi, eax
jmp 0x140008b49
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.14000654c
mov esi, eax
test eax, eax
jns 0x140008afd
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.140006260
jmp 0x140008b81
lea r8, [0x140010680]
lea rcx, [rsp + 0x30]
call fcn.1400012d4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140008b52
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.140006284
mov rcx, rbx
mov esi, eax
call fcn.1400062ec
mov rdi, r15
test esi, esi
jns 0x140008bc2
jmp 0x140008b89
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000654c
mov esi, eax
test eax, eax
jns 0x140008ba1
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.140006260
mov rcx, rdi
call fcn.1400062ec
mov rcx, rbx
call fcn.1400062ec
mov rcx, qword [rbp + 0x168]
mov r9d, esi
mov edx, 0x62
call fcn.140006260
mov eax, esi
jmp 0x140008bc7
mov rcx, rdi
call fcn.1400062ec
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd rdi, dword [rsp + 0x20]
shl rdi, 0x1f
or rdi, rax
call fcn.1400062ec
mov qword [r14], rdi
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000d000
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret