joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095630
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov edx, 1
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x24], dx
xor r8d, r8d
mov dword [rsp + 0x20], 0x4c
call sym._____________.exe_PhFormat
mov rcx, rax
add rsp, 0x48
jmp sym._____________.exe_PhAutoDereferenceObject

Function at 0x140095920
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x30
movsx eax, byte [0x14015deb8]
xor ebx, ebx
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8d, eax
shl r8, 3
lea edx, [rbx + 4]
mov qword [0x14015d808], rbx
mov qword [0x14015d750], rbx
mov qword [0x14015d840], rbx
mov qword [0x14015d848], rbx
mov qword [0x14015d830], rbx
mov dword [0x14015d778], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [sym._____________.exe_PhHeapHandle]
lea edx, [rbx + 4]
mov qword [0x14015d770], rax
mov eax, dword [0x14015d778]
lea r8, [rax + rax*2]
shl r8, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [sym._____________.exe_PhHeapHandle]
lea edx, [rbx + 4]
mov qword [0x14015d748], rax
mov eax, dword [0x14015d778]
lea r8, [rax + rax*2]
shl r8, 3
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [sym._____________.exe_PhHeapHandle]
lea edx, [rbx + 4]
mov qword [0x14015d820], rax
mov eax, dword [0x14015d778]
lea r8, [rax + rax*2]
shl r8, 3
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [0x14015d778]
xorps xmm0, xmm0
mov qword [0x14015d818], rax
xorps xmm1, xmm1
mov dword [0x14015d860], ebx
mov r9, rax
mov byte [0x14015d864], bl
mov dword [0x14015d878], 0xffffffff
movdqu xmmword [0x14015d850], xmm0
movdqu xmmword [0x14015d868], xmm1
test edx, edx
je 0x140095a56
mov rax, qword [0x14015d748]
mov ecx, edx
add rax, 8
nop dword [rax + rax]
mov dword [rax + 8], ebx
mov qword [rax - 8], rbx
mov qword [rax], rbx
mov byte [rax + 0xc], bl
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov dword [rax + 0x20], 0xffffffff
lea rax, [rax + 0x30]
sub rcx, 1
jne 0x140095a30
lea eax, [rdx + rdx*2]
mov dword [0x14015d7f8], ebx
xor edx, edx
shl eax, 3
xor r8d, r8d
mov dword [rsp + 0x20], eax
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtPowerInformation]
test eax, eax
jns 0x140095a94
mov eax, dword [0x14015d778]
xor edx, edx
mov rcx, qword [0x14015d818]
lea r8, [rax + rax*2]
shl r8, 3
call fcn.1400e43c0
cmp dword [sym._____________.exe_WindowsVersion], 0x3d
mov qword [0x14015d838], rbx
mov qword [0x14015d758], rbx
jb 0x140095ab5
add rsp, 0x30
pop rbx
jmp fcn.1400977b0
add rsp, 0x30
pop rbx
ret
Function at 0x140095ca0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x38
mov eax, dword [0x14015d778]
xor r9d, r9d
mov rdx, qword [0x14015d820]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r8d, [rax + rax*2]
shl r8d, 3
lea ecx, [rbx + 0x17]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov r10d, dword [0x14015d778]
test eax, eax
js 0x140095d3f
xor edx, edx
mov qword [rsp + 0x30], rdi
mov rdi, qword [0x14015d820]
xor r8d, r8d
xor r11d, r11d
cmp r10d, 2
jb 0x140095d26
lea eax, [r10 - 2]
shr eax, 1
lea rcx, [rdi + 0x1c]
inc eax
mov r9d, eax
lea r11d, [rax + rax]
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rcx - 0x18]
lea rcx, [rcx + 0x30]
add rdx, rax
mov eax, dword [rcx - 0x30]
add r8, rax
sub r9, 1
jne 0x140095d10
cmp r11d, r10d
jae 0x140095d33
lea rcx, [r11 + r11*2]
mov ebx, dword [rdi + rcx*8 + 4]
mov rdi, qword [rsp + 0x30]
lea rax, [r8 + rdx]
add rbx, rax
mov ecx, dword [0x14015f088]
xor edx, edx
mov r9, qword [0x14015d818]
mov eax, ecx
sub eax, dword [0x14015d808]
xor r8d, r8d
mov dword [0x14015d80c], eax
mov dword [0x14015d808], ecx
mov ecx, dword [0x14015ebe8]
mov eax, ecx
sub eax, dword [0x14015d750]
mov dword [0x14015d754], eax
mov rax, rbx
sub rax, qword [0x14015d840]
mov qword [0x14015d848], rax
mov dword [0x14015d750], ecx
mov ecx, dword [0x14015f094]
mov eax, ecx
sub eax, dword [0x14015d830]
mov dword [0x14015d834], eax
lea eax, [r10 + r10*2]
shl eax, 3
mov dword [0x14015d830], ecx
lea ecx, [rdx + 0xb]
mov dword [rsp + 0x20], eax
mov qword [0x14015d840], rbx
call qword [sym.imp.ntdll.dll_NtPowerInformation]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140095dea
mov eax, dword [0x14015d778]
xor edx, edx
mov rcx, qword [0x14015d818]
lea r8, [rax + rax*2]
shl r8, 3
call fcn.1400e43c0
cmp dword [sym._____________.exe_WindowsVersion], 0x3d
jb 0x140095e2c
mov r8, qword [0x14015d758]
test r8, r8
je 0x140095e0e
mov rcx, qword [sym._____________.exe_PhHeapHandle]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [0x14015d838]
mov qword [0x14015d758], rax
mov qword [0x14015d838], 0
call fcn.1400977b0
mov eax, dword [0x14015d7f8]
mov ecx, 2
inc eax
cmp eax, ecx
cmova eax, ecx
mov dword [0x14015d7f8], eax
call fcn.140096c70
add rsp, 0x38
jmp fcn.140096db0
Function at 0x1400977b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov edx, 4
mov r8d, 0x100
mov dword [rsp + 0x30], 0x100
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x64
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor ebx, ebx
mov edi, eax
cmp eax, 0xc0000004
jne 0x140097864
nop word [rax + rax]
cmp ebx, 8
jae 0x140097864
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov edx, 4
mov rcx, qword [sym._____________.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x64
mov rsi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
inc ebx
mov edi, eax
cmp eax, 0xc0000004
je 0x140097810
test edi, edi
js 0x140097881
mov qword [0x14015d838], rsi
mov eax, edi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400992a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14015efd8]
mov eax, ecx
sub eax, dword [0x14015d988]
mov dword [0x14015d98c], eax
mov dword [0x14015d988], ecx
mov ecx, dword [0x14015efdc]
mov eax, ecx
sub eax, dword [0x14015da88]
mov dword [0x14015da8c], eax
mov dword [0x14015da88], ecx
mov ecx, dword [0x14015efe0]
mov eax, ecx
sub eax, dword [0x14015d9b0]
mov dword [0x14015d9b4], eax
mov dword [0x14015d9b0], ecx
mov ecx, dword [0x14015efe4]
mov eax, ecx
sub eax, dword [0x14015d9a8]
mov dword [0x14015d9ac], eax
mov dword [0x14015d9a8], ecx
mov ecx, dword [0x14015ef9c]
mov eax, ecx
sub eax, dword [0x14015da78]
mov dword [0x14015da7c], eax
mov dword [0x14015da78], ecx
mov ecx, dword [0x14015efb0]
mov eax, ecx
sub eax, dword [0x14015d980]
mov dword [0x14015d984], eax
mov dword [0x14015d980], ecx
mov ecx, dword [0x14015efc0]
mov eax, ecx
sub eax, dword [0x14015d970]
mov dword [0x14015d974], eax
mov dword [0x14015d970], ecx
mov ecx, dword [0x14015efc8]
mov eax, ecx
sub eax, dword [0x14015d990]
mov dword [0x14015d994], eax
mov eax, dword [0x14015dac0]
inc eax
mov dword [0x14015d990], ecx
mov ecx, 2
cmp eax, ecx
cmova eax, ecx
mov dword [0x14015dac0], eax
call fcn.140099f80
add rsp, 0x28
jmp fcn.14009a070
Function at 0x1400a7a80
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, ecx
mov edi, ecx
and eax, 0xfff0000
cmp eax, 0x70000
je 0x1400a7ac5
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea rcx, [0x140126110]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, edi
mov r8d, ebx
mov rcx, rax
mov edx, 0xb
call sym._____________.exe_PhGetMessage
jmp 0x1400a7acd
movzx ecx, cx
call sym._____________.exe_PhGetWin32Message
mov rbx, rax
test rax, rax
je 0x1400a7ba6
cmp qword [rax], 0
je 0x1400a7ba6
mov rcx, qword [rax + 8]
call sym._____________.exe_PhCountStringZ
or edi, 0xffffffff
lea rdx, [rax + rax]
mov qword [rbx], rdx
cmp rdx, 4
jb 0x1400a7b3f
mov rcx, qword [rbx + 8]
mov rax, rdx
shr rax, 1
cmp word [rcx + rax*2 - 4], 0xd
jne 0x1400a7b3f
cmp word [rcx + rax*2 - 2], 0xa
jne 0x1400a7b3f
add rdx, 0xfffffffffffffffc
call sym._____________.exe_PhCreateStringEx
mov rcx, rbx
mov rbx, rax
test rcx, rcx
je 0x1400a7b3f
add rcx, 0xfffffffffffffff0
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400a7b3f
call fcn.1400ae900
mov rax, qword [rbx + 8]
cmp word [rax], 0x7b
jne 0x1400a7ba6
movups xmm0, xmmword [rbx]
mov edx, 0xa
xor r8d, r8d
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
call sym._____________.exe_PhFindCharInStringRef
cmp rax, 0xffffffffffffffff
je 0x1400a7ba6
mov rcx, qword [rsp + 0x28]
lea r8, [rax + rax]
mov rdx, qword [rsp + 0x20]
add rcx, 2
sub rdx, r8
add rcx, r8
sub rdx, 2
call sym._____________.exe_PhCreateStringEx
mov rcx, rbx
mov rbx, rax
test rcx, rcx
je 0x1400a7ba6
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], edi
cmp edi, 1
jne 0x1400a7ba6
call fcn.1400ae900
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a7bc0
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea rcx, str.kernel32.dll
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, edi
mov r8d, ebx
mov rcx, rax
mov edx, 0xb
call sym._____________.exe_PhGetMessage
mov rbx, rax
test rax, rax
je 0x1400a7c65
mov rcx, qword [rax + 8]
call sym._____________.exe_PhCountStringZ
lea rdx, [rax + rax]
mov qword [rbx], rdx
cmp rdx, 4
jb 0x1400a7c62
mov rcx, qword [rbx + 8]
mov rax, rdx
shr rax, 1
cmp word [rcx + rax*2 - 4], 0xd
jne 0x1400a7c62
cmp word [rcx + rax*2 - 2], 0xa
jne 0x1400a7c62
add rdx, 0xfffffffffffffffc
call sym._____________.exe_PhCreateStringEx
mov rdi, rax
test rbx, rbx
je 0x1400a7c65
lea rcx, [rbx - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400a7c65
call fcn.1400ae900
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8380
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xc0
movups xmm0, xmmword [rdx]
mov ebx, r9d
mov rdi, r8
mov rsi, rcx
mov edx, 4
mov rcx, qword [sym._____________.exe_PhHeapHandle]
movups xmmword [rbp - 0x61], xmm0
ror word [rbp - 0x5d], 8
lea r15d, [rbx + 0x10]
ror word [rbp - 0x5b], 8
movd eax, xmm0
mov r8d, r15d
bswap eax
mov dword [rbp - 0x61], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
movups xmm0, xmmword [rbp - 0x61]
mov r8d, ebx
mov rdx, rdi
mov r14, rax
lea rcx, [rax + 0x10]
movups xmmword [rax], xmm0
call fcn.1400e3970
movzx ebx, byte [rbp + 0x7f]
xor eax, eax
mov r8d, r15d
mov rdx, r14
cmp bl, 3
jne 0x1400a84b8
lea rcx, [rbp - 0x41]
mov dword [rbp - 0x39], 0x67452301
mov dword [rbp - 0x35], 0xefcdab89
mov dword [rbp - 0x31], 0x98badcfe
mov dword [rbp - 0x2d], 0x10325476
mov qword [rbp - 0x41], rax
call fcn.1400e0970
mov edx, dword [rbp - 0x41]
lea rcx, [rbp - 0x29]
shr edx, 3
and edx, 0x3f
mov eax, edx
add rcx, rax
mov eax, 0x3f
sub eax, edx
xor edx, edx
mov byte [rcx], 0x80
inc rcx
cmp eax, 8
jae 0x1400a848e
mov r8d, eax
call fcn.1400e43c0
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x39]
call fcn.1400e0b10
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
jmp 0x1400a8499
add eax, 0xfffffff8
mov r8d, eax
call fcn.1400e43c0
mov eax, dword [rbp - 0x41]
lea rdx, [rbp - 0x29]
mov dword [rbp + 0xf], eax
lea rcx, [rbp - 0x39]
mov eax, dword [rbp - 0x3d]
mov dword [rbp + 0x13], eax
call fcn.1400e0b10
movups xmm0, xmmword [rbp - 0x39]
jmp 0x1400a84fb
lea rcx, [rbp - 0x41]
mov dword [rbp - 0x29], 0x67452301
mov dword [rbp - 0x25], 0xefcdab89
mov dword [rbp - 0x21], 0x98badcfe
mov dword [rbp - 0x1d], 0x10325476
mov dword [rbp - 0x19], 0xc3d2e1f0
mov qword [rbp - 0x15], rax
call fcn.1400e2780
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.1400e2860
movups xmm0, xmmword [rbp - 0x61]
mov bl, 5
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, r14
xor edx, edx
movups xmmword [rbp - 0x61], xmm0
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movups xmm0, xmmword [rbp - 0x61]
shl bl, 4
lea r11, [rsp + 0xc0]
mov rdi, qword [r11 + 0x30]
movups xmmword [rsi], xmm0
mov eax, dword [rsi]
bswap eax
mov dword [rsi], eax
movzx eax, word [rsi + 4]
ror ax, 8
mov word [rsi + 4], ax
movzx eax, word [rsi + 6]
ror ax, 8
mov word [rsi + 6], ax
and byte [rsi + 7], 0xf
or byte [rsi + 7], bl
and byte [rsi + 8], 0x3f
or byte [rsi + 8], 0x80
mov rsi, qword [r11 + 0x28]
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400a9500
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
xor r14d, r14d
lea r15, [0x14015dad8]
test byte [0x140155948], 1
lea r12, [0x14015daf0]
movzx edi, r8b
mov esi, edx
mov rbp, rcx
jne 0x1400a960b
lock bts qword [0x140155948], 0x1f
jae 0x1400a9569
test byte [0x140155948], 1
jne 0x1400a960b
xor edx, edx
lea rcx, [0x140155948]
call sym._____________.exe_PhfWaitForEvent
jmp 0x1400a960b
mov r9d, 4
mov r8, r15
mov ecx, 0x400
lea edx, [r9 + 0xa]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400a958f
mov dword [0x14015dad8], 0x2e
mov r9d, 4
mov r8, r12
mov ecx, 0x400
lea edx, [r9 + 0xb]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400a95b5
mov dword [0x14015daf0], 0x2c
lock bts qword [0x140155948], 0
jb 0x1400a960b
mov rbx, qword [0x140155950]
test rbx, rbx
je 0x1400a95d8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rax, 0xfffffffffffffffe
lock xadd qword [0x140155948], rax
shr rax, 1
and eax, 0x7fff
cmp rax, 1
jne 0x1400a960b
test rbx, rbx
je 0x1400a960b
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x140155950], r14
neg dil
mov dword [rsp + 0x28], r14d
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], esi
sbb eax, eax
mov dword [rsp + 0x34], r14d
and eax, 3
mov qword [rsp + 0x40], r15
mov r8, rbp
mov dword [rsp + 0x38], eax
xor edx, edx
mov qword [rsp + 0x48], r12
mov ecx, 0x400
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov rbx, qword [0x14015e0c8]
mov esi, eax
lea ecx, [rax + rax]
mov edi, ecx
lea rdx, [rcx + 0x12]
mov rcx, rbx
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
lea r9, [rsp + 0x30]
movzx edx, byte [rbx + 2]
mov r8, rbp
mov word [rax], dx
lea rbx, [rax + 0x10]
lea rax, [rbx + 0x10]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
xor edx, edx
mov word [rax + rdi], r14w
mov ecx, 0x400
mov rax, qword [rbx + 8]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
jne 0x1400a96d1
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400a96cd
call fcn.1400ae900
xor eax, eax
jmp 0x1400a96e3
mov rcx, qword [rbx + 8]
call sym._____________.exe_PhCountStringZ
add rax, rax
mov qword [rbx], rax
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400a9790
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdx, [rsp + 0x38]
mov rsi, rcx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test eax, eax
je 0x1400a9817
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8d, edi
mov edx, 4
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8d, edi
xor edx, edx
mov r9, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1400a9804
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400aa470
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14015b1b0]
test rax, rax
je 0x1400aa489
lock inc dword [rax - 8]
add rsp, 0x38
ret
mov qword [rsp + 0x48], rbx
mov edx, 0x92
mov rbx, qword [0x14015e0c8]
mov qword [rsp + 0x50], rbp
mov rcx, rbx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], r14
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor ebp, ebp
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov qword [rbx], 0x80
lea edx, [rbp + 0x40]
mov word [rax + 0x80], bp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or esi, 0xffffffff
mov r14d, eax
cmp eax, 0x40
jbe 0x1400aa564
mov qword [rsp + 0x28], rdi
lea rcx, [rbx - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400aa511
call fcn.1400ae900
mov rbx, qword [0x14015e0c8]
lea eax, [r14 + r14]
lea rdx, [rax + 0x12]
mov edi, eax
mov rcx, rbx
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
mov edx, r14d
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
mov qword [rbx + 8], rax
mov qword [rbx], rdi
mov word [rax + rdi], bp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rdi, qword [rsp + 0x28]
mov r14d, eax
mov rbp, qword [rsp + 0x50]
test r14d, r14d
mov r14, qword [rsp + 0x20]
jne 0x1400aa597
lea rcx, [rbx - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x1400aa586
call fcn.1400ae900
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x30]
add rsp, 0x38
ret
mov rcx, qword [rbx + 8]
call sym._____________.exe_PhCountStringZ
add rax, rax
mov qword [rbx], rax
xor eax, eax
lock cmpxchg qword [0x14015b1b0], rbx
jne 0x1400aa5b7
lock inc dword [rbx - 8]
mov rsi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400aa5d0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x14015dae8], 0
mov rbx, rcx
je 0x1400aa5f3
movups xmm0, xmmword [0x14015dae0]
movups xmmword [rcx], xmm0
add rsp, 0x30
pop rbx
ret
mov ecx, 0x7ffe0030
mov qword [rsp + 0x28], 0x7ffe0030
call sym._____________.exe_PhCountStringZ
add rax, rax
mov qword [rsp + 0x20], rax
cmp word [rax + 0x7ffe002e], 0x5c
jne 0x1400aa621
sub rax, 2
mov qword [rsp + 0x20], rax
movups xmm0, xmmword [rsp + 0x20]
mov qword [0x14015dae0], rax
movups xmmword [rbx], xmm0
lock or dword [rsp], 0
mov qword [0x14015dae8], 0x7ffe0030
add rsp, 0x30
pop rbx
ret
Function at 0x1400aa910
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, rcx
mov r14, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
xor esi, esi
mov r8, qword [rax + 0x60]
mov rax, qword [r8 + 0x18]
add rax, 0x10
mov rcx, qword [rax]
cmp rcx, rax
je 0x1400aa973
nop
test rbx, rbx
je 0x1400aa9a8
cmp qword [rcx + 0x30], rbx
je 0x1400aa9a8
mov rcx, qword [rcx]
cmp rcx, rax
jne 0x1400aa960
mov rbx, rsi
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
jne 0x1400aa9bf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test rcx, rcx
je 0x1400aa973
movzx edx, word [rcx + 0x48]
mov rcx, qword [rcx + 0x50]
call sym._____________.exe_PhCreateStringEx
mov rbx, rax
jmp 0x1400aa976
mov rcx, rbx
mov qword [rsp + 0x30], rdi
call sym._____________.exe_PhGetFileName
mov rdi, rax
lea rcx, [rbx - 0x10]
or edx, 0xffffffff
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400aa9e5
call fcn.1400ae900
test r14, r14
je 0x1400aaa09
mov edx, 0x5c
xor r8d, r8d
mov rcx, rdi
call sym._____________.exe_PhFindLastCharInStringRef
cmp rax, 0xffffffffffffffff
lea rcx, [rax + 1]
cmovne rsi, rcx
mov dword [r14], esi
mov rbx, qword [rsp + 0x38]
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400aaac0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rbp, rdx
mov r14d, ecx
test rdx, rdx
je 0x1400aaaf6
mov rcx, rdx
call sym._____________.exe_PhCountStringZ
mov rsi, rax
add rsi, rsi
jmp 0x1400aaaf9
mov rsi, r15
mov rbx, qword [0x14015e0c8]
lea rdi, [rsi + 0x208]
lea rdx, [rdi + 0x12]
mov rcx, rbx
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
xor r9d, r9d
movzx ecx, byte [rbx + 2]
xor r8d, r8d
mov word [rax], cx
lea rbx, [rax + 0x10]
lea rax, [rbx + 0x10]
mov qword [rbx], rdi
mov qword [rbx + 8], rax
mov edx, r14d
mov word [rax + rdi], r15w
xor ecx, ecx
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400aab8a
mov rcx, qword [rbx + 8]
call sym._____________.exe_PhCountStringZ
add rax, rax
mov qword [rbx], rax
test rbp, rbp
je 0x1400aab85
mov rcx, qword [rbx + 8]
lea r8, [rsi + 2]
shr rax, 1
mov rdx, rbp
lea rcx, [rcx + rax*2]
call fcn.1400e3970
add qword [rbx], rsi
mov rax, rbx
jmp 0x1400aaba2
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400aaba0
call fcn.1400ae900
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret