joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100046930
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x1000a8dc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x1000a8eb8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1000469b1
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x1000a8eb8]
jmp 0x1000469c9
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [0x1000a8eb8], r11
mov qword [0x1000a8e58], rax
mov rax, qword [0x1000a81b8]
mov qword [0x1000a8d30], r11
mov qword [0x1000a8e40], rdi
mov dword [0x1000a8d20], 0xc0000409
mov dword [0x1000a8d24], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x1000a81b0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100007c98]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x1000a81b8]
jne 0x100087ee9
rol rcx, 0x10
test cx, 0xffff
jne 0x100087ee5
ret
ror rcx, 0x10
jmp 0x100046930
Function at 0x100046a50
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x100000000], 0x5a4d
je 0x100046a8c
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x100000000]
jmp 0x100046b1a
movsxd rax, dword [0x10000003c]
lea rdi, [0x100000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x100046ab0
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x100046b1a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x100046af7
cmp ecx, 0x20b
je 0x100046acf
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x100046b1a
cmp dword [rax + 0x84], 0xe
ja 0x100046ae3
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x100046b1a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x100046b1a
cmp dword [rax + 0x74], 0xe
ja 0x100046b08
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x100046b1a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x1000a9908], 0xffffffffffffffff
mov qword [0x1000a9910], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x1000a929c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x1000a9298]
mov dword [rcx], eax
call fcn.100046ff0
cmp dword [0x1000a81c0], 0
jne 0x100046b74
lea rcx, [fcn.100046ff0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x100001af0]
lea rcx, [0x100001ae8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x1000a9294]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x1000a9290]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___wgetmainargs]
lea rdx, [0x100001ae0]
lea rcx, [0x1000019f0]
call sub.msvcrt.dll__initterm
mov r8, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [r8], 0
jne 0x100046be9
mov eax, 0xff
jmp 0x100046cb9
mov r8, qword [r8]
mov qword [rsp + 0x30], r8
cmp word [r8], 0x22
jne 0x100046c30
nop
nop
add r8, 2
mov qword [rsp + 0x30], r8
movzx eax, word [r8]
test ax, ax
je 0x100046c1a
cmp ax, 0x22
je 0x100046c1a
jmp 0x100046c00
cmp word [r8], 0x22
jne 0x100046c42
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x100046c42
cmp word [r8], 0x20
jbe 0x100046c42
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x100046c30
movzx eax, word [r8]
test ax, ax
je 0x100046c5c
cmp ax, 0x20
ja 0x100046c5c
add r8, 2
mov qword [rsp + 0x30], r8
jmp 0x100046c42
test byte [rsp + 0x8c], 1
je 0x100046c71
movzx r9d, word [rsp + 0x90]
jmp 0x100046c77
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.10001f990
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x100046c93
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x100046cb7
mov eax, edi
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x1000470dc
Capabilities:
Check os version

Disassembly:
push rbx
push rsi
push rdi
mov r11, rsp
sub rsp, 0xd0
mov rax, qword [0x1000a81b8]
mov r8d, 0x28
mov rbx, rcx
xor edx, edx
add rcx, r8
mov qword [r11 - 0x10], rax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], 0
mov dword [rbx + 0x58], 0
mov dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rsi
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10004716e
cmp dword [rsp + 0x24], 5
jb 0x100047188
jmp 0x100047184
cmp dword [rsp + 0x30], esi
jne 0x100047188
cmp dword [rsp + 0x24], 4
ja 0x100047184
jne 0x100047188
cmp dword [rsp + 0x28], 0
jbe 0x100047188
mov byte [rbx + 0x18], sil
lea rax, [0x100007cc0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100013820
movzx ecx, byte [0x1000a8950]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000a8950], cl
mov rcx, qword [rsp + 0xc0]
call fcn.100087ed0
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
Function at 0x100047610
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x298
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x270], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
xor ebx, ebx
mov qword [r11 - 0x18], rdi
mov ebp, r8d
mov rdi, rcx
mov esi, edx
lea r8d, [rbx + 0x34]
lea rcx, [rsp + 0x24]
xor edx, edx
mov dword [rsp + 0x20], ebx
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x1000476ef
mov rax, qword [0x1000a81e8]
cmp rax, 0xffffffffffffffff
jne 0x10004769d
lea rcx, [0x100007d38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov qword [0x1000a9348], rax
je 0x1000476b2
lea rdx, [0x100007d88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1000a81e8], rax
test rax, rax
je 0x1000476b9
mov edi, 0x104
lea rcx, [rsp + 0x60]
mov edx, edi
call rax
jmp 0x1000476cb
mov qword [0x1000a81e8], rbx
mov edi, 0x104
lea rcx, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, edi
jge 0x1000476e8
sub edi, eax
cdqe
lea rdx, [0x100007da8]
lea rcx, [rsp + rax*2 + 0x60]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdi, [rsp + 0x60]
jmp 0x1000476ff
movzx eax, si
mov dword [rsp + 0x24], 8
mov qword [rsp + 0x40], rax
mov rax, qword [0x1000a81f0]
mov rsi, qword [rsp + 0x288]
cmp rax, 0xffffffffffffffff
jne 0x10004777d
mov rax, qword [0x1000a81d8]
mov dword [rsp + 0x20], RestartDialog
mov qword [rsp + 0x28], rdi
cmp rax, 0xffffffffffffffff
jne 0x10004775e
lea rcx, [0x100007d38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov qword [0x1000a9348], rax
je 0x10004776c
lea rdx, [0x100007d28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1000a81d8], rax
test rax, rax
je 0x100047773
lea rcx, [rsp + 0x20]
call rax
jmp 0x100047776
mov qword [0x1000a81d8], rbx
mov rax, rbx
mov qword [0x1000a81f0], rax
mov rdi, qword [rsp + 0x280]
test ebp, ebp
mov rbp, qword [rsp + 0x290]
je 0x10004779d
call fcn.1000479c0
mov rax, qword [0x1000a81f0]
cmp rax, 0xffffffffffffffff
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x270]
call fcn.100087ed0
add rsp, 0x298
ret
mov edx, 0x7b
lea r8d, [rdx - 0x7a]
jmp 0x100047610
Function at 0x1000477d0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
sub rsp, 0x298
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x270], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
xor ebx, ebx
mov qword [r11 - 0x18], rdi
mov ebp, r8d
mov rdi, rcx
mov esi, edx
lea r8d, [rbx + 0x34]
lea rcx, [rsp + 0x24]
xor edx, edx
mov dword [rsp + 0x20], ebx
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x1000476ef
mov rax, qword [0x1000a81e8]
cmp rax, 0xffffffffffffffff
jne 0x10004769d
lea rcx, [0x100007d38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov qword [0x1000a9348], rax
je 0x1000476b2
lea rdx, [0x100007d88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1000a81e8], rax
test rax, rax
je 0x1000476b9
mov edi, 0x104
lea rcx, [rsp + 0x60]
mov edx, edi
call rax
jmp 0x1000476cb
mov qword [0x1000a81e8], rbx
mov edi, 0x104
lea rcx, [rsp + 0x60]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, edi
jge 0x1000476e8
sub edi, eax
cdqe
lea rdx, [0x100007da8]
lea rcx, [rsp + rax*2 + 0x60]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdi, [rsp + 0x60]
jmp 0x1000476ff
movzx eax, si
mov dword [rsp + 0x24], 8
mov qword [rsp + 0x40], rax
mov rax, qword [0x1000a81f0]
mov rsi, qword [rsp + 0x288]
cmp rax, 0xffffffffffffffff
jne 0x10004777d
mov rax, qword [0x1000a81d8]
mov dword [rsp + 0x20], RestartDialog
mov qword [rsp + 0x28], rdi
cmp rax, 0xffffffffffffffff
jne 0x10004775e
lea rcx, [0x100007d38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
mov qword [0x1000a9348], rax
je 0x10004776c
lea rdx, [0x100007d28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1000a81d8], rax
test rax, rax
je 0x100047773
lea rcx, [rsp + 0x20]
call rax
jmp 0x100047776
mov qword [0x1000a81d8], rbx
mov rax, rbx
mov qword [0x1000a81f0], rax
mov rdi, qword [rsp + 0x280]
test ebp, ebp
mov rbp, qword [rsp + 0x290]
je 0x10004779d
call fcn.1000479c0
mov rax, qword [0x1000a81f0]
cmp rax, 0xffffffffffffffff
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x270]
call fcn.100087ed0
add rsp, 0x298
ret
mov edx, 0x7b
lea r8d, [rdx - 0x7a]
jmp 0x100047610

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.100013bb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x10004889b
xor al, al
jmp 0x1000488b6
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x1000488ad
mov byte [rsp + 0x24], 1
jmp 0x1000488b2
mov byte [rsp + 0x24], 0
mov al, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1000488d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.100013bb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x1000488fb
xor al, al
jmp 0x100048916
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x10004890d
mov byte [rsp + 0x24], 0
jmp 0x100048912
mov byte [rsp + 0x24], 1
mov al, byte [rsp + 0x24]
add rsp, 0x38
ret

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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call fcn.100013bb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x10004895f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100048980
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x100048974
mov dword [rsp + 0x24], 2
jmp 0x10004897c
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x100049520
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x240], rax
mov byte [rsp + 0x20], 1
mov rcx, qword [rsp + 0x260]
call fcn.100013bb0
mov edx, 0x80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x260]
call fcn.100013bb0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000495ff
mov rcx, qword [rsp + 0x260]
call fcn.100013bb0
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x100007f60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1000495dc
mov rcx, qword [rsp + 0x260]
call fcn.100013bb0
mov r8d, 1
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1000495dc
mov r8d, 4
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1000495fa
mov rcx, qword [rsp + 0x260]
call fcn.100013bb0
mov r8d, 4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [rsp + 0x20], 0
mov al, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
call fcn.100087ed0
add rsp, 0x258
ret

Function at 0x100049620
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x78], 0
mov byte [rsp + 0x79], 0
mov byte [rsp + 0x7a], 0
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x7c], 0
mov byte [rsp + 0x7d], 5
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
je 0x1000496db
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1000496d0
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x80]
call fcn.100087ed0
add rsp, 0x98
ret
Function at 0x100049b30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x150], rax
mov r8d, 0x114
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100049b84
cmp dword [rsp + 0x34], 5
jne 0x100049b84
cmp dword [rsp + 0x38], 0
jne 0x100049b84
mov eax, 1
jmp 0x100049b86
xor eax, eax
mov rcx, qword [rsp + 0x150]
call fcn.100087ed0
add rsp, 0x168
ret

Function at 0x100049bb0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x20], 6
mov r8d, 0x114
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100049c01
mov eax, 6
jmp 0x100049c9a
cmp dword [rsp + 0x40], 2
jne 0x100049c6b
cmp dword [rsp + 0x34], 4
ja 0x100049c19
mov dword [rsp + 0x20], 1
jmp 0x100049c69
cmp dword [rsp + 0x34], 5
jne 0x100049c53
cmp dword [rsp + 0x38], 0
jne 0x100049c31
mov dword [rsp + 0x20], 2
jmp 0x100049c51
cmp dword [rsp + 0x38], 1
jne 0x100049c42
mov dword [rsp + 0x20], 3
jmp 0x100049c51
cmp dword [rsp + 0x38], 2
jne 0x100049c51
mov dword [rsp + 0x20], 4
jmp 0x100049c69
cmp dword [rsp + 0x34], 6
jne 0x100049c69
cmp dword [rsp + 0x38], 0
jne 0x100049c69
mov dword [rsp + 0x20], 5
jmp 0x100049c96
cmp dword [rsp + 0x40], 1
jne 0x100049c96
cmp dword [rsp + 0x34], 4
jne 0x100049c96
cmp dword [rsp + 0x38], 0
je 0x100049c8e
cmp dword [rsp + 0x38], 0xa
je 0x100049c8e
cmp dword [rsp + 0x38], 0x5a
jne 0x100049c96
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x150]
call fcn.100087ed0
add rsp, 0x168
ret
Function at 0x10004b2a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0xfffffffffffffffe
cmp qword [rsp + 0x60], 0
jne 0x10004b2c4
mov eax, 0x57
jmp 0x10004b397
mov dword [rsp + 0x28], 0x105
lea rcx, [rsp + 0x30]
call fcn.100014450
nop
mov edx, dword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.100015c10
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x30]
call fcn.100013fa0
cmp dword [rsp + 0x28], eax
jbe 0x10004b342
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.100013fd0
mov edx, dword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.100015c10
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x28], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.100013fd0
cmp dword [rsp + 0x28], 0
jne 0x10004b372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x30]
call fcn.1000144b0
mov eax, dword [rsp + 0x38]
jmp 0x10004b397
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.100015fc0
mov dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x30]
call fcn.1000144b0
mov eax, dword [rsp + 0x3c]
add rsp, 0x58
ret
Function at 0x10004b460
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x10004b4c5
jmp 0x10004b5a9
mov eax, dword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x10004b4e9
jmp 0x10004b5a9
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10004b50d
jmp 0x10004b5a9
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0x30]
lea rdx, [0x10000748c]
mov rcx, qword [rsp + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x10004b530
jmp 0x10004b5a9
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x78], 0
je 0x10004b5a9
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
and rax, 0xffff
movzx eax, ax
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0x14]
shr rcx, 0x10
movzx ecx, cx
mov rdx, qword [rsp + 0x50]
mov edx, dword [rdx + 0x10]
and rdx, 0xffff
movzx edx, dx
mov r8, qword [rsp + 0x50]
mov r8d, dword [r8 + 0x10]
shr r8, 0x10
movzx r8d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, edx
lea rdx, [0x100008190]
mov rcx, qword [rsp + 0x78]
call fcn.100015d50
mov dword [rsp + 0x58], 1
cmp qword [rsp + 0x40], 0
je 0x10004b5c5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_free]
mov qword [rsp + 0x40], 0
cmp dword [rsp + 0x58], 0
jne 0x10004b5fd
cmp qword [rsp + 0x78], 0
je 0x10004b5fd
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x100008190]
mov rcx, qword [rsp + 0x78]
call fcn.100015d50
mov eax, dword [rsp + 0x58]
add rsp, 0x68
ret

Function at 0x10004b810
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1000a81b8]
mov qword [rsp + 0x40], rax
mov r8d, 6
lea rdx, [rsp + 0x30]
lea rcx, [0x1000081c8]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x10004b84a
cmp dword [rsp + 0x20], 6
jbe 0x10004b850
xor eax, eax
jmp 0x10004b87e
movzx eax, word [rsp + 0x30]
cmp eax, 0x31
je 0x10004b85e
xor eax, eax
jmp 0x10004b87e
mov dword [rsp + 0x24], 0
mov eax, 0x2d4
add rax, 0x7ffe0000
movzx eax, byte [rax]
mov dword [rsp + 0x24], eax
jmp 0x10004b87a
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
call fcn.100087ed0
add rsp, 0x58
ret
Function at 0x10004c510
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
call fcn.100014450
nop
mov rcx, qword [rsp + 0x80]
call fcn.100013fb0
movzx eax, al
test eax, eax
je 0x10004c56d
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.1000144b0
mov eax, dword [rsp + 0x48]
jmp 0x10004c65a
lea rdx, [0x100008300]
lea rcx, [rsp + 0x50]
call fcn.100018c00
nop
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.100048450
nop
lea rcx, [rsp + 0x50]
call fcn.1000144b0
lea rcx, [rsp + 0x40]
call fcn.100013bb0
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004c63c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, [0x100008300]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004c63a
mov rcx, qword [rsp + 0x80]
call fcn.100013bb0
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x10004c62f
mov dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c644
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x40]
call fcn.1000144b0
mov eax, dword [rsp + 0x58]
add rsp, 0x78
ret

Function at 0x100054560
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp dword [rsp + 0x68], 0
jne 0x100054587
lea rax, [0x100006430]
mov qword [rsp + 0x38], rax
jmp 0x10005458b
xor eax, eax
jmp 0x1000545ed
mov dword [rsp + 0x30], 4
mov rcx, qword [rsp + 0x60]
call fcn.100056420
test eax, eax
jne 0x1000545a5
xor eax, eax
jmp 0x1000545ed
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000545e1
mov dword [rsp + 0x40], 1
jmp 0x1000545e9
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret