joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025070
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.1400a683c
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.1400a8b60
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x1400250d7
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0x150
pop rbx
ret
Function at 0x1400277e0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0x68
ret

Function at 0x140027840
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.1400a8b60
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400279a2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1400278a4
jne 0x140027945
cmp dword [rbx + 8], 2
jb 0x140027945
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140027945
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140027945
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140027945
movups xmm0, xmmword [0x1400fa6f8]
mov rcx, rax
movups xmm1, xmmword [0x1400fa708]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140027945
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140027945
cmp word [rdi + 2], ax
jbe 0x140027945
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140027996
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.1400a8b60
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x140027996
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1400279a4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0x170
pop rbx
ret
Function at 0x140028ba0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rdx
mov esi, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
mov rcx, rdx
call fcn.140011858
mov ecx, esi
call fcn.140028c90
movzx ebx, al
mov byte [rsp + 0x20], al
jmp 0x140028bf9
test bl, bl
jne 0x140028c63
cmp esi, 0x1a
jne 0x140028c63
mov rcx, rdi
call fcn.140011858
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call fcn.1400a8b60
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x40]
call fcn.1400027f0
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400025d0
mov rcx, rdi
call fcn.1400024d0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
movzx eax, bl
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002a8a0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x110
call fcn.1400a8b60
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14002a927
cmp dword [rsp + 0x44], 6
jb 0x14002a927
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, str.Progid
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
call fcn.14002a750
test al, al
je 0x14002a927
cmp word [rbx], 0
jne 0x14002a991
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.http_shellopencommand
mov rcx, 0xffffffff80000000
call fcn.14002a750
test al, al
je 0x14002a95c
cmp word [rbx], 0
jne 0x14002a991
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareClasses.html
mov rcx, 0xffffffff80000001
call fcn.14002a750
test al, al
je 0x14002a995
cmp word [rbx], 0
je 0x14002a995
mov al, 1
jmp 0x14002a997
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0x170
pop rbx
ret
Function at 0x14002afb0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27b0]
mov eax, 0x28b0
call fcn.1400a7510
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x28e8], rbx
mov qword [rsp + 0x28f0], rsi
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rbp + 0x27a0], rax
mov rbx, rcx
xor r12d, r12d
mov esi, r12d
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x7a0]
call fcn.1400a8b60
mov eax, 0x22
mov word [rbp + 0x7a0], ax
test rbx, rbx
je 0x14002b21f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x14002b21f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xffa
jge 0x14002b21f
mov rdx, rbx
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1400f99c4]
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1400f9c00]
lea rcx, [rsp + 0x30]
call fcn.140002500
nop
call fcn.14002cf30
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14002cfd0
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400024f0
test rbx, rbx
je 0x14002b21f
lea rdx, str.ShellExecuteW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x14002b21f
lea rcx, [rsp + 0x60]
call fcn.14002a9b0
mov ebx, r12d
lea rdi, [rsp + 0x60]
nop dword [rax]
cmp word [rdi], 0
je 0x14002b11e
movsxd r14, ebx
imul rax, r14, 0x210
lea r8, [rsp + 0x60]
add r8, rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7a0]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x14002b12e
inc ebx
add rdi, 0x210
cmp ebx, 3
jge 0x14002b151
jmp 0x14002b0e0
imul rax, r14, 0x210
mov esi, dword [rbp + rax + 0x16c]
cmp dword [rbp + rax + 0x168], 0
jne 0x14002b149
add esi, 0x10
test esi, esi
jne 0x14002b21b
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rbp + 0x7a0]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x14002b216
lea rax, str._programfiles_x86__Internet_Exploreriexplore.exe
mov qword [rsp + 0x30], rax
lea rax, str._programfiles_Internet_Exploreriexplore.exe
mov qword [rsp + 0x38], rax
mov rbx, r12
nop dword [rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x590]
call fcn.1400a8b60
mov r8d, 0x103
lea rdx, [rbp + 0x590]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp + 0x590]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002b20b
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x7a0]
lea r8, [rbp + 0x590]
lea rdx, str.open
xor ecx, ecx
call r15
cmp rax, 0x20
ja 0x14002b216
inc rbx
cmp rbx, 2
jae 0x14002b21b
jmp 0x14002b1a0
mov esi, 0x10
mov eax, esi
jmp 0x14002b221
xor eax, eax
mov rcx, qword [rbp + 0x27a0]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0x28b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002bbf0
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14002bc21
xor al, al
jmp 0x14002bc87
and ebx, 0xffffb1af
call fcn.1400024e0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14002bc3f
mov al, 1
jmp 0x14002bc87
lea rcx, [rsp + 0x28]
call fcn.140008be0
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14002c730
test al, al
je 0x14002bc78
lea rcx, [rsp + 0x28]
call fcn.1400024e0
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14002bc78
mov bl, 1
jmp 0x14002bc7a
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.1400024f0
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a6810
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14002bd18
lea rcx, [rsp + 0x28]
call fcn.140008be0
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14002c730
test al, al
je 0x14002bd0c
lea rcx, [rsp + 0x28]
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x28]
call fcn.1400024f0
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400a6810
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14002bd30
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.1400024e0
mov rbx, rax
mov rcx, rdi
call fcn.1400024e0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14002be07
xor bl, bl
lea rcx, [rsp + 0x48]
call fcn.140008be0
nop
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14002c730
movzx ebx, bl
mov ecx, 1
test al, al
cmovne ebx, ecx
lea rcx, [rsp + 0x28]
call fcn.140008be0
nop
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14002c730
test al, al
jne 0x14002bdcb
test bl, bl
je 0x14002be0b
lea rcx, [rsp + 0x28]
call fcn.1400024e0
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.1400024e0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14002be0b
lea rcx, [rsp + 0x28]
call fcn.1400024f0
nop
lea rcx, [rsp + 0x48]
call fcn.1400024f0
mov al, 1
jmp 0x14002be22
lea rcx, [rsp + 0x28]
call fcn.1400024f0
nop
lea rcx, [rsp + 0x48]
call fcn.1400024f0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002be50
Capabilities:
Copy file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.1400024e0
mov rbx, rax
mov rcx, rdi
call fcn.1400024e0
mov rcx, rax
mov ebp, 1
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14002beb2
movzx eax, bpl
jmp 0x14002bf3c
xor bl, bl
lea rcx, [rsp + 0x48]
call fcn.140008be0
nop
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14002c730
movzx ebx, bl
test al, al
cmovne ebx, ebp
lea rcx, [rsp + 0x28]
call fcn.140008be0
nop
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14002c730
test al, al
jne 0x14002bef4
test bl, bl
je 0x14002bf22
lea rcx, [rsp + 0x28]
call fcn.1400024e0
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.1400024e0
mov rcx, rax
mov r8d, ebp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14002bf22
mov bl, 1
jmp 0x14002bf24
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.1400024f0
nop
lea rcx, [rsp + 0x48]
call fcn.1400024f0
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a6810
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002bf60
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14002bfa3
mov al, 1
jmp 0x14002c0e6
mov rcx, rdi
call fcn.1400024e0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002500
nop
lea rcx, [rsp + 0x28]
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
jne 0x14002c011
lea rcx, [rsp + 0x48]
call fcn.140008be0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.14002c730
test al, al
je 0x14002c006
lea rcx, [rsp + 0x48]
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea rcx, [rsp + 0x48]
call fcn.1400024f0
nop
lea rcx, [rsp + 0x28]
call fcn.1400024f0
cmp esi, 0xffffffff
jne 0x14002c027
xor al, al
jmp 0x14002c0e6
mov rcx, rdi
call fcn.1400024e0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002500
nop
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14002bbf0
movzx ebx, al
lea rcx, [rsp + 0x28]
call fcn.1400024f0
test bl, bl
je 0x14002c020
mov rcx, rdi
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002bf9c
lea rcx, [rsp + 0x28]
call fcn.140008be0
nop
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14002c730
test al, al
je 0x14002c0aa
lea rcx, [rsp + 0x28]
call fcn.1400024e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14002c0aa
mov bl, 1
jmp 0x14002c0d9
mov rcx, rdi
call fcn.1400024e0
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002500
nop
mov edx, esi
lea rcx, [rsp + 0x48]
call fcn.14002bbf0
nop
lea rcx, [rsp + 0x48]
call fcn.1400024f0
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.1400024f0
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002c110
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x670
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x688], rbx
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x28], rdi
lea rdx, [0x140137550]
lea rcx, [rsp + 0x28]
call fcn.140011d7c
nop
lea rcx, [0x140137570]
call fcn.1400024d0
test al, al
jne 0x14002c1b0
lea rcx, [0x140137570]
call fcn.140002540
cmp rbx, rax
je 0x14002c19f
lea rcx, [0x140137570]
call fcn.140002540
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14002c192
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rbx
call fcn.1400025d0
nop
lea rcx, [rsp + 0x28]
call fcn.140011da4
mov al, 1
jmp 0x14002c275
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x30]
call fcn.1400a8b60
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x14002c269
mov word [rsp + 0x23a], di
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x240]
call fcn.1400a8b60
mov r8d, 0x208
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x14002c252
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x14002c296
mov word [rsp + rax + 0x240], di
lea rcx, [rsp + 0x240]
call fcn.1400027f0
lea rdx, [rsp + 0x240]
mov r8, rax
jmp 0x14002c196
lea rcx, [rsp + 0x30]
call fcn.1400027f0
lea rdx, [rsp + 0x30]
mov r8, rax
jmp 0x14002c196
lea rcx, [rsp + 0x28]
call fcn.140011da4
xor al, al
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1400a6810
mov rbx, qword [rsp + 0x688]
add rsp, 0x670
pop rdi
ret
call fcn.1400a6d38
nop
int3
Function at 0x1400310a0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], 0x114
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, 0x110
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call fcn.1400a8b60
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x140031120
cmp dword [rsp + 0x24], 6
jb 0x140031120
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0x150
pop rbx
ret

Function at 0x140031140
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rdx, str.wintrust.dll
lea rcx, [rax - 0x50]
call fcn.140002500
nop
call fcn.14002cf30
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.14002cfd0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400024f0
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.140002500
nop
call fcn.14002cf30
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.14002cfd0
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.1400024f0
test rbx, rbx
je 0x140031296
test rdi, rdi
je 0x140031296
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140032b10
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r9
mov r13, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.140002500
nop
call fcn.14002cf30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14002cfd0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400024f0
test rbx, rbx
je 0x140032d79
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140032d79
xor sil, sil
lea rdx, str.Version.dll
lea rcx, [rsp + 0x40]
call fcn.140002500
nop
call fcn.14002cf30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14002cfd0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400024f0
test rbx, rbx
je 0x140032d73
lea rdx, str.GetFileVersionInfoExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeExW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test r15, r15
je 0x140032c85
test rax, rax
je 0x140032c85
mov dword [rsp + 0x70], 0
mov rcx, r14
call fcn.1400024e0
mov rdx, rax
lea r8, [rsp + 0x70]
xor ecx, ecx
call rdi
mov edi, eax
test eax, eax
je 0x140032d73
mov edx, edi
mov ecx, 1
call fcn.1400b28b8
mov rbx, rax
mov rcx, r14
call fcn.1400024e0
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8d, dword [rsp + 0x70]
xor ecx, ecx
call r15
test eax, eax
jne 0x140032cff
mov rcx, rbx
call fcn.1400ab378
movzx eax, sil
jmp 0x140032d7b
lea rdx, str.GetFileVersionInfoW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r15, r15
je 0x140032d73
test rax, rax
je 0x140032d73
mov rcx, r14
call fcn.1400024e0
mov rcx, rax
xor edx, edx
call rbx
mov edi, eax
test eax, eax
je 0x140032d73
mov edx, edi
mov ecx, 1
call fcn.1400b28b8
mov rbx, rax
mov rcx, r14
call fcn.1400024e0
mov rcx, rax
mov r9, rbx
mov r8d, edi
xor edx, edx
call r15
test eax, eax
je 0x140032d6b
test rbx, rbx
je 0x140032d73
xor eax, eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x68]
lea rdx, [0x1400f96d4]
mov rcx, rbx
call rbp
test eax, eax
je 0x140032d6b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140032d6b
cmp dword [rsp + 0x74], 0
jbe 0x140032d6b
cmp dword [rcx], 0xfeef04bd
jne 0x140032d6b
movzx eax, word [rcx + 0xa]
mov dword [r12], eax
movzx eax, word [rcx + 8]
mov dword [r13], eax
movzx eax, word [rcx + 0xe]
mov rdx, qword [rsp + 0x30]
mov dword [rdx], eax
movzx eax, word [rcx + 0xc]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
mov sil, 1
mov rcx, rbx
call fcn.1400ab378
movzx eax, sil
jmp 0x140032d7b
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret