joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006370
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x14000645e
lea rdx, [rsp + 0x50]
call fcn.140006238
test eax, eax
je 0x1400064ea
lea rbx, [0x14000a5f0]
lea r8, [rsp + 0x50]
mov edi, 0x104
mov rcx, rbx
sub r8, rbx
mov edx, edi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400063eb
mov al, byte [r8 + rcx]
test al, al
je 0x1400063eb
mov byte [rcx], al
inc rcx
dec rdx
jne 0x1400063cd
test rdx, rdx
jne 0x1400063f3
dec rcx
mov byte [rcx], 0
test byte [0x14000ae44], 0x20
je 0x14000644b
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x20]
test ecx, ecx
je 0x14000643a
dec ecx
je 0x140006431
dec ecx
je 0x140006428
dec ecx
jne 0x14000644b
lea r8, [0x140001350]
jmp 0x140006441
lea r8, [0x140001348]
jmp 0x140006441
lea r8, [0x140001340]
jmp 0x140006441
lea r8, [0x140001338]
mov edx, edi
mov rcx, rbx
call fcn.1400079b8
lea r8, [0x1400010b9]
mov edx, edi
mov rcx, rbx
call fcn.1400079b8
jmp 0x140006499
lea rbx, [0x14000a5f0]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14000648e
mov al, byte [r9 + rcx]
test al, al
je 0x14000648e
mov byte [rcx], al
inc rcx
dec rdi
jne 0x140006470
test rdi, rdi
jne 0x140006496
dec rcx
mov byte [rcx], 0
mov rcx, rbx
call fcn.1400069a4
test eax, eax
jne 0x1400064be
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1400064ee
mov dword [0x140009bc0], 1
test esi, esi
je 0x14000650a
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140006b08
test eax, eax
jne 0x14000650a
cmp dword [0x140009bc0], eax
je 0x1400064ea
and dword [0x140009bc0], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x140006516
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000ae5c], ecx
jmp 0x1400064ea
and dword [0x14000ae5c], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140008180
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400069a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x1400069bf
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140006a31
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b5
xor ecx, ecx
mov dword [rsp + 0x20], FDICopy
call fcn.140004ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [0x14000ae5c], ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rax, [rdi - 1]
mov edx, 0x7ffffffe
cmp rax, rdx
ja 0x140006a73
mov r8, rbp
sub rdx, rbx
mov rcx, rsi
sub r8, rsi
lea rax, [rdx + rbx]
test rax, rax
je 0x140006a66
mov al, byte [r8 + rcx]
test al, al
je 0x140006a66
mov byte [rcx], al
inc rcx
dec rbx
jne 0x140006a4b
test rbx, rbx
jne 0x140006a6e
dec rcx
mov byte [rcx], 0
jmp 0x140006a7a
test edi, edi
je 0x140006a7a
mov byte [rsi], 0
lea r8, [0x140001368]
mov edx, edi
mov rcx, rsi
call fcn.1400079b8
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x4000080
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, 0xffffffffffffffff
je 0x140006a00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140006a00
test al, 0x10
je 0x140006a00
and dword [0x14000ae5c], 0
mov eax, 1
jmp 0x140006a1c
Function at 0x140007558
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov rbp, rcx
mov edi, 1
xor r9d, r9d
jmp 0x1400075d8
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140007612
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x1400075ae
mov edx, dword [rbx + 4]
mov ecx, dword [rbx]
lea r9, [rax + 1]
add r9, r8
call rbp
mov rcx, rbx
test eax, eax
je 0x140007608
call qword [sym.imp.KERNEL32.dll_FreeResource]
add esi, edi
mov r9d, esi
lea r8, [0x140001388]
lea rcx, [rsp + 0x20]
mov edx, reloc.Cabinet.dll_FDICreate
call fcn.140001550
lea rdx, [rsp + 0x20]
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x14000758a
jmp 0x14000761e
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x14000761e
mov dword [0x14000ae5c], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140008180
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
sub rsp, 0x148
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea r9, [0x14000a5f0]
lea rax, [rsp + 0x20]
mov edx, 0x104
sub r9, rax
mov r8d, edx
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14000780f
mov al, byte [r9 + rcx]
test al, al
je 0x14000780f
mov byte [rcx], al
inc rcx
dec r8
jne 0x1400077f1
test r8, r8
jne 0x140007817
dec rcx
mov byte [rcx], 0
lea r8, [0x140001160]
lea rcx, [rsp + 0x20]
call fcn.1400079b8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140007852
test al, 0x10
jne 0x140007852
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x14000785f
lea rcx, [0x140001160]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140008180
add rsp, 0x148
ret
Function at 0x140007880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x14000a528]
mov rbp, r8
mov r8d, 5
mov rcx, rbx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140007903
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140007903
mov rax, qword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
test rax, rax
jne 0x1400078e6
and qword [rsp + 0x20], rax
jmp 0x1400078eb
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x140007927
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4fb
xor ecx, ecx
mov dword [rsp + 0x20], FDICopy
call fcn.140004ed8
mov rbx, qword [rsp + 0x68]
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 0x140007c4c
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x1400091fc]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x140007dc5
lea rcx, [rsp + 0x50]
xor edi, edi
mov dword [rsp + 0x50], 0x94
mov dword [0x1400091fc], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140007dbf
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140007dbf
cmp dword [rsp + 0x54], 4
jne 0x140007dbf
cmp dword [rsp + 0x58], 0xa
jae 0x140007dbf
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x140007dbf
lea rax, [rsp + 0x38]
lea rdx, [0x140001398]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007dbf
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
lea rdx, [0x1400010b9]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140007d58
mov eax, dword [0x1400091fc]
jmp 0x140007dc7
lea rdx, [rbp - 0x10]
mov cl, byte [rdx]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140007d72
add edi, 0xfffffffd
movsx eax, cl
shl edi, 4
add edi, eax
jmp 0x140007d91
cmp cl, 0x61
jl 0x140007d7a
add cl, 0xe0
movsx r8d, cl
sub r8d, 0x37
lea eax, [r8 - 0xa]
cmp eax, 5
ja 0x140007d9f
shl edi, 4
add edi, r8d
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextA]
mov rdx, rax
jmp 0x140007d5c
lea rax, [rbp - 0x10]
cmp rdx, rax
je 0x140007dbf
and edi, 0x3ff
cmp edi, esi
je 0x140007db7
cmp edi, 0xd
jne 0x140007dbf
mov dword [0x1400091fc], esi
jmp 0x140007dc5
mov esi, dword [0x1400091fc]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140008180
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007f34
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140008874
add rsp, 0x28
jmp 0x140007f34
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140009b68], rbx
je 0x140007f8d
cmp rax, rbx
jne 0x140007f80
mov edi, 1
jmp 0x140007f8d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f67
mov eax, dword [0x140009b70]
cmp eax, 1
jne 0x140007fa2
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008007
mov eax, dword [0x140009b70]
test eax, eax
jne 0x140007ffd
mov dword [0x140009b70], 1
lea r14, [0x140001038]
lea rbx, [0x140001020]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
cmp rbx, r14
jae 0x140007fef
test eax, eax
jne 0x140007ff3
mov rcx, qword [rbx]
test rcx, rcx
je 0x140007fe4
call rcx
mov dword [rsp + 0x30], eax
add rbx, 8
mov qword [rsp + 0x38], rbx
jmp 0x140007fcd
test eax, eax
je 0x140008007
mov eax, 0xff
jmp 0x140008152
mov dword [0x140009204], 1
mov eax, dword [0x140009b70]
cmp eax, 1
jne 0x14000802f
lea rdx, [0x140001018]
lea rcx, [0x140001008]
call sub.msvcrt.dll__initterm
mov dword [0x140009b70], 2
test edi, edi
jne 0x14000803c
xor eax, eax
xchg qword [0x140009b68], rax
cmp qword [0x140009b78], 0
je 0x140008068
lea rcx, [0x140009b78]
call fcn.1400087e0
test eax, eax
je 0x140008068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140009b78]
call rax
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
cmp byte [rbx], 0x20
ja 0x1400080f1
cmp byte [rbx], 0
je 0x140008089
test edi, edi
jne 0x1400080f1
mov al, byte [rbx]
dec al
cmp al, 0x1f
ja 0x14000809b
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140008089
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002ed4
mov dword [0x140009200], eax
cmp dword [0x140009220], 0
jne 0x1400080da
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140009204], 0
jne 0x1400080ef
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140009200]
jmp 0x140008152
cmp byte [rbx], 0x22
jne 0x140008103
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rbx]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140008118
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14000807b
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret

Function at 0x1400081a4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140008464
Capabilities:
Print debug messages

Disassembly:
jmp 0x140008470
push rbx
sub rsp, 0x540
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1400084ed
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14000850d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001088]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140008180
add rsp, 0x540
pop rbx
ret

Function at 0x140008470
Capabilities:
Print debug messages

Disassembly:
jmp 0x140008470
push rbx
sub rsp, 0x540
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1400084ed
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14000850d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001088]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140008180
add rsp, 0x540
pop rbx
ret

Function at 0x1400086d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008724
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000871c
cmp dword [rcx + 0x3c], edx
jl 0x14000871c
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000871c
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008724
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140008874
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [section..data]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x14000892f
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
shl rax, 0x18
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x10]
mov eax, eax
xor rax, qword [rbp + 0x10]
xor rax, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [section..data], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140009008], rax
add rsp, 0x20
pop rbp
ret
Function at 0x140004b50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov esi, ecx
mov rbx, rdx
mov rcx, rdx
call fcn.140001948
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140020690
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
jns 0x140004c32
movzx ecx, sil
cmp ecx, 0x26
jne 0x140004bdf
lea rdx, str.ProgramFiles
lea rcx, [rsp + 0x30]
call fcn.140005004
mov rdx, rax
mov rcx, rbx
call fcn.140001838
mov rdx, qword [rsp + 0x30]
jmp 0x140004c05
cmp ecx, 0x1c
jne 0x140004c1f
lea rdx, str.LocalAppData
lea rcx, [rsp + 0x38]
call fcn.140005004
mov rdx, rax
mov rcx, rbx
call fcn.140001838
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004c1f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov ecx, 1
cmp dword [rax - 0x10], 0
cmovne edi, ecx
mov eax, edi
jmp 0x140004c4e
lea rcx, [rsp + 0x40]
call fcn.140033e74
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400019b8
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001fa80
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004ea4
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x40], rax
and qword [rsp + 0x38], 0
lea rax, [0x140049ac8]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x28], xmm0
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 8
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.14000402c
test al, al
jne 0x140004f0f
call fcn.14000b1b0
mov edi, eax
jmp 0x140004fa7
lea rcx, [rsp + 0x40]
call fcn.140001f3c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140003ed0
test al, al
jne 0x140004f35
call fcn.14000b1b0
mov edi, eax
jmp 0x140004f9d
mov r9d, 0x12
lea rdx, [0x140049980]
lea rcx, [rbp - 0x40]
lea r8d, [r9 - 0x11]
call fcn.140002010
cmp byte [rbp - 0x74], 0
je 0x140004f8e
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140004f8e
cmp byte [rbp + 0xc], 0
je 0x140004f8e
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140004f8e
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x140004f90
xor al, al
lea rcx, [rbp - 0x40]
mov byte [rbx], al
call fcn.1400021d0
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.1400021d0
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
test rdx, rdx
je 0x140004fc4
test rbx, rbx
je 0x140004fd2
mov rcx, rbx
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
test rbx, rbx
je 0x140004fd2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
mov edx, 8
call fcn.14001fd2c
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14001fa80
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140005004
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.1400014bc
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x1400050dc
mov rax, qword [rax]
call qword [rax + 0x18]
xor r8d, r8d
xor edx, edx
add rax, 0x18
mov rcx, rsi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x1400050b4
test eax, eax
js 0x1400050d1
mov rax, qword [rbx]
lea edx, [rbp + 1]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x140005075
mov edx, edi
mov rcx, rbx
call fcn.140001ac4
mov rax, qword [rbx]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140005090
mov eax, ebp
jmp 0x14000509d
movsxd rdx, dword [rcx - 0xc]
call fcn.14002c108
test eax, eax
js 0x1400050d1
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400050d1
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1400050b9
call fcn.14000b1b0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001814
int3
mov ecx, 0x80004005
call fcn.140001814
int3

Function at 0x140005de4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400014bc
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140005eab
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov esi, 0x103
mov qword [rbx], rax
lea edi, [rsi + 1]
test edi, edi
js 0x140005eb6
mov rdx, qword [rbx]
mov ecx, 1
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, edi
or ecx, eax
jge 0x140005e4c
mov edx, edi
mov rcx, rbx
call fcn.140001ac4
mov rdx, qword [rbx]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
mov esi, eax
sbb eax, eax
and eax, esi
cmp eax, 0xffffffff
jne 0x140005e76
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140005e6d
mov eax, ebp
jmp 0x140005e7a
movsxd rdx, dword [rcx - 0xc]
call fcn.14002c108
test eax, eax
js 0x140005eb6
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140005eb6
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x140005e20
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001814
int3
mov ecx, 0x80070057
call fcn.140001814
int3