joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003a40
Capabilities:
Delete file

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x180049170]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rbp, rdx
xor edi, edi
mov qword [r11 - 0x18], 0xf
mov qword [r11 - 0x20], rdi
mov byte [r11 - 0x30], dil
call fcn.18000bdcc
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x180003aa9
mov ecx, 0x80004005
call fcn.180001030
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
call fcn.18000bdcc
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x180003ad7
mov ecx, 0x80004005
call fcn.180001030
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x58], socket
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x40], 0
mov r8d, 3
lea rdx, [0x180037d30]
lea rcx, [rsp + 0x38]
call fcn.180001df0
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.180008a80
nop
or rsi, 0xffffffffffffffff
mov r9, rsi
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xb0]
call fcn.180001cd0
nop
cmp qword [rsp + 0x80], 0x10
jb 0x180003b54
mov rcx, qword [rsp + 0x68]
call fcn.18000b8f0
mov qword [rsp + 0x80], socket
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x68], 0
cmp qword [rsp + 0x58], 0x10
jb 0x180003b7c
mov rcx, qword [rsp + 0x40]
call fcn.18000b8f0
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0x10
cmovae rdx, qword [rsp + 0xb8]
cmp qword [rbp + 0x20], 0x10
jb 0x180003ba3
mov rcx, qword [rbp + 8]
jmp 0x180003ba7
lea rcx, [rbp + 8]
call fcn.180007010
test eax, eax
jne 0x180003bf4
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0x10
cmovae rdx, qword [rsp + 0xb8]
xor r9d, r9d
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor ecx, ecx
call fcn.180009270
test eax, eax
je 0x180003c15
mov edi, 1
jmp 0x180003c15
lea rcx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0x10
cmovae rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180003c30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180003c4f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
cmp qword [rsp + 0xd0], 0x10
jb 0x180003c67
mov rcx, qword [rsp + 0xb8]
call fcn.18000b8f0
mov eax, edi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.18001d8a0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180007320
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18000c468
lea r8, str.VcNegExec
xor edx, edx
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18000735c
lea rcx, [0x1800071f0]
xor r8d, r8d
xor edx, edx
call fcn.18001f43c
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800073e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180049170]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18001d8a0
add rsp, 0x1d8
ret

Function at 0x180007450
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x180007480
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1005
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1800081b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdx, r8
call fcn.1800201d0
mov rdi, rax
test rax, rax
je 0x18000820d
mov rcx, qword [rsi]
mov r9, rax
mov edx, 1
movsxd r8, dword [rcx - 0x10]
mov qword [rsp + 0x30], rbx
call fcn.18001fff4
mov rcx, rdi
mov rbx, rax
call fcn.18001fde0
mov r11, qword [rsi]
xor eax, eax
cmp ebx, dword [r11 - 0x10]
mov rbx, qword [rsp + 0x30]
sete al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180008830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x20], 0x10
mov rdi, r9
mov rbp, r8
jb 0x180008852
mov r8, qword [rdx + 8]
jmp 0x180008856
lea r8, [rdx + 8]
movzx edx, cx
mov rcx, r9
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
je 0x1800088af
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1800088af
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8, rbx
mov rdx, rax
mov rcx, rbp
call fcn.180001df0
mov eax, 1
jmp 0x1800088b1
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180008a80
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180049170]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x58], socket
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x40], al
mov qword [rcx + 0x20], select
mov qword [rcx + 0x18], rax
mov byte [rcx + 8], al
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x180008b9b
cmp eax, 0x104
jae 0x180008b9b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180001df0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
cmp qword [rsi + 0x20], 0x10
jb 0x180008b52
mov rdx, qword [rsi + 8]
jmp 0x180008b56
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x60]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x180008b9b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180001df0
nop
cmp qword [rsp + 0x58], 0x10
jb 0x180008bb2
mov rcx, qword [rsp + 0x40]
call fcn.18000b8f0
mov rax, rbx
jmp 0x180008bb5
mov rax, rbx
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18001d8a0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180009270
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push r12
sub rsp, 0xf0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movzx edi, r9w
mov rsi, r8
mov rbp, rdx
mov r12, rcx
mov dword [rax - 0x78], 0
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rax - 0x70]
call fcn.18001dcc0
call fcn.18000bdcc
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x1800092d7
mov ecx, 0x80004005
call fcn.180001030
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
call fcn.18000bdcc
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x180009305
mov ecx, 0x80004005
call fcn.180001030
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x80], WSAGetLastError
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov qword [rsp + 0x98], rsi
mov word [rsp + 0xc0], di
mov dword [rsp + 0xbc], 1
or rsi, 0xffffffffffffffff
test r12, r12
je 0x18000937c
xor eax, eax
mov rcx, rsi
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
je 0x18000937c
mov r8d, ecx
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.180001970
mov rbx, qword [rsp + 0x50]
test rbp, rbp
je 0x1800093e0
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x1800093e0
cmp dword [rbx - 0x10], eax
je 0x1800093bd
mov rcx, rsi
lea rdi, [0x180038480]
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x180038480]
lea rcx, [rsp + 0x50]
call fcn.180001bc0
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.180001bc0
mov rbx, qword [rsp + 0x50]
lea rdi, [rsp + 0x60]
mov rax, qword [rsp + 0x128]
test rax, rax
cmovne rdi, rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
test eax, eax
je 0x18000946d
lea rax, [rsp + 0x60]
cmp rdi, rax
je 0x18000946d
lea rax, [rsp + 0x60]
mov rcx, qword [rax]
mov qword [rdi], rcx
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rax + 0x10]
mov qword [rdi + 0x10], rcx
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180009488
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1800094a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebp
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x18000fac8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.18001a3c0
mov rsi, rax
test rax, rax
je 0x18000fb44
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x18000fb3f
cmp dword [rbx], 0x40
jb 0x18000fb3f
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x18000fb3f
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x18000fb48
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180020c1c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.18002be68
nop
cmp dword [0x18004e5d0], 1
je 0x180020bc8
mov dword [0x18004e5cc], 1
mov byte [0x18004e5c8], r12b
test ebx, ebx
jne 0x180020bb4
mov rcx, qword [0x1800506b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180020ba1
mov rcx, qword [0x1800506a8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x180020b40
call fcn.180023b58
cmp qword [rdi], rax
jne 0x180020b40
jmp 0x180020b26
cmp rdi, rsi
jb 0x180020ba1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.180023b58
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1800506b0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1800506a8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x180020b7f
cmp r13, rax
je 0x180020b9f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x180020b26
lea rdx, [0x180037a30]
lea rcx, [0x180037a18]
call fcn.180020970
lea rdx, [0x180037a40]
lea rcx, [0x180037a38]
call fcn.180020970
nop
test r12d, r12d
je 0x180020bd7
mov ecx, 8
call fcn.18002bd68
test r12d, r12d
jne 0x180020c02
mov dword [0x18004e5d0], 1
lea ecx, [r12 + 8]
call fcn.18002bd68
mov ecx, r15d
call fcn.180020904
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180020a90
Function at 0x180025593
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180049170]
jne 0x18001d8ba
rol rcx, 0x10
test cx, 0xffff
jne 0x18001d8b6
repz ret
ror rcx, 0x10
jmp 0x1800254ec
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18004e690]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18004e788]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180025571
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18004e690]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180025593
mov rax, qword [rsp + 0x88]
mov qword [0x18004e788], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18004e728], rax
mov rax, qword [0x18004e788]
mov qword [0x18004e600], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18004e710], rax
mov dword [0x18004e5f0], 0xc0000409
mov dword [0x18004e5f4], 1
mov rax, qword [0x180049170]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180049178]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18004e688], eax
mov ecx, 1
call fcn.180023b48
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18003c070]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18004e688], 0
jne 0x18002561a
mov ecx, 1
call fcn.180023b48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18002f4c4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180023b58
xor ebx, ebx
mov rdi, rax
cmp qword [0x18004f3d0], rbx
jne 0x18002f5ca
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18002f69f
lea rdx, [0x18003d990]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18002f69f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18003d980]
mov rcx, rsi
mov qword [0x18004f3d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18003d968]
mov rcx, rsi
mov qword [0x18004f3d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18004f3e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18004f3f0], rax
test rax, rax
je 0x18002f5c1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18004f3e8], rax
jmp 0x18002f5d1
mov rax, qword [0x18004f3e8]
jmp 0x18002f5d8
mov rax, qword [0x18004f3e8]
mov r11, qword [0x18004f3f0]
cmp rax, rdi
je 0x18002f640
cmp r11, rdi
je 0x18002f640
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18004f3f0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18002f640
test rax, rax
je 0x18002f640
call rsi
test rax, rax
je 0x18002f63a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18002f63a
test byte [rsp + 0x38], 1
jne 0x18002f640
bts ebp, 0x15
jmp 0x18002f67e
mov rcx, qword [0x18004f3d8]
cmp rcx, rdi
je 0x18002f67e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18002f67e
call rax
mov rbx, rax
test rax, rax
je 0x18002f67e
mov rcx, qword [0x18004f3e0]
cmp rcx, rdi
je 0x18002f67e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18002f67e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18004f3d0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18002f69f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18002f6a1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400012a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, rdx
mov r8d, 0xa
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400013b0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400013b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test rdi, rdi
je 0x1400013b0
test eax, eax
je 0x1400013b0
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140002ca0
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x140001361
xor bl, bl
jmp 0x1400013a1
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x38]
call fcn.140003290
test rax, rax
jne 0x14000139f
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.1400013e0
movzx eax, bl
jmp 0x1400013b2
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140003830
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140001d80
Capabilities:
Acquire debug privileges
Create thread
Inject dll
Inject thread

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001f56
lea r8, [rsp + 0x48]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x140001de4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001f56
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x70], r14
xor edx, edx
xor r14d, r14d
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], 2
lea r9d, [r14 + 0x10]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x40]
test eax, eax
jne 0x140001e35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001f51
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001f51
mov qword [rsp + 0xa0], rbp
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0xa8], rsi
nop
cmp word [rdi + rcx*2 + 2], r14w
lea rcx, [rcx + 1]
jne 0x140001e70
lea rbp, [rcx*2 + 2]
mov dword [rsp + 0x20], 4
mov r8, rbp
mov r9d, 0x1000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov rcx, rbx
test rax, rax
je 0x140001f3b
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140001f23
lea rcx, [0x140005638]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
je 0x140001f23
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140003830
add rsp, 0x78
pop rdi
pop rbx
ret