joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401cdb62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140219408]
test eax, eax
je 0x1401cdbfa
lea rax, [0x1402193e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140219410]
mov qword [rbp - 8], rax
jmp 0x1401cdbde
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401cdbd2
cmp qword [rbp - 0x10], 0
je 0x1401cdbd2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401cdb98
lea rax, [0x1402193e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401cdbfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401cdd00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401cdd28
mov eax, 0
jmp 0x1401cdd76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401cdd51
mov eax, 0
jmp 0x1401cdd76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401cdd71
mov eax, 0
jmp 0x1401cdd76
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401cdd7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401cddfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401cddf1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401cddf1
mov rax, qword [rbp - 8]
jmp 0x1401cde0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401cddc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001310
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001389
call fcn.180001b70
test eax, eax
jne 0x180001348
mov rcx, qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea r8, [0x18001ee28]
lea rdx, section..text
call fcn.1800018d0
mov rcx, qword [sym.imp.KERNEL32.dll_CreateMutexW]
call fcn.180001b60
lea rcx, [0x180018ae8]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
xor eax, eax
lea r8, [0x180001080]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18001ee20], rax
test rax, rax
je 0x180001389
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800013a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18001ee4c]
mov ebx, edi
test ecx, ecx
je 0x1800014db
mov rax, qword [0x18001ee40]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800013f8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800013d0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800014db
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180001720
mov r8d, dword [0x18001ee4c]
cmp ebx, r8d
jae 0x180001468
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18001ee40]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180001461
mov edx, esi
mov ecx, ebx
call fcn.180001610
mov edi, eax
test eax, eax
jne 0x180001468
mov r8d, dword [0x18001ee4c]
inc ebx
cmp ebx, r8d
jb 0x180001430
cmp qword [rsp + 0x20], 0
je 0x1800014db
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800014c7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800014b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180001490
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18001dc78]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180001610
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18001ee40]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001674
mov eax, 0xa
jmp 0x180001703
test esi, esi
je 0x180001696
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800016b9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800016b9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800016b2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800016b9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180001720
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18001d228]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000184a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180001841
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180001824
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180001824
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180001824
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800017e2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18001dc78]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180001841
jmp 0x180001817
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180001817
mov rcx, qword [0x18001dc78]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180001841
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180001790
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800018a3
cmp dword [rbx + 0xc], esi
jbe 0x1800018a3
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000189c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180001c10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180001860
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180002d40
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180001dc0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180001e2f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180001e18
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180001e0c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180001de0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18001dc78]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180001ef0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180001f30
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18001ee38]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180001f6e
cmp rsi, r14
jb 0x180001f66
cmp rsi, r15
jae 0x180001f66
cmp qword [rsi + 8], 0
jne 0x180002137
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001f51
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180002002
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001ff9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001ff9
cmp dword [rsp + 0x70], 0x10000
je 0x18000207b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180001ff9
sub rbx, rbp
cmp rbx, r14
jae 0x180001fc0
test rsi, rsi
jne 0x1800020e0
cmp rdi, r15
ja 0x18000211f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000211f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000211f
cmp dword [rsp + 0x70], 0x10000
je 0x1800020b1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180002032
jmp 0x18000211f
test rbx, rbx
je 0x180001ff9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800020e0
cmp rbx, r14
jae 0x180001fa0
jmp 0x180002002
test rdi, rdi
je 0x18000211f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800020e0
cmp rdi, r15
jbe 0x180002010
jmp 0x18000211f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800020f0
mov rax, qword [0x18001ee38]
mov qword [rsi], rax
mov qword [0x18001ee38], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18000a8cc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000a8fc
xor eax, eax
jmp 0x18000a9bf
mov rbp, rbx
cmp word [rax], si
je 0x18000a921
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000a908
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000a904
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000a7ec
movsxd r14, eax
test eax, eax
jne 0x18000a95f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000a8f5
mov rcx, r14
call fcn.18000bb5c
mov rdi, rax
test rax, rax
jne 0x18000a978
xor ecx, ecx
call fcn.180008e24
jmp 0x18000a954
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000a7ec
test eax, eax
jne 0x18000a9a9
mov rcx, rdi
call fcn.180008e24
jmp 0x18000a9b3
xor ecx, ecx
call fcn.180008e24
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180010120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180010148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180010148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002cd0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002d1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002d1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002d1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002d1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002d1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002d1c
xor al, al
add rsp, 0x28
ret
Function at 0x140001280
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov qword [r8], 0
test rdx, rdx
je 0x140001346
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001346
cmp dword [rsp + 0x50], 1
jne 0x140001346
mov ecx, dword [rsp + 0x48]
mov eax, 2
shr rcx, 1
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.mfc100u.dll_new__]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov qword [rbx], rax
mov rcx, qword [rsi + 8]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001336
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call qword [sym.imp.mfc100u.dll_CThreadLocalObject::CThreadLocalObject]
mov qword [rbx], 0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140001ac0
Capabilities:
Get file version info

Disassembly:
push rdi
mov eax, 0xfa70
call fcn.14000c9b0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xfa90], rbx
mov rax, qword [0x140018020]
xor rax, rsp
mov qword [rsp + 0xfa60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x30], 0
call qword [0x14000fd10]
mov dword [rsp + 0x30], 1
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
lea rdx, [rsp + 0x34]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x140001b96
lea r9, [rsp + 0x60]
xor edx, edx
mov r8d, 0xfa00
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140001b96
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [0x14000ff60]
lea rcx, [rsp + 0x60]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140001b96
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rcx + 0x10]
movzx edx, word [rcx + 0x16]
movzx r9d, r8w
shr r8d, 0x10
mov dword [rsp + 0x20], edx
lea rdx, str._d._d_d
mov rcx, rbx
call qword [sym.imp.mfc100u.dll_CMFCRibbonRecentFilesList::FillList]
mov rax, rbx
mov rcx, qword [rsp + 0xfa60]
xor rcx, rsp
call fcn.14000c160
mov rbx, qword [rsp + 0xfa90]
add rsp, 0xfa70
pop rdi
ret
Function at 0x140001ec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
xor sil, sil
lea r12, vtable.AcRegistryAccess.0
mov qword [rax - 0x30], r12
xor ebp, ebp
mov qword [rax - 0x28], rbp
lea r8, str.SoftwareAutodeskHardcopy
mov rdx, 0xffffffff80000002
lea rcx, [rax - 0x30]
call qword [0x1400103f8]
nop
cmp qword [rsp + 0x50], rbp
jne 0x140001f17
xor al, al
jmp 0x140002033
mov edi, ebp
lea rcx, [rsp + 0x88]
call qword [0x14000fd10]
nop
mov edx, 0x400
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc100u.dll_CTaskDialog::FreeStruct]
mov dword [rsp + 0x80], 0x400
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete bl
or edx, 0xffffffff
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc100u.dll_CMFCAcceleratorKeyAssignCtrl::PreTranslateMessage]
test bl, bl
je 0x14000200b
inc edi
test sil, sil
jne 0x14000200b
mov rcx, qword [rsp + 0x88]
call fcn.140001bc0
movzx esi, al
mov edx, 0x400
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc100u.dll_CTaskDialog::FreeStruct]
mov dword [rsp + 0x80], 0x400
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x80]
mov r8, rax
mov edx, edi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete bl
or edx, 0xffffffff
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc100u.dll_CMFCAcceleratorKeyAssignCtrl::PreTranslateMessage]
test bl, bl
jne 0x140001f90
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000202f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140002c70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
sub rsp, 0x40
xor r12d, r12d
mov rbp, rdx
mov rbx, rcx
mov word [rdx], r12w
cmp qword [rcx], 0xffffffffffffffff
mov esi, 0x400
jne 0x140002ca6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret
cmp dword [rcx + 8], 1
jne 0x140002c95
mov qword [rsp + 0x60], rdi
mov rdi, rdx
nop word [rax + rax]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140002dc1
cmp dword [rbx + 8], 1
jne 0x140002dc1
mov eax, dword [rbx + 0x10]
cmp eax, 1
je 0x140002d4c
cmp eax, 2
je 0x140002d3d
add eax, 0xfffffffd
cmp eax, 1
ja 0x140002dc1
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x78]
mov r8d, 2
mov word [rsp + 0x70], r12w
mov word [rsp + 0x78], r12w
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x30], 2
jl 0x140002dc1
cmp dword [rbx + 0x10], 4
movzx eax, word [rsp + 0x78]
jne 0x140002d36
rol ax, 8
mov word [rsp + 0x70], ax
jmp 0x140002d62
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140003260
jmp 0x140002d59
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140002f90
test al, al
je 0x140002dc1
movzx eax, word [rsp + 0x70]
movzx ecx, ax
cmp ecx, 0xa
je 0x140002d86
cmp ecx, 0xd
je 0x140002d7d
cmp ecx, 0x1a
je 0x140002da5
mov word [rdi], ax
add rdi, 2
dec esi
cmp esi, 1
jg 0x140002cc0
mov word [rdi], r12w
sub rdi, rbp
sar rdi, 1
mov eax, edi
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rsi
pop rbp
ret
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140002d86
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140002d86
cmp rdi, rbp
jne 0x140002d86
or eax, 0xffffffff
jmp 0x140002d92
Function at 0x140002dd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140002f79
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x140002f79
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140002f79
xor ebp, ebp
lea r9, [rsp + 0x50]
lea r8d, [rax + 2]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x50], 2
jne 0x140002f62
movzx eax, word [rsp + 0x58]
mov esi, 0xfeff
cmp ax, si
jne 0x140002e61
mov dword [rbx + 0x10], 3
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov edi, 0xfffe
cmp ax, di
jne 0x140002e81
mov dword [rbx + 0x10], 4
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0xbbef
cmp ax, cx
jne 0x140002ee3
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140002f79
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, 1
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x60], 1
jne 0x140002f62
cmp byte [rsp + 0x50], 0xbf
jne 0x140002f62
mov dword [rbx + 0x10], 2
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
test ax, ax
jne 0x140002f62
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140002f79
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r8d, 2
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x50], 2
jne 0x140002f62
movzx eax, word [rsp + 0x58]
test ax, ax
jne 0x140002f41
cmp dword [rsp + 0x60], edi
jne 0x140002f62
mov dword [rbx + 0x10], 6
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp ax, si
jne 0x140002f62
cmp dword [rsp + 0x60], ebp
jne 0x140002f62
mov dword [rbx + 0x10], 5
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140002f79
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret