joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x454277
movzx edx, byte [rax]
test edx, edx
jne 0x454134
nop dword [rax]
test r8b, r8b
jne 0x454134
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x454147
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x454237
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x454225
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x454217
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45419d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x4541e0
mov eax, 1
cmp rax, rbx
ja 0x4541cb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00467d00
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45420f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x4541d3
mov rcx, r11
mov eax, r12d
jmp 0x4541a2
mov rcx, rbx
call fcn.00467c40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00467c40
mov eax, r8d
mov rcx, rbx
call fcn.00467d00
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45426d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x454230
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45414d
mov eax, edx
mov rcx, rbx
call fcn.00467c40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00467c40
nop
int3

Function at 0x45a120
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45a1d5
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.00457da0
nop
test bl, bl
je 0x45a1cf
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x0045a220]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.00465840
xorps xmm15, xmm15
mov r14, qword [0x005ebda0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00465960
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045a120
Function at 0x45d140
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45d1ef
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x0045d240]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00465840
xorps xmm15, xmm15
mov r14, qword [0x005ebda0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00465960
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0045d140
Function at 0x467760
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403dc3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409be0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00465960
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403da0
cmp byte [0x005ebb8a], 0
je 0x467775
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x4649a0
jmp 0x403da0

Function at 0x467780
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ebe80]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005ebb8a], 0
je 0x4677b5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005ec1a0]
aesenc xmm0, xmmword [0x005ec1b0]
aesenc xmm0, xmmword [0x005ec1c0]
movq rax, xmm0
ret
jmp 0x409e00

Function at 0x4677c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ebe80]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005ebb8a], 0
je 0x4677f6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005ec1a0]
aesenc xmm0, xmmword [0x005ec1b0]
aesenc xmm0, xmmword [0x005ec1c0]
movq rax, xmm0
ret
jmp 0x409e60

Function at 0x4695a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x4695d4
mov rcx, 0x28
jmp 0x4695df
shl rcx, 3
add rcx, 0x1480
mov qword [0x005ebda0], rcx
pop rbp
ret
Function at 0x474d00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x474dca
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403320
xorps xmm15, xmm15
mov r14, qword [0x005ebda0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x474daf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004a4f20]
xor ebx, ebx
mov rcx, rdx
call fcn.0044d140
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00475ae0
inc rbx
cmp rcx, rbx
jae 0x474d9e
mov edi, 1
lea rsi, [0x004a4f20]
call fcn.0044d220
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004e1588]
lea rsi, [0x004e10d8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00465960
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00474d00

Function at 0x48f920
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49005f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x48f94d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x48fbd1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x48fbfd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004e26c0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004a4e20]
lea rbx, [0x004e14c0]
call fcn.00436480
inc rax
cmp rax, r8
jge 0x48fc22
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x48fc57
lea rdi, [0x004a4ea0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x48f943
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x48fc3b
jmp 0x48fc10
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00465960
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0048f920

Function at 0x490200
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x490217
inc rax
cmp rax, 4
jge 0x49022f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x490214
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x490240
inc rax
cmp rax, 4
jge 0x49024e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x490277
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49025b
jmp 0x49023d
Function at 0x1400047b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 8]
lea rbx, [rax*4 + 2]
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1400c67c0]
nop dword [rax + rax]
mov edx, dword [rcx + r14*4 + 0x10]
cmp edx, eax
je 0x140004827
mov edx, dword [rcx + r14*4 + 0x14]
cmp edx, eax
je 0x140004818
mov edx, dword [rcx + r14*4 + 0x18]
cmp edx, eax
je 0x14000481d
mov edx, dword [rcx + r14*4 + 0x1c]
cmp edx, eax
je 0x140004823
add r14, 4
cmp r14, 0x80
jne 0x1400047e0
mov eax, 0xffffffff
jmp 0x14000482a
inc r14
jmp 0x140004827
add r14, 2
jmp 0x140004827
add r14, 3
mov eax, r14d
shl rax, 4
mov rdx, qword [rax + rcx + 0x218]
mov r8, qword [rax + rcx + 0x210]
add r8, rdx
add rbx, rdx
mov qword [rax + rcx + 0x218], rbx
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.1400030a0
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov word [rdi + rax], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140004922
mov rdi, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140004922
mov eax, dword [rsp + 0x40]
mov dword [rsi + 0xc], eax
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rsi + 0xc]
mov rdx, qword [rsi]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000491a
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rsi + 0xc]
jne 0x140004928
mov dword [rsi + 0xc], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
test eax, eax
jne 0x14000492a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000492a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140004940
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rcx + 8]
lea r14, [rax*4 + 2]
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1400c67c0]
mov edx, dword [rcx + r15*4 + 0x10]
cmp edx, eax
je 0x1400049b7
mov edx, dword [rcx + r15*4 + 0x14]
cmp edx, eax
je 0x1400049a8
mov edx, dword [rcx + r15*4 + 0x18]
cmp edx, eax
je 0x1400049ad
mov edx, dword [rcx + r15*4 + 0x1c]
cmp edx, eax
je 0x1400049b3
add r15, 4
cmp r15, 0x80
jne 0x140004970
mov eax, 0xffffffff
jmp 0x1400049ba
inc r15
jmp 0x1400049b7
add r15, 2
jmp 0x1400049b7
add r15, 3
mov eax, r15d
shl rax, 4
mov rdx, qword [rax + rcx + 0x218]
mov r8, qword [rax + rcx + 0x210]
add r8, rdx
add r14, rdx
mov qword [rax + rcx + 0x218], r14
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400030a0
mov rbx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov word [rbx + rax], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0x40000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140004a8a
mov r14, rax
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rcx, r14
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140004a82
cmp dword [rsp + 0x3c], esi
jne 0x140004a90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
test eax, eax
jne 0x140004a92
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004a92
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140005f60
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1028
call fcn.140091330
sub rsp, rax
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1400060ae
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [rsp + 0x20]
mov ecx, 0x800
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400060ef
cmp word [rsp + 0x20], 0
je 0x140005fcf
xor ebp, ebp
mov eax, 1
nop word cs:[rax + rax]
add ebp, 2
mov ecx, eax
inc eax
cmp word [rsp + rcx*2 + 0x20], 0
jne 0x140005fc0
mov ecx, ebp
mov rdx, qword [rbx + 8]
mov rax, qword [rbx]
add rax, rdx
lea rdx, [rdx + rcx*2]
inc rdx
mov qword [rbx + 8], rdx
mov qword [rsi], rax
mov qword [rsi + 8], 0
test ebp, ebp
je 0x140006105
add rcx, rsp
add rcx, 0x20
xor r8d, r8d
jmp 0x14000602a
mov byte [rax + rdx], r8b
mov r8d, 1
add r8, rdx
add rdi, 2
cmp rdi, rcx
jae 0x1400060a8
mov rdx, r8
movzx r8d, word [rdi]
cmp r8w, 0x7f
jbe 0x140006010
movzx r9d, r8w
cmp r9d, 0x7ff
ja 0x140006070
mov r9d, r8d
shr r9d, 6
or r9b, 0xc0
mov byte [rax + rdx], r9b
and r8b, 0x3f
or r8b, 0x80
mov byte [rax + rdx + 1], r8b
mov r8d, 2
jmp 0x14000601a
mov r10d, r9d
shr r10d, 0xc
or r10b, 0xe0
mov byte [rax + rdx], r10b
shr r9d, 6
and r9b, 0x3f
or r9b, 0x80
mov byte [rax + rdx + 1], r9b
and r8b, 0x3f
or r8b, 0x40
mov byte [rax + rdx + 2], r8b
mov r8d, 3
jmp 0x14000601a
mov qword [rsi + 8], r8
jmp 0x140006105
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1400c67c0]
nop dword [rax]
mov edx, dword [rcx + rdi*4 + 0x10]
cmp edx, eax
je 0x140006123
mov edx, dword [rcx + rdi*4 + 0x14]
cmp edx, eax
je 0x140006114
mov edx, dword [rcx + rdi*4 + 0x18]
cmp edx, eax
je 0x140006119
mov edx, dword [rcx + rdi*4 + 0x1c]
cmp edx, eax
je 0x14000611f
add rdi, 4
cmp rdi, 0x80
jne 0x1400060c0
jmp 0x14000612f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rax, [rsp + 0x20]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov rax, rsi
add rsp, 0x1028
pop rbx
pop rbp
pop rdi
pop rsi
ret
inc rdi
jmp 0x140006123
add rdi, 2
jmp 0x140006123
add rdi, 3
mov eax, edi
mov edx, 0xffffffff
cmp rax, rdx
jne 0x140006156
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, byte [0x1400c71e0]
test cl, cl
je 0x14000616a
mov ecx, dword [0x1400c71e4]
cmp ecx, eax
jne 0x14000616a
lea rbx, [0x1400c71d0]
jmp 0x140005f80
shl rax, 4
lea rbx, [rax + rcx]
add rbx, 0x210
jmp 0x140005f80
xor ebx, ebx
jmp 0x140005f80
Function at 0x140007110
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rdx]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14000719f
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov edx, dword [rsi + 8]
shl edx, 2
or rdx, 2
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
je 0x140007195
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140007195
mov rbx, rax
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov r8, rax
call fcn.1400030a0
mov rax, qword [rsp + 0x28]
mov word [rbx + rax], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, 0xd
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetClipboardData]
mov sil, 1
test rax, rax
jne 0x140007197
xor esi, esi
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400071a1
xor esi, esi
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400071b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rcx], ymm0
vmovups ymmword [rcx + 0x18], ymm0
mov dword [rcx + 8], 1
xor ecx, ecx
vzeroupper
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14000732d
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
test rax, rax
je 0x140007327
mov rdi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140007327
mov rbx, rax
cmp word [rax], 0
je 0x140007308
mov eax, 1
xor edx, edx
xor r14d, r14d
nop word cs:[rax + rax]
mov ecx, eax
inc eax
add r14d, 0xfffffffe
add edx, 4
cmp word [rbx + rcx*2], 0
jne 0x140007230
mov rcx, rsi
call fcn.1400018f0
test r14d, r14d
je 0x140007317
neg r14d
mov rcx, rbx
add rcx, r14
xor r14d, r14d
jmp 0x14000728a
mov byte [rax + rdx], r8b
mov r14d, 1
add r14, rdx
add rbx, 2
cmp rbx, rcx
jae 0x14000731a
mov rdx, r14
movzx r8d, word [rbx]
cmp r8w, 0x7f
jbe 0x140007270
movzx r9d, r8w
cmp r9d, 0x7ff
ja 0x1400072d0
mov r9d, r8d
shr r9d, 6
or r9b, 0xc0
mov byte [rax + rdx], r9b
and r8b, 0x3f
or r8b, 0x80
mov byte [rax + rdx + 1], r8b
mov r14d, 2
jmp 0x14000727a
mov r10d, r9d
shr r10d, 0xc
or r10b, 0xe0
mov byte [rax + rdx], r10b
shr r9d, 6
and r9b, 0x3f
or r9b, 0x80
mov byte [rax + rdx + 1], r9b
and r8b, 0x3f
or r8b, 0x40
mov byte [rax + rdx + 2], r8b
mov r14d, 3
jmp 0x14000727a
xor r14d, r14d
mov rcx, rsi
xor edx, edx
call fcn.1400018f0
jmp 0x14000731a
xor r14d, r14d
mov dword [rsi + 0xc], r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140007340
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rdx + 8]
lea rbx, [rax*4 + 2]
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1400c67c0]
nop dword [rax + rax]
mov edx, dword [rcx + r14*4 + 0x10]
cmp edx, eax
je 0x1400073b7
mov edx, dword [rcx + r14*4 + 0x14]
cmp edx, eax
je 0x1400073a8
mov edx, dword [rcx + r14*4 + 0x18]
cmp edx, eax
je 0x1400073ad
mov edx, dword [rcx + r14*4 + 0x1c]
cmp edx, eax
je 0x1400073b3
add r14, 4
cmp r14, 0x80
jne 0x140007370
mov eax, 0xffffffff
jmp 0x1400073ba
inc r14
jmp 0x1400073b7
add r14, 2
jmp 0x1400073b7
add r14, 3
mov eax, r14d
shl rax, 4
mov rdx, qword [rax + rcx + 0x218]
mov r8, qword [rax + rcx + 0x210]
add r8, rdx
add rbx, rdx
mov qword [rax + rcx + 0x218], rbx
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400030a0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x1400073fe
mov rax, qword [rsp + 0x30]
mov word [rdx + rax], 0
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsi], xmm0
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140007452
mov rdi, rax
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140007452
mov rbx, rax
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsi], rax
mov dword [rsi + 8], 1
mov dword [rsi + 0xc], edi
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140007460
Capabilities:
Query or enumerate registry value
Set environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x48
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007563
mov dword [rsp + 0x3c], 0xc800
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1400c67c0]
nop dword [rax]
mov edx, dword [rcx + rsi*4 + 0x10]
cmp edx, eax
je 0x1400074f3
mov edx, dword [rcx + rsi*4 + 0x14]
cmp edx, eax
je 0x1400074e4
mov edx, dword [rcx + rsi*4 + 0x18]
cmp edx, eax
je 0x1400074e9
mov edx, dword [rcx + rsi*4 + 0x1c]
cmp edx, eax
je 0x1400074ef
add rsi, 4
cmp rsi, 0x80
jne 0x1400074b0
mov eax, 0xffffffff
jmp 0x1400074f5
inc rsi
jmp 0x1400074f3
add rsi, 2
jmp 0x1400074f3
add rsi, 3
mov eax, esi
shl rax, 4
mov rdx, qword [rax + rcx + 0x218]
mov rsi, qword [rax + rcx + 0x210]
add rsi, rdx
add rdx, 0xc800
mov qword [rax + rcx + 0x218], rdx
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea rdx, str.Path
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140007563
lea rcx, str.PATH
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14000c700
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [rcx + 8]
lea rdi, [rax*4 + 2]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1400c67c0]
nop word cs:[rax + rax]
mov edx, dword [rcx + rbx*4 + 0x10]
cmp edx, eax
je 0x14000c773
mov edx, dword [rcx + rbx*4 + 0x14]
cmp edx, eax
je 0x14000c764
mov edx, dword [rcx + rbx*4 + 0x18]
cmp edx, eax
je 0x14000c769
mov edx, dword [rcx + rbx*4 + 0x1c]
cmp edx, eax
je 0x14000c76f
add rbx, 4
cmp rbx, 0x80
jne 0x14000c730
mov eax, 0xffffffff
jmp 0x14000c775
inc rbx
jmp 0x14000c773
add rbx, 2
jmp 0x14000c773
add rbx, 3
mov eax, ebx
shl rax, 4
mov rdx, qword [rax + rcx + 0x218]
mov r8, qword [rax + rcx + 0x210]
add r8, rdx
add rdi, rdx
mov qword [rax + rcx + 0x218], rdi
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400030a0
mov rdi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov word [rdi + rax], 0
xor esi, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000c834
mov rdi, rax
xor esi, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000c834
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14000c82e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [rsp + 0x38]
jmp 0x14000c83a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret