joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e003
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
sbb byte [0x180009d83], spl
mov eax, 1
jmp 0x14000d54c
mov eax, 1
jmp 0x14000d54c
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x2000000
test eax, eax
je 0x14000c06e
jmp 0x14000f574
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x40]
cmp dword [rax + 0x38], ecx
jne 0x14000bb37
jmp 0x14000ca12
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x70], rax
xor edx, edx
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx + 0x10]
mov rcx, qword [rsp + 0x70]
div rcx
mov rax, rdx
test rax, rax
jne 0x14000dc21
jmp 0x14000ca12
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x18]
and eax, 0x20000000
test eax, eax
jne 0x14000e6b1
jmp 0x14000fc6f
cmp qword [rsp + 0x38], 0
jne 0x14000faef
jmp 0x14000ff84
mov eax, 1
jmp 0x14000d54c
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x98]
cmp qword [rax + 0x10], 0
je 0x140009e62
jmp 0x14000ae1c
mov dword [rsp + 0x24], 1
jmp 0x140009d6b
mov rax, qword [rsp + 0x98]
cmp dword [rax + 0x1c], 0
je 0x14000b98c
jmp 0x14000ca12
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx + 8]
cmp qword [rax], rcx
je 0x14000f1a5
jmp 0x140009fa3
mov r8d, 0x4000
mov rax, qword [rsp + 0x98]
and al, 0x98
add byte [rax], al
add byte [rax - 0x75], cl
push rax
adc byte [rax - 0x75], cl
test byte [rax + rbx*4], ah
add byte [rax], al
add byte [rax - 0x75], cl
or byte [rax - 0x75], cl
and al, 0x38
call qword [rax + 8]
jmp 0x14000dc21
mov dword [rsp + 0x24], 0
jmp 0x140009d6b
mov r8d, 0x4000
mov rax, qword [rsp + 0x98]
mov rdx, qword [rax + 0x10]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax]
call qword [0x14008c7c6]
jmp 0x14000dc21

Function at 0x14000f739
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x14000a6eb
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14000e86a
Function at 0x1400195b4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
cmp qword [rcx + 8], rsi
jbe 0x140019628
xor edi, edi
mov rbp, qword [rbx + 0x10]
add rbp, rdi
mov rax, qword [rbp + 0x90]
test rax, rax
je 0x140019610
lea r8, [rbp + 0xa0]
cmp dword [r8], 0
je 0x140019610
movabs r10, 0xca519ebc18d2a170
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x40]
call qword [case.0x14005dcc6.0]
mov rcx, rbp
call fcn.140017e4c
inc rsi
add rdi, 0xe8
cmp rsi, qword [rbx + 8]
jb 0x1400195d5
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbx + 0x10]
mov rdi, rbx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
and qword [rbx + 0x10], 0
test rcx, rcx
je 0x140019662
mov edx, 1
call fcn.140019578
and qword [rbx + 0x18], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001a754
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp + 0x37], 0
lea rax, [0x140066440]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov qword [rbp + 0x17], rax
lea rcx, [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rbp + 7], 0x30
mov qword [rsp + 0x30], rax
mov rdi, rdx
xorps xmm0, xmm0
mov dword [rsp + 0x28], 4
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x2001f
mov dword [rbp + 0x1f], 0x40
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001a822
lea rax, str.onecore_basewcplibraryutil_ccpinterfacekey.cpp
mov dword [rbp - 0x29], 0x5d
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
lea rax, str.Windows::WCP::CCPInterfaceKeyUtils::SetProgressKeyUsingNt
mov r8d, ebx
mov qword [rbp - 0x31], rax
lea rax, str.NtCreateKey__Key.GetMutablePointer________0x00020000L_____0x0001____0x0008____0x0010______0x00100000L_________0x00020000L_____0x0002____0x0004______0x00100000L_____ObjectAttributes__0__0___0x00000004L___Disposition_
mov qword [rbp - 0x21], rax
call fcn.140059c64
mov rcx, qword [rbp + 0x37]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jmp 0x14001a895
mov rcx, qword [rbp + 0x37]
lea rdx, [0x140066460]
mov dword [rsp + 0x28], 0x10
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001a8ac
lea rax, str.onecore_basewcplibraryutil_ccpinterfacekey.cpp
mov dword [rbp - 9], 0x66
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
lea rax, str.Windows::WCP::CCPInterfaceKeyUtils::SetProgressKeyUsingNt
mov r8d, ebx
mov qword [rbp - 0x11], rax
lea rax, str.NtSetValueKey__Key___PUNICODE_STRING_g_UNICODE_STRING_Progress__0____3ul____Progress__sizeof_CCPProgress__
mov qword [rbp - 1], rax
call fcn.140059c64
mov rcx, qword [rbp + 0x37]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14001a8a8
and qword [rbp + 0x37], 0
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001a8cd
mov rcx, qword [rbp + 0x37]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001a8cb
and qword [rbp + 0x37], 0
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140063da0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400296b0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
or rax, 0xffffffffffffffff
mov rdi, r8
xor ebx, ebx
mov ecx, 0x7ffe0030
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400296c8
add rax, rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
add rax, 2
mov rdx, rdi
mov qword [rsp + 0x28], rax
call fcn.14005c284
test eax, eax
js 0x140029707
mov rcx, rdi
call fcn.14002ce44
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002cabc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
mov r8, qword [rcx]
cmp ax, r8w
jb 0x14002cb86
movups xmm0, xmmword [rdx]
mov edi, 0xfffe
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x30], r8w
movups xmm0, xmmword [rcx]
movaps xmm1, xmmword [rsp + 0x30]
movd r10d, xmm0
movdqa xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x20], xmm0
movzx eax, r10w
xor ax, r8w
test di, ax
jne 0x14002cb7f
xor edx, edx
test r8w, r8w
je 0x14002cb69
mov r11, qword [rsp + 0x38]
lea ebx, [rdx + 2]
movzx r8d, word [rsp + 0x30]
mov r9, qword [rsp + 0x28]
movzx eax, word [r11]
movzx ecx, word [r11]
sub ax, 0x41
add cx, 0x20
cmp ax, 0x19
cmova cx, word [r11]
cmp cx, word [r9]
jne 0x14002cb82
test r8w, r8w
je 0x14002cb6d
add r11, rbx
sub r8w, bx
test r10w, r10w
je 0x14002cb6d
add r9, rbx
add r10w, di
test r8w, r8w
jne 0x14002cb2a
mov dl, 1
jmp 0x14002cb82
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
xor dx, dx
mov al, dl
jmp 0x14002cb88
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14003ae5c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, rcx
mov r14, rdx
mov rcx, qword gs:[0x60]
mov edi, 0x68
mov r8d, edi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14003afdc
and qword [rbx + 0x18], 0
lea rax, [0x140065850]
and qword [rbx + 0x28], 0
and qword [rbx + 0x30], 0
and qword [rbx + 0x38], 0
mov rcx, qword [0x140085648]
mov qword [rbx], rax
lea rax, [0x140065680]
mov qword [rbx], rax
lea rax, [0x140065550]
mov qword [rbx + 0x10], rax
mov dword [rbx + 8], 1
mov byte [rbx + 0x20], 0
test rcx, rcx
je 0x14003af12
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov rax, qword [rax + 0x10]
lea r8d, [rdi - 0x5b]
mov r9d, edi
mov byte [rsp + 0x20], 1
lea rdx, str.CFile
call qword [case.0x14005dcc6.0]
and qword [rbx + 0x48], 0
lea rdx, [rbx + 0x48]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
mov rcx, qword [rsi]
call fcn.14003ab6c
mov edi, eax
test eax, eax
js 0x14003afa8
mov rcx, qword [rsi]
lea rdx, [rbx + 0x18]
call fcn.140040a48
mov edi, eax
test eax, eax
js 0x14003afa8
lea rdx, [rbx + 0x50]
lea rcx, [rsi + 0x28]
call fcn.14005876c
mov edi, eax
test eax, eax
jns 0x14003af96
lea rax, str.onecore_basewcp_sil_file.cpp
mov dword [rsp + 0x40], 0x2e
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, str.Windows::Rtl::SystemImplementation::CFile::Initialize
mov r8d, edi
mov qword [rsp + 0x38], rax
lea rax, str.RtlDuplicateLUnicodeString__Source.Name__m_Name.GetMutablePointer___
mov qword [rsp + 0x48], rax
call fcn.140059c64
jmp 0x14003afa8
lea rcx, [rbx + 0x10]
mov rdx, rsi
call fcn.140041560
mov edi, eax
test eax, eax
jns 0x14003afce
mov r8, qword [rbx]
movabs r10, 0xaec41ff778502270
mov rax, qword [r8 + 0xf0]
mov edx, 1
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov eax, edi
jmp 0x14003b01d
cmp qword [r14], 0
je 0x14003afd5
int3
mov qword [r14], rbx
xor eax, eax
jmp 0x14003b01d
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rsp + 0x40], 0xf9
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, str.Windows::Rtl::CRtlRefCountedObjectBase_class_Windows::Rtl::SystemImplementation::CFile_struct_Windows::Rtl::IRtlFile_struct_Windows::Rtl::IRtlSystemObject_struct_Windows::Rtl::Detail::CRtlRefCountedObjectBaseNoInterface_struct_Windows::Rtl::Detail::CRtlRefCountedObjectBaseNoInterface_::CreateInstance
mov r8d, 0xc0000017
mov qword [rsp + 0x38], rax
lea rax, str.NewInstance.Allocate__
mov qword [rsp + 0x48], rax
call fcn.140059c64
mov eax, 0xc0000017
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14004e2c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movups xmm1, xmmword [0x140066df8]
xor r14d, r14d
mov qword [rbp - 0x39], 0x30
xorps xmm0, xmm0
mov byte [rcx], r14b
movups xmmword [rbp + 0x27], xmm0
xor eax, eax
mov rsi, rcx
movups xmm0, xmmword [0x140066de8]
mov dword [rbp + 0x37], eax
lea r8, [rbp - 0x39]
lea rax, [rbp + 7]
mov qword [rbp - 9], r14
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp - 0x21], 0x40
mov edx, 0x20019
xorps xmm0, xmm0
mov dword [rbp - 1], r14d
lea rcx, [rbp - 9]
mov qword [rbp - 0x31], r14
movdqu xmmword [rbp - 0x19], xmm0
mov dil, r14b
mov qword [rbp - 0x29], rax
movdqu xmmword [rbp + 7], xmm1
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000034
je 0x14004e42b
test eax, eax
jns 0x14004e3cc
mov dword [rbp - 0x49], 0x2e
lea rax, str.onecore_basewcp_rtllib_nativelibdefer_library.cpp
mov r8d, ebx
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x59]
lea rax, str.Windows::WCP::Rtl::ShouldDeferExecution
mov qword [rbp - 0x51], rax
lea rax, str.Status
mov qword [rbp - 0x41], rax
call fcn.140059c64
mov rcx, qword [rbp - 9]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004e3c8
mov qword [rbp - 9], r14
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14004e44b
mov rcx, qword [rbp - 9]
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x27]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
lea rdx, [rbp + 0x17]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000034
je 0x14004e42b
test eax, eax
jns 0x14004e414
mov dword [rbp - 0x49], 0x3c
jmp 0x14004e37d
cmp dword [rbp + 0x2b], 4
je 0x14004e420
cmp dword [rbp + 0x2f], 4
jne 0x14004e428
cmp dword [rbp + 0x33], r14d
setne dil
mov byte [rsi], dil
mov rcx, qword [rbp - 9]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004e449
mov qword [rbp - 9], r14
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140063da0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14005a7b8
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rbx, qword [rcx + 0x10]
lea rax, [rsp + 0x40]
mov rdi, qword [rcx]
xor r15d, r15d
add rdi, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x200
mov rsi, rdx
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x40]
cmp rbx, rdi
jae 0x14005a9b0
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_onecore_baselstringpath.cpp
lea rax, [rbp + 0x140]
mov r8d, 0x3d
sub rax, rdx
mov rcx, rbx
and rax, 0xfffffffffffffffe
cmp rax, 8
jl 0x14005a93e
movzx r14d, byte [rbx]
mov r9b, r15b
inc rbx
mov r10b, r15b
cmp rbx, rdi
je 0x14005a863
mov r9b, byte [rbx]
movzx r11d, r15w
jmp 0x14005a866
mov r11d, r8d
mov r8, r15
mov word [rdx + 4], r11w
setne r8b
inc r8
add r8, rcx
cmp r8, rdi
je 0x14005a880
mov r10b, byte [r8]
mov eax, r15d
movzx r9d, r9b
mov ecx, 0x3d
lea rbx, [r8 + 1]
cmove ax, cx
cmove rbx, r8
mov word [rdx + 6], ax
mov rcx, r14
and ecx, 3
mov rax, r14
shr rax, 2
shl rcx, 4
movzx eax, byte [rax + r12]
mov word [rdx], ax
mov eax, r9d
shr rax, 4
or rax, rcx
movzx eax, byte [rax + r12]
mov word [rdx + 2], ax
test r11w, r11w
jne 0x14005a8ed
and r9d, 0xf
movzx eax, r10b
shl r9d, 2
shr rax, 6
mov ecx, r9d
or rcx, rax
movzx eax, byte [rcx + r12]
mov word [rdx + 4], ax
cmp r8, rdi
je 0x14005a902
movzx eax, r10b
and eax, 0x3f
movzx eax, byte [rax + r12]
mov word [rdx + 6], ax
add rdx, 8
lea rax, [rbp + 0x140]
cmp rdx, rax
jne 0x14005a935
mov r9, rsi
mov qword [rsp + 0x20], 0x200
lea rdx, [rsp + 0x20]
call fcn.14005d3b0
test eax, eax
js 0x14005a9b2
lea rdx, [rsp + 0x40]
cmp rbx, rdi
jb 0x14005a827
lea rax, [rsp + 0x40]
cmp rdx, rax
je 0x14005a9b0
lea rax, [rsp + 0x40]
sub rdx, rax
mov qword [rsp + 0x20], rdx
cmp rdx, qword [rsp + 0x28]
jbe 0x14005a99f
lea rax, str.onecore_baselstringlblob.cpp
mov dword [rsp + 0x30], 0x4f5
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, str.RtlpGenericBase64Encode
mov r8d, 0xc000042b
mov qword [rsp + 0x28], rax
lea rax, str.TempBlob.Length___TempBlob.MaximumLength
mov qword [rsp + 0x38], rax
call fcn.140059c64
mov eax, 0xc000042b
jmp 0x14005a9b2
mov r9, rsi
lea rdx, [rsp + 0x20]
call fcn.14005d3b0
test eax, eax
js 0x14005a9b2
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140063da0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140063348
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov rdi, rdx
cmp dword [0x1400858c4], r14d
mov rsi, rcx
jne 0x1400633d2
xorps xmm0, xmm0
lea rdx, [rbp + 0xf]
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp + 0x1f], rax
call fcn.1400639ac
mov rbx, qword [rbp + 0x1f]
cmp qword [rbp + 0xf], r14
je 0x1400633c5
xor edx, edx
lea r8d, [r14 + 0x10]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_wcstoul]
nop dword [rax + rax]
and eax, 0xfffe
or eax, 1
mov dword [0x1400858c4], eax
test rbx, rbx
je 0x1400633d2
mov rcx, rbx
call fcn.14005d7ac
mov eax, dword [0x1400858c4]
lea rcx, [rbp + 0x27]
or dword [rsi + 0xc], eax
xorps xmm0, xmm0
mov rdx, rdi
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
nop dword [rax + rax]
test al, al
je 0x1400634f4
xorps xmm0, xmm0
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x27]
mov ebx, r14d
movups xmmword [rbp - 9], xmm0
call fcn.14002c898
mov rdi, qword [rbp - 1]
cmp word [rbp - 9], r14w
je 0x14006343b
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x10]
call qword [sym.imp.ntdll.dll_wcstoul]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400634e4
lea rax, [0x140067e00]
mov qword [rbp - 9], r14
xorps xmm0, xmm0
mov qword [rbp - 0x29], rax
lea r8, [rbp - 0x39]
mov dword [rbp - 0x39], 0x30
mov edx, 0x101
mov qword [rbp - 0x31], r14
lea rcx, [rbp - 9]
mov dword [rbp - 0x21], 0x40
movdqu xmmword [rbp - 0x19], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
jne 0x1400634c6
mov rcx, qword [rbp - 9]
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0xf]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
lea rdx, [rbp + 0x27]
mov dword [rbp + 7], r14d
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x1400634c6
cmp dword [rbp + 0x13], 4
jne 0x1400634c6
cmp dword [rbp + 0x17], 4
cmove ebx, dword [rbp + 0x1b]
mov rcx, qword [rbp - 9]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400634e4
mov qword [rbp - 9], r14
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
or dword [rsi + 0xc], ebx
test rdi, rdi
je 0x1400634f4
mov rcx, rdi
call fcn.14005d7ac
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x140063502
call fcn.14005d7ac
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140063da0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400635e0
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [0x1400858a8], 0
jne 0x1400636f7
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
lea rcx, [0x140067de0]
movups xmmword [rsp + 0x20], xmm0
call fcn.14002c898
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x20]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400636e8
and qword [rbx + 8], 0
lea rax, [0x1400660f8]
movzx ecx, word [rsp + 0x20]
mov qword [rbx], rax
and qword [rbx + 0x10], 0
neg cx
mov byte [rbx + 0x18], 0
mov rcx, rbx
sbb rdx, rdx
and rdx, qword [rsp + 0x28]
call fcn.1400631a8
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0x890
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
test rax, rax
je 0x1400636e8
mov rdx, rbx
mov rcx, rax
call fcn.14005f8c8
mov r8, rax
test rax, rax
je 0x1400636e8
mov qword [rbx + 8], rax
xor eax, eax
lock cmpxchg qword [0x1400858a8], r8
je 0x1400636e3
mov rcx, qword [r8]
mov rax, qword [rcx + 0x1e0]
movabs r10, 0xe039a6c458de8270
mov edx, 1
mov rcx, r8
call qword [case.0x14005dcc6.0]
call fcn.140063530
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400636f7
call fcn.14005d7ac
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140063da0
add rsp, 0x40
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400043e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400043f0]
mov dword [rax], 1
mov rax, qword [0x140004400]
mov dword [rax], 1
mov rax, qword [0x140004390]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400043d0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004480]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004340]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
call dbg.__main
mov byte [rbp - 5], 0x4b
mov dword [rbp - 4], 0
jmp 0x140001496
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
movzx eax, byte [rax + rdx]
xor al, byte [rbp - 5]
mov ecx, eax
mov eax, dword [rbp - 4]
cdqe
lea rdx, section..data
mov byte [rax + rdx], cl
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
cmp rax, 0x1fe
jbe 0x14000146e
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x200
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rdx, section..data
mov ecx, 0x200
mov r8, qword [rdx]
mov qword [rax], r8
mov r8d, ecx
add r8, rax
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rdx
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rax + 8]
and r8, 0xfffffffffffffff8
sub rax, r8
sub rdx, rax
add ecx, eax
and ecx, 0xfffffff8
mov eax, ecx
shr eax, 3
mov eax, eax
mov rdi, r8
mov rsi, rdx
mov rcx, rax
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp - 0x10]
call rax
mov eax, 0
add rsp, 0x30
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]