joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001260
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xb0]
lea rax, [rsp + 0x88]
mov rbp, qword [rax]
mov r12, r9
and qword [rax], 0
mov r13b, r8b
test r15, r15
jne 0x1400012aa
mov ecx, 0xc000000d
jmp 0x140001342
xor ecx, ecx
call fcn.140001100
mov rbx, rax
test rax, rax
je 0x14000133d
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x1400012d5
mov ecx, 0xc000007b
jmp 0x140001342
lea r14, [rax + 0x108]
movzx eax, word [rax + 6]
mov rdi, r14
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp r14, rax
jae 0x14000133d
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x140001367
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x1400012f0
mov ecx, 0xc0000225
mov rbx, qword [rsp + 0xa0]
lea rax, [rsp + 0x88]
mov qword [rax], rbp
mov eax, ecx
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9d, dword [rdi + 0xc]
lea rcx, [rsp + 0xb0]
mov eax, dword [rdi + 8]
add r9, rbx
and qword [rsp + 0xb0], 0
mov r8, r12
mov qword [rsp + 0x28], rcx
mov dl, r13b
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
call fcn.140001030
mov ecx, eax
test eax, eax
js 0x140001342
mov eax, dword [rsp + 0xb0]
sub eax, ebx
mov dword [r15], eax
jmp 0x140001342

Function at 0x140001a70
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor edx, edx
lea r14, [rsp + 0x38]
mov rsi, qword [r14]
lea r9, [rax + 0x10]
and qword [r14], 0
mov rbp, rcx
and dword [rax + 0x10], 0
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov ecx, ebx
call fcn.1400022f7
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140001b39
mov edx, eax
xor ecx, ecx
mov r8d, 0x4e554c4c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call fcn.1400022f7
test eax, eax
js 0x140001b39
mov r9d, dword [rdi]
xor ebx, ebx
xor ecx, ecx
test r9d, r9d
je 0x140001b29
mov eax, ecx
mov r10, rbp
imul r11, rax, 0x128
lea rax, [rdi + 0x30]
add rax, r11
sub r10, rax
movzx edx, byte [rax]
movzx r8d, byte [rax + r10]
sub edx, r8d
jne 0x140001b17
inc rax
test r8d, r8d
jne 0x140001b02
test edx, edx
je 0x140001b24
inc ecx
cmp ecx, r9d
jb 0x140001aec
jmp 0x140001b29
mov rbx, qword [r11 + rdi + 0x18]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
jne 0x140001b3b
xor ebx, ebx
mov rbp, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov qword [r14], rsi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140001d10
Capabilities:
Find process by pid

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, 0x50
lea r12, [rsp + 0x68]
mov ebp, r9d
mov rdi, qword [r12]
xor ebx, ebx
mov r15, rdx
mov qword [r12], rbx
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rbx
mov r14, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x140001d97
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rdx, [rsp + 0x48]
mov r9, r15
mov qword [rsp + 0x30], rdx
mov rcx, rax
mov byte [rsp + 0x28], bl
mov rdx, r14
mov r8, rsi
mov qword [rsp + 0x20], rbp
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 1
lea r11, [rsp + 0x50]
mov qword [r12], rdi
mov rbp, qword [r11 + 0x28]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x140001dd0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r15, [rsp + 0x68]
mov esi, r9d
mov rdi, qword [r15]
xor ebx, ebx
mov r14, rdx
mov qword [r15], rbx
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rbx
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], rbx
je 0x140001e4f
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x48]
mov r9, rbp
mov qword [rsp + 0x30], rcx
mov r8, rax
mov rcx, qword [rsp + 0x40]
mov rdx, r14
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], rsi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 1
lea r11, [rsp + 0x50]
mov qword [r15], rdi
mov rbp, qword [r11 + 0x28]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140001e80
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea r14, [rsp + 0xa8]
xor ebx, ebx
mov rdi, qword [r14]
mov rsi, rdx
mov qword [r14], rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov ebp, r8d
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001f20
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x38]
mov qword [r14], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002470
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140001f50
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x78]
mov rdi, rdx
mov rbx, qword [rsi]
lea rdx, [r11 - 0x58]
and qword [rsi], 0
and qword [r11 - 0x58], 0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001fdd
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov r9d, 0x8000
lea rdx, [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rsi], rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002470
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002010
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea r15, [rsp + 0xc8]
xor ebx, ebx
mov rdi, qword [r15]
mov rsi, rdx
mov qword [r15], rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov r14d, r9d
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400020b6
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbp
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x38]
mov r9d, r14d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 1
mov qword [r15], rdi
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002470
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400020f0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
lea rsi, [rsp + 0x48]
xor ebx, ebx
mov rdi, qword [rsi]
lea rdx, [rax + 0x10]
mov qword [rsi], rbx
mov qword [rax + 0x10], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002168
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], rax
mov r9d, 0x1fffff
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor r8d, r8d
mov byte [rsp + 0x28], bl
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x60]
mov qword [rsi], rdi
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140002190
Capabilities:
Find process by pid

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, 0x50
lea r12, [rsp + 0x68]
mov ebp, r9d
mov rdi, qword [r12]
xor ebx, ebx
mov r15, rdx
mov qword [r12], rbx
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rbx
mov r14, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x140002217
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rdx, [rsp + 0x48]
mov r9, r15
mov qword [rsp + 0x30], rdx
mov rcx, rax
mov byte [rsp + 0x28], bl
mov rdx, r14
mov r8, rsi
mov qword [rsp + 0x20], rbp
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 1
lea r11, [rsp + 0x50]
mov qword [r12], rdi
mov rbp, qword [r11 + 0x28]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x140002250
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea r15, [rsp + 0x68]
mov esi, r9d
mov rdi, qword [r15]
xor ebx, ebx
mov r14, rdx
mov qword [r15], rbx
lea rdx, [rax - 0x28]
mov qword [rax - 0x28], rbx
mov rbp, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], rbx
je 0x1400022cf
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x48]
mov r9, rbp
mov qword [rsp + 0x30], rcx
mov r8, rax
mov rcx, qword [rsp + 0x40]
mov rdx, r14
mov byte [rsp + 0x28], bl
mov qword [rsp + 0x20], rsi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 1
lea r11, [rsp + 0x50]
mov qword [r15], rdi
mov rbp, qword [r11 + 0x28]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140504e9e
Capabilities:
Authenticate hmac

Disassembly:
push 0xffffffffbca72706
dec byte [rsp + 3]
mul r9
call fcn.14052f69a
call fcn.14050ccb5
mov r11, qword [r8]
mov r10d, 0x4fbb0f0d
bt r10d, r10d
mov r10w, word [r8 + r10 - 0x4fbb0f05]
adc r8, 0xa
call fcn.140547b82
lea rsp, [rsp + 0x28]
jmp fcn.1405201c3
dec ebx
lea rsp, [rsp + 8]
jne 0x14054480d
mov eax, 0x839451b6
mov rax, qword [rbp + riz]
jmp 0x140521509
neg dx
mov ebx, edx
cpuid
call fcn.14053524e
push 0xffffffff9faeda9b
push 0x33987515
add rsi, 2
jmp 0x14050f52b
adc rbp, 1
xor r11w, r9w
call fcn.1404ff4ae
lea rsp, [rsp + 0x28]
je 0x14053e5e4
mov r11d, 0x692bb32e
and r11w, 0x4c33
push rbx
lea r11, [0x1404fdaf8]
movzx ebx, byte [rdi]
call fcn.140528224
jmp 0x1405388ba
call fcn.14050df7b
or rcx, rdx
push 0xffffffffe507cbb8
mov word [rsp + 8], 0x9d99
push 0xfffffffff00fd708
mov qword [rbp + riz], rcx
lea rsp, [rsp + 0x18]
jmp fcn.140534a7b
push 0xffffffffb4238405
sub rsp, 0x18
call rax
mov rsp, qword [rbp + riz - 0x10]
push 0xffffffffff18baa8
mov rbp, qword [rbp + riz - 8]
mov qword [rbp + riz], rax
call fcn.140549fd0
mov esi, 0xefb937a3
mov esi, dword [r10 + riz]
jmp 0x140517289
ror qword [rsp + 7], 0x6f
xor r8w, bx
call fcn.140511c3d
not rcx
add byte [rsp + 5], 0xbd
xor byte [rsp + 3], 0x27
not rdx
js 0x1405195df
jb 0x14050d084
mov ebx, 0x219e05be
mov edx, ebx
or dl, dl
mov rbx, qword [r10 + rbx*2 - 0x433c0b7c]
rol edx, 0x36
dec dx
adc edx, 0x58b94130
adc r10, 8
dec edx
neg rdx
bt dx, dx
movzx edx, byte [r11 + riz]
push 0xffffffff93083207
sal dword [rsp + 3], 0x5c
adc r11, 0
ror dword [rsp + 2], 0xed
xor dl, r9b
sub word [rsp], 0xd53f
shr qword [rsp], 0xeb
add qword [rsp], 0x4b32dd1f
adc dl, 0x1f
ror dword [rsp + 3], 0x23
ror qword [rsp], 0xd3
neg dl
mov word [rsp + 2], 0x4eb3
ror dl, 1
not dl
dec byte [rsp + 4]
neg dl
call fcn.140526a1a
push 0x6a115b0a
mov r8, rbx
pop r10
and r10, 0xfffffffff798719c
movabs r10, 0
jbe 0x14050c8a6
mov ebp, 0x683c4727
movsx edi, bp
sbb r8, r10
push rdi
sar byte [rsp + rbp - 0x683c4726], 0xe2
push rbp
lea rdi, [0x140542058]
lea rsp, [rsp + 0x10]
neg ecx
not cx
movzx ecx, word [rbp + riz]
push 0x7ebd0fa5
adc rbp, 1
call fcn.14051eac2
call fcn.140512ded
mov rsi, qword [rbp + riz]
mov r10d, 0xff14afac
mov ecx, 0x5c167388
lea rcx, [rcx*8 - 0x504026ed]
add rbp, 8
movsx r11d, cx
movsx r9d, r11b
mov rbx, rsi
mov eax, 0x30b87935
mov rsi, rbp
btc r10d, 0x3e
jb 0x14053a394
mov r9, qword [r8]
mov eax, 0xe0b80c9b
mov rax, qword [r8 + riz + 8]
jmp 0x1404fe38c
jmp 0x14054f11d
mov eax, 0x4d2d8db4
not al
mov rax, qword [rbp + rbx*8]
cmp ebx, 1
push 0x711756b5
push 0xffffffff928e2095
lea rsp, [rsp + 0x10]
jne 0x1405006e7
mov rcx, rax
push 0x2e2ae93b
lea rsp, [rsp + 8]
jmp 0x1405473f5
call fcn.140504e9e
mov r10, qword [rsi]
mov rax, qword gs:[r10]
mov qword [rsi], rax
call fcn.1405401b1
mov ecx, 0xbd358724
movsx eax, cx
dec cx
mov ax, word [r8 + riz]
lea rcx, [rcx + rcx*2 + 0x1512ec27]
btr rcx, rcx
xor cx, cx
adc r8, 2
jmp 0x14053df1a
call fcn.140533a23
Function at 0x18007fd34
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18007fd98
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18007fd86
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18007fd7f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18007fd53
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18020ad98]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18007fda8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x18020b930]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18007fdde
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18007fe14
mov eax, 0xa
jmp 0x18007fea3
test esi, esi
je 0x18007fe36
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18007fe57
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18007fe57
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18007fe51
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18007fe57
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180080368
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18008037f
cmp r8b, 0x90
je 0x18008037f
cmp r8b, 0xcc
jne 0x1800803a1
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18008039d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800803a1
add edx, r10d
cmp edx, r9d
jb 0x18008038d
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180080708
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180080752
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x18020b928]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x18008078b
cmp rbx, r14
jb 0x180080788
cmp rbx, r12
jae 0x180080788
cmp qword [rbx + 8], rsi
jne 0x1800808ed
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180080774
mov r15, rdi
cmp rdi, r14
jb 0x1800808a7
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x1800807d7
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180080811
cmp dword [rbp - 0x10], 0x10000
je 0x1800807e1
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180080811
sub r15, r13
cmp r15, r14
jae 0x1800807ad
jmp 0x180080811
test r15, r15
je 0x180080811
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800808b2
cmp r15, r14
jae 0x18008079c
test rbx, rbx
jmp 0x1800808a5
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800808ed
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800808ed
cmp dword [rbp - 0x10], 0x10000
je 0x180080880
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x18008083d
jmp 0x1800808ed
test rdi, rdi
je 0x1800808ed
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800808b2
cmp rdi, r12
jbe 0x180080819
jmp 0x1800808ed
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800808be
mov rax, qword [0x18020b928]
mov qword [rbx], rax
mov qword [0x18020b928], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800889c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180081f80
sub rsp, rax
mov rax, qword [0x1800d1040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180096a68
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180088a0f
mov rax, rbp
jmp 0x180088b17
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x10a4c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180096cf8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x10a4c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180088b13
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180088b13
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180096cf8
test rax, rax
js 0x180088b13
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180088b13
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180088b05
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180088b05
cmp byte [rcx], 0xd
jne 0x180088aeb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180088afa
cmp byte [rcx + 1], 0xa
jne 0x180088afa
inc rcx
jmp 0x180088afa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd1400]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180088acd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180088b17
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180081da0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004c50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov esi, ecx
mov rbx, rdx
mov rcx, rdx
call fcn.1400019b4
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.14001fbe0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
jns 0x140004d32
movzx ecx, sil
cmp ecx, 0x26
jne 0x140004cdf
lea rdx, str.ProgramFiles
lea rcx, [rsp + 0x30]
call fcn.140005104
mov rdx, rax
mov rcx, rbx
call fcn.1400018a4
mov rdx, qword [rsp + 0x30]
jmp 0x140004d05
cmp ecx, 0x1c
jne 0x140004d1f
lea rdx, str.LocalAppData
lea rcx, [rsp + 0x38]
call fcn.140005104
mov rdx, rax
mov rcx, rbx
call fcn.1400018a4
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004d1f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov ecx, 1
cmp dword [rax - 0x10], 0
cmovne edi, ecx
mov eax, edi
jmp 0x140004d4e
lea rcx, [rsp + 0x40]
call fcn.14002bd6c
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001a24
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001ec90
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret