joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fe5c
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0xe0
mov rsi, qword [rbp + 0x7f]
xor r12d, r12d
mov rbx, r8
mov r15, rdx
mov r14d, r12d
test rsi, rsi
je 0x14000fe9a
mov qword [rsi], r12
xor eax, eax
lea rdi, [rbp - 0x71]
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x51]
lea ecx, [rax + 0x70]
rep stosb byte [rdi], al
test rbx, rbx
jne 0x14000febc
mov r8, r12
jmp 0x14000fec8
add r8, 2
cmp word [r8], r12w
jne 0x14000feb8
sub r8, rbx
sar r8, 1
mov rcx, qword [0x140025300]
lea r8, [r8*2 + 2]
mov edx, 8
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14001003e
mov rdx, rbx
mov rcx, rax
call fcn.140001b70
mov r8d, 0x30
mov dword [rbp - 0x51], 0x70
mov qword [rbp + 0x67], r8
lea ebx, [r8 - 0x28]
cmp r8, 0x400
ja 0x140010028
mov rcx, qword [0x140025300]
mov edx, ebx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp + 0x17], rax
test rax, rax
je 0x140010014
xor r8d, r8d
lea r9, [rbp + 0x67]
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x14000fffd
mov rcx, qword [rbp + 0x17]
lea r9, [rbp + 0x4f]
mov qword [rsp + 0x30], r12
xor edx, edx
mov qword [rsp + 0x28], r12
mov r8d, 0x20000
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14000ffeb
lea rax, [rbp - 0x71]
mov dword [rbp - 0x15], 1
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x51]
mov word [rbp - 0x11], r12w
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rdx, rdi
mov qword [rsp + 0x30], r12
mov rcx, r15
mov dword [rsp + 0x28], 0xc080024
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000ffeb
mov r14, qword [rbp - 0x71]
test rsi, rsi
je 0x14000ffe1
mov rax, qword [rbp - 0x69]
mov qword [rsi], rax
jmp 0x14000ffeb
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp + 0x17]
test r8, r8
je 0x140010001
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov r8, qword [rbp + 0x17]
mov rcx, qword [0x140025300]
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010028
mov r8, qword [rbp + 0x67]
jmp 0x14000ff12
mov rcx, qword [0x140025300]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xe0]
mov rax, r14
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400102a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5a8]
sub rsp, 0x690
mov r15d, 0x104
mov r8, rcx
mov rdi, rcx
mov r14d, 1
mov r9d, r15d
lea rcx, [rbp + 0x380]
mov edx, r15d
mov ebx, r14d
call fcn.140001bb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x14001030c
mov r8d, r15d
lea rdx, [0x14001f0b8]
lea rcx, [rbp + 0x380]
call fcn.1400101a4
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400103a5
test r14d, r14d
je 0x1400103a5
mov r9, r15
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, r15
call fcn.140001bb0
mov r8, r15
lea rdx, [rbp + 0x15c]
lea rcx, [rsp + 0x20]
call fcn.1400101a4
test byte [rbp + 0x130], 0x10
je 0x140010385
cmp word [rbp + 0x15c], 0x2e
je 0x140010390
lea rcx, [rsp + 0x20]
call fcn.1400102a0
neg eax
sbb ecx, ecx
and ebx, ecx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140010390
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x130]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov r14d, eax
jmp 0x140010329
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x1400103ca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb ecx, ecx
and ebx, ecx
lea r11, [rsp + 0x690]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400103ec
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
lea r8, [rbp - 0x10]
lea rdx, [0x1400158e0]
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x20], rsi
mov rbx, rcx
call qword [sym.imp.SHELL32.dll_SHAssocEnumHandlersForProtocolByApplication]
test eax, eax
js 0x140010594
mov rcx, qword [rbp - 0x10]
lea r9, [rbp + 0x28]
mov dword [rbp + 0x28], esi
lea r8, [rbp - 0x18]
mov qword [rbp - 0x18], rsi
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
js 0x140010581
cmp dword [rbp + 0x28], esi
je 0x14001058a
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
lea rdx, [0x1400158d0]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
js 0x140010577
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x38]
mov qword [rbp + 0x38], rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x14001056d
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x14001056d
mov rax, rbx
test rbx, rbx
jne 0x1400104a4
mov rax, rsi
jmp 0x1400104b8
cmp word [rbx], si
je 0x1400104b2
add rax, 2
cmp word [rax], si
jne 0x1400104a9
sub rax, rbx
sar rax, 1
mov rcx, rdx
cmp word [rdx], si
je 0x1400104c9
add rcx, 2
cmp word [rcx], si
jne 0x1400104c0
sub rcx, rdx
mov edx, 8
sar rcx, 1
lea r8, [rcx + rax]
mov rcx, qword [0x140025300]
lea r8, [r8*2 + 8]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140010563
mov rdx, qword [rbp + 0x38]
mov rcx, rax
call fcn.140001b70
lea rdx, [0x14001f0c0]
call fcn.140001ac8
mov rdx, rbx
mov rcx, rdi
call fcn.140001ac8
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
mov r8, rdi
mov dword [rbp + 0x30], esi
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplicationAssociationToasts
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [0x140025300]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
cmp dword [rbp + 0x28], esi
jne 0x140010425
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001000
Capabilities:
Encode data using base64

Disassembly:
push rdi
mov r10, r8
mov edi, edx
mov r11, rcx
test rcx, rcx
je 0x140001144
test edx, edx
js 0x140001144
test r8, r8
je 0x14000112e
mov qword [rsp + 0x10], rbx
mov ebx, edx
test edx, edx
jle 0x140001125
mov qword [rsp + 0x18], rsi
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop
cmp ebx, 3
jl 0x1400010af
movzx ecx, byte [r11 + 1]
movzx edx, byte [r11]
movzx r9d, byte [r11 + 2]
mov r8d, ecx
shr ecx, 4
mov rax, rdx
shr rax, 2
add r11, 3
movzx eax, byte [rax + rsi]
mov byte [r10], al
mov eax, edx
shl eax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov rcx, r9
mov byte [r10 + 1], al
lea eax, [r8*4]
shr rcx, 6
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov byte [r10 + 2], al
mov rax, r9
and eax, 0x3f
add r10, 4
movzx eax, byte [rax + rsi]
mov byte [r10 - 1], al
jmp 0x140001115
movzx r8d, byte [r11]
inc r11
cmp ebx, 2
jne 0x1400010c4
movzx ecx, byte [r11]
inc r11
jmp 0x1400010c6
xor cl, cl
movzx edx, cl
movzx eax, r8b
shr rax, 2
mov ecx, edx
movzx eax, byte [rax + rsi]
shr ecx, 4
mov byte [r10], al
movzx eax, r8b
shl eax, 4
or rcx, rax
and ecx, 0x3f
movzx eax, byte [rcx + rsi]
mov byte [r10 + 1], al
cmp ebx, 1
jne 0x1400010fb
mov al, 0x3d
jmp 0x140001108
and edx, 0xf
shl edx, 2
movsxd rax, edx
movzx eax, byte [rax + rsi]
mov byte [r10 + 2], al
mov byte [r10 + 3], 0x3d
add r10, 4
sub ebx, 3
test ebx, ebx
jg 0x140001040
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov byte [r10], 0
lea ecx, [rdi + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
pop rdi
ret
or eax, 0xffffffff
pop rdi
ret

Function at 0x140003a50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140020090]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x140003ac5
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140003ac2
nop dword [rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.14000a07c
test eax, eax
je 0x140003ae6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140003aa0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140009e70
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
mov eax, dword [rsp + 0x28]
jmp 0x140003ac5
Function at 0x140003e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003e33
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003e77
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140003e72
cmp rbx, r11
jae 0x140003e77
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140003e60
cmp rbx, r11
jb 0x140003e7b
xor eax, eax
jmp 0x140003e87
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004070
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov rdi, rdx
xor r12d, r12d
mov ebx, 0x4000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rbp, rax
test rax, rax
je 0x140004113
mov qword [rsp + 0x40], rsi
mov esi, dword [rsp + 0x48]
nop
mov r8d, ebx
mov edx, 8
mov rcx, rbp
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rdi], rax
test rax, rax
je 0x1400040ee
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
lea ecx, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
mov esi, eax
cmp eax, 0xc0000004
jne 0x14000410c
mov r8, qword [rdi]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov qword [rdi], r12
add ebx, 0x4000
jmp 0x1400040a0
cmp esi, 0xc0000004
je 0x1400040a0
mov eax, r12d
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
mov eax, 1
jmp 0x1400040f9
mov eax, r12d
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
Function at 0x140004640
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rdi, rcx
lea r9, [r11 + 8]
mov dword [rsp + 0x38], eax
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x10]
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
lea rcx, [0x14001bb0c]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [rsp + 0x50]
mov edx, 0xaacd2aec
test eax, eax
mov eax, 0xba2e8ba3
cmove ecx, edx
mov dword [rsp + 0x50], ecx
mul ecx
shr edx, 6
mov rcx, rdi
mov r8d, edx
lea rdx, str._08X
call fcn.14000a3e8
mov r8, rdi
movsxd rbx, eax
add rbx, rdi
lea rdx, [rbx - 1]
test rdi, rdi
je 0x1400046e8
cmp rdi, rdx
jae 0x1400046e8
nop word [rax + rax]
movzx eax, byte [rdx]
movzx ecx, byte [r8]
dec rdx
mov byte [r8], al
mov byte [rdx + 1], cl
inc r8
cmp r8, rdx
jb 0x1400046d0
lea r8, [0x14001bb18]
lea rdx, [0x14001bb1c]
mov rcx, rbx
call fcn.14000a3e8
lea rdx, str._04X
movsxd rcx, eax
mov eax, dword [rsp + 0x50]
shr eax, 4
add rbx, rcx
movzx r8d, ax
mov rcx, rbx
call fcn.14000a3e8
lea r8, [0x14001bb18]
lea rdx, [0x14001bb1c]
movsxd rcx, eax
add rbx, rcx
mov rcx, rbx
call fcn.14000a3e8
mov r8d, dword [rsp + 0x50]
lea rdx, str._04X
movsxd rcx, eax
shr r8d, 0x14
add rbx, rcx
mov rcx, rbx
call fcn.14000a3e8
lea r8, [0x14001bb18]
lea rdx, [0x14001bb1c]
movsxd rcx, eax
add rbx, rcx
mov rcx, rbx
call fcn.14000a3e8
mov r8d, dword [rsp + 0x50]
lea rdx, str._04X
movsxd rcx, eax
shr r8d, 0x15
add rbx, rcx
mov rcx, rbx
call fcn.14000a3e8
lea r8, [0x14001bb18]
lea rdx, [0x14001bb1c]
movsxd rcx, eax
add rbx, rcx
mov rcx, rbx
call fcn.14000a3e8
mov r8d, dword [rsp + 0x50]
lea rdx, str._08X
movsxd rcx, eax
shl r8d, 6
add rbx, rcx
mov rcx, rbx
call fcn.14000a3e8
lea rdx, str._04X
movsxd rcx, eax
mov eax, dword [rsp + 0x50]
shr eax, 5
add rbx, rcx
movzx r8d, ax
mov rcx, rbx
call fcn.14000a3e8
lea r8, [rdi + 9]
lea rdx, str._.18s
movsxd rcx, eax
add rbx, rcx
mov rcx, rbx
call fcn.14000a3e8
lea rdx, [rbx + 0x11]
test rbx, rbx
je 0x140004836
cmp rbx, rdx
jae 0x140004836
nop word [rax + rax]
movzx eax, byte [rdx]
movzx ecx, byte [rbx]
dec rdx
mov byte [rbx], al
mov byte [rdx + 1], cl
inc rbx
cmp rbx, rdx
jb 0x140004820
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140004850
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140020090]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebx, ecx
cmp ecx, 4
ja 0x14000488f
mov eax, 1
jmp 0x140004a4c
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.14000fcd0
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140004a4a
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140004a80
nop
mov rbx, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0
je 0x140004a2f
lea rdx, str.system
mov rcx, rbx
call fcn.14000a3e0
test eax, eax
jne 0x140004a2f
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.14000fcd0
mov r9d, 0x104
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov edi, eax
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test edi, edi
jne 0x14000497a
cmp dword [rsp + 0x20], edi
jne 0x14000497a
mov dword [rsp + 0x24], 0x800
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.QueryFullProcessImageNameA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000497a
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140004a0d
mov byte [rsp + 0x150], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x151]
call fcn.14000fcd0
lea rcx, str.VERSION.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400049d1
mov r8, rax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.140004f30
lea rdx, str.Microsoft
lea rcx, [rsp + 0x150]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x140004a2f
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004a06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 1
jmp 0x140004a4c
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004a28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 1
jmp 0x140004a4c
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140004a4a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140009e70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140006120
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400061a4
lea r8, [rsp + 0x58]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x14000619e
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x34], rax
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1400061ab
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400061c0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov esi, edx
mov r13, rcx
call fcn.140006120
cmp eax, 1
je 0x1400061e7
xor eax, eax
jmp 0x140006369
xor edi, edi
mov qword [rsp + 0x48], rdi
mov rbx, rdi
mov qword [rsp + 0x40], rbx
mov r12, rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0xa8], rdi
mov r8d, esi
lea edx, [rdi + 1]
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140006331
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax + rax + 2]
movsxd r14, ecx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, r14
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14000626c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140006331
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8, r13
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140006331
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006331
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
mov r9, rax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x1400062f3
mov rbx, rdi
mov qword [rsp + 0x40], rbx
jmp 0x140006331
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14000630e
mov rbx, rdi
mov qword [rsp + 0x40], rbx
jmp 0x140006331
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140006331
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, 1
test r12, r12
je 0x14000634b
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140006359
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140006367
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140006550
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x58], 0x2c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140006594
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x58]
mov rcx, rax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1400065da
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140006584
lea rdx, [rsp + 0x58]
mov rcx, rbx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x1400065f9
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
test rbx, rbx
je 0x1400065eb
movzx ecx, byte [rbx + 0x19c]
movzx edx, byte [rbx + 0x19b]
movzx eax, byte [rbx + 0x19d]
movzx r10d, byte [rbx + 0x19a]
movzx r9d, byte [rbx + 0x199]
movzx r8d, byte [rbx + 0x198]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
lea rdx, str._02X:_02X:_02X:_02X:_02X:_02X
mov rcx, rdi
mov dword [rsp + 0x20], r10d
call fcn.14000a3e8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140007970
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x140020090]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x9c
call fcn.14000fcd0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x24], 6
jne 0x1400079e3
cmp dword [rsp + 0x28], 1
jne 0x1400079e3
cmp byte [rsp + 0xba], 1
jne 0x1400079e3
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140009e70
add rsp, 0xd8
ret
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140009e70
add rsp, 0xd8
ret
Function at 0x140008c00
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
mov edi, r9d
mov r12, r8
mov rbp, rdx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r8, [0x14001be38]
movzx edx, di
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140008cf7
mov rdx, rax
mov rcx, r13
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, r13
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, r12
mov r15, rax
sub rdx, rbx
movzx ecx, byte [rbx]
inc rbx
mov byte [rdx + rbx - 1], cl
test cl, cl
jne 0x140008c82
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rcx + rbp]
inc rcx
mov byte [rdi + rcx - 2], al
test al, al
jne 0x140008ca0
lea rdx, [0x14001be3c]
mov rcx, r12
call fcn.14000ad24
mov rdi, rax
test rax, rax
je 0x140008ce4
mov esi, 1
mov rdx, r14
mov r9, rax
mov r8, rsi
mov rcx, r15
call fcn.14000af10
mov rcx, rdi
call fcn.14000b040
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret