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

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
test dl, dl
je 0x140027843
cmp ecx, 0xc0000017
je 0x140027843
mov eax, 1
jmp 0x140027906
cmp ecx, 0xc0000008
je 0x140027839
cmp byte [0x140049634], bl
jne 0x1400278f9
mov byte [0x140049634], 1
cmp ecx, 0xc0000017
jne 0x140027887
bts dword [0x140049618], 0x16
mov r8d, 0x80
lea rdx, [0x1400075d0]
lea rcx, [rsp + 0x20]
call fcn.140027e84
jmp 0x1400278a8
bts dword [0x140049618], 0x17
mov r9d, ecx
lea r8, [0x140007620]
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.140027db8
cmp byte [0x14004938c], bl
jne 0x1400278f7
mov byte [0x140049634], 1
call qword [sym.imp.MFC42.dll_Ordinal_1478]
test rax, rax
je 0x1400278d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + pe_nt_image_headers64]
jmp 0x1400278d3
mov rax, rbx
test rax, rax
je 0x1400278dc
mov rbx, qword [rax + 0x40]
mov r9d, 0x10
lea r8, [0x140007678]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400278f9
mov ecx, dword [0x140049618]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14003f730
add rsp, 0xb0
pop rbx
ret

Function at 0x140028024
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, r8d
cmp r8d, 0xffffffff
jne 0x140028040
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140028037
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140028072
cmp dword [rsp + 0x50], ebx
jne 0x140028067
mov al, 1
jmp 0x140028074
mov ecx, 0x1d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140028080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
lea r9, [rbp + 0x38]
lea rdx, [rbp + 0x30]
lea r8d, [rbx + 2]
mov rsi, rcx
mov word [rbp + 0x30], bx
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002814d
cmp dword [rbp + 0x38], 2
je 0x1400280d4
lea ecx, [rbx + 0xd]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002814d
mov eax, 0xffff
cmp word [rbp + 0x30], ax
jne 0x140028102
mov r9d, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 1]
mov qword [rdi], rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
jmp 0x14002814f
movzx ecx, word [rbp + 0x30]
inc ecx
call fcn.140027d58
movzx r14d, word [rbp + 0x30]
lea r9, [rbp + 0x38]
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
mov qword [rdi], rax
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140028145
cmp dword [rbp + 0x38], r14d
je 0x140028162
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.140027d90
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
mov rax, qword [rdi]
movzx ecx, word [rbp + 0x30]
mov byte [rcx + rax], bl
movzx eax, word [rbp + 0x30]
sub eax, 2
and eax, 3
je 0x140028196
mov edx, 4
mov r9d, 1
xor r8d, r8d
sub edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140028145
mov eax, 1
jmp 0x14002814f
Function at 0x140028348
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x60
mov rdi, rdx
xor edx, edx
mov r14, r8
mov rsi, rcx
lea r8d, [rdx + 0x30]
lea rcx, [rax - 0x38]
mov ebx, r9d
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x30]
mov r9d, 0x30
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp byte [rsp + 0x90], 0
mov r8d, dword [rsp + 0x54]
jne 0x1400283c0
test r8d, r8d
je 0x140028409
cmp r8d, 2
jbe 0x1400283d5
cmp r8d, 4
je 0x1400283d5
lea eax, [r8 - 0x10]
test eax, 0xffffffcf
jne 0x140028409
cmp r8d, 0x30
je 0x140028409
mov al, byte [0x140049608]
neg al
sbb r9d, r9d
and r9d, 0x40
add r9d, 0x40
jmp 0x1400283e8
mov al, byte [0x140049608]
neg al
sbb r9d, r9d
and r9d, 4
add r9d, 4
cmp r9d, r8d
je 0x140028409
lea rax, [rsp + 0x88]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140028470
mov al, byte [0x140049608]
mov r8, rbx
mov rdx, rdi
neg al
lea rax, [rsp + 0x88]
mov rcx, rsi
sbb r9d, r9d
mov qword [rsp + 0x20], rax
and r9d, 0x40
add r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14002848b
cmp byte [rsp + 0x90], 0
je 0x140028489
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

Function at 0x140028800
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x14002887c
cmp qword [rsp + 0x38], rbx
je 0x14002887c
lea r8, [rsp + 0x40]
lea edx, [rbx + 5]
xor ecx, ecx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x14002887c
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002887c
mov rdx, rdi
mov byte [rdi], bl
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
neg eax
mov rax, qword [rcx]
sbb rbx, rbx
and rbx, rdi
call qword [rax + 0x28]
mov al, byte [rbx]
neg al
sbb rax, rax
and rax, rbx
jmp 0x14002887e
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140028a04
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x140028a6b
cmp byte [rcx], bl
je 0x140028a6b
lea r8d, [rbx + 0x70]
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [0x140007798]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0xc
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp eax, 0x20
setg al
jmp 0x140028a78
mov ecx, 0x10
call qword [sym.imp.USER32.dll_MessageBeep]
xor al, al
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret

Function at 0x140028a90
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x140028a98
mov r9, rdx
mov rdx, rcx
mov r8d, 1
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueA]
add rsp, 0x38
ret

Function at 0x140028bf8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0xf58]
mov eax, 0x1050
call fcn.140041280
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + reloc.MFC42.dll_COlePropertyPage::XPropertyPage::Help], rax
lea rdx, [0x140003054]
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.MFC42.dll_AfxDaoInit]
xor edx, edx
mov r15, 0xffffffff80000000
jmp 0x140028d36
inc ebx
mov byte [rbp + 0x73f], 0
mov byte [rbp + 0x740], 0
test eax, eax
jne 0x140028d34
cmp byte [rsp + 0x40], 0x2e
jne 0x140028d34
cmp byte [rsp + 0x41], al
je 0x140028d34
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x740]
lea rdx, [rsp + 0x40]
mov rcx, r15
mov dword [rsp + 0x30], 0x800
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x140028d34
cmp byte [rbp + 0x740], al
je 0x140028d34
cmp dword [rsp + 0x30], 0x7e7
jge 0x140028d34
lea rdx, [0x140007860]
lea rcx, [rbp + 0x740]
mov r8d, 0x800
mov byte [rbp + reloc.MFC42.dll_HashKey], al
call fcn.140027ebc
lea r10, [rsp + 0x38]
lea rdx, [rbp + 0x740]
mov r9d, 1
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140028d34
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x41]
call qword [sym.imp.msvcrt.dll__strupr]
lea rdx, [rsp + 0x41]
mov rcx, rdi
call qword [sym.imp.MFC42.dll_Ordinal_1289]
lea rdx, [0x140003054]
mov rcx, rdi
call qword [sym.imp.MFC42.dll_Ordinal_1289]
mov edx, ebx
lea r8, [rsp + 0x40]
mov r9d, 0x800
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x140028c4d
mov rcx, qword [rbp + reloc.MFC42.dll_COlePropertyPage::XPropertyPage::Help]
xor rcx, rsp
call fcn.14003f730
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140028d84
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, qword [r8]
mov rbp, rdx
mov rsi, rcx
xor ebx, ebx
lea r8, [rsp + 0x30]
mov r9d, 0x100
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140028df7
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140028df7
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140028d84
test eax, eax
jne 0x140028db0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14003f730
mov rbx, qword [rsp + reloc.MFC42.dll_CGopherLocator::CGopherLocator]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x140028e3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, reloc.MFC42.dll_COlePropertyPage::XPropertyPage::Help
mov eax, 0x1040
call fcn.140041280
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf30], rax
mov r14, rcx
call qword [sym.imp.MFC42.dll_Ordinal_1469]
mov r13d, 0x800
mov rcx, qword [rax + 0x10]
lea rdx, [rsp + 0x30]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14002902a
lea rdx, [rbp + 0x730]
lea rcx, [rsp + 0x30]
mov r8d, r13d
mov byte [rbp + 0x72f], 0
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x140028ed1
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x730]
mov r8d, r13d
call fcn.140027e84
lea rdx, [0x1400077a4]
lea rcx, [rbp + 0x730]
mov r8d, r13d
call fcn.140027ebc
cmp byte [r14], 0x3a
mov r15b, 1
jne 0x140029028
lea rbx, [r14 + 1]
mov rsi, rbx
cmp byte [rbx], 0
je 0x140029023
cmp byte [rsi], 0x3a
je 0x140028f11
inc rsi
cmp byte [rsi], 0
jne 0x140028f04
cmp byte [rsi], 0
je 0x140029023
mov byte [r14], 0x2e
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rdx, r14
mov rcx, 0xffffffff80000000
mov byte [rsi], 0
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x140028f4a
cmp byte [rsp + 0x30], al
jne 0x140028f88
lea r8, [0x14000789c]
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, r13d
mov byte [rbp + 0x72f], 0
call fcn.140027db8
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__strlwr]
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140028a90
test eax, eax
sete al
and r15b, al
lea rdx, [0x1400078a8]
lea rcx, [rsp + 0x30]
mov r8d, r13d
call fcn.140027ebc
lea r10, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r10 + rax], 0
jne 0x140028fa5
mov edi, r13d
lea rbx, [rsp + 0x30]
lea rdx, [0x1400078c8]
sub edi, eax
cdqe
add rbx, rax
mov r8d, edi
mov rcx, rbx
call fcn.140027e84
lea rdx, [rbp + 0x730]
lea rcx, [rsp + 0x30]
call fcn.140028a90
lea rdx, [0x1400078d0]
mov r8d, edi
test eax, eax
mov rcx, rbx
sete al
and r15b, al
call fcn.140027e84
lea rdx, [0x140007830]
lea rcx, [rsp + 0x30]
call fcn.140028a90
mov byte [r14], 0x3a
mov byte [rsi], 0x3a
test eax, eax
mov r14, rsi
sete al
and r15b, al
jmp 0x140028ef4
mov al, r15b
jmp 0x14002902a
mov al, 1
mov rcx, qword [rbp + 0xf30]
xor rcx, rsp
call fcn.14003f730
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14002905c
Capabilities:
Extract resource via kernel32 functions
Get common file path
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rdi, r8
mov r13, rdx
mov ebx, ecx
call qword [sym.imp.MFC42.dll_Ordinal_1469]
lea r8, [0x1400078d8]
movzx edx, bx
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x140029294
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140029294
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x140029294
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r15d, eax
test eax, eax
je 0x140029294
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [r13 + rsi], 0
jne 0x1400290f2
xor ebp, ebp
mov ecx, ebp
test ebp, ebp
je 0x140029192
dec ecx
je 0x140029163
dec ecx
je 0x140029140
dec ecx
mov rcx, rdi
je 0x14002912f
lea rdx, [0x1400078e0]
mov r8d, 0x800
call fcn.140027e84
jmp 0x1400291b6
mov ebx, 0x7ff
sub ebx, esi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x140029152
mov ebx, 0x7ff
mov rdx, rdi
sub ebx, esi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140029289
cmp eax, ebx
jbe 0x1400291b6
jmp 0x140029289
call qword [sym.imp.MFC42.dll_Ordinal_1469]
mov ebx, 0x800
mov rdx, rdi
mov rcx, qword [rax + 0x10]
sub ebx, esi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140029289
cmp eax, ebx
ja 0x140029289
jmp 0x14002919b
cmp byte [rdi], 0
je 0x140029289
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strrchr]
test rax, rax
je 0x140029289
mov byte [rax + 1], 0
cmp byte [rdi], 0
je 0x140029289
mov edx, 0x800
mov rcx, rdi
call fcn.140027fbc
mov r8d, edx
mov rdx, r13
call fcn.140027ebc
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400292c0
test al, al
je 0x14002921b
cmp dword [rsp + 0x58], r15d
jne 0x140029207
mov rcx, qword [rsp + 0x50]
mov r8, r15
mov rdx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140029207
mov bl, 1
jmp 0x140029209
xor bl, bl
lea rcx, [rsp + 0x40]
call fcn.1400293d8
test bl, bl
jne 0x1400292b4
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140029289
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
mov r8d, r15d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400292b4
inc ebp
cmp ebp, 5
jl 0x1400290ff
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov al, 1
jmp 0x140029296
Function at 0x1400292c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push r14
sub rsp, 0x50
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rax - 0x14], ebx
xor dil, dil
mov byte [rax - 0x18], dil
xor edx, edx
lea r8d, [rbx + 0x20]
mov rcx, rsi
call sub.msvcrt.dll_memset
nop
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14002933b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x44], eax
jmp 0x1400293a4
lea rdx, [rsi + 0x1c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi + 0x18], eax
test eax, eax
jne 0x140029354
cmp dword [rsi + 0x1c], eax
je 0x14002939c
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsi + 8], rax
test rax, rax
je 0x14002932d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x10], rax
test rax, rax
je 0x14002932d
mov dil, 1
mov byte [rsp + 0x40], dil
test dil, dil
jne 0x1400293b9
mov rcx, rsi
call fcn.1400293d8
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, dil
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14002c934
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [0x140049610]
mov rdi, rdx
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14002c9be
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x14002c9b8
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x14002c969
inc eax
mov ecx, 0x2002
mov edx, eax
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14002c9a1
mov r8, rdi
mov edx, esi
mov rcx, rax
call fcn.14003fd20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140031e04
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140049470]
mov rbx, rcx
test rax, rax
jne 0x140031e36
lea rcx, [0x14000afb0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140049470], rax
test rax, rax
je 0x140031fa3
mov rdx, qword [0x140049478]
test rdx, rdx
jne 0x140031e6c
lea rdx, [0x14000afc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
mov qword [0x140049478], rax
test rax, rax
je 0x140031fa3
mov rax, qword [0x140049470]
cmp qword [0x140049480], 0
jne 0x140031ea4
lea rdx, [0x14000afd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140049480], rax
test rax, rax
je 0x140031fa3
mov rdx, qword [0x140049478]
mov rax, qword [0x140049470]
mov r10, qword [0x140049488]
test r10, r10
jne 0x140031eda
lea rdx, [0x14000afe0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140049488], rax
test rax, rax
je 0x140031fa3
mov rdx, qword [0x140049478]
cmp byte [rbx + 0x19], 0
jne 0x140031ef3
xor ecx, ecx
call rdx
test eax, eax
js 0x140031eec
mov byte [rbx + 0x19], 1
mov r10, qword [0x140049488]
add rbx, 0x28
cmp qword [rbx], 0
jne 0x140031f4e
xor edx, edx
lea r9, [0x14000b160]
lea rcx, [0x14000b140]
lea r8d, [rdx + 4]
mov qword [rsp + 0x20], rbx
call r10
test eax, eax
jns 0x140031f48
and qword [rbx], 0
xor edx, edx
lea r9, [0x14000b160]
lea rcx, [0x14000b150]
lea r8d, [rdx + 4]
mov qword [rsp + 0x20], rbx
call qword [0x140049488]
test eax, eax
jns 0x140031f48
and qword [rbx], 0
cmp qword [rbx], 0
je 0x140031fa3
cmp qword [0x140049490], 0
jne 0x140031fa3
lea rcx, [0x14000aff8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140049490], rax
test rax, rax
je 0x140031fa3
lea rdx, [0x14000b008]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140049490]
lea rdx, [0x14000b020]
mov qword [0x140049498], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400494a0], rax
add rsp, 0x30
pop rbx
ret
Function at 0x140031ffc
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rbx, rcx
xor edi, edi
cmp byte [rcx + 0x18], dil
jne 0x14003202b
call fcn.140031ce8
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400320cc
test dword [rax + 0x18], 0x30000000
je 0x140032055
mov r8, qword [rax + 8]
mov rdx, rsi
mov rcx, rbx
call fcn.140032a48
jmp 0x140032135
mov rbp, qword [rax + 8]
lea r9, [rbx + 0x20]
cmp qword [r9], rdi
jne 0x14003206f
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x1c]
call fcn.14003e690
mov ebx, 0x38
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x68], 1
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
call fcn.14003e690
lea r9, [rsp + 0x38]
mov r8d, 0xd
mov rdx, rbp
mov rcx, rbx
call fcn.14003e690
test rax, rax
setne al
jmp 0x140032135
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MFC42.dll_CControlBar::CControlBar]
nop
mov r8, rsi
lea rdx, [0x140002eb8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.MFC42.dll_CPropertySection::SetFormatID]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, qword [rsp + 0x80]
lea rdx, [0x140002ebc]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
seta bl
lea rcx, [rsp + 0x80]
call qword [sym.imp.MFC42.dll_CDocObjectServer::XOleDocument::AddRef]
mov al, bl
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140033d24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
test byte [rcx + 8], 1
mov rbx, rcx
jne 0x140033d62
add rcx, 0xc
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140033d5d
movzx ecx, word [rbx + 8]
shr eax, 2
xor eax, ecx
test al, 4
je 0x140033d5d
mov eax, 0xfffd
and cx, ax
mov word [rbx + 8], cx
jmp 0x140033d62
or word [rbx + 8], 2
movzx eax, word [rbx + 8]
add rsp, 0x20
pop rbx
ret