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

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, r8
mov rsi, rcx
mov rcx, qword [0x14017b818]
xor rcx, rsp
mov qword [rsp + 0x70], rcx
or r9d, 0x20019
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rdx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003c195
mov dword [rsp + 0x60], 0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x58], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14003c1b7
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi], 0
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14011a370
nop
add rsp, 0x78
pop rdi
pop rsi
ret
mov edx, dword [rsp + 0x60]
add edx, 0xffffffff
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003c19c
test edx, edx
js 0x14003c19c
mov dword [rsp + 0x6c], 0x104
lea r8, [rsi + 0xc]
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x6c]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14003c19c
jmp 0x14003c1a2

Function at 0x14003c2d0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 8]
lea edx, [rax - 1]
mov dword [rcx + 8], edx
test eax, eax
jle 0x14003c337
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003c337
mov dword [rsp + 0x54], 0x104
add rsi, 0xc
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x54]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14003c33b
jmp 0x14003c340
add rsi, 0xc
mov word [rsi], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14011a370
nop
add rsp, 0x60
pop rsi
ret
Function at 0x140042f40
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r13, r8
mov r14, rdx
mov r15, rcx
movzx eax, byte [r8]
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rcx, rax
movzx edx, byte [r8 + 1]
xor rdx, rcx
imul rdx, rax
movzx ecx, byte [r8 + 2]
xor rcx, rdx
imul rcx, rax
movzx edx, byte [r8 + 3]
xor rdx, rcx
imul rdx, rax
and rdx, qword [r15 + 0x30]
mov rax, qword [r15 + 8]
mov r8, qword [r15 + 0x18]
lea rdi, [rdx + rdx]
add rdi, 1
shl rdx, 4
mov rcx, qword [r8 + rdx]
mov ebx, dword [r13]
mov rdx, rcx
jmp 0x140042fc3
mov rdx, qword [rdx]
mov rsi, rcx
cmp rcx, rax
je 0x140042fd2
mov rsi, qword [r8 + rdi*8]
mov rsi, qword [rsi]
cmp rsi, rdx
je 0x140042feb
cmp dword [rdx + 0x10], ebx
jne 0x140042fc0
cmp rdx, rax
je 0x140042feb
mov qword [r14], rdx
mov byte [r14 + 8], 0
jmp 0x140043060
mov rdi, qword [rax]
mov r12, qword [rdi + 8]
mov ecx, 0x38
call fcn.14011a310
mov rsi, rax
test rdi, rdi
mov rax, r12
cmove rax, rsi
mov rcx, rdi
cmove rcx, rsi
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov eax, dword [r13]
mov dword [rsi + 0x10], eax
lea rcx, [rsi + 0x18]
call fcn.140028890
mov rax, qword [r15 + 0x10]
movabs rcx, 0x492492492492491
cmp rax, rcx
je 0x140043073
add rax, 1
mov qword [r15 + 0x10], rax
mov qword [rdi + 8], rsi
mov qword [r12], rsi
mov rax, qword [r15 + 8]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
mov rcx, r15
mov rdx, r14
call fcn.140043090
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.list_T__too_long
call fcn.14011be50
ud2
Function at 0x140044720
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0x103
ja 0x14002ffaa
cmp qword [rdi + 0x10], 0x103
ja 0x14002ffaa
cmp qword [rdi + 0x18], 7
mov rdx, rdi
jbe 0x14002ff37
mov rdx, qword [rdi]
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14002ff44
mov rcx, qword [rsi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bpl, 1
test eax, eax
jne 0x14002ffac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [rsi + 0x18], 7
mov rcx, rsi
jbe 0x14002ff6c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002ffa2
and eax, 0x10
je 0x14002ffa2
mov bpl, 1
mov r8b, 1
xor r9d, r9d
mov rcx, rsi
mov rdx, rdi
call fcn.14002e700
test al, al
je 0x14002ffa2
mov dl, 1
mov rcx, rsi
call fcn.14002e210
test al, al
jne 0x14002ffac
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebp, ebp
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.14002b4f0
test al, al
jne 0x140044741
mov rcx, rsi
call fcn.14002b4f0
test al, al
je 0x14004474a
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x14002ff00

Function at 0x140044d30
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov r13, rdx
mov rsi, rcx
test rdx, rdx
je 0x140044d67
cmp qword [r13 + 0x18], 0x10
mov rax, r13
jb 0x140044d5c
mov rax, qword [r13]
mov qword [r13 + 0x10], 0
mov byte [rax], 0
mov rcx, rsi
call fcn.14002b4f0
test al, al
jne 0x140044e8a
lea rdx, [0x14014f800]
mov rcx, rsi
call fcn.14002f370
mov r15, rax
test rax, rax
je 0x140044e8a
mov ecx, 0x10000
call fcn.14011a3b0
mov r12, rax
mov edx, 1
mov r8d, 0x10000
mov rcx, rax
mov r9, r15
call fcn.14012a190
mov rbx, rax
test rax, rax
je 0x140044e7a
xor esi, esi
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
mov rdi, r14
sub rdi, rsi
test r13, r13
je 0x140044e0b
cmp rdi, rbx
mov r8, rbx
cmovb r8, rdi
mov rcx, qword [r13 + 0x10]
mov rax, qword [r13 + 0x18]
mov rdx, rax
sub rdx, rcx
cmp rdx, r8
jae 0x140044e20
mov qword [rsp + 0x20], r8
mov rcx, r13
mov rdx, r8
mov r9, r12
call fcn.1400096d0
cmp rdi, rbx
jae 0x140044e55
jmp 0x140044e8e
mov r15, r14
lea rbp, [rcx + r8]
mov qword [r13 + 0x10], rbp
mov r14, r13
cmp rax, 0x10
jb 0x140044e38
mov r14, qword [r13]
add rcx, r14
mov rdx, r12
call fcn.14011d3a0
mov byte [r14 + rbp], 0
mov r14, r15
mov r15, qword [rsp + 0x30]
cmp rdi, rbx
jb 0x140044e8e
add rsi, rbx
mov edx, 1
mov r8d, 0x10000
mov rcx, r12
mov r9, r15
call fcn.14012a190
mov rbx, rax
test rax, rax
jne 0x140044dd0
mov rcx, r15
call fcn.14012a260
test eax, eax
sete dil
jmp 0x140044e90
xor edi, edi
jmp 0x140044ea0
xor edi, edi
mov rcx, r15
call fcn.140129e90
mov rcx, r12
call fcn.14011a3a0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, 0xffffffffffffffff
jmp 0x140044d30
Function at 0x140044ec0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r8
mov r13, rdx
mov rsi, rcx
test rdx, rdx
je 0x140044d67
cmp qword [r13 + 0x18], 0x10
mov rax, r13
jb 0x140044d5c
mov rax, qword [r13]
mov qword [r13 + 0x10], 0
mov byte [rax], 0
mov rcx, rsi
call fcn.14002b4f0
test al, al
jne 0x140044e8a
lea rdx, [0x14014f800]
mov rcx, rsi
call fcn.14002f370
mov r15, rax
test rax, rax
je 0x140044e8a
mov ecx, 0x10000
call fcn.14011a3b0
mov r12, rax
mov edx, 1
mov r8d, 0x10000
mov rcx, rax
mov r9, r15
call fcn.14012a190
mov rbx, rax
test rax, rax
je 0x140044e7a
xor esi, esi
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
mov rdi, r14
sub rdi, rsi
test r13, r13
je 0x140044e0b
cmp rdi, rbx
mov r8, rbx
cmovb r8, rdi
mov rcx, qword [r13 + 0x10]
mov rax, qword [r13 + 0x18]
mov rdx, rax
sub rdx, rcx
cmp rdx, r8
jae 0x140044e20
mov qword [rsp + 0x20], r8
mov rcx, r13
mov rdx, r8
mov r9, r12
call fcn.1400096d0
cmp rdi, rbx
jae 0x140044e55
jmp 0x140044e8e
mov r15, r14
lea rbp, [rcx + r8]
mov qword [r13 + 0x10], rbp
mov r14, r13
cmp rax, 0x10
jb 0x140044e38
mov r14, qword [r13]
add rcx, r14
mov rdx, r12
call fcn.14011d3a0
mov byte [r14 + rbp], 0
mov r14, r15
mov r15, qword [rsp + 0x30]
cmp rdi, rbx
jb 0x140044e8e
add rsi, rbx
mov edx, 1
mov r8d, 0x10000
mov rcx, r12
mov r9, r15
call fcn.14012a190
mov rbx, rax
test rax, rax
jne 0x140044dd0
mov rcx, r15
call fcn.14012a260
test eax, eax
sete dil
jmp 0x140044e90
xor edi, edi
jmp 0x140044ea0
xor edi, edi
mov rcx, r15
call fcn.140129e90
mov rcx, r12
call fcn.14011a3a0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, 0xffffffffffffffff
jmp 0x140044d30
Function at 0x140045e40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x140045ffc
cmp byte [rsi + 0x71], 0
je 0x140045ffc
mov rax, qword [rsi]
mov edx, 0xffffffff
mov rcx, rsi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140045fb2
movaps xmm0, xmmword [reloc.OLEAUT32.dll_VariantClear]
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x38], 0
lea r14, [rsi + 0x74]
mov eax, 0xf
xor r8d, r8d
mov r9d, 8
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x28]
jmp 0x140045edf
mov rax, qword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
cmp rax, 0xf
cmovbe r8, r15
mov rcx, qword [rsi + 0x68]
add r9, r8
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
mov rdx, r14
call qword [rax + 0x40]
mov dil, 1
test eax, eax
je 0x140045f10
cmp eax, 1
je 0x140045f14
jmp 0x140045fb6
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
cmp qword [rsp + 0x48], 0xf
mov rcx, r15
jbe 0x140045f29
mov rcx, qword [rsp + 0x30]
sub rbx, rcx
je 0x140045f47
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8, rbx
call fcn.1401272a0
cmp rbx, rax
jne 0x140045fbb
cmp byte [rsi + 0x71], 0
je 0x140045fbd
test rbx, rbx
jne 0x140045ed0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
sub rdx, rax
cmp rdx, 8
jae 0x140045f89
mov byte [rsp + 0x20], 0
mov edx, 8
mov r9d, 8
mov rcx, r15
call fcn.140008ff0
jmp 0x140045ed0
lea rdx, [rax + 8]
mov qword [rsp + 0x40], rdx
mov rdx, r15
cmp rcx, 0xf
jbe 0x140045fa0
mov rdx, qword [rsp + 0x30]
mov qword [rdx + rax], 0
mov byte [rdx + rax + 8], 0
jmp 0x140045ed0
xor edi, edi
jmp 0x140045ffc
cmp eax, 3
je 0x140045fbd
xor edi, edi
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140045ffc
mov rcx, qword [rsp + 0x30]
add rax, 1
cmp rax, 0x1000
jb 0x140045ff7
test cl, 0x1f
jne 0x140046019
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x140046019
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x140046019
call fcn.14011a350
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011a370
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140120f80
ud2
Function at 0x140046380
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x18], 7
jbe 0x1400463a7
mov rdi, qword [rdi]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x1400464d4
mov r14d, ebx
cmp ebx, 0x1000
jb 0x1400463e0
lea rcx, [r14 + 0x27]
call fcn.14011a310
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400463eb
mov rcx, r14
call fcn.14011a310
mov rsi, rax
xor edx, edx
mov rcx, rsi
mov r8, r14
call fcn.14011d800
mov edx, dword [rsp + 0x28]
mov rcx, rdi
mov r8d, ebx
mov r9, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400464a3
mov qword [rsp + 0x30], 0
lea rdx, str.VarFileInfoTranslation
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400464a3
mov r15, qword [rsp + 0x30]
test r15, r15
je 0x1400464a3
add r14, rsi
mov ecx, 0x38
call fcn.14011a310
mov rdi, rax
mov eax, dword [r15]
lea rcx, [0x14014f820]
mov qword [rdi], rcx
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x20], rsi
mov dword [rdi + 0x28], eax
mov qword [rsp + 0x30], 0
lea rdx, [0x140149b10]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400464f2
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x30], rax
jmp 0x1400464d6
test rsi, rsi
je 0x1400464d4
mov rcx, rsi
cmp ebx, 0x1000
jb 0x1400464cf
test sil, 0x1f
jne 0x1400464fa
mov rcx, qword [rsi - 8]
cmp rcx, rsi
jae 0x1400464fa
add rsi, 0xfffffffffffffff8
sub rsi, rcx
cmp rsi, 0x20
jae 0x1400464fa
call fcn.14011a350
xor edi, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011a370
mov rax, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
mov qword [rdi + 0x30], rax
jmp 0x1400464d6
call fcn.140120f80
ud2
Function at 0x140046990
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov r15, r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx ebp, word [rcx + 0x2a]
movzx r14d, word [rcx + 0x28]
mov r12, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call r12
mov esi, eax
movzx ebx, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call r12
mov r12d, eax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r14d
lea r9, str.StringFileInfo_04x_04x_ls
lea rbp, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rbp
call fcn.140024640
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rbp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140046a43
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x140046b65
movzx eax, si
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140024640
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140046aa3
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x140046b65
mov qword [rsp + 0x30], r13
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140024640
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140046b04
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x140046b65
movzx eax, r12w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
lea rsi, [rsp + 0x50]
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.140024640
mov qword [rsp + 0x48], 0
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140046bd9
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x140046bd9
mov rcx, rbp
call fcn.140120930
mov rsi, rax
mov rax, qword [r15 + 0x18]
cmp rax, rsi
jae 0x140046b89
mov rcx, r15
mov rdx, rsi
mov r9, rbp
call fcn.140005da0
jmp 0x140046bb0
mov rdi, r15
cmp rax, 8
jb 0x140046b95
mov rdi, qword [r15]
mov qword [r15 + 0x10], rsi
mov r8, rsi
add r8, rsi
mov rcx, rdi
mov rdx, rbp
call fcn.14011d3a0
mov word [rdi + rsi*2], 0
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
jmp 0x140046bb3
Function at 0x14004ec80
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov rax, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14004ec91
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.taskbarpin
xor ecx, ecx
xor r9d, r9d
mov r8, rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg al
add rsp, 0x38
ret

Function at 0x14004ecd0
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov rax, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14004ece1
mov rax, qword [rax]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.taskbarunpin
xor ecx, ecx
xor r9d, r9d
mov r8, rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg al
add rsp, 0x38
ret
Function at 0x14004f540
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rdx
mov rdi, rcx
movdqu xmm0, xmmword [rcx]
movdqa xmmword [rsp + 0x40], xmm0
lea rbx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400405a0
cmp qword [rsp + 0x70], 7
jbe 0x14004f58b
mov rbx, qword [rsp + 0x58]
xor edx, edx
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
mov rax, qword [rsp + 0x70]
cmp rax, 8
jb 0x14004f5ef
add rax, 1
js 0x14004f7a8
mov rcx, qword [rsp + 0x58]
add rax, rax
cmp rax, 0x1000
jb 0x14004f5ea
test cl, 0x1f
jne 0x14004f7a8
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004f7a8
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14004f7a8
call fcn.14011a350
test ebp, ebp
je 0x14004f73a
mov r14b, 1
test rsi, rsi
je 0x14004f78a
mov ecx, ebp
add rcx, rcx
call fcn.14011a3b0
mov rbx, rax
movdqu xmm0, xmmword [rdi]
movdqa xmmword [rsp + 0x30], xmm0
lea rdi, [rsp + 0x58]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400405a0
cmp qword [rsp + 0x70], 7
jbe 0x14004f639
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
mov rdx, rbx
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rax, qword [rsp + 0x70]
cmp rax, 8
jb 0x14004f69c
add rax, 1
js 0x14004f7a8
mov rcx, qword [rsp + 0x58]
add rax, rax
cmp rax, 0x1000
jb 0x14004f697
test cl, 0x1f
jne 0x14004f7a8
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004f7a8
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14004f7a8
call fcn.14011a350
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.140120930
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x58]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140040600
mov rax, qword [rsi + 0x18]
cmp rdi, rsi
je 0x14004f73f
cmp rax, 0x10
jb 0x14004f70d
mov rcx, qword [rsi]
add rax, 1
cmp rax, 0x1000
jb 0x14004f708
test cl, 0x1f
jne 0x14004f7a8
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004f7a8
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14004f7a8
call fcn.14011a350
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov eax, 0xf
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
jmp 0x14004f779
xor r14d, r14d
jmp 0x14004f78a
cmp rax, 0x10
jb 0x14004f779
mov rcx, qword [rsp + 0x58]
add rax, 1
cmp rax, 0x1000
jb 0x14004f774
test cl, 0x1f
jne 0x14004f7a8
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14004f7a8
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14004f7a8
call fcn.14011a350
mov qword [rsp + 0x70], 0xf
mov rcx, rbx
call fcn.14011a3a0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14011a370
mov eax, r14d
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.140120f80
ud2
Function at 0x14004f880
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x60], rax
test r9d, r9d
js 0x14004f917
lea rcx, [rsp + 0x50]
call fcn.140047e90
call fcn.14006a6b0
test al, al
je 0x14004f8d3
movsxd r9, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x50]
mov r8, rbx
call fcn.14006a750
mov rax, rdi
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], edi
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004f91e
mov esi, dword [rsp + 0x2c]
jmp 0x14004f92f
mov esi, 0xffffffff
jmp 0x14004f939
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x50]
call fcn.14006a720
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004f960
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov esi, r9d
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.140047e90
call fcn.14006a6b0
test al, al
je 0x14004f9ae
movsxd r9, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x50]
mov r8, rbx
call fcn.14006a750
mov rax, rdi
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], edi
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rcx, qword [rbx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x2c]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x50]
call fcn.14006a720
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14011a370
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004fa20
Capabilities:
Get file size

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14017b818]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.140047e90
call fcn.14006a6b0
test al, al
je 0x14004fa61
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x28]
xor r9d, r9d
mov r8, rsi
call fcn.14006a750
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.14006a720
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14011a370
mov rax, rsi
add rsp, 0x40
pop rsi
ret