joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d974
Capabilities:
Write file on windows

Disassembly:
jmp 0x140084720
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140182040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1401890f4]
call fcn.14007d992
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140084786
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14008478d
mov al, 1
jmp 0x1400848dd
call fcn.14007d2bc
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14007d2bc
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14007d7a3
movzx eax, al
test eax, eax
je 0x1400847de
xor al, al
jmp 0x1400848dd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140084843
cmp dword [rbp + 0x154], 1
je 0x14008484e
cmp dword [rbp + 0x154], 3
je 0x1400848cc
jmp 0x1400848db
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14008489e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14008489e
xor al, al
jmp 0x1400848dd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400848b9
mov dword [rbp + 0x154], 1
jmp 0x1400848c3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400848dd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400848dd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14017bde0]
call fcn.14007d7f8
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14007d4a1
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140001000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x14000110c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x1400010fd
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
jne 0x1400010c1
lea rcx, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x1400010fd
lea rdx, [rsp + 0x40]
mov ecx, ebx
sub rdx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x1400010e9
mov al, byte [rdx + rdi]
cmp al, bl
je 0x1400010e9
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x1400010cb
cmp rsi, rbx
jne 0x1400010f6
dec rdi
mov ecx, 0x8007007a
cmp ecx, ebx
mov byte [rdi], bl
setge bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000110e
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400ab140
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005270
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rdi, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
lea ecx, [r12 + 2]
call fcn.1400a82f0
mov rbx, rax
mov word [rax], r12w
lea ecx, [r12 + 2]
call fcn.1400a82f0
mov r14, rax
mov qword [rsp + 0x90], rax
mov word [rax], r12w
mov rcx, rdi
call fcn.1400a8238
mov rsi, rax
mov qword [rsp + 0x28], rax
mov rcx, rbx
call fcn.1400a82b0
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x200
jne 0x140005388
mov rcx, rsi
call fcn.1400a8238
mov rbx, rax
mov rcx, rax
call fcn.1400aa394
lea rdx, str._PROGRAMFILES_
mov rcx, rbx
call fcn.1400a99c0
test rax, rax
je 0x140005380
lea rdx, str._PROGRAMFILES_
mov rcx, rbx
call fcn.1400a99c0
sub rax, rbx
sar rax, 1
mov ecx, eax
movups xmm0, xmmword [str._ProgramW6432_]
movups xmmword [rsi + rcx*2], xmm0
movsd xmm1, qword [0x1400d2188]
movsd qword [rsi + rcx*2 + 0x10], xmm1
mov eax, dword [0x1400d2190]
mov dword [rsi + rcx*2 + 0x18], eax
add rcx, 0xe
lea rdx, [rsi + rcx*2]
mov rcx, rdx
sub rcx, rdx
nop word [rax + rax]
movzx eax, word [rdx]
mov word [rcx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140005370
mov rcx, rbx
call fcn.1400a82b0
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.140013270
mov rcx, qword [rax]
call fcn.1400a8238
mov rbx, rax
mov qword [rsp + 0x90], rax
mov rcx, r14
call fcn.1400a82b0
mov rcx, qword [rsp + 0x98]
call fcn.1400a82b0
mov rcx, rbx
call fcn.1400a8238
mov rdi, rax
mov qword [rsp + 0x28], rax
mov rcx, rsi
call fcn.1400a82b0
cmp word [rbx], 0x22
jne 0x14000542b
mov r13d, 0x22
mov edx, r13d
lea rcx, [rbx + 2]
call fcn.1400a9720
mov r14, rax
mov rsi, rdi
lea rcx, [rbx + 2]
test rax, rax
je 0x140005419
mov word [rax], r12w
call fcn.1400a8238
mov rdi, rax
mov rcx, rsi
call fcn.1400a82b0
mov word [r14], r13w
jmp 0x140005493
call fcn.1400a8238
mov rdi, rax
mov rcx, rsi
call fcn.1400a82b0
jmp 0x140005493
mov rcx, rbx
call fcn.140013360
cmp eax, 0xffffffff
jne 0x140005493
mov rsi, r12
mov ebp, 0x20
mov edx, ebp
mov rcx, rbx
call fcn.1400a9910
mov r14, rax
test rax, rax
je 0x140005493
test rsi, rsi
je 0x14000545a
mov word [rsi], bp
mov word [r14], r12w
mov rcx, rbx
call fcn.140013360
cmp eax, 0xffffffff
je 0x14000546f
test al, 0x10
je 0x140005486
mov rsi, r14
mov edx, ebp
mov rcx, rbx
call fcn.1400a9910
mov r14, rax
test rax, rax
je 0x14000548b
jmp 0x140005452
mov rcx, rbx
jmp 0x140005496
test rsi, rsi
je 0x140005493
mov word [rsi], bp
mov rcx, rdi
call fcn.1400a8238
mov qword [r15], rax
mov rcx, rbx
call fcn.1400a82b0
nop
mov rcx, rdi
call fcn.1400a82b0
mov rax, r15
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006390
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.GetSystemWindowsDirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [0x140124ec0]
mov edx, 0x104
mov rcx, rbx
test rax, rax
je 0x1400063d4
call rax
jmp 0x1400063da
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor esi, esi
lea rdi, [0x1401254f0]
mov ecx, esi
nop word [rax + rax]
movzx eax, word [rcx + rbx]
lea rcx, [rcx + 2]
mov word [rcx + rdi - 2], ax
test ax, ax
jne 0x1400063f0
lea rdx, [rdi - 2]
cmp word [rdx + 2], si
lea rdx, [rdx + 2]
jne 0x140006406
movups xmm0, xmmword [str.System32]
mov eax, dword [0x1400d2150]
lea rcx, str.Kernel32.dll
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006472
lea rbx, [0x140125700]
mov edx, 0x104
mov rcx, rbx
call rax
test eax, eax
jne 0x140006472
mov rcx, rsi
nop dword [rax]
movzx eax, word [rcx + rdi]
lea rcx, [rcx + 2]
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x140006460
lea rbx, [0x1401250d0]
lea rdi, str._ProgramW6432_
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rbx + rcx*2 + 2]
jne 0x1400064e8
add rcx, 2
cmp rcx, 0xf
je 0x1400064c2
movzx eax, word [rdi + rcx*2]
cmp ax, word [rbx + rcx*2]
je 0x1400064a0
jmp 0x1400064e8
lea rcx, str._ProgramFiles_
mov r8d, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, str.ProgramW6432
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x1401252e0]
lea rcx, str._PROGRAMFILES_X86__
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, str.__x86_
mov rcx, rbx
call fcn.1400a99c0
test rax, rax
je 0x140006538
lea rdx, str.__x86_
mov rcx, rbx
call fcn.1400a99c0
lea rcx, str.PROGRAMFILES_X86_
mov rdx, rbx
mov word [rax], si
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
Function at 0x140006880
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.Wow64EnableWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.Kernel32.dll
mov qword [0x1401256f8], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.Wow64DisableWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.Kernel32.dll
mov qword [0x140125908], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [0x140125910], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov qword [0x140125930], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.NtDeleteKey
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov qword [0x140125938], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.NtOpenKey
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov qword [0x140125940], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.NtCreateKey
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov qword [0x140125950], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140125948], rax
add rsp, 0x28
ret
Function at 0x1400079c0
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
sub rsp, 0x298
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, str.SeDebugPrivilege
call fcn.140005190
test eax, eax
je 0x140007b78
xor edx, edx
mov qword [rsp + 0x290], rdi
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x140007b70
lea rdx, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x40], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140007b67
mov qword [rsp + 0x2a0], rbx
lea rcx, [rsp + 0x6c]
mov edx, 0x5c
lea rbx, [rsp + 0x6c]
call fcn.1400a9910
test rax, rax
je 0x140007a61
lea rcx, [rsp + 0x6c]
mov edx, 0x5c
call fcn.1400a9910
mov rbx, rax
add rbx, 2
je 0x140007a74
lea rdx, str.winlogon.exe
mov rcx, rbx
call fcn.1400a9bbc
test eax, eax
je 0x140007a8a
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140007a30
jmp 0x140007b5f
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140007b5f
lea r8, [rsp + 0x30]
mov edx, 0xa
mov rcx, rax
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140007b56
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0xf01ff
mov dword [rsp + 0x20], 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140007b4b
lea rcx, str.SeImpersonatePrivilege
call fcn.140005190
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140007b40
lea rcx, str.SeSecurityPrivilege
call fcn.140005190
lea rcx, str.SeDebugPrivilege
call fcn.140005190
lea rcx, str.SeBackupPrivilege
call fcn.140005190
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x2a0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x298
ret
Function at 0x140008ef0
Capabilities:
Write file on windows

Disassembly:
push r15
sub rsp, 0x60
lea rax, [rsp + 0x80]
mov r8d, ecx
mov qword [rsp + 0x30], 0
mov r9d, 0x400
xor edx, edx
mov ecx, 0x1300
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r15d, eax
test eax, eax
je 0x140009052
cmp byte [0x14012466f], 0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
lea rbx, str.error
mov edi, 0x65
je 0x140008faf
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], r14
call fcn.1400aa510
lea r14, [rax + 0x30]
lea ecx, [rdi - 0x29]
mov rdx, r14
call fcn.1400aaa34
mov rsi, rbx
mov ebp, edi
nop dword [rax]
mov rdx, r14
movzx ecx, bp
call fcn.1400aaa34
movzx ebp, word [rsi + 2]
lea rsi, [rsi + 2]
test bp, bp
jne 0x140008f80
mov ecx, 0x3e
mov rdx, r14
call fcn.1400aaa34
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, qword [rsp + 0x80]
lea r9, [rsp + 0x78]
mov rcx, rax
mov r8d, r15d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x14012466f], 0
je 0x140009035
call fcn.1400aa510
mov ecx, 0x3c
lea rsi, [rax + 0x30]
mov rdx, rsi
call fcn.1400aaa34
mov ecx, gethostbyaddr
mov rdx, rsi
call fcn.1400aaa34
nop dword [rax + rax]
mov rdx, rsi
movzx ecx, di
call fcn.1400aaa34
movzx edi, word [rbx + 2]
lea rbx, [rbx + 2]
test di, di
jne 0x140009010
mov ecx, 0x3e
mov rdx, rsi
call fcn.1400aaa34
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop r15
ret
Function at 0x14000a930
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r15, r9
mov r12, r8
mov r13, rdx
mov ebp, ecx
mov ecx, 2
call fcn.1400a82f0
mov rsi, rax
xor eax, eax
mov word [rsi], ax
lea r14, [0x1400d1428]
mov rcx, r14
test r15, r15
cmovne rcx, r15
call fcn.1400a8238
mov rbx, rax
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
lea rdx, str.SoftwareClassesCLSID_
lea rcx, [rsp + 0x28]
call fcn.1400161f0
lea r8, str.Instance
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140022b00
mov rcx, qword [rax]
call fcn.1400a8238
mov rdi, rax
mov qword [rsp + 0x88], rax
mov rcx, rsi
call fcn.1400a82b0
mov rcx, qword [rsp + 0x20]
call fcn.1400a82b0
mov rcx, qword [rsp + 0x28]
call fcn.1400a82b0
mov rcx, rbx
call fcn.1400a82b0
lea r8, [rsp + 0x88]
mov rdx, r12
mov rcx, r13
call fcn.140009cf0
test ebp, ebp
je 0x14000aaeb
mov rax, qword [0x1401256f8]
test rax, rax
je 0x14000aa35
mov ecx, 1
call rax
mov edx, 0x200
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test r15, r15
cmovne r14, r15
mov rcx, r14
call fcn.1400a8238
mov rbx, rax
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
lea rdx, str.SoftwareWow6432NodeClassesCLSID_
lea rcx, [rsp + 0x20]
call fcn.1400161f0
lea r8, str.Instance
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140022b00
mov rsi, rdi
mov rcx, qword [rax]
call fcn.1400a8238
mov rdi, rax
mov qword [rsp + 0x88], rax
mov rcx, rsi
call fcn.1400a82b0
mov rcx, qword [rsp + 0x28]
call fcn.1400a82b0
mov rcx, qword [rsp + 0x20]
call fcn.1400a82b0
mov rcx, rbx
call fcn.1400a82b0
lea r8, [rsp + 0x88]
mov rdx, r12
mov rcx, r13
call fcn.140009cf0
mov rax, qword [0x1401256f8]
test rax, rax
je 0x14000aaeb
xor ecx, ecx
call rax
mov edx, 0x100
mov ecx, dword [0x1401252dc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.1400a82b0
Function at 0x140013270
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [rbp + 2]
mov esi, eax
call fcn.1400a82f0
lea rcx, [rsi + 1]
mov qword [rbx], rax
mov word [rax], bp
lea rbp, [rcx + rcx]
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.1400a83a8
mov qword [rbx], rax
test rax, rax
je 0x1400132d6
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.1400a8b00
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140013360
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, rcx
lea rdx, [rsp + 0x38]
lea rcx, [0x140126150]
call fcn.140008ec0
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14001338d
mov rcx, qword [rbx]
jmp 0x14001338f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test rbx, rbx
je 0x1400133a6
mov rcx, rbx
call fcn.140009910
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400133c0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov ebp, edx
mov r8, rcx
lea rcx, [0x140126150]
lea rdx, [rsp + 0x30]
mov edi, r9d
call fcn.140008ec0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400133ff
mov rcx, qword [rbx]
jmp 0x140013401
xor ecx, ecx
mov eax, dword [rsp + 0x70]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov dword [rsp + 0x20], eax
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rdi, rax
test rbx, rbx
je 0x140013429
mov rcx, rbx
call fcn.140009910
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140013440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov r12, r9
mov r15, r8
mov rbx, rdx
mov rcx, rdx
call fcn.1400a8238
movzx eax, word [r15]
test ax, ax
je 0x140013486
cmp word [r15 + 2], 0x3a
je 0x14001348c
cmp ax, 0x5c
jne 0x1400134fd
mov r8, r15
lea rdx, [rsp + 0x40]
lea rcx, [0x140126150]
call fcn.140008ec0
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1400134af
mov rbp, qword [rbx]
jmp 0x1400134b1
xor ebp, ebp
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov rdi, qword [r12]
mov rcx, r15
call fcn.1400a8238
mov qword [r12], rax
mov rcx, rdi
call fcn.1400a82b0
cmp esi, 0xffffffff
je 0x1400134e4
test sil, 0x10
jne 0x1400134e4
mov dil, 1
jmp 0x1400134e7
xor dil, dil
test rbx, rbx
je 0x1400134f4
mov rcx, rbx
call fcn.140009910
movzx eax, dil
jmp 0x140013681
lea rcx, [0x1400d1428]
test rbx, rbx
cmovne rcx, rbx
call fcn.1400a8238
mov rdi, rax
mov qword [rsp + 0x38], rax
cmp word [rax], 0
je 0x140013674
xor ebp, ebp
mov r13d, 0x3b
nop word [rax + rax]
mov edx, r13d
mov rcx, rdi
call fcn.1400a9720
mov rsi, rax
test rax, rax
je 0x140013546
mov word [rax], bp
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], bp
jne 0x140013550
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r15 + rax*2], bp
jne 0x140013560
add ecx, 2
add eax, ecx
mov ebx, eax
lea rcx, [rax + rax]
call fcn.1400a82f0
mov r14, rax
mov qword [rsp + 0x20], r15
mov r9, rdi
lea r8, [0x1400d7708]
mov edx, ebx
mov rcx, rax
call fcn.1400aa928
test rsi, rsi
je 0x1400135a5
mov word [rsi], r13w
lea rdi, [rsi + 2]
jmp 0x1400135ac
lea rdi, [0x1400d1428]
mov r8, r14
lea rdx, [rsp + 0x30]
lea rcx, [0x140126150]
call fcn.140008ec0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400135cf
mov rcx, qword [rbx]
jmp 0x1400135d2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400135e1
test al, 0x10
je 0x140013639
mov rcx, r14
call fcn.1400a82b0
test rbx, rbx
je 0x14001362f
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x14001362a
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140013610
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140013622
call fcn.1400aac28
mov qword [rbx + 8], rbp
mov rcx, rbx
call fcn.1400a7cb8
mov qword [rsp + 0x30], rbp
cmp word [rdi], bp
je 0x14001366f
jmp 0x140013530
mov rdi, qword [r12]
mov rcx, r14
call fcn.1400a8238
mov qword [r12], rax
mov rcx, rdi
call fcn.1400a82b0
mov rcx, r14
call fcn.1400a82b0
test rbx, rbx
je 0x140013666
mov rcx, rbx
call fcn.140009910
mov bl, 1
mov rdi, qword [rsp + 0x38]
jmp 0x140013676
mov rdi, qword [rsp + 0x38]
xor bl, bl
mov rcx, rdi
call fcn.1400a82b0
invalid
invalid