joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011914
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rcx], 0
lea rdi, [rbp - 0x20]
and dword [rbp + 0x20], 0
mov r15, rcx
and qword [rdx], 0
xor eax, eax
mov word [rbp + 0x24], 0x500
mov ebx, 8
mov r14, rdx
mov edx, ebx
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea r8d, [rbx + 0x20]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x140011986
mov edi, 0xc000009a
jmp 0x140011ad9
mov ecx, 1
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
mov ecx, 2
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
add eax, 0x18
mov edx, ebx
add edi, eax
mov rax, qword gs:[0x30]
mov r8d, edi
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x1400119d1
mov edi, 0xc000009a
jmp 0x140011abd
mov r8d, 2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
mov edi, eax
test eax, eax
js 0x140011aa1
mov r8b, 1
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edi, 0x10000000
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x12
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r8b, 2
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rbp - 0x20]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
mov edi, eax
test eax, eax
js 0x140011aa1
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov edi, eax
test eax, eax
jns 0x140011add
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
xor esi, esi
mov qword [r15], rsi
mov eax, edi
mov qword [r14], rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x140011e80
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
xor edi, edi
mov rsi, r8
mov r14, rcx
mov r15d, edi
mov r9, qword [rax + 0x60]
mov rbp, qword [r9 + 0x20]
mov r9, qword [r8 + 0x28]
mov rax, r9
test r9, r9
jne 0x140011ec9
mov r9d, edi
jmp 0x140011ed5
add r9, 2
cmp word [r9], di
jne 0x140011ec5
sub r9, rax
sar r9, 1
mov rax, qword [r8 + 0x30]
mov rcx, rax
test rax, rax
jne 0x140011eea
mov rax, rdi
jmp 0x140011ef5
add rax, 2
cmp word [rax], di
jne 0x140011ee6
sub rax, rcx
sar rax, 1
lea rcx, [rax + r9]
movzx eax, word [rbp + 0x38]
lea rbx, [rax + rcx*2]
test dl, dl
je 0x14001200f
mov rcx, r14
call fcn.14000d04c
test eax, eax
jne 0x140011f27
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400120b6
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1400120ab
movzx edx, word [rbp + 0x38]
mov rcx, rax
mov r8, qword [rbp + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.1400014a4
lea rdx, [0x14004504c]
call fcn.140001400
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
mov rbp, rax
call fcn.140001400
mov r8d, dword [rsi + 0x38]
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call fcn.1400121f0
test eax, eax
je 0x140011fee
mov word [rbp], di
mov rcx, rbx
mov rdx, qword [rsi + 0x30]
call fcn.140001400
mov r8d, dword [rsi + 0x3c]
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call fcn.1400121f0
test eax, eax
je 0x140011fee
mov eax, dword [rsi + 0x4c]
lea rcx, [rsi + 8]
mov r8d, dword [rsi + 0x48]
mov r9, rsi
mov rdx, qword [rsi + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.140011d40
mov r15d, eax
test eax, eax
jne 0x140011fee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400120ab
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x1400120ab
movzx edx, word [rbp + 0x38]
mov rcx, rax
mov r8, qword [rbp + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.1400014a4
lea rdx, [0x14004504c]
call fcn.140001400
mov rdx, qword [rsi + 0x28]
mov rcx, r14
mov rbx, rax
call fcn.140001400
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx], di
mov rcx, r14
mov rdx, qword [rsi + 0x30]
call fcn.140001400
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15d, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400120d0
Capabilities:
Access pe header

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 r12
push r14
push r15
sub rsp, 0x30
mov edi, r9d
mov r12, r8
mov r15d, edx
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, rax
test rax, rax
je 0x1400121cf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, r14
call section..text
mov rbp, rax
test rax, rax
je 0x1400121cf
mov rdx, r12
mov rcx, rax
call fcn.140001198
test rax, rax
je 0x1400121be
sub eax, ebp
mov dword [rsi + 0x28], eax
test edi, edi
je 0x140012150
mov eax, 0xdfff
and word [rsi + 0x16], ax
lea r8d, [r15 + 1]
mov r9, r14
shr r8d, 1
mov edx, ebx
je 0x140012178
movzx eax, word [r9]
lea r9, [r9 + 2]
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
add r8d, 0xffffffff
jne 0x14001215e
mov edi, edx
mov rcx, r14
shr edi, 0x10
add di, dx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
test rax, rax
je 0x1400121ad
movzx eax, word [rax + 0x58]
cmp di, ax
adc ax, bx
sub di, ax
movzx eax, word [rcx + 0x5a]
cmp di, ax
adc ax, bx
sub di, ax
jmp 0x1400121b0
movzx edi, bx
movzx eax, di
mov ebx, 1
add eax, r15d
mov dword [rsi + 0x58], eax
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400122a4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov qword [rsp + 0x20], r9
xor eax, eax
lea rdi, [rsp + 0x30]
mov esi, edx
mov r9, r8
mov ecx, 0x410
lea r8, [0x140045538]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.1400032c4
cmp dword [rsp + 0x470], 0
je 0x1400122fe
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140012313
test rbx, rbx
je 0x140012313
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400121f0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140012328
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400123b7
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x1400123ae
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001279c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x20]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], 8
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001286a
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
and qword [rsp + 0x20], rbx
lea rdx, str..Translated
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012860
cmp dword [rbp + 0x18], 8
jne 0x140012860
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov r8d, dword [rbp + 0x10]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x140012860
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str..Translated
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x1400129e0
Capabilities:
Get windows directory from kuser_shared_data
Load ntoskrnl

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x470
xor ebx, ebx
lea r8, str._ws_system32_ws
and qword [rax + 8], rbx
lea rcx, [rsp + 0x60]
lea rax, str.ntoskrnl.exe
mov r9d, 0x7ffe0030
mov edx, 0x208
mov qword [rsp + 0x20], rax
xor r15d, r15d
call fcn.1400032c4
xor edx, edx
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor r12d, r12d
mov rsi, rax
test rax, rax
setne r12b
test rax, rax
je 0x140012aeb
call fcn.1400116b4
mov rbp, rax
test rax, rax
je 0x140012aeb
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140014030
test eax, eax
je 0x140012aeb
lea rdx, [rsp + 0x4a0]
lea rcx, str.MiFillPteHierarchy
call fcn.1400140b4
test eax, eax
je 0x140012aeb
mov r14, qword [rsp + 0x4a0]
lea rdi, [rsp + 0x30]
xor eax, eax
lea ecx, [rbx + 0x25]
rep stosb byte [rdi], al
mov edi, ebx
lea rdx, [rsp + 0x30]
add rdi, r14
mov rcx, rdi
call fcn.140004d0c
test dword [rsp + 0x51], 0x1000
jne 0x140012aeb
movzx eax, byte [rsp + 0x30]
cmp al, 0xa
jne 0x140012ad3
mov ecx, 0xb849
cmp word [rdi], cx
je 0x140012adc
add ebx, eax
cmp ebx, 0x40
jae 0x140012aeb
jmp 0x140012aa4
mov eax, ebx
lea r15, [r14 + 2]
sub rax, rsi
add rax, rbp
add r15, rax
test r12d, r12d
je 0x140012af9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x470]
mov rax, r15
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140014528
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov r8, rcx
test rcx, rcx
jne 0x140014549
mov r8d, esi
jmp 0x14001455e
cmp word [rcx], si
je 0x140014558
add r8, 2
cmp word [r8], si
jne 0x14001454e
sub r8, rbx
sar r8, 1
mov rax, qword gs:[0x30]
lea r8, [r8*2 + 0x208]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140014595
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400145b4
mov r9d, 0x7ffe0030
mov qword [rsp + 0x20], rbx
lea r8, str._ws_system32drivers_ws.sys
mov edx, 0x208
mov rcx, rdi
call fcn.1400032c4
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001fb90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f98c
Function at 0x140025b04
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 0x140025b34
xor eax, eax
jmp 0x140025bf7
mov rbp, rbx
cmp word [rax], si
je 0x140025b59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140025b40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140025b3c
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.140025a24
movsxd r14, eax
test eax, eax
jne 0x140025b97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140025b2d
mov rcx, r14
call fcn.14002282c
mov rdi, rax
test rax, rax
jne 0x140025bb0
xor ecx, ecx
call fcn.1400209f4
jmp 0x140025b8c
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.140025a24
test eax, eax
jne 0x140025be1
mov rcx, rdi
call fcn.1400209f4
jmp 0x140025beb
xor ecx, ecx
call fcn.1400209f4
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 0x140029520
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140029536
mov al, 1
jmp 0x140029596
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140029547
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140029594
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002636c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140029594
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140029594
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140029594
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140029596
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14002a640
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140024af4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002a6ca
cmp byte [rbp - 0x21], r15b
je 0x14002a6c5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002a700
call fcn.140020c44
test eax, eax
jne 0x14002a6ec
cmp byte [rbp - 0x21], r15b
je 0x14002a6e4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002a700
cmp byte [rbp - 0x21], r15b
je 0x14002a6fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400240d4
test eax, eax
jne 0x14002a7a0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140024af4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002a73f
cmp byte [rbp - 0x21], r15b
je 0x14002a774
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002a774
call fcn.140020c44
test eax, eax
jne 0x14002a760
cmp byte [rbp - 0x21], r15b
je 0x14002a759
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002a774
cmp byte [rbp - 0x21], r15b
je 0x14002a771
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400240d4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002a7a0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002a7a3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002a7b1
mov rcx, rdi
call fcn.1400209f4
cmp byte [rbp + 0x3f], r15b
je 0x14002a7c0
mov rcx, qword [rbp + 0x27]
call fcn.1400209f4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14065e108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14065e28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14065e139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065e11f
add dl, dl
jne 0x14065e146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065e1a6
xor eax, eax
add dl, dl
jne 0x14065e155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065e25d
add dl, dl
jne 0x14065e166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065e19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065e12e
mov eax, 1
add dl, dl
jne 0x14065e1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065e1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065e1ab
sub eax, ebx
mov ebx, 1
jne 0x14065e1fc
mov ecx, 1
add dl, dl
jne 0x14065e1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065e1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065e1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065e12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065e218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065e225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065e20d
cmp eax, 0x7d00
jae 0x14065e24b
cmp eax, 0x500
jb 0x14065e246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065e12e
cmp eax, 0x7f
ja 0x14065e24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065e12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065e282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14065e12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003d13
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003d5a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003d55
nop
cmp rbx, rcx
jae 0x140003d5a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003d40
cmp rbx, rcx
jb 0x140003d5e
xor eax, eax
jmp 0x140003d6a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011620
Capabilities:
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r14
mov rax, qword [0x1402c3930]
xor rax, rbp
mov qword [rbp + 8], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14001175f
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x14001175f
lea rcx, [rbp]
call fcn.140011860
mov rcx, rdi
xor esi, esi
call fcn.140011800
test eax, eax
je 0x140011752
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ecx, 0x2002
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x14001174c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdi, rax
call fcn.140002a40
mov r9d, eax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1400116c7
inc ecx
cmp ecx, 0x3fffffff
jle 0x1400116df
mov rax, rsi
jmp 0x140011718
movsxd rax, ecx
lea r8d, [rcx + rcx]
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400116fc
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401d9d20
sub rsp, rcx
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140009d10
sub rdi, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdi + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140011720
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
setne sil
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rcx, [rbp]
call fcn.140011810
mov eax, esi
jmp 0x140011761
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.1401d92b0
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret

Function at 0x140011790
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
xor ebx, ebx
call fcn.140011800
test eax, eax
je 0x1400117f0
lea ecx, [rbx + 1]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x1400117e5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400117e5
mov rdx, rax
mov rcx, rsi
call fcn.140002ba0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret