joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011799
Capabilities:
Set console window title

Disassembly:
jmp 0x18001d320
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
mov rax, qword [0x180032040]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x18003a229]
call fcn.18001196f
movzx eax, byte [0x180032759]
test eax, eax
jne 0x18001d401
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x18002d04c]
lea rdx, str.CONOUT_
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x18002d04c]
lea rdx, str.CONOUT_
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x18002d05c]
lea rdx, str.CONIN_
lea rcx, [rbp + 8]
call qword [sym.imp.ucrtbased.dll_freopen_s]
lea rcx, str.QuannolyWare
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov byte [0x180032759], 1
lea rcx, [rbp - 0x20]
lea rdx, [0x18002cb30]
call fcn.1800117d0
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.18001148d
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x180011951
Capabilities:
Write file on windows

Disassembly:
jmp 0x18001c840
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x180032040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x18003a193]
call fcn.18001196f
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x18001c8a6
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18001c8ad
mov al, 1
jmp 0x18001ca1d
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.1800112a3
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.1800112a3
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.180011771
movzx eax, al
test eax, eax
je 0x18001c910
xor al, al
jmp 0x18001ca1d
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x18001c983
cmp dword [rbp + 0x160], 1
je 0x18001c98e
cmp dword [rbp + 0x160], 3
je 0x18001ca0c
jmp 0x18001ca1b
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x18001c9de
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x18001c9de
xor al, al
jmp 0x18001ca1d
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18001c9f9
mov dword [rbp + 0x154], 1
jmp 0x18001ca03
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x18001ca1d
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18001ca1d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x18002c990]
call fcn.1800117d0
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.18001148d
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x1800119ba
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x180017520
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x18003a0fb]
call fcn.18001196f
xor eax, eax
cmp eax, 1
je 0x180017569
mov ecx, 0x2e
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x18001755c
call fcn.180011168
jmp 0x180017569
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18001753b
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x140003494
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400034de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400034de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400034de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400034de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400034de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400034e0
xor al, al
add rsp, 0x28
ret

Function at 0x14000d728
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000d524
Function at 0x1400135bc
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 0x1400135ec
xor eax, eax
jmp 0x1400136af
mov rbp, rbx
cmp word [rax], si
je 0x140013611
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400135f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400135f4
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.14000ee70
movsxd r14, eax
test eax, eax
jne 0x14001364f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400135e5
mov rcx, r14
call fcn.14000ee10
mov rdi, rax
test rax, rax
jne 0x140013668
xor ecx, ecx
call fcn.14000e198
jmp 0x140013644
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.14000ee70
test eax, eax
jne 0x140013699
mov rcx, rdi
call fcn.14000e198
jmp 0x1400136a3
xor ecx, ecx
call fcn.14000e198
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 0x1400178dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400178f2
mov al, 1
jmp 0x140017952
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017903
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140017950
mov ecx, dword [rcx + 0x18]
nop
call fcn.140013e24
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017950
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140017950
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140017950
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140017952
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400191c8
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.140011e00
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140019252
cmp byte [rbp - 0x21], r15b
je 0x14001924d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140019288
call fcn.14000e3e8
test eax, eax
jne 0x140019274
cmp byte [rbp - 0x21], r15b
je 0x14001926c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140019288
cmp byte [rbp - 0x21], r15b
je 0x140019285
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.140011c84
test eax, eax
jne 0x140019328
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011e00
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400192c7
cmp byte [rbp - 0x21], r15b
je 0x1400192fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400192fc
call fcn.14000e3e8
test eax, eax
jne 0x1400192e8
cmp byte [rbp - 0x21], r15b
je 0x1400192e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400192fc
cmp byte [rbp - 0x21], r15b
je 0x1400192f9
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.140011c84
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140019328
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001932b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140019339
mov rcx, rdi
call fcn.14000e198
cmp byte [rbp + 0x3f], r15b
je 0x140019348
mov rcx, qword [rbp + 0x27]
call fcn.14000e198
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 0x14001b880
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b8a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b8a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1406cb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406cb1df
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 0x1406cb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cb06f
add dl, dl
jne 0x1406cb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cb0f6
xor eax, eax
add dl, dl
jne 0x1406cb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406cb1ad
add dl, dl
jne 0x1406cb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406cb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406cb07e
mov eax, 1
add dl, dl
jne 0x1406cb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406cb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cb0fb
sub eax, ebx
mov ebx, 1
jne 0x1406cb14c
mov ecx, 1
add dl, dl
jne 0x1406cb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406cb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406cb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406cb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406cb15d
cmp eax, 0x7d00
jae 0x1406cb19b
cmp eax, 0x500
jb 0x1406cb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cb07e
cmp eax, 0x7f
ja 0x1406cb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406cb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406cb1d2
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 0x1406cb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x100009114
Capabilities:
Encode data using xor

Disassembly:
lea r13, [r11 + rax]
mov r15, 0x73
ror r14, 0x14
mov dil, byte [r13]
jge 0x100004bf7
and r10, 0x89
xorps xmm12, xmm11
xor dil, 0x42
sub r10, rsi
add r14, 0x1f
add dil, 0xb5
shr r15, 0xe
mov byte [r13], dil
nop
inc rax
xorps xmm5, xmm6
push r14
pop rsi
cmp rax, rbx
lea r14, [r14 + 0x9f]
mov r14, 0x96
jne 0x100004be4
xorps xmm0, xmm6
xor r14, rsi
mov rax, 0xdc
addps xmm15, xmm9
mov r10, 0xfc
subps xmm13, xmm10
xor rax, r10
subps xmm4, xmm7
push r11
and r13, rsi
sub r14, rsi
sub rsp, 0x20
add r10, rsi
mov rcx, r11
rol r11, 0x34
mov rdx, rbx
push rsi
pop r11
mov r8, rax
ror r11, 0x1b
lea r9, [rsp]
mov rax, r11
inc rsi
mov byte [rcx - 1], 0xd4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x58]
mov rbx, rcx
cmp dword [0x1000cc4b4], edx
jne 0x100004bf5
mov eax, dword [rcx + 0x5c]
cmp dword [0x1000cc4b0], eax
jne 0x100004bf5
movzx eax, byte [0x1000cc48c]
cmp eax, dword [rcx + 0x60]
jne 0x100004bf5
movzx eax, byte [0x1000cc48a]
cmp eax, dword [rcx + 0x64]
jne 0x100004bf5
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x10000c384
Capabilities:
Get file size

Disassembly:
test rcx, rcx
je 0x10000c4b8
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rcx
cmp qword [rcx + 0x40], 0
je 0x10000c4a8
lea rdx, [0x1000cdcf8]
lea rcx, [rax + 0x10]
call fcn.100028ad4
nop
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r12d, 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x100034dd2
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
setne bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x100034dd2
cmp dword [rsp + 0x74], 0
jne 0x100034dd2
mov edx, r12d
mov rcx, rdi
call fcn.100002984
test eax, eax
je 0x10000c454
mov r9, qword [rdi + 0x648]
mov r8, r12
mov edx, 0x40f
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, 1
mov r8d, dword [rsp + 0x70]
mov edx, 0xc3cf
lea rcx, [rsp + 0x80]
call fcn.10000c980
nop
mov r11, qword [rax]
mov edx, r12d
mov rcx, rdi
call fcn.100002984
mov r9d, eax
mov r8, r11
mov rcx, rdi
call fcn.1000029c8
nop
lea rcx, [rsp + 0x80]
call fcn.100001188
jmp 0x10000c49e
lea rcx, [rsp + 0x78]
call fcn.100001188
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
mov edx, r12d
mov rcx, rdi
call fcn.100002984
test eax, eax
je 0x10003c7c9
mov r9d, 1
lea r8, [0x1000a69fc]
mov rcx, rdi
call fcn.1000029c8
xor r9d, r9d
mov r8, r12
mov edx, 0x40f
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x10000c49e
xor r9d, r9d
lea r8, [0x1000a69fc]
mov rcx, rdi
call fcn.1000029c8
nop
jmp 0x10000c49e
Function at 0x10000cb80
Capabilities:
Clear file content

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
cmp dword [rcx + 0x1d4], 0
je 0x10000cbb5
mov rcx, qword [rdx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, qword [rbx]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [rax + 0x40]
nop
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.10000cc10
mov ecx, dword [rdi + 0x1dc]
test ecx, ecx
je 0x10000cbef
xor r9d, r9d
mov r8, qword [rsp + 0x40]
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
lea rcx, [rsp + 0x40]
call fcn.100001188
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x100013668
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, rdx
mov rbp, rcx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov esi, 0x80004005
xor edi, edi
and qword [r11 - 0x30], rdi
and qword [r11 - 0x28], rdi
and qword [r11 - 0x50], rdi
lea rcx, [r11 - 0x50]
mov qword [r11 - 0x68], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Ribbon
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000137a4
mov rdi, qword [rsp + 0x38]
mov qword [rsp + 0x50], rdi
mov eax, dword [rsp + 0xa0]
add eax, eax
mov dword [rsp + 0x30], eax
xor esi, esi
mov dword [rsp + 0xa0], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
lea r9, [rsp + 0xa8]
xor r8d, r8d
lea rdx, str.QatItems
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100013733
cmp dword [rsp + 0xa8], 1
jne 0x10004e184
mov esi, dword [rsp + 0x30]
shr esi, 1
mov dword [rsp + 0xa0], esi
xor eax, eax
test eax, eax
jne 0x100013792
mov ecx, esi
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1000034f0
mov rsi, rax
test rax, rax
je 0x100013792
lea r9, [rsp + 0xa0]
mov r8, rax
lea rdx, str.QatItems
lea rcx, [rsp + 0x50]
call fcn.100013990
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.100013818
mov rcx, rsi
call sub.msvcrt.dll_free
mov rbx, qword [rsp + 0x40]
test rdi, rdi
je 0x1000137a2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
xor esi, esi
test rdi, rdi
jne 0x10004e197
test esi, esi
js 0x1000137f2
test rbx, rbx
je 0x1000137f2
and dword [rsp + 0xa0], 0
and dword [rsp + 0xa4], 0
mov rax, qword [rbx]
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [rax + 0x28]
mov r11, qword [rbp]
mov rdx, rbx
mov rcx, rbp
call qword [r11 + 0x20]
mov esi, eax
test rbx, rbx
je 0x100013800
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov eax, esi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsp + 0xa8], 2
je 0x100013724
jmp 0x100013792
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1000137ad
Function at 0x100022eb8
Capabilities:
Terminate process

Disassembly:
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100024d1c
mov dword [0x1000cc4a8], eax
cmp dword [0x1000cc49c], ebx
jne 0x100051329
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
nop
jmp 0x100051329
sub rsp, 0x28
call fcn.10001fee4
add rsp, 0x28
jmp 0x100022ed0
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call fcn.100004a80
add byte [rax + 0x48b4865], dl
and eax, 0x30
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x1000cc388], rdi
jne 0x1000512b3
mov eax, dword [0x1000cc500]
cmp eax, 1
je 0x1000512d3
mov eax, dword [0x1000cc500]
cmp eax, ebx
jne 0x1000512ea
mov dword [0x1000cc500], 1
lea r13, [0x1000ac378]
lea rdi, [0x1000ac360]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x100022f7c
cmp eax, ebx
jne 0x100022f7c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100022f71
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x100022f5a
cmp eax, ebx
jne 0x1000512e0
mov eax, dword [0x1000cc500]
cmp eax, 1
jne 0x100022fac
lea rdx, [0x1000ac358]
lea rcx, [0x1000ac138]
call sub.msvcrt.dll__initterm
mov dword [0x1000cc500], 2
cmp r12d, ebx
jne 0x100022fbb
mov rax, rbx
xchg qword [0x1000cc388], rax
cmp qword [0x1000d21e8], rbx
jne 0x1000512f9
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x100051322
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x100022fff
cmp word [rcx], 0x22
je 0x10005133f
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100022fe4
cmp word [rcx], bx
je 0x100023008
cmp edx, ebx
jne 0x100022fea
cmp word [rcx], bx
je 0x100013cbb
cmp word [rcx], 0x20
ja 0x100013cbb
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100023008
cmp rax, rdi
jne 0x1000512c3
mov r12d, 1
jmp 0x100022f1a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100022f09
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100022f84
mov eax, 0xff
jmp 0x10005137e
mov dword [0x1000d2b54], 1
jmp 0x100022f84
lea rcx, [0x1000d21e8]
call fcn.10008b2fc
cmp eax, ebx
je 0x100022fc8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000d21e8]
nop
jmp 0x100022fc8
mov eax, 0xff
jmp 0x10005137e
cmp dword [0x1000d2b54], ebx
jne 0x10005133d
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000cc4a8]
jmp 0x10005137e
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x100022ff4
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x140003370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x140003370
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rdi, rsp
movabs rcx, 0x44
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov rax, qword [0x1402e1aa8]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov byte [rsp + 0x28], 0x4b
mov byte [rsp + 0x29], reloc.OLEAUT32.dll_VarBstrFromDate
mov byte [rsp + 0x2a], 0x69
mov byte [rsp + 0x2b], 0x45
mov byte [rsp + 0x2c], 0x7a
mov byte [rsp + 0x2d], VarBstrFromDate
mov byte [rsp + 0x2e], VarCyFromDisp
mov byte [rsp + 0x2f], 0x4b
mov byte [rsp + 0x30], VarCyFromDisp
mov byte [rsp + 0x31], 0x6c
mov byte [rsp + 0x32], 0x79
mov byte [rsp + 0x33], 0x79
mov byte [rsp + 0x34], 0x56
mov byte [rsp + 0x35], 0x69
mov byte [rsp + 0x36], 0x69
mov byte [rsp + 0x37], 0x61
mov byte [rsp + 0x38], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x39], 0x79
mov byte [rsp + 0x3a], 0
mov byte [rsp + 0x54], 0x4f
mov byte [rsp + 0x55], 0x49
mov byte [rsp + 0x56], 0x56
mov byte [rsp + 0x57], 0x58
mov byte [rsp + 0x58], 0x47
mov byte [rsp + 0x59], 0x55
mov byte [rsp + 0x5a], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0xa8]
call fcn.14000102d
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xf8], rax
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0xe0]
call fcn.14000102d
mov qword [rsp + 0x100], rax
mov r9d, 0x381
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x120]
call fcn.140001389
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x138], 0
je 0x1400034e8
mov rcx, qword [rsp + 0x138]
call qword [rsp + reloc.OLEAUT32.dll_VarCyFromDisp]
cmp qword [rsp + 0x130], 0
je 0x1400034ff
mov rcx, qword [rsp + 0x130]
call qword [rsp + reloc.OLEAUT32.dll_VarCyFromDisp]
cmp qword [rsp + 0x128], 0
je 0x140003516
mov rcx, qword [rsp + 0x128]
call qword [rsp + reloc.OLEAUT32.dll_VarCyFromDisp]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14014e6c0
mov rax, rdi
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.14014fec0
add rsp, 0x110
pop rdi
ret