joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000161c
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, [0x140004004]
mov r8d, 0x110
call fcn.140002c80
lea rcx, [section..data]
mov dword [section..data], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x1400016e7
mov eax, dword [0x140004004]
cmp eax, 6
jne 0x14000168b
mov eax, dword [0x140004008]
cmp eax, 1
jne 0x140001677
mov dword [0x140004114], 0x200
mov al, 1
jmp 0x1400016f0
add eax, 0xfffffffe
cmp eax, 1
ja 0x1400016e7
mov dword [0x140004114], 0x408
jmp 0x140001673
cmp eax, 0xa
jne 0x1400016e7
cmp dword [0x140004008], 0
jne 0x1400016e7
mov ecx, dword [0x14000400c]
lea eax, [rcx - 0x2800]
cmp eax, 0x1fbb
ja 0x1400016b8
mov dword [0x140004114], 0x418
jmp 0x140001673
lea eax, [rcx - 0x4a61]
cmp eax, 4
jbe 0x1400016db
cmp ecx, 0x55f0
je 0x1400016db
cmp ecx, 0x585d
je 0x1400016db
cmp ecx, 0x5867
jne 0x1400016e7
mov dword [0x140004114], 0x570
jmp 0x140001673
and dword [0x140004114], 0
xor al, al
add rsp, 0x28
ret

Function at 0x140001b28
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r15, r8
mov r12, rdx
mov rdi, rcx
mov ebx, 0xc0000001
call fcn.14000283c
test al, al
je 0x140001c7f
test r12, r12
je 0x140001c7f
test r15, r15
je 0x140001c7f
xor ebp, ebp
lea rcx, [rsp + 0x60]
xor edx, edx
lea r8d, [rbp + 0x30]
call fcn.140002c80
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rax, rdi
jne 0x140001c7f
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov edx, 0x2abd68
xor ecx, ecx
mov r14, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x140001c4c
xor ebx, ebx
test r14, r14
js 0x140001c4a
xor r13d, r13d
lea rsi, [rax + 0x10]
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], 0x30
mov rdx, rbx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
test eax, eax
js 0x140001c36
mov rcx, qword [rsp + 0x48]
inc ebp
mov qword [rsi - 0x10], rbx
inc r13
mov rax, qword [rsp + 0x48]
mov qword [rsi - 8], rax
mov eax, dword [rsp + 0x54]
mov dword [rsi], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 4], eax
mov eax, dword [rsp + 0x58]
mov dword [rsi + 8], eax
add rsi, 0x1c
cmp r13, 0x18696
jg 0x140001c4a
jmp 0x140001c42
cmp eax, 0xc000000d
je 0x140001c4a
mov ecx, 0x1000
add rbx, rcx
cmp rbx, r14
jle 0x140001bd4
xor ebx, ebx
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x140001c7f
test ebp, ebp
jle 0x140001c74
mov r8d, 0x2ab980
mov rdx, rdi
mov rcx, r15
call fcn.140002940
mov dword [r12], ebp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001ca4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and dword [0x140004124], 0
mov r12, r8
mov rsi, rdx
mov r14, rcx
test r8, r8
je 0x140001e52
mov rcx, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov r8, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
mov rdx, rsi
mov r9, rax
mov rcx, r14
mov r8, qword [r8]
call fcn.1400016f8
mov r15d, 8
mov ebx, r15d
mov edi, r15d
and qword [rbp + 0x40], 0
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001d4c
mov rcx, qword [rbp + 0x40]
call fcn.14000283c
test al, al
je 0x140001d42
mov r8, qword [rbp + 0x40]
mov r9d, ebx
mov rdx, rsi
mov rcx, r14
call fcn.1400016f8
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add ebx, 4
add rdi, 4
cmp ebx, 0x30d40
jl 0x140001d0d
cmp dword [0x140004118], 0
je 0x140001d9c
cmp dword [0x14000411c], 0
je 0x140001d9c
cmp dword [0x140004120], 0
je 0x140001d9c
mov rax, qword gs:[0x188]
lea rdx, [rbp - 0x60]
lea rcx, [0x1400017c4]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], rsi
call qword [sym.imp.ntoskrnl.exe_KeIpiGenericCall]
mov ebx, 0xc34e
and qword [rbp + 0x40], 0
lea rdx, [rbp + 0x40]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001e36
mov rcx, qword [rbp + 0x40]
call fcn.14000283c
test al, al
je 0x140001e2c
mov rcx, qword [rbp + 0x40]
call sub.ntoskrnl.exe_PsGetProcessWow64Process
test rax, rax
jne 0x140001e2c
mov rcx, qword [rbp + 0x40]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
lea rdx, [0x140002da0]
mov rcx, rax
call sub.ntoskrnl.exe__stricmp
test eax, eax
jne 0x140001e2c
xor edx, edx
lea r8d, [rax + 0x30]
lea rcx, [rbp - 0x38]
call fcn.140002c80
mov rcx, qword [rbp + 0x40]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rax, qword [rbp + 0x40]
jne 0x140001e2c
mov rdx, rsi
mov rcx, r14
call fcn.140002790
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add r15, 4
sub rbx, 1
jne 0x140001da1
mov eax, dword [0x140004124]
mov dword [r12], eax
xor eax, eax
jmp 0x140001e57
mov eax, 0xc0000001
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140001e74
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x250
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov ebp, 0xc0000001
call fcn.14000283c
xor r12d, r12d
test al, al
je 0x140001fd5
test rdi, rdi
je 0x140001ec2
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x140001ec5
mov al, r12b
test al, al
je 0x140001fd5
test r14, r14
je 0x140001fd5
cmp byte [rdi], r12b
je 0x140001fd5
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call fcn.140002c80
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rax, rbx
jne 0x140001fd5
mov rcx, rbx
mov esi, r12d
call sub.ntoskrnl.exe_PsGetProcessWow64Process
mov rbx, rax
test rax, rax
je 0x140001f2a
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x140001f2d
mov al, r12b
test al, al
je 0x140001fc7
mov ecx, dword [rbx + 0xc]
test rcx, rcx
je 0x140001f45
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x140001f48
mov al, r12b
test al, al
je 0x140001fc7
mov eax, dword [rbx + 0xc]
mov ebx, dword [rax + 0xc]
mov r15d, dword [rax + 0x10]
test rbx, rbx
je 0x140001f66
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x140001f69
mov al, r12b
test al, al
je 0x140001fc7
cmp dword [rbx + 0x18], r12d
je 0x140001fb8
cmp dword [rbx + 0x30], r12d
je 0x140001fb8
cmp word [rbx + 0x2c], r12w
jbe 0x140001fb8
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.140002c80
mov r8d, dword [rbx + 0x30]
lea rdx, [0x140002d70]
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe_sprintf
mov rdx, rdi
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x140001fc1
cmp rbx, r15
je 0x140001fc7
mov ebx, dword [rbx]
jmp 0x140001f56
mov esi, dword [rbx + 0x18]
mov ebp, r12d
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov dword [r14], esi
lea r11, [rsp + 0x250]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140001ffc
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x250
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov ebp, 0xc0000001
call fcn.14000283c
xor r12d, r12d
test al, al
je 0x140002162
test rdi, rdi
je 0x14000204a
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x14000204d
mov al, r12b
test al, al
je 0x140002162
test r14, r14
je 0x140002162
cmp byte [rdi], r12b
je 0x140002162
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call fcn.140002c80
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rax, rbx
jne 0x140002162
mov rcx, rbx
mov rsi, r12
call sub.ntoskrnl.exe_PsGetProcessPeb
mov rbx, rax
test rax, rax
je 0x1400020b2
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x1400020b5
mov al, r12b
test al, al
je 0x140002154
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400020ce
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x1400020d1
mov al, r12b
test al, al
je 0x140002154
mov rax, qword [rbx + 0x18]
mov rbx, qword [rax + 0x10]
mov r15, qword [rax + 0x18]
test rbx, rbx
je 0x1400020f1
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
jmp 0x1400020f4
mov al, r12b
test al, al
je 0x140002154
cmp qword [rbx + 0x30], r12
je 0x140002143
cmp qword [rbx + 0x60], r12
je 0x140002143
cmp word [rbx + 0x58], r12w
jbe 0x140002143
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.140002c80
mov r8, qword [rbx + 0x60]
lea rdx, [0x140002d70]
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe_sprintf
mov rdx, rdi
lea rcx, [rsp + 0x50]
call sub.ntoskrnl.exe__stricmp
test eax, eax
je 0x14000214d
cmp rbx, r15
je 0x140002154
mov rbx, qword [rbx]
jmp 0x1400020e1
mov rsi, qword [rbx + 0x30]
mov ebp, r12d
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov qword [r14], rsi
lea r11, [rsp + 0x250]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x140002338
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov edi, 0xc0000001
test ecx, ecx
je 0x140002392
test rdx, rdx
je 0x140002392
and qword [rdx], 0
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], 0
movsxd rcx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140002392
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140002392
call fcn.14000283c
mov rcx, qword [rsp + 0x40]
test al, al
je 0x14000238c
mov qword [rbx], rcx
xor edi, edi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1400024d4
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
push rdi
push r14
push r15
sub rsp, 0x470
mov rsi, r9
movsxd rdi, r8d
mov r14, rdx
mov r15, rcx
mov ebx, 0xc0000001
call fcn.14000283c
test al, al
je 0x1400025c2
test r14, r14
je 0x1400025c2
test edi, edi
jle 0x1400025c2
test rsi, rsi
je 0x1400025c2
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140002c80
lea rdx, [rsp + 0x28]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp rax, r15
jne 0x1400025c2
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x1400025a3
mov r8d, 1
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.140002940
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1400025a3
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test ebx, ebx
js 0x1400025c2
movsxd r8, edi
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140002940
mov eax, ebx
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x8ad470
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x8ad47d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x8ad48d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x8ad475
lea eax, [rcx + 1]
jmp 0x8ad49b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x8ad4ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x8ad494
sub eax, 3
jb 0x8ad4ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x8ad51d
sar eax, 1
movsxd rbp, eax
jb 0x8ad504
jmp 0x8ad4dc
add ebx, ebx
jne 0x8ad4da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8ad504
inc ecx
add ebx, ebx
jne 0x8ad4ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8ad504
call r11
adc ecx, ecx
add ebx, ebx
jne 0x8ad4fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x8ad4ec
add ecx, 2
jmp 0x8ad509
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.008ad432
jmp 0x8ad47d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x14b200
mov dl, 0x36
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x8ad569
cmp rsi, rcx
jae 0x8ad571
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x8ad550
cmp al, 0x8f
ja 0x8ad550
cmp byte [rsi - 2], 0xf
je 0x8ad556
sub al, 0xe8
cmp al, 1
ja 0x8ad53a
cmp rsi, rcx
jae 0x8ad571
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x8ad540
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x8ad571
lodsb al, byte [rsi]
jmp 0x8ad550
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4a8000]
mov eax, dword [rdi]
or eax, eax
je 0x8ad5ce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4ad000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x8ad57e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x8ad5c8
mov qword [rbx], rax
add rbx, 8
jmp 0x8ad59e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x8ad612
cmp al, 0xef
ja 0x8ad5fa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x8ad5da
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x8ad5e9
mov eax, dword [rdi]
add rdi, 4
jmp 0x8ad5e9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x8ad666
sub rsp, 0xffffffffffffff80
jmp 0x4727a0
Function at 0x1400010e0
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rcx, str.yaron
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
movabs rsi, 0x4e94914f0000
movabs rbp, 0x431bde82d7b634db
movabs r13, 0x7ffffffed5fa0dff
movabs r12, 0x12a05f200
movabs r15, 0x7fffffffffffffff
movabs r14, 0xb2f4fc0794908cf3
nop dword [rax]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001270
mov rcx, rax
lea rdx, [0x140001430]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rsp + 0x60]
call fcn.140001000
mov rax, qword [rsp + 0x60]
lea rdi, [rax + r12]
cmp rax, r13
jl 0x140001177
mov rdi, r15
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov rcx, rax
cmp rbx, 0x989680
jne 0x140001198
imul rax, rcx, 0x64
jmp 0x140001209
cmp rbx, 0x16e3600
jne 0x1400011eb
mov rax, r14
imul rcx
lea r8, [rcx + rdx]
sar r8, 0x18
mov rax, r8
shr rax, 0x3f
add r8, rax
imul rax, r8, 0x16e3600
sub rcx, rax
mov rax, r14
imul rcx, rcx, 0x3b9aca00
imul rcx
lea rax, [rcx + rdx]
sar rax, 0x18
mov rcx, rax
shr rcx, 0x3f
add rax, rcx
imul rcx, r8, 0x3b9aca00
jmp 0x140001206
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rcx, rcx, 0x3b9aca00
add rax, rcx
cmp rax, rdi
jge 0x140001140
mov rcx, rdi
sub rcx, rax
cmp rcx, rsi
jle 0x14000122c
mov ecx, 0x5265c00
call sub.KERNEL32.dll_Sleep
jmp 0x140001177
mov rax, rbp
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf4240
cmp rax, rcx
jge 0x14000125a
lea rcx, [rdx + 1]
call sub.KERNEL32.dll_Sleep
jmp 0x140001177
mov ecx, edx
call sub.KERNEL32.dll_Sleep
jmp 0x140001177

Function at 0x140001db8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e02
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e04
xor al, al
add rsp, 0x28
ret
Function at 0x140001c92
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001cb1
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000bc30
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140004f80
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x3b8
xor eax, eax
mov r11d, 0xc
mov r9, rcx
mov rdi, r8
mov ecx, 0x3ae
mov r10, rdx
rep stosb byte [rdi], al
lea rsi, [rsp + 2]
mov ecx, 0x3ae
mov rdi, rsi
rep stosb byte [rdi], al
mov rax, rcx
cqo
idiv r11
mov al, byte [r10 + rdx]
xor al, byte [r9 + rcx]
mov byte [rsi + rcx], al
inc rcx
cmp rcx, 0x3ae
jne 0x140004fb0
mov rdi, r8
rep movsb byte [rdi], byte [rsi]
add rsp, 0x3b8
pop rsi
pop rdi
ret

Function at 0x1400054c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000b660
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000b660
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140005530
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400111a4]
mov rbx, rcx
test esi, esi
jle 0x140005660
mov rax, qword [0x1400111a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000557b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005605
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005560
mov rcx, rbx
call fcn.140005fa0
mov rdi, rax
test rax, rax
je 0x140005682
mov rax, qword [0x1400111a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400060e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400111a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005667
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400055fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140005610
add dword [0x1400111a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400111a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400055fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400054c0
nop dword [rax]
xor esi, esi
jmp 0x140005588
mov rax, qword [0x1400111a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400054c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400054c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140005c10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400111e0]
test rbx, rbx
je 0x140005c6c
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 rsi, rsi
je 0x140005c63
test eax, eax
jne 0x140005c63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005c48
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 0x140005fa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000df60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005fc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005fc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005fc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000601d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140006014
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140005fc0
add rax, 0x28
cmp rax, r9
jne 0x140006000
xor eax, eax
ret

Function at 0x140006020
Capabilities:
Parse pe header

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

Function at 0x1400060e0
Capabilities:
Parse pe header

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