joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400addd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12d, edx
mov rbp, rcx
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
lea rax, [rax + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
je 0x1400ade92
mov byte [rsp + 0x70], r13b
or r9d, 0xffffffff
lea r8, str.RegQueryInfoKey
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14007f910
lea rcx, [rsp + 0x174]
lea rdx, [rsp + 0x70]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x174]
call fcn.14011f050
int3
or rsi, 0xffffffffffffffff
mov eax, dword [rsp + 0x2c0]
add eax, 1
mov dword [rsp + 0x2c0], eax
je 0x1400adec5
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14011f040
mov rdi, rax
jmp 0x1400adec8
mov rdi, r13
xor ecx, ecx
call fcn.14011e0c0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x2c0]
mov r8, rdi
mov edx, r12d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp eax, 0x103
jne 0x1400adf18
mov rcx, rdi
call fcn.14011e0c0
xor eax, eax
jmp 0x1400adfd4
test eax, eax
je 0x1400adf73
mov byte [rsp + 0x70], 0
mov r9d, esi
lea r8, str.RegEnumValue
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14007f910
lea rcx, [rsp + 0x174]
lea rdx, [rsp + 0x70]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x174]
call fcn.14011f050
int3
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, esi
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x2c8]
call fcn.14007ba40
mov rbx, qword [rsp + 0x2c8]
mov qword [rsp + 0x2c8], r13
mov rcx, qword [rbp + 0x10]
call fcn.14011e950
mov qword [rbp + 0x10], rbx
mov rcx, qword [rsp + 0x2c8]
call fcn.14011e0c0
mov rbx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.14011e0c0
mov rax, rbx
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ae010
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12d, edx
mov rbp, rcx
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rax + 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
je 0x1400ae0d2
mov byte [rsp + 0x70], r13b
or r9d, 0xffffffff
lea r8, str.RegQueryInfoKey
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14007f910
lea rcx, [rsp + 0x174]
lea rdx, [rsp + 0x70]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x174]
call fcn.14011f050
int3
or rsi, 0xffffffffffffffff
mov eax, dword [rsp + 0x2c0]
add eax, 1
mov dword [rsp + 0x2c0], eax
je 0x1400ae105
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14011f040
mov rdi, rax
jmp 0x1400ae108
mov rdi, r13
xor ecx, ecx
call fcn.14011e0c0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x2c0]
mov r8, rdi
mov edx, r12d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, 0x103
jne 0x1400ae158
mov rcx, rdi
call fcn.14011e0c0
xor eax, eax
jmp 0x1400ae214
test eax, eax
je 0x1400ae1b3
mov byte [rsp + 0x70], 0
mov r9d, esi
lea r8, str.RegEnumKey
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.14007f910
lea rcx, [rsp + 0x174]
lea rdx, [rsp + 0x70]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x174]
call fcn.14011f050
int3
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9d, esi
mov r8d, 0xfde9
mov rdx, rdi
lea rcx, [rsp + 0x2c8]
call fcn.14007ba40
mov rbx, qword [rsp + 0x2c8]
mov qword [rsp + 0x2c8], r13
mov rcx, qword [rbp + 0x10]
call fcn.14011e950
mov qword [rbp + 0x10], rbx
mov rcx, qword [rsp + 0x2c8]
call fcn.14011e0c0
mov rbx, qword [rbp + 0x10]
mov rcx, rdi
call fcn.14011e0c0
mov rax, rbx
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b0d20
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov esi, ecx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
test ax, ax
movzx ebx, ax
jne 0x1400b0d6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400b0d6a
mov rdx, rdi
movzx ecx, sil
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_VkKeyScanExA]
mov rsi, qword [rsp + 0x38]
mov ax, bx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b0d80
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov ebx, ecx
call fcn.140060b00
test eax, eax
mov esi, eax
je 0x1400b0dfb
mov rdx, rbp
movzx ecx, ax
call qword [sym.imp.USER32.dll_VkKeyScanExW]
test ax, ax
movzx ebx, ax
jne 0x1400b0dd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1400b0ddc
mov rdx, rbp
movzx ecx, sil
call qword [sym.imp.USER32.dll_VkKeyScanExA]
mov bx, ax
cmp bx, 0xffff
je 0x1400b0e0e
mov ax, bx
shr rax, 8
test rdi, rdi
je 0x1400b0df2
movzx eax, al
mov dword [rdi], eax
movzx eax, bl
jmp 0x1400b0e10
test al, al
jne 0x1400b0e0e
movzx eax, bl
jmp 0x1400b0e10
lea eax, [rbx - 0xffbe]
cmp eax, 0x17
ja 0x1400b0e0e
lea eax, [rbx - 0xff4e]
jmp 0x1400b0e10
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b51e0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x230
xor eax, eax
mov rbx, rcx
mov dword [rcx + 4], eax
mov dword [rcx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400b5265
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.unable_to_get_system_version_info
lea rcx, [rsp + 0x20]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x20], 0
mov edi, eax
call fcn.14007b3b0
lea rcx, [rsp + 0x20]
mov edx, edi
call fcn.14007f910
lea rcx, [rsp + 0x124]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x124]
call fcn.14011f050
int3
mov eax, dword [rbx + 0x10]
mov qword [rsp + 0x240], rsi
cmp eax, 2
sete dl
cmp eax, 1
sete al
test dl, dl
mov byte [rbx + 0x11c], dl
mov byte [rbx + 0x11d], al
mov eax, 1
je 0x1400b52d8
cmp dword [rbx + 4], 4
jne 0x1400b52d8
lea rdi, [0x140195ca4]
lea rsi, [rbx + 0x14]
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
je 0x1400b52d4
lea rdi, str.Service_Pack_1
lea rsi, [rbx + 0x14]
mov ecx, reloc.WS2_32.dll_ntohs
repe cmpsw word [rsi], word [rdi]
je 0x1400b52d4
lea rdi, str.Service_Pack_2
lea rsi, [rbx + 0x14]
mov ecx, reloc.WS2_32.dll_ntohs
repe cmpsw word [rsi], word [rdi]
jne 0x1400b52d8
mov ecx, eax
jmp 0x1400b52da
xor ecx, ecx
test dl, dl
mov rsi, qword [rsp + 0x240]
mov byte [rbx + 0x11e], cl
je 0x1400b52fb
cmp dword [rbx + 4], 5
jae 0x1400b52fd
test byte [rbx + 0x118], 0x10
jne 0x1400b52fd
xor eax, eax
mov byte [rbx + 0x11f], al
mov rax, rbx
mov rbx, qword [rsp + 0x248]
add rsp, 0x230
pop rdi
ret
Function at 0x1400b8e80
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x18], rdi
mov qword [rax + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rax + 0x20]
call fcn.1400ad180
nop
test rbx, rbx
cmove rbx, qword [rsp + 0x298]
mov dword [rsp + 0x20], edi
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rbx
lea rcx, [rsp + 0x290]
call fcn.14007bc10
nop
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b8f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x50], dil
or r9d, 0xffffffff
lea r8, str.Failed_to_open_file
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14007f910
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x154]
call fcn.14011f050
nop
test rax, rax
je 0x1400b8f96
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x288]
mov rcx, qword [rsp + 0x290]
call sub.VERSION.dll_GetFileVersionInfoSizeW
movsxd rdi, eax
test eax, eax
jne 0x1400b9012
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x50], 0
or r9d, 0xffffffff
lea r8, str.GetVersionInfoSize_failed
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14007f910
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x154]
call fcn.14011f050
int3
mov rcx, rdi
call fcn.14011ecf0
mov rbx, rax
mov rcx, qword [rsi]
call fcn.14011e950
mov qword [rsi], rbx
mov r9, rbx
mov r8d, edi
mov edx, dword [rsp + 0x288]
mov rcx, qword [rsp + 0x290]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1400b90a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x50], 0
or r9d, 0xffffffff
lea r8, str.GetVersionInfo_failed
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14007f910
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x50]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x154]
call fcn.14011f050
nop
mov rcx, qword [rsp + 0x290]
call fcn.14011e950
nop
mov rcx, qword [rsp + 0x298]
call fcn.14011e950
nop
mov rax, rsi
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400b9370
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [0x14023c560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
Function at 0x1400b9400
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov qword [rcx], rdx
mov ecx, dword [0x14023c560]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rbx
mov qword [rbx + 0x10], rax
mov ecx, dword [0x14023c560]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [0x1400b93a0]
mov r9d, eax
xor r8d, r8d
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [rbx + 8], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400bb0b0
Capabilities:
Get session user name

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140229498]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov qword [rcx], rsi
mov dword [rsp + 0x40], 0x101
lea rdx, [rsp + 0x40]
lea rcx, [r11 - 0x228]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400bb169
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x60], sil
or r9d, 0xffffffff
lea r8, str.GetUserName_failed
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.14007f910
lea rcx, [rsp + 0x164]
lea rdx, [rsp + 0x60]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x164]
call fcn.14011f050
int3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x48]
call fcn.14007ba40
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rsi
mov rcx, qword [rdi]
call fcn.14011e950
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x48]
call fcn.14011e0c0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14011f1c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400bb200
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x240
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rdi, rcx
mov qword [rcx], 0
mov byte [rcx + 8], 0
mov eax, dword [0x14023c620]
test al, 1
jne 0x1400bb269
or eax, 1
mov dword [0x14023c620], eax
xor r9d, r9d
lea r8, str.WTSQueryUserToken
lea rdx, str.wtsapi32
lea rcx, [0x14023c610]
call fcn.140086de0
lea rcx, [0x14018c9e0]
call fcn.14011f460
nop
call fcn.1400bbc10
test al, al
je 0x1400bb358
cmp byte [0x14023c47d], 0
je 0x1400bb2ce
lea rdx, str.legacy_shellIconClass
lea rcx, [0x14023c628]
call fcn.140002fd0
nop
lea rcx, [rsp + 0x258]
call fcn.1400bb0b0
mov qword [rdi], 0xffffffffffffffff
mov rcx, qword [rsp + 0x258]
call fcn.14011e950
nop
jmp 0x1400bb2bf
cmp qword [rdi], 0
setne al
mov byte [rdi + 8], al
jmp 0x1400bb3e3
mov rax, qword [0x14023c610]
test rax, rax
je 0x1400bb32d
mov rdx, rdi
or ecx, 0xffffffff
call rax
test eax, eax
jne 0x1400bb311
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x1400bb311
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WTSQueryUserToken_fail__d
lea rcx, [0x14023c628]
call fcn.140002fd0
jmp 0x1400bb32d
lea rdx, str.WTSQueryUserToken_OK
lea rcx, [0x14023c628]
call fcn.140002fd0
mov byte [rdi + 8], 1
jmp 0x1400bb3e3
movsxd rbx, edi
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
mov rcx, rax
mov r8, rbx
lea rdx, [0x1400baee0]
call qword [sym.imp.USER32.dll_EnumDesktopsW]
cmp qword [rdi], 0
setne al
mov byte [rdi + 8], al
jmp 0x1400bb3e3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r8, rdi
mov edx, 0x10000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400bb3df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x78
je 0x1400bb3d8
mov byte [rsp + 0x30], 0
or r9d, 0xffffffff
lea r8, str.OpenProcessToken_failed
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.14007f910
lea rcx, [rsp + 0x134]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x134]
call fcn.14011f050
int3
mov qword [rdi], 0xffffffffffffffff
mov byte [rdi + 8], 1
mov rax, rdi
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x1400bbc10
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x240
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
cmp byte [0x14023c689], 0
jne 0x1400bbd9d
cmp byte [0x14023c47c], 0
je 0x1400bbd79
xor edi, edi
mov qword [rax + 0x18], rdi
mov dword [rsp + 0x20], edi
mov ebx, 1
lea r9d, [rdi + 0x12]
mov r8d, ebx
lea rdx, [0x1401aa838]
lea rcx, [rax + 0x18]
call fcn.1400ba620
nop
mov qword [rsp + 0x250], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x250]
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400bbcf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x38], dil
or r9d, 0xffffffff
lea r8, [0x1401a99b0]
mov edx, 0x100
lea rcx, [rsp + 0x38]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.14007f910
lea rcx, [rsp + 0x13c]
lea rdx, [rsp + 0x38]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x13c]
call fcn.14011f050
int3
mov rdx, rdi
mov qword [rsp + 0x258], rdx
mov rax, qword [rsp + 0x250]
test rax, rax
je 0x1400bbd21
mov rdx, rax
lea rcx, [rsp + 0x258]
call fcn.1400ba700
mov rdx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
movzx ecx, byte [0x14023c688]
test eax, eax
cmovne ecx, ebx
mov byte [0x14023c688], cl
mov rcx, qword [rsp + 0x258]
call fcn.14011e0c0
nop
mov rcx, qword [rsp + 0x250]
test rcx, rcx
je 0x1400bbd62
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x250], rdi
mov rcx, qword [rsp + 0x260]
call fcn.14011e0c0
jmp 0x1400bbd96
movzx eax, byte [0x14023c688]
mov ebx, 1
cmp qword [0x14023c660], 0
cmovne eax, ebx
mov byte [0x14023c688], al
mov byte [0x14023c689], 1
mov al, byte [0x14023c688]
mov rbx, qword [rsp + 0x268]
add rsp, 0x240
pop rdi
ret
Function at 0x1400bbe50
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x230
mov rbx, rdx
lea rdx, [rsp + 0x260]
mov rbp, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
movsxd rdi, eax
jne 0x1400bbed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.GetVersionInfoSize_failed
lea rcx, [rsp + 0x28]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x28], 0
mov ebx, eax
call fcn.14007b3b0
lea rcx, [rsp + 0x28]
mov edx, ebx
call fcn.14007f910
lea rcx, [rsp + 0x12c]
lea rdx, [rsp + 0x28]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x12c]
call fcn.14011f050
int3
mov rcx, rdi
mov qword [rsp + 0x250], rsi
call fcn.14011f040
mov edx, dword [rsp + 0x260]
mov r8d, edi
mov r9, rax
mov rcx, rbp
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1400bbf61
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.GetVersionInfo_failed
lea rcx, [rsp + 0x28]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x28], 0
mov ebx, eax
call fcn.14007b3b0
lea rcx, [rsp + 0x28]
mov edx, ebx
call fcn.14007f910
lea rcx, [rsp + 0x12c]
lea rdx, [rsp + 0x28]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x12c]
call fcn.14011f050
int3
lea r9, [rsp + 0x268]
lea r8, [rsp + 0x20]
lea rdx, [0x1401aa308]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400bbfe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.VerQueryValue_failed
lea rcx, [rsp + 0x28]
or r9d, 0xffffffff
mov edx, 0x100
mov byte [rsp + 0x28], 0
mov ebx, eax
call fcn.14007b3b0
lea rcx, [rsp + 0x28]
mov edx, ebx
call fcn.14007f910
lea rcx, [rsp + 0x12c]
lea rdx, [rsp + 0x28]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x12c]
call fcn.14011f050
int3
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rbx], rax
mov rax, qword [rcx + 8]
mov qword [rbx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0x10], rax
mov rax, qword [rcx + 0x18]
mov qword [rbx + 0x18], rax
mov rax, qword [rcx + 0x20]
mov qword [rbx + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rbx + 0x28], rax
mov eax, dword [rcx + 0x30]
mov rcx, rsi
mov dword [rbx + 0x30], eax
call fcn.14011e0c0
mov rsi, qword [rsp + 0x250]
add rsp, 0x230
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400cead0
Capabilities:
Create directory
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x690
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140229498]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
lea rax, [0x1401af4f8]
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 8], rsi
lea rdx, [r11 - 0x438]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400ceb8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x58], sil
or r9d, 0xffffffff
lea r8, str.GetTempPath
mov edx, 0x100
lea rcx, [rsp + 0x58]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14007f910
lea rcx, [rsp + 0x15c]
lea rdx, [rsp + 0x58]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x15c]
call fcn.14011f050
int3
xor edx, edx
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400cec0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400cec0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x58], 0
or r9d, 0xffffffff
lea r8, str.CreateDirectory
mov edx, 0x100
lea rcx, [rsp + 0x58]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14007f910
lea rcx, [rsp + 0x15c]
lea rdx, [rsp + 0x58]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x15c]
call fcn.14011f050
int3
lea r9, [rsp + 0x470]
xor r8d, r8d
lea rdx, [0x1401af570]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1400cec91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov byte [rsp + 0x58], 0
or r9d, 0xffffffff
lea r8, str.GetTempFileName
mov edx, 0x100
lea rcx, [rsp + 0x58]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14007f910
lea rcx, [rsp + 0x15c]
lea rdx, [rsp + 0x58]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x15c]
call fcn.14011f050
int3
lea rdx, [0x1401af558]
lea rcx, [rsp + 0x470]
call fcn.140127be0
test rax, rax
jne 0x1400ced09
call fcn.1401205b0
mov ebx, dword [rax]
mov byte [rsp + 0x58], 0
or r9d, 0xffffffff
lea r8, str._tfopen
mov edx, 0x100
lea rcx, [rsp + 0x58]
call fcn.14007b3b0
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14007f910
lea rcx, [rsp + 0x15c]
lea rdx, [rsp + 0x58]
mov r8d, 0x104
call fcn.14011e9b0
lea rdx, [0x14020b6e8]
lea rcx, [rsp + 0x15c]
call fcn.14011f050
int3
mov rcx, rax
call fcn.140126f90
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x40]
call fcn.14007ba40
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov rcx, qword [rdi + 8]
call fcn.14011e0c0
mov qword [rdi + 8], rbx
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
mov r8, qword [rdi + 8]
lea rdx, str.Created_new_temp_file__s
lea rcx, [0x14023c7d8]
call fcn.140002fd0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14011f1c0
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret