joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004047e0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004047f0]
mov dword [rax], 1
mov rax, qword [0x00404800]
mov dword [rax], 1
mov rax, qword [0x004047d0]
mov dword [rax], 1
mov rax, qword [0x004046c0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004047c0]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404780]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00404670]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
sub rsp, 0x3e0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x370], ecx
mov qword [rbp + 0x378], rdx
call sym.__main
mov dword [rbp + 0x34c], 0
lea rax, [rbp - 0x40]
lea rdx, section..rdata
mov ecx, 0x37d
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x34c], 0x37d
mov dword [rbp + 0x35c], 0
mov eax, dword [rbp + 0x34c]
cmp dword [rbp + 0x35c], eax
jge 0x4015e0
mov eax, dword [rbp + 0x35c]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor eax, 0xa
mov edx, eax
mov eax, dword [rbp + 0x35c]
cdqe
mov byte [rbp + rax - 0x40], dl
add dword [rbp + 0x35c], 1
jmp 0x4015ab
mov eax, dword [rbp + 0x34c]
cdqe
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x48], rax
mov eax, dword [rbp + 0x34c]
movsxd rdx, eax
mov rcx, qword [rbp - 0x48]
lea rax, [rbp - 0x40]
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp - 0x48]
mov rdx, rax
lea rax, [rbp + 0x348]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x350], rax
mov rax, qword [rbp + 0x350]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x3e0
pop rbp
ret
Function at 0x401bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401d38
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401bfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401be0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401d6d
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401c7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401ce0
add dword [0x00407624], 1
cmp edi, 8
jae 0x401cb3
test dil, 4
jne 0x401d24
test edi, edi
je 0x401ca8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401d3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401ca8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401ccc
jmp 0x401ca8
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401ca8
xor esi, esi
jmp 0x401c07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401ca8
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4024c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402514
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40250b
test rsi, rsi
je 0x40250b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024f0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402750
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402760
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402770
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4027b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4027a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4027b3
add rax, 0x28
cmp rax, r9
jne 0x402794
xor eax, eax
ret

Function at 0x402850
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004046c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4028bd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4028bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4028b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4028bf
add rax, 0x28
cmp rax, r9
jne 0x4028a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4029c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004046c0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4029e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029d8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a44
add rax, 0x28
cmp rax, r9
jne 0x402a20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402a60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004046c0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402ace
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ace
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402ace
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402ace
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402ac5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402ad5
add rcx, 0x28
cmp rcx, rax
jne 0x402ab0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402ae8
jmp 0x402ace
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402af6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402ace
test r9d, r9d
jg 0x402ae0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402d40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400281f8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14003cd00], eax
call fcn.140028cc4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14003cd00], 0
jne case.default.0x14002824e
mov ecx, 1
call fcn.140028cc4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
push rax
movsb byte [rdi], byte [rsi]
cmp eax, 0xfd5c56fd
mov al, 0x78
retf 0x30d1
Function at 0x1400015d4
Capabilities:
Accept command line arguments

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 - 0xf8]
sub rsp, 0x1e0
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rbp + 0xd0], rax
xor esi, esi
mov dword [rbp - 0x7c], 2
lea rax, [0x140014070]
mov qword [rsp + 0x58], rsi
xorps xmm0, xmm0
mov dword [0x14001ebc0], esi
lea r15, [0x140014030]
mov qword [rsp + 0x78], rsi
lea r14d, [rsi + 1]
mov byte [rbp - 0x80], sil
mov ecx, r14d
mov qword [rsp + 0x70], rax
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rsi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
lea rcx, [rsp + 0x60]
call fcn.14000136c
test eax, eax
js 0x14000175c
mov rcx, qword [rsp + 0x68]
lea eax, [rsi + 3]
mov qword [rsp + 0x40], rsi
or edi, 0xffffffff
mov dword [rsp + 0x38], esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov edx, edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeSecurity]
test eax, eax
js 0x14000175c
lea rax, [rsp + 0x58]
mov r8d, r14d
lea r9, [0x1400151a8]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x140015150]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
js 0x140001732
mov ebx, 0x114
lea rcx, [rbp - 0x50]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rbp - 0x50], ebx
lea rcx, [rbp - 0x50]
mov ebx, r14d
call fcn.140011368
test eax, eax
je 0x140001705
cmp dword [rbp - 0x40], 2
jne 0x140001705
cmp dword [rbp - 0x4c], 6
jne 0x140001705
cmp dword [rbp - 0x48], esi
cmove ebx, esi
mov rcx, qword [rsp + 0x58]
mov edx, r14d
mov r8d, ebx
add r8, r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140014db0]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140014db0]
cmp byte [0x14001ebb0], sil
jne 0x14000175e
mov dword [rsp + 0x50], esi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x50]
call fcn.1400035e0
cmp al, r14b
jne 0x1400017a5
call fcn.1400017ac
mov edi, eax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
call fcn.140001e20
lea rcx, [rsp + 0x70]
call fcn.140002794
mov eax, edi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140012130
lea r11, [rsp + 0x1e0]
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
mov edi, dword [rsp + 0x50]
jmp 0x14000175e
Function at 0x140005b54
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push r14
sub rsp, 0xa0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov ebx, r8d
mov r14d, edx
mov rsi, rcx
cmp dword [rcx], 0
jne 0x140005c4d
mov rax, qword [0x14001e1e0]
lea rcx, [0x14001e1e0]
mov rax, qword [rax + 0x18]
call qword [0x140014db0]
add rax, 0x18
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x8c], ebx
lea r8, [rsp + 0xe0]
mov qword [rsp + 0x78], r8
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x90]
call fcn.140006380
nop
lea rcx, [rsi + 0x38]
lea rdx, [rsp + 0x88]
call fcn.1400065a8
nop
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005c10
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140014db0]
xor eax, eax
add rsp, 0xa0
pop r14
pop rsi
pop rbx
ret
cmp ebx, dword [rcx + 0x90]
ja 0x140005c10
test ebx, ebx
je 0x140005c10
sub ebx, 1
je 0x140005c74
sub ebx, 1
je 0x140005c6d
sub ebx, 1
mov ecx, 0x4000000
jmp 0x140005c79
mov ecx, 0x3000000
jmp 0x140005c79
mov ecx, 0x2000000
lea rbx, [rsp + 0xe0]
mov qword [rsp + 0x80], rbx
mov rax, qword [rsi + 0x20]
test rax, rax
je 0x140005d0a
cmp qword [rsi + 0x18], 0
je 0x140005d0a
cmp qword [rsi + 0x28], 0
je 0x140005d0a
mov r8, rbx
mov rdx, r9
call qword [0x140014db0]
mov rbx, rax
mov rax, qword [rsi + 0x28]
call qword [0x140014db0]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
lea rax, str.CPanther::WdsSetupLogMessageW
mov qword [rsp + 0x30], rax
lea rax, str.onecore_base_ntsetupopktoolsdismlibutilpantherwrapper.cpp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
lea r8, [0x140015938]
mov edx, r14d
mov rcx, rbx
mov rax, qword [rsi + 0x18]
call qword [0x140014db0]
jmp 0x140005d71
mov rax, qword [0x14001e1e0]
lea rcx, [0x14001e1e0]
mov rax, qword [rax + 0x18]
call qword [0x140014db0]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8, rbx
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x68]
call fcn.140006380
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005d71
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140014db0]
nop
jmp 0x140005c10
Function at 0x1400076e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400077a4
test rdx, rdx
je 0x1400077a4
xor r9d, r9d
lea rdx, [0x140015aa8]
lea edi, [r9 + 1]
mov r8d, edi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FindResourceExW]
test rax, rax
jne 0x14000772b
xor ebx, ebx
jmp 0x14000773a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadResource]
mov rbx, rax
xor r9d, r9d
lea rdx, [0x140015aa8]
mov r8, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FindResourceExW]
test rax, rax
jne 0x140007759
xor ecx, ecx
jmp 0x140007768
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_LoadResource]
mov rcx, rax
test rbx, rbx
je 0x140007799
test rcx, rcx
je 0x140007799
mov eax, 0xfecdfecd
cmp dword [rbx], eax
jne 0x140007793
cmp dword [rcx], eax
jne 0x140007793
mov rax, qword [rbx + 0x1c]
cmp rax, qword [rcx + 0x1c]
jne 0x140007793
mov rax, qword [rbx + 0x24]
cmp rax, qword [rcx + 0x24]
je 0x140007795
xor edi, edi
mov eax, edi
jmp 0x1400077a6
mov ecx, 0xd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140007e10
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov word [rbp + 0x4b], 0x500
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x47], ebx
mov qword [r11 - 0x48], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov esi, ebx
mov dword [rsp + 0x28], ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp + 0x37], rbx
mov dword [rbp + 0x3f], ebx
mov word [rbp + 0x43], 0x500
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140007ec3
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
test eax, eax
je 0x140007eaf
mov esi, dword [rbp + 0x27]
jmp 0x140007eb7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
jmp 0x140007ecb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
test esi, esi
je 0x140007ede
mov eax, 1
jmp 0x140007f3b
lea rax, [rbp + 0x37]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x47]
mov dword [rsp + 0x48], ebx
mov dl, 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
lea r8d, [r9 + 0x13]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140007f39
mov rdx, qword [rbp + 0x37]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov rcx, qword [rbp + 0x37]
test eax, eax
cmovne ebx, dword [rbp + 0x27]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140012130
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000813c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14001e288]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x140015e98]
lea rcx, [0x14001ebd0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetTempFileNameW]
xor esi, esi
test eax, eax
je 0x140008208
mov r9d, 0x104
lea rcx, [rsp + 0x20]
mov eax, r9d
cmp word [rcx], si
je 0x1400081b6
add rcx, 2
sub rax, 1
jne 0x1400081a7
test rax, rax
je 0x1400081c0
sub r9, rax
jmp 0x1400081c3
mov r9, rsi
test rax, rax
je 0x140008208
add r9, 0xfffffffffffffffd
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
call fcn.140006b4c
test eax, eax
js 0x140008208
mov rdx, rbx
mov rcx, rdi
call fcn.1400066c0
test eax, eax
js 0x140008208
mov rax, qword [0x14001f070]
lea rcx, [rsp + 0x20]
call qword [0x140014db0]
mov eax, 1
jmp 0x14000820a
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140012130
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140008230
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rdi, r9
mov r12, r8
mov r13, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [r11 - 0x50], r15
or rax, 0xffffffffffffffff
mov qword [r11 - 0x40], rax
mov r14, rax
mov qword [r11 - 0x48], rax
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
and qword [r11 - 0x68], rax
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r13
mov rax, qword [0x14001f048]
call qword [0x140014db0]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, r14
je 0x14000838d
test rbx, rbx
je 0x1400082d9
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x64], rbx
and dword [rsp + 0x6c], r15d
neg rbx
sbb rdi, rdi
lea rax, [rsp + 0x60]
and rdi, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rsi
mov edx, ebx
mov rax, qword [0x14001f068]
call qword [0x140014db0]
test eax, eax
je 0x140008385
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
je 0x140008385
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140008385
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
mov r15, rax
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xb8]
test r15, r15
jne 0x1400083d9
cmp r14, 0xffffffffffffffff
je 0x1400083a8
mov rcx, r14
mov rax, qword [0x14001f058]
call qword [0x140014db0]
cmp rsi, 0xffffffffffffffff
je 0x1400083d4
mov rcx, rsi
mov rax, qword [0x14001f058]
call qword [0x140014db0]
cmp rsi, 0xffffffffffffffff
je 0x1400083d4
mov rcx, r13
mov rax, qword [0x14001f070]
call qword [0x140014db0]
test r15, r15
je 0x1400083ff
test rdi, rdi
je 0x1400083e6
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x1400083f6
mov qword [rax], r14
test r12, r12
je 0x1400083ff
mov qword [r12], rsi
mov rax, r15
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000869c
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
or edi, 0xffffffff
cmp dword [0x14001e2a0], edi
jne 0x1400086c3
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov dword [0x14001e2a0], eax
cmp eax, edi
je 0x1400086e0
cmp dword [0x14001e2a4], edi
jne 0x1400086db
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsAlloc]
mov dword [0x14001e2a4], eax
cmp eax, edi
je 0x1400086e0
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret