joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400137ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000c9cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013876
cmp byte [rbp - 0x21], r15b
je 0x140013871
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400138ac
call fcn.1400095ec
test eax, eax
jne 0x140013898
cmp byte [rbp - 0x21], r15b
je 0x140013890
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400138ac
cmp byte [rbp - 0x21], r15b
je 0x1400138a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bfa8
test eax, eax
jne 0x14001394c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c9cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400138eb
cmp byte [rbp - 0x21], r15b
je 0x140013920
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013920
call fcn.1400095ec
test eax, eax
jne 0x14001390c
cmp byte [rbp - 0x21], r15b
je 0x140013905
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013920
cmp byte [rbp - 0x21], r15b
je 0x14001391d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bfa8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001394c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001394f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001395d
mov rcx, rdi
call fcn.140009398
cmp byte [rbp + 0x3f], r15b
je 0x14001396c
mov rcx, qword [rbp + 0x27]
call fcn.140009398
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002cb0
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.1400048f0
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.1400048f0
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 0x140002d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e50
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002df5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d50
mov rcx, rbx
call fcn.140003770
mov rdi, rax
test rax, rax
je 0x140002e72
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e00
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002cb0
nop dword [rax]
xor esi, esi
jmp 0x140002d78
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002cb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002cb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000343c
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 0x140003433
test rsi, rsi
je 0x140003433
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003418
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 0x140003770
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400037f0
Capabilities:
Parse pe header

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

Function at 0x1400038b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400038cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400038d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180001160
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18000119d
xor al, al
jmp 0x1800011ec
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1800011ae
xor al, al
jmp 0x1800011ec
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1800011d5
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1800011d5
mov al, 1
jmp 0x1800011ec
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x60
pop rbx
ret

Function at 0x1800014b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x1800014e1
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x1800015a7
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x18000150b
add rbx, 0x8000000
jmp 0x18000159e
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800015a7
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180001583
cmp rcx, 0x10000
jb 0x180001583
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800015a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1800015a7
add rbx, 0x10000
jmp 0x18000159e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x18000159e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x1800014f0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800551c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1800015d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x1800016c5
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x18000162b
sub rbx, 0x8000000
jmp 0x1800016bc
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800016c5
cmp dword [rsp + 0x40], 0x10000
jne 0x1800016a0
cmp qword [rsp + 0x38], 0x10000
jb 0x1800016a0
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x1800016c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1800016c5
sub rbx, 0x10000
jmp 0x1800016bc
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180001610
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800551c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1800017b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x1800017ce
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x1800017ea
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180001801
cmp byte [rcx + 1], 0x25
jne 0x180001801
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x18000180d
cmp al, 0xe9
jne 0x180001845
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x180001830
cmp rcx, 0xffffffff80000000
jae 0x180001827
lea rdi, [rcx + 0x7ff80000]
jmp 0x180001845
mov rdi, 0xfffffffffff80000
jmp 0x180001845
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180001845
mov ebx, 0x80000
mov rax, qword [0x18006c360]
mov rcx, qword [0x18006c370]
test rax, rax
jne 0x180001867
test rcx, rcx
je 0x18000187e
mov rax, rcx
mov qword [0x18006c360], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x18000187e
cmp rdx, rbx
jb 0x18000187e
cmp rdx, rdi
jbe 0x180001929
mov qword [0x18006c360], rcx
mov rax, rcx
test rcx, rcx
je 0x1800018b9
test rcx, rcx
je 0x1800018a9
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1800018a9
cmp rcx, rbx
jb 0x1800018a9
cmp rcx, rdi
jbe 0x180001929
mov rax, qword [rax + 8]
mov qword [0x18006c360], rax
test rax, rax
jne 0x180001892
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.1800016e0
test rax, rax
je 0x18000196c
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18006c360], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18006c370]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18006c370], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180001911
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x18000196c
cmp rdx, rdi
ja 0x18000196c
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x1800602a0]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x18006c35c], 0
jne 0x180001af4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006c35c], ecx
jne 0x180001af4
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x18006c370]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x18006c380], rdi
mov qword [0x18006c378], rdi
mov qword [0x18006c368], rdi
test rbx, rbx
je 0x180001ad0
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001ac8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180001aa0
jmp 0x180001ad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x18006c358], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x38
ret
Function at 0x1800020b0
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x18006c358]
mov rbx, rcx
test eax, eax
jne 0x180002149
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
jne 0x1800020da
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rdi
call fcn.1800551f4
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18000212d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x10
mov rcx, rdi
call fcn.1800551e4
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov dword [0x18006c358], ebx
mov qword [0x18006c368], 0
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x18006c378]
mov qword [rdi], rax
xor eax, eax
mov qword [rdi + 8], rbx
mov qword [0x18006c378], rdi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180002540
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006c35c], eax
je 0x180002574
mov eax, 0x10dd
jmp 0x180002687
mov eax, dword [0x18006c358]
test eax, eax
jne 0x180002687
test rbp, rbp
jne 0x18000258f
lea eax, [rbp + 0x57]
jmp 0x180002687
test rsi, rsi
je 0x1800025ab
cmp qword [rsi], 0
jne 0x1800025b5
mov dword [0x18006c358], 6
mov qword [0x18006c368], rsi
mov eax, 6
jmp 0x180002687
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.1800551f4
mov rcx, qword [rsi]
mov rbx, rax
call fcn.180001980
mov rcx, rbp
mov rdi, rax
call fcn.180001980
movzx edx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rdx
test dl, dl
je 0x180002653
cmp rdx, 0x1e
ja 0x180002653
cmp qword [rdi + 0x50], rax
jne 0x180002653
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002624
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x180002661
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x18006c380]
mov qword [rbx], rax
xor eax, eax
mov qword [0x18006c380], rbx
jmp 0x18000267d
cmp dword [0x18006c148], 0
mov edi, 9
jne 0x180002667
mov dword [0x18006c358], edi
mov edx, 0x30
mov rcx, rbx
call fcn.1800551e4
mov eax, edi
mov qword [0x18006c368], rsi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x38
pop rsi
pop rbp
ret

Function at 0x180004a30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rbx, [rcx + 0x10000]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov edi, 0x5a4d
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004aa1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800551c0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
cmp dword [rsp + 0x40], 0x1000
jne 0x180004aec
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x180004aec
bt eax, 8
jb 0x180004aec
cmp word [rbx], di
jne 0x180004ae5
mov eax, dword [rbx + 0x3c]
cmp rax, qword [rsp + 0x38]
ja 0x180004ae5
cmp eax, 0x40
jb 0x180004ae5
cdqe
cmp dword [rax + rbx], 0x4550
jne 0x180004aec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x180004a89
jmp 0x180004aec
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x180004a70
Function at 0x180004b00
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180004b4f
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004be1
cmp dword [rsp + 0x40], 0x1000
jne 0x180004bc5
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x180004bc5
bt eax, 8
jb 0x180004bc5
mov rbx, qword [rsp + 0x28]
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x180004b85
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004be1
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x180004ba1
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004be1
cmp word [rax + rbx + 0x14], 0
jne 0x180004bb8
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004be1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x180004be1
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004be1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800551c0
add rsp, 0x60
pop rbx
ret

Function at 0x180004c00
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rcx
test rcx, rcx
jne 0x180004c17
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9, rax
mov eax, 0x5a4d
cmp word [r9], ax
je 0x180004c34
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004d0b
movsxd r10, dword [r9 + 0x3c]
add r10, r9
cmp dword [r10], 0x4550
je 0x180004c56
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004d0b
movzx eax, word [r10 + 0x14]
test ax, ax
jne 0x180004c72
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004d0b
lea r11, [r10 + 0x18]
add r11, rax
xor r8d, r8d
lea rbx, str..detour
mov dword [rsp + 0x20], r8d
movzx eax, word [r10 + 6]
cmp r8d, eax
jae 0x180004cef
lea rcx, [r8 + r8*4]
lea rdx, [r11 + rcx*8]
xor ecx, ecx
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [rbx + rcx - 1]
jne 0x180004cea
cmp rcx, 8
jne 0x180004ca0
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x180004cef
cmp dword [rdx + 0x10], 0
je 0x180004cef
lea rbx, [r9 + rax]
mov eax, dword [rbx]
cmp eax, 0x40
jb 0x180004cef
cmp dword [rbx + 4], 0x727444
jne 0x180004cef
cmp dword [rbx + 8], 0
jne 0x180004cdd
mov dword [rbx + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x180004d0b
inc r8d
jmp 0x180004c83
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180004d0b
add rsp, 0x30
pop rbx
ret
Function at 0x1800066c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x18006b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x18006c3e8]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x18006c160]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
mov qword [rsp + 0x40], 0
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x18006c3f0]
cvtsi2ss xmm0, qword [0x18006c3f8]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x18006c3f0], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x18006c160]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x1800067ff
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x18006c3e8]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1800067ff
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18000687e
mov rdx, qword [0x18006c3e8]
cmp rax, rdx
je 0x180006837
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x18000687e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18000687e
mov rcx, qword [0x18006c3e8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x18000687e
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x18000688e
mov eax, 0xffffffff
jmp 0x18000689b
mov rax, qword [0x18006c160]
mov eax, dword [rax + 0x1f40]
cmp dword [0x18006b2e0], eax
je 0x1800068ae
mov dword [0x18006b2e0], eax
call fcn.180006270
call fcn.1800063f0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800551c0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret