joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020050
Capabilities:
Get hostname

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov eax, 0x80000000
add rax, rdx
cmp rax, 1
jbe 0x1400200db
lea r8, [rcx + 0x10]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov dword [rsi + 0x18], eax
test eax, eax
jne 0x1400202b0
lea r15, [rsi + 0x28]
test r14, r14
je 0x1400200f0
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400200c0
mov r8d, eax
mov rdx, r14
mov rcx, r15
call fcn.14000df90
jmp 0x14002014a
test r14, r14
jne 0x1400202a9
mov qword [rcx + 0x10], rdi
mov dword [rcx + 0x18], r14d
lea r15, [rcx + 0x28]
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14002011d
mov rcx, r15
call fcn.14000e0b0
mov rbx, 0xffffffffffffffff
jmp 0x14002014a
lea rcx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140020130
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14000df90
lea rcx, [rsi + 0x38]
cmp rdi, 0xffffffff80000002
jne 0x140020177
lea rdx, str.HKEY_LOCAL_MACHINE
nop
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140020160
mov r8d, ebx
call fcn.14000df90
jmp 0x1400202a2
cmp rdi, 0xffffffff80000000
jne 0x1400201a7
lea rdx, str.HKEY_CLASSES_ROOT
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140020190
mov r8d, ebx
call fcn.14000df90
jmp 0x1400202a2
cmp rdi, 0xffffffff80000003
jne 0x1400201d7
lea rdx, str.HKEY_USERS
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400201c0
mov r8d, ebx
call fcn.14000df90
jmp 0x1400202a2
cmp rdi, 0xffffffff80000001
jne 0x140020207
lea rdx, str.HKEY_CURRENT_USER
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1400201f0
mov r8d, ebx
call fcn.14000df90
jmp 0x1400202a2
cmp rdi, 0xffffffff80000004
jne 0x140020234
lea rdx, str.HKEY_PERFORMANCE_DATA
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140020220
mov r8d, ebx
call fcn.14000df90
jmp 0x1400202a2
cmp rdi, 0xffffffff80000005
jne 0x140020258
lea rdx, str.HKEY_CURRENT_CONFIG
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140020244
mov r8d, ebx
call fcn.14000df90
jmp 0x1400202a2
cmp rdi, 0xffffffff80000006
jne 0x140020284
lea rdx, str.HKEY_DYN_DATA
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140020270
mov r8d, ebx
call fcn.14000df90
jmp 0x1400202a2
lea rdx, str.Unknown
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140020290
mov r8d, ebx
call fcn.14000df90
mov eax, 1
jmp 0x1400202b6
mov dword [rcx + 0x18], 6
xor eax, eax
jmp 0x1400202b6
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402155d0
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400207e0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
mov dword [rbx + 0x18], eax
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140020810
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x2068
call fcn.140216080
sub rsp, rax
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbp, r8
mov dword [rsp + 0x44], 0x7ff
mov ebx, edx
mov dword [rsp + 0x40], 0x7ff
mov rdi, rcx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
mov rsi, r9
call fcn.140241ba0
xor edx, edx
lea rcx, [rsp + 0x1050]
mov r8d, 0x1000
call fcn.140241ba0
mov rcx, qword [rdi + 8]
lea rax, [rdi + 0x5c]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov edx, ebx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x1050]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rdi + 0x18], eax
test eax, eax
jne 0x140020916
mov rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400208d0
mov r8d, eax
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.14000df90
lea rax, [rsp + 0x1050]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400208f2
mov r8d, ebx
lea rdx, [rsp + 0x1050]
mov rcx, rsi
call fcn.14000df90
mov eax, 1
jmp 0x140020918
xor eax, eax
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1402155d0
add rsp, 0x2068
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140020940
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1068
call fcn.140216080
sub rsp, rax
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, r9
mov r12, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov r14, qword [rsp + 0x10c0]
mov r15, qword [rsp + 0x10c8]
mov eax, dword [r9]
mov dword [rsp + 0x40], eax
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x50]
call fcn.140241ba0
mov dword [rsp + 0x44], 0x800
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x50]
mov edx, dword [rsi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rbx + 0x18], eax
test eax, eax
jne 0x140020a21
mov eax, dword [rsp + 0x40]
mov dword [rdi], eax
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140020a00
mov r8d, eax
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.14000df90
mov eax, 1
jmp 0x140020a27
xor eax, eax
jmp 0x140020a27
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1402155d0
add rsp, 0x1068
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021280
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, dword [r8]
mov rdi, r8
mov dword [rsp + 0x40], eax
mov rbx, rcx
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbx + 0x18], eax
test eax, eax
jne 0x1400212cc
mov eax, dword [rsp + 0x40]
mov dword [rdi], eax
mov eax, 1
jmp 0x1400212ce
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140021920
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
je 0x14002195e
test r9, r9
je 0x14002195e
mov eax, dword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
mov dword [rbx + 0x18], eax
test eax, eax
sete cl
mov eax, ecx
jmp 0x140021967
mov dword [rcx + 0x18], 0x57
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140022e40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8d0
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.14001fc70
nop
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x140023072
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_ManagementARPCache_
mov rbx, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140022ec2
movzx edx, dx
lea rcx, [rsp + 0x30]
call fcn.14000d610
jmp 0x140022edd
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x140022ec5
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14000df90
nop
test rdi, rdi
jne 0x140022ee6
xor eax, eax
jmp 0x140022efa
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140022ef0
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400157c0
mov r8d, esi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400210b0
test eax, eax
je 0x14002301d
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0xc0]
call fcn.140241ba0
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SlowInfoCache
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002301d
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x140023067
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xdc]
cmp rax, 0x10000
jae 0x140022fbf
lea rax, [rsp + 0xdc]
movzx edx, ax
lea rcx, [rsp + 0x38]
call fcn.14000d610
jmp 0x140022ff0
lea rcx, [rsp + 0xdc]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140022fd0
mov r8d, eax
lea rdx, [rsp + 0xdc]
lea rcx, [rsp + 0x38]
call fcn.14000df90
nop
mov rdx, rbp
lea rcx, [rsp + 0x38]
call fcn.14002c0c0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002301d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14002303a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x50]
call fcn.14001feb0
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.1402155d0
mov rbx, qword [rsp + 0x908]
add rsp, 0x8d0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400080b0
nop
mov ecx, 0x80004005
call fcn.1400080b0
int3
Function at 0x140030b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x140030c48
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rsi, 0xffffffffffffffff
xor edi, edi
test rbx, rbx
je 0x140030baf
cmp rbx, 0x10000
jae 0x140030ba1
movzx edx, bx
lea rcx, [rsp + 0x50]
call fcn.14000d610
jmp 0x140030bc2
mov rax, rsi
inc rax
cmp word [rbx + rax*2], di
jne 0x140030ba4
jmp 0x140030bb1
mov eax, edi
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000df90
nop
mov dword [rsp + 0x48], edi
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx - 0x18]
call fcn.14000de80
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140034860
test eax, eax
je 0x140030bf9
cmp dword [rsp + 0x48], 0
jne 0x140030c0f
jmp 0x140030c26
lea r8, [0x1402ee008]
lea rcx, [rsp + 0x50]
call fcn.140021fb0
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030c26
test al, 0x10
je 0x140030c26
mov edi, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140030c3e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400080b0
int3
Function at 0x140031880
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1400319a5
xor r14d, r14d
mov dword [rdi], r14d
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x30]
call fcn.140241ba0
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.14000de80
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rdx, [0x1402ee760]
mov rbp, 0xffffffffffffffff
mov rax, rbp
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140031900
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.1400157c0
lea rdx, [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14003198a
nop word [rax + rax]
movzx edx, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x5e]
cmp dx, 0x2e
jne 0x140031967
test cx, cx
je 0x140031969
cmp dx, dx
jne 0x140031967
cmp cx, dx
jne 0x140031967
cmp word [rsp + 0x60], 0
je 0x140031969
inc dword [rdi]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140031940
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14d, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x1400319a2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1402155d0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140031bd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x140031cc8
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rsi, 0xffffffffffffffff
xor edi, edi
test rbx, rbx
je 0x140031c2f
cmp rbx, 0x10000
jae 0x140031c21
movzx edx, bx
lea rcx, [rsp + 0x50]
call fcn.14000d610
jmp 0x140031c42
mov rax, rsi
inc rax
cmp word [rbx + rax*2], di
jne 0x140031c24
jmp 0x140031c31
mov eax, edi
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000df90
nop
mov dword [rsp + 0x48], edi
mov rbx, qword [rsp + 0x50]
lea rcx, [rbx - 0x18]
call fcn.14000de80
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140034860
test eax, eax
je 0x140031c79
cmp dword [rsp + 0x48], 0
jne 0x140031c8f
jmp 0x140031ca6
lea r8, [0x1402ee008]
lea rcx, [rsp + 0x50]
call fcn.140021fb0
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031ca6
test al, 0x10
jne 0x140031ca6
mov edi, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140031cbe
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400080b0
int3
Function at 0x140031fd0
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x2050
call fcn.140216080
sub rsp, rax
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x2000
call fcn.140241ba0
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140032013
mov rcx, qword [rbx]
mov r8d, 0x1000
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14000fd70
mov rdx, rax
mov rcx, rbx
call fcn.14000f1f0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14003207c
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032077
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032095
call fcn.1400081a0
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1402155d0
add rsp, 0x2050
pop rbx
ret
call fcn.14024b534
int3

Function at 0x1400320a0
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [rsp + 0x48]
mov rdi, rcx
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0xffffffff
xor ecx, ecx
lea r8d, [rbx + 5]
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x14003210a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Last_Error__d
mov r8d, 0xab9
lea rdx, str.C:WorkVSRevoWindowsProjectsRevo_HelperRevo_HelperSourcesUtils.cpp
mov dword [rsp + 0x20], eax
lea ecx, [rbx + 1]
call fcn.1400473d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14003212a
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140032120
mov r8d, ebx
mov rcx, rdi
call fcn.14000df90
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140032150
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x40c0
call fcn.140216080
sub rsp, rax
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x40b0], rax
mov rdi, rdx
mov dword [rsp + 0x44], 0x44
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0xb0]
mov r8d, 0x4000
call fcn.140241ba0
mov rdx, qword [rbx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1fff
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0xb0]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140032206
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xad3
lea r9, str.Last_Error__d
mov dword [rsp + 0x20], eax
lea rdx, str.C:WorkVSRevoWindowsProjectsRevo_HelperRevo_HelperSourcesUtils.cpp
mov ecx, 1
call fcn.1400473d0
xor eax, eax
jmp 0x140032265
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x140032228
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xada
jmp 0x1400321e6
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x140032236
xor eax, eax
jmp 0x14003224a
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140032240
mov r8d, eax
mov rcx, rdi
call fcn.14000df90
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov rcx, qword [rsp + 0x40b0]
xor rcx, rsp
call fcn.1402155d0
mov rbx, qword [rsp + 0x40e0]
add rsp, 0x40c0
pop rdi
ret
Function at 0x140032350
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x14033e810]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rsi, rcx
cmp dword [0x14034e820], 1
jne 0x140032392
mov eax, dword [0x14034e818]
mov dword [rcx], eax
mov eax, 1
jmp 0x1400324b5
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x40]
call fcn.140241ba0
mov dword [rsp + 0x30], 0x400
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400323ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Last_Error__d
mov r8d, 0xb11
lea rdx, str.C:WorkVSRevoWindowsProjectsRevo_HelperRevo_HelperSourcesUtils.cpp
mov ecx, 1
call fcn.1400473d0
xor eax, eax
jmp 0x1400324b5
call fcn.1400a2364
mov rcx, rax
test rax, rax
je 0x1400324da
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.1400320a0
mov rbx, qword [rsp + 0x38]
test eax, eax
jne 0x14003244e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.Last_Error__d
mov r8d, 0xb18
lea rdx, str.C:WorkVSRevoWindowsProjectsRevo_HelperRevo_HelperSourcesUtils.cpp
mov ecx, 1
call fcn.1400473d0
xor edi, edi
jmp 0x140032496
mov rax, rbx
lea rdx, [rsp + 0x40]
sub rdx, rbx
nop dword [rax]
movzx ecx, word [rax]
xor edi, edi
cmp cx, word [rax + rdx]
jne 0x140032478
add rax, 2
test cx, cx
jne 0x140032460
mov eax, edi
jmp 0x14003247d
sbb eax, eax
or eax, 1
test eax, eax
sete dil
mov dword [rsi], edi
mov dword [0x14034e818], edi
mov edi, 1
mov dword [0x14034e820], edi
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400324b3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1402155d0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400080b0
int3
Function at 0x140032da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
cmp dword [rcx - 0x10], 0x104
jl 0x140032e5b
lea rdx, [0x1402ee008]
call fcn.14024112c
test rax, rax
je 0x140032dde
sub rax, qword [rbx]
sar rax, 1
cmp eax, 0xffffffff
jne 0x140032ded
lea r8, [0x1402ee008]
mov rcx, rbx
call fcn.140021fb0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140032e29
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032e1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
shr edi, 4
and edi, 1
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032e84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
nop
mov edi, eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032e84
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140032ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
cmp dword [rcx - 0x10], 0x104
jl 0x140032f4b
lea rdx, [0x1402ee008]
call fcn.14024112c
test rax, rax
je 0x140032ede
sub rax, qword [rbx]
sar rax, 1
cmp eax, 0xffffffff
jne 0x140032eed
lea r8, [0x1402ee008]
mov rcx, rbx
call fcn.140021fb0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
mov rdx, qword [rbx]
sub rdx, 0x18
cmp eax, 0xffffffff
mov eax, 0xffffffff
jne 0x140032f28
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032f1b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032f3b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop
mov edi, eax
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032f74
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400332d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, ecx
mov rbx, rdx
lea rcx, [rsp + 0x50]
call fcn.140032350
test eax, eax
jne 0x1400332fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xe31
jmp 0x140033356
cmp dword [rsp + 0x50], 1
je 0x140033372
lea rcx, [rsp + 0x58]
call fcn.140032840
cmp eax, 1
jne 0x14003334a
mov r8, qword [rsp + 0x58]
xor r9d, r9d
mov edx, edi
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14003333c
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xe45
jmp 0x140033356
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xe5f
lea r9, str.Last_Error__d
mov dword [rsp + 0x20], eax
lea rdx, str.C:WorkVSRevoWindowsProjectsRevo_HelperRevo_HelperSourcesUtils.cpp
mov ecx, 1
call fcn.1400473d0
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rbx, qword [rsp + 0x40]
xor ecx, ecx
test eax, eax
setns cl
mov eax, ecx
add rsp, 0x30
pop rdi
ret