joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013da88
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
xor r15d, r15d
lea r8, [rsp + 0x30]
mov edx, ebx
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x14013dc0e
test eax, eax
jne 0x14013daee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14013dc13
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14013dc0e
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x14013dc0e
mov word [rax], r15w
mov r12d, 0x5c
movzx ecx, word [rsp + 0x30]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14013db2b
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14013db44
cmp word [rsp + 0x32], 0x3a
jne 0x14013db44
cmp word [rsp + 0x34], r12w
jne 0x14013dc0e
lea rsi, [rsp + 0x34]
cmp cx, r12w
jne 0x14013db80
cmp word [rsp + 0x32], r12w
jne 0x14013db80
mov edx, r12d
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x14013dc0e
mov edx, r12d
lea rcx, [rax + 2]
call sub.msvcrt.dll_wcschr
mov rsi, rax
test rax, rax
je 0x14013dc0e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14013db9f
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x14013dc13
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14013dbb5
lea rdi, [rsp + 0x30]
jmp 0x14013dbb9
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x14013dc0e
cmp word [rdi], r12w
jne 0x14013dc0e
cmp rdi, rsi
jbe 0x14013dc0e
mov edx, r12d
mov word [rdi], r15w
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r14, rax
test rax, rax
je 0x14013dc0e
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r15w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [r14 + 2], bx
cmp eax, 0xffffffff
jne 0x14013dc3e
mov rdi, r14
cmp r14, rsi
ja 0x14013dbc9
cmp rdi, rsi
ja 0x14013dc66
mov eax, 0x7b
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14013e2a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test al, 0x10
jne 0x14013dc09
mov eax, 0x10b
jmp 0x14013dc13
cmp word [rdi + 2], r15w
je 0x14013dc7c
mov word [rdi], r12w
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14013dc58
lea rdi, [rdi + rax*2]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14013dc49
jmp 0x14013dae3
xor eax, eax
jmp 0x14013dc13
Function at 0x14013e00c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1401715d8], rbx
je 0x14013e073
cmp rax, rbx
jne 0x14013e066
mov ebx, 1
mov esi, ebx
jmp 0x14013e078
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14013e04b
mov ebx, 1
mov eax, dword [0x1401715e0]
cmp eax, ebx
jne 0x14013e090
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14013e0fc
mov eax, dword [0x1401715e0]
test eax, eax
jne 0x14013e0f1
mov dword [0x1401715e0], ebx
lea r15, [0x140144b00]
lea rdi, [0x140144ae8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14013e0e3
test eax, eax
jne 0x14013e0e7
cmp qword [rdi], r14
je 0x14013e0d8
mov rax, qword [rdi]
mov rcx, qword [case.0x1400057f3.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14013e0ba
test eax, eax
je 0x14013e0f7
mov eax, 0xff
jmp 0x14013e252
mov dword [0x14016fc74], ebx
mov edi, 0x1f
mov eax, dword [0x1401715e0]
cmp eax, ebx
jne 0x14013e123
lea rdx, [0x140144ae0]
lea rcx, [0x140144a50]
call sub.msvcrt.dll__initterm
mov dword [0x1401715e0], 2
test esi, esi
jne 0x14013e131
mov rax, r14
xchg qword [0x1401715d8], rax
cmp qword [0x1401715f8], r14
je 0x14013e164
lea rcx, [0x1401715f8]
call fcn.14013e980
test eax, eax
je 0x14013e164
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1401715f8]
mov r9, qword [case.0x1400057f3.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14013e17d
mov eax, 0xff
jmp 0x14013e252
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14013e203
test ax, ax
je 0x14013e198
test edx, edx
jne 0x14013e203
sub ax, bx
cmp ax, di
ja 0x14013e1ae
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14013e198
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14005dc10
mov dword [0x14016fc70], eax
cmp dword [0x14016fc90], r14d
jne 0x14013e1ec
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14016fc74], r14d
jne 0x14013e201
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14016fc70]
jmp 0x14013e252
cmp ax, 0x22
jne 0x14013e217
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14013e186
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140208000
add rsp, 0x28
jmp 0x14013e00c
Function at 0x14013e890
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14013e8dc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14013e8d4
cmp dword [rcx + 0x3c], edx
jl 0x14013e8d4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14013e8d4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14013e8dc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14013eae4
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013eaec
push rbx
sub rsp, 0x540
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14013eb69
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14013eb89
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14013e2a0
add rsp, 0x540
pop rbx
ret

Function at 0x14013eaec
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013eaec
push rbx
sub rsp, 0x540
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14013eb69
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14013eb89
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14013e2a0
add rsp, 0x540
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097d0]
mov dword [rax], 1
mov rax, qword [0x1400097e0]
mov dword [rax], 1
mov rax, qword [0x140009760]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097b0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400098a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140009710]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14000159c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x408
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp + 0x150]
mov r8d, 8
lea rdx, str.shellcode_hex.txt
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream_char_const__std::_Ios_Openmode_
lea rax, [rbp + 0x130]
mov rcx, rax
call fcn.1400017c8
lea rax, [rbp + 0x150]
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::is_open__
test al, al
je 0x14000168e
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_stringstream_char__std::char_traits_char___std::allocator_char___::basic_stringstream__
lea rax, [rbp + 0x150]
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::rdbuf___const
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, 0x10
mov rcx, rax
call sym.std::ostream::operator___std::basic_streambuf_char__std::char_traits_char____
lea rax, [rbp + 0x340]
lea rdx, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_stringstream_char__std::char_traits_char___std::allocator_char___::str___const
lea rdx, [rbp + 0x340]
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp + 0x340]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::length___const
shr rax, 1
mov qword [rbp + 0x378], rax
lea rax, [rbp + 0x150]
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::close__
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400017a8
mov rax, qword [rbp + 0x378]
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x378]
mov ecx, eax
mov rdx, qword [rbp + 0x370]
lea rax, [rbp + 0x130]
mov r8d, ecx
mov rcx, rax
call sym.hexStringToBytes_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__unsigned_char__int_
mov rax, qword [rbp + 0x378]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x368], rax
mov rcx, qword [rbp + 0x378]
mov rdx, qword [rbp + 0x370]
mov rax, qword [rbp + 0x368]
mov r8, rcx
mov rcx, rax
call sym.memcpy
lea rax, str.test_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x368]
call rax
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x150]
mov rcx, rax
call sym.std::basic_ifstream_char__std::char_traits_char___::basic_ifstream__
mov eax, 0
jmp 0x14000178b
add rsp, 0x408
pop rbx
pop rbp
ret
Function at 0x140001ae0
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 dword [rax]

Function at 0x140001b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
test esi, esi
mov rbx, rcx
jle 0x140001c80
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001ca2
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c30
add dword [0x14000c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ba8
mov rax, qword [0x14000c098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002210
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x14000226c
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 0x140002263
test rsi, rsi
je 0x140002263
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002248
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 0x140002480
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x1400024a0
Capabilities:
Parse pe header

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

Function at 0x1400024d0
Capabilities:
Enumerate pe sections

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

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025b0
mov rdx, qword [0x140009760]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000259e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000259e
cmp word [rax + 0x18], 0x20b
jne 0x14000259e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002589
add rbx, 0x28
cmp rbx, rdi
je 0x1400025b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002580
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 0x1400025c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000263d
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]
cmp rcx, r8
mov rdx, r8
jb 0x140002634
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025e0
add rax, 0x28
cmp rax, r9
jne 0x140002620
xor eax, eax
ret

Function at 0x140002640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009760]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000265f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002668
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000265f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009760]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026a0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400026f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400026e7
test rcx, rcx
je 0x1400026a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400026d8
xor eax, eax
ret

Function at 0x140002700
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140009760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002760
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002768
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002760
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002760
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]
cmp rcx, r8
mov rax, r8
jb 0x1400027b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400027c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400027a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009760]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400027f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002800
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400027f2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400027f2
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]
cmp rax, r9
mov r8, r9
jb 0x140002855
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002868
add rdx, 0x28
cmp rdx, r10
jne 0x140002840
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002877
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002887
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000285e
test ecx, ecx
jg 0x140002870
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1000010b0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10007f258]
jne 0x100013904
rol rcx, 0x10
test cx, 0xffff
jne 0x100013900
ret 0
ror rcx, 0x10
jmp 0x10002f0c8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10007f5d0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10007f6c8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10002f14d
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, [0x10007f5d0]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x10002f16f
mov rax, qword [rsp + 0x88]
mov qword [0x10007f6c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10007f668], rax
mov rax, qword [0x10007f6c8]
mov qword [0x10007f540], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10007f650], rax
mov dword [0x10007f530], 0xc0000409
mov dword [0x10007f534], 1
mov rax, qword [0x10007f258]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10007f260]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100079770]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x100001180
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x10007f22c], 0
je 0x10000a514
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call sym.spoolsv.exe_PrvRevertToPrinterSelf
xor edx, edx
lea r8, str.RouterPreInitEvent
lea ecx, [rdx + 2]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x100015b3d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x10000a561
mov rcx, rdi
call sym.spoolsv.exe_PrvImpersonatePrinterClient
test eax, eax
je 0x100015b9e
mov rcx, qword [0x100080ae0]
or edx, 0xffffffff
call fcn.10000a57c
nop
jmp 0x100001197
mov rax, qword [0x10007f250]
lea rcx, [0x10007f250]
cmp rax, rcx
je 0x100015b79
test byte [rax + 0x1c], 1
je 0x100015b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea edx, [rbx + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100076228]
mov r9d, eax
call fcn.10001c084
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1000777f8]
xor r8d, r8d
mov edx, eax
call fcn.1000332e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x69
mov edx, eax
call fcn.100033420
nop
jmp 0x10000a561