joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063a84
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400aaef4]
xor edx, edx
jmp fcn.140048f04

Function at 0x140064428
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400aaef4]
jmp fcn.140048f04

Function at 0x140064548
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 0x40]
jmp 0x140072108
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13, r9
mov r12, r8
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov qword [rax + 8], rcx
call fcn.140054b3c
nop
mov edi, dword [rbx + 4]
mov esi, dword [rbx + 4]
dec esi
mov eax, dword [rbx]
cmp esi, eax
jl 0x1400720e2
lea ebp, [rsi + 1]
movsxd r15, esi
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
mov r14, qword [rax + rcx*8]
test r14, r14
je 0x1400720d8
mov rdx, r12
mov rcx, r14
call qword [rsp + 0x78]
test al, al
je 0x1400720d8
mov rdx, r12
mov rcx, r14
call r13
test al, al
je 0x1400720d8
cmp ebp, edi
jne 0x1400720c8
dec edi
jmp 0x1400720d8
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
and qword [rax + rcx*8], 0
dec esi
dec ebp
mov eax, dword [rbx]
cmp esi, eax
jge 0x14007208e
xchg dword [rbx + 4], edi
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.140054b84
add rcx, 0xb0
jmp 0x140072044

Function at 0x140071f0c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x140071fc8]
add rcx, 0x40
jmp fcn.14005c6ec

Function at 0x140071fa0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x140071fd8]
add rcx, 0x40
jmp fcn.14005c6ec
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call fcn.10015e000
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.1000019b0
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
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 0x100001955
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180001330
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x68
call fcn.180006e70
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0xc
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov dword [rsp + 0x50], eax
mov r8d, 0xc
lea rdx, [0x180009230]
mov rcx, qword [rsp + 0x38]
call fcn.180005e90
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
add rsp, 0x68
ret

Function at 0x1800014f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x18000154c
xor al, al
jmp 0x180001588
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1800013d0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x44]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov al, 1
add rsp, 0x58
ret

Function at 0x1800039e0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rdi
sub rsp, 0xd0
movzx eax, byte [0x180009308]
test eax, eax
je 0x1800039f9
jmp 0x180003b20
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtQueryInformationProcess
test eax, eax
jge 0x180003a46
jmp 0x180003b20
mov rax, qword [rsp + 0x40]
mov qword [0x180009310], rax
lea r9, [rsp + 0x30]
mov r8d, 0x40
lea rdx, [rsp + 0x70]
xor ecx, ecx
call sub.ntdll.dll_NtQuerySystemInformation
test eax, eax
jge 0x180003a72
jmp 0x180003b20
mov eax, dword [rsp + 0x78]
mov dword [0x180009360], eax
mov ecx, 0x40
call fcn.180003b30
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x180003ab0
mov rcx, qword [rsp + 0xb0]
call fcn.180001690
mov qword [rsp + 0xc0], rax
jmp 0x180003abc
mov qword [rsp + 0xc0], 0
call fcn.180001fa0
mov rcx, rax
call fcn.180001700
movzx eax, al
test eax, eax
jne 0x180003ad2
jmp 0x180003b20
mov byte [0x180009308], 1
mov ecx, 0xc8
call fcn.180003b40
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x180003b0d
mov rcx, qword [rsp + 0xb8]
call fcn.180003b50
mov qword [rsp + 0xc8], rax
jmp 0x180003b19
mov qword [rsp + 0xc8], 0
mov cl, 1
call fcn.180002970
add rsp, 0xd0
pop rdi
ret
Function at 0x1800051b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rcx, qword [rsp + 0xe0]
call fcn.180006a90
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1800051e7
xor eax, eax
jmp 0x180005416
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.180005690
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.1800056b0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov r8d, dword [rax + 0x3c]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x40]
call fcn.1800056b0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x88]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.180005730
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x20]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x40]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x24]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x1c]
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x40]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x70], 0
jmp 0x180005309
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x70], eax
jae 0x180005411
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r8d, dword [rcx + rax*4]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x78]
call fcn.180006390
test eax, eax
jne 0x18000540c
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x20]
sub eax, dword [rcx + 0x10]
inc eax
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x40]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call fcn.180004ef0
mov dword [rsp + 0x8c], eax
cmp dword [rsp + 0x8c], 0
jne 0x1800053e8
xor eax, eax
jmp 0x180005416
mov r9d, 4
lea r8, [rsp + 0x8c]
mov rdx, qword [rsp + 0x80]
mov rcx, 0xffffffffffffffff
call fcn.180006c80
jmp 0x180005411
jmp 0x1800052ff
mov rax, qword [rsp + 0x38]
add rsp, 0xd8
ret
Function at 0x180005420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rcx, qword [rsp + 0xd0]
call fcn.180006a90
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18000545c
xor eax, eax
jmp 0x180005684
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.180005690
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.1800056b0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x3c]
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.1800056b0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x28]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x180005682
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0xc]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x28]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x50]
call fcn.180006390
test eax, eax
jne 0x18000566f
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x28]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x1800055ef
mov rax, qword [rsp + 0x60]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
jne 0x1800055d2
mov rax, qword [rsp + 0x60]
mov r8, qword [rax]
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x28]
call fcn.180005730
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 2
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.180006390
test eax, eax
jne 0x1800055d2
jmp 0x1800055ef
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
jmp 0x180005567
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
jne 0x180005601
xor eax, eax
jmp 0x180005684
mov rax, qword [rsp + 0x20]
mov r8d, dword [rax + 0x10]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x28]
call fcn.1800056f0
mov rcx, rax
call fcn.180005770
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax*8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov r9d, 8
lea r8, [rsp + 0xe8]
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffffffffffff
call fcn.180006c80
mov rax, qword [rsp + 0x68]
jmp 0x180005684
mov rax, qword [rsp + 0x20]
add rax, 0x14
mov qword [rsp + 0x20], rax
jmp 0x1800054e8
xor eax, eax
add rsp, 0xc8
ret
Function at 0x180006c80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jge 0x180006ceb
xor al, al
jmp 0x180006d6b
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov dword [rsp + 0x38], eax
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtFlushInstructionCache]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
cmp dword [rsp + 0x38], 0
jl 0x180006d5e
mov dword [rsp + 0x4c], 1
jmp 0x180006d66
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
add rsp, 0x58
ret

Function at 0x180007160
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [0x180007140]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov rcx, qword [rsp + 0x50]
call sub.ntdll.dll_NtClose
add rsp, 0x68
ret
Function at 0x140001000
Capabilities:
Check for windows sandbox via registry
Persist via run registry key
Query or enumerate registry value
Terminate process

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001139
mov qword [rsp + 0x470], rdi
lea r9, [rsp + 0x4c]
lea rdi, [rsp + 0x250]
mov dword [rsp + 0x4c], 0xff
mov ecx, 0x1fe
mov dword [rsp + 0x48], 0x100
rep stosb byte [rdi], al
lea rdi, [rsp + 0x50]
mov ecx, 0x200
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x250]
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140001100
lea rdi, [rsp + 0x50]
mov eax, ebx
lea r8, str.cmd__C_wmic_useraccount_where__nameWDAGUtilityAccount__set_PasswordExpiresFALSE
nop dword [rax]
movzx edx, word [rdi + rax*2]
movzx ecx, word [r8 + rax*2]
sub edx, ecx
jne 0x1400010f6
movzx edx, word [rdi + rax*2 + 2]
movzx ecx, word [r8 + rax*2 + 2]
sub edx, ecx
jne 0x1400010f6
add rax, 2
cmp rax, 0x54
jne 0x1400010d0
test edx, edx
mov eax, 1
cmove ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x470]
test ebx, ebx
je 0x140001139
xor r9d, r9d
lea r8, str.FALSE
lea rdx, str.FALSE
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r9d, r9d
lea r8, str.TRUE
lea rdx, str.TRUE
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001180
add rsp, 0x460
pop rbx
ret

Function at 0x140001a48
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x4a], 0
mov rbx, rcx
je 0x140003d76
xor eax, eax
lea r8d, [rax - 0x4c]
xor byte [rdx + rax], r8b
inc rax
cmp rax, 0x49
jb 0x140003d61
mov byte [rdx + 0x4a], 0
call fcn.1400060f0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140003d90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140003dc4
mov ecx, esi
lea eax, [rcx - 0x4c]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140003db0
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140003df9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.1400059f0
nop
cmp byte [rbx + 0xa], 0
je 0x140003e23
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x4c]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 9
jb 0x140003e10
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140003e58
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400059f0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.1400074f0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003eac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ea6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ea6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064990
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003eec
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ee7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003ee7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064990
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003f00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140003f34
mov ecx, esi
lea eax, [rcx - 0x4c]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 6
jb 0x140003f20
mov byte [r8 + 7], sil
lea rax, [r8 + 6]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140003f69
mov r8d, 6
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.1400059f0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003f77
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140008610
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003fec
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fe7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003fe7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064990
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 0xa], sil
je 0x140004034
mov ecx, esi
lea eax, [rcx - 0x4c]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 9
jb 0x140004020
mov byte [r8 + 0xa], sil
lea rax, [r8 + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140004069
mov r8d, 9
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.1400059f0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140004077
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.140008610
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400040ec
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400040e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140064990
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret