joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058100
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009afb0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400581d3
cmp byte [rcx + 0x71], 0
je 0x1400581d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400581cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140058194
sub eax, 1
je 0x140058198
cmp eax, 2
jne 0x1400581cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400670b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400581c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400581cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005817c
xor al, al
jmp 0x14005817c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400670b0
add rsp, 0x60
pop rbx
ret
Function at 0x14005c220
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14009b600], 0
jne 0x14005c235
xor edx, edx
mov ecx, 0x10001
jmp fcn.14005cd60
jmp 0x14005db20
push rbx
sub rsp, 0xa0
mov rax, qword [0x14009afb0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005dbba
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x14005db85
mov rbx, qword [0x14009b9f0]
test rbx, rbx
je 0x14005db9b
mov rcx, rbx
call fcn.14005b9c0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005db73
jmp 0x14005db9b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14005db60
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x14005dcb7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x14005dcaf
movdqa xmm0, xmmword [0x140082ab0]
xor ebx, ebx
movdqa xmm1, xmmword [0x140082ac0]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x14009d0d8]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x14005dc7e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14005dc7e
call fcn.14005f100
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.14005a110
inc rbx
cmp rbx, 4
jl 0x14005dc40
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x14009da78]
test rbx, rbx
je 0x14005dd3c
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x14005dcfe
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14005dd3c
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400670b0
add rsp, 0xa0
pop rbx
ret
Function at 0x14005d450
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, r9
mov r8, r9
mov rsi, rdx
mov rbx, rcx
call fcn.14005e950
test eax, eax
je 0x14005d5a3
cmp dword [rdi], 0
je 0x14005d511
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x14005d4b0
call fcn.140064b10
test eax, eax
je 0x14005d5a3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140064690
jmp 0x14005d4f6
cmp eax, 0x36002
jne 0x14005d4d4
call fcn.140065f10
test eax, eax
je 0x14005d5a3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140065a00
jmp 0x14005d4f6
cmp eax, 0x36003
jne 0x14005d4fe
call fcn.140066d50
test eax, eax
je 0x14005d5a3
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140066b10
test eax, eax
je 0x14005d5a3
mov rdx, rdi
mov rcx, rbx
call fcn.1400608c0
test eax, eax
je 0x14005d5a3
cmp qword [rbx + 0x48], 0
je 0x14005d576
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call fcn.14005e710
mov rcx, rbx
call fcn.14005f060
cmp dword [rsi + 0x2c], 0
je 0x14005d59c
mov rcx, rbx
call fcn.140059e00
mov eax, 1
jmp 0x14005d5a5
cmp dword [rsi + 0x14], 0
je 0x14005d59c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x14005d59c
mov rcx, rbx
call fcn.14005d680
mov eax, 1
jmp 0x14005d5a5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005db20
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x14009b600], 0
jne 0x14005c235
xor edx, edx
mov ecx, 0x10001
jmp fcn.14005cd60
jmp 0x14005db20
push rbx
sub rsp, 0xa0
mov rax, qword [0x14009afb0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14005dbba
nop word [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x14005db85
mov rbx, qword [0x14009b9f0]
test rbx, rbx
je 0x14005db9b
mov rcx, rbx
call fcn.14005b9c0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14005db73
jmp 0x14005db9b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14005db60
call qword [sym.imp.USER32.dll_GetActiveWindow]
test rax, rax
je 0x14005dcb7
lea rdx, str.GLFW
mov qword [rsp + 0xc0], rdi
mov rcx, rax
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x14005dcaf
movdqa xmm0, xmmword [0x140082ab0]
xor ebx, ebx
movdqa xmm1, xmmword [0x140082ac0]
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
lea r15, [0x14009d0d8]
movdqu xmmword [rsp + 0x60], xmm0
movdqu xmmword [rsp + 0x70], xmm1
nop word [rax + rax]
movsxd rbp, dword [rsp + rbx*8 + 0x64]
mov ecx, dword [rsp + rbx*8 + 0x60]
movsx r14d, word [r15 + rbp*2]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x14005dc7e
cmp byte [rbp + rdi + 0x88], 1
jne 0x14005dc7e
call fcn.14005f100
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov r8d, r14d
mov edx, ebp
mov rcx, rdi
call fcn.14005a110
inc rbx
cmp rbx, 4
jl 0x14005dc40
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [0x14009da78]
test rbx, rbx
je 0x14005dd3c
mov rcx, qword [rbx + 0x350]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
cmp dword [rbx + 0x388], eax
jne 0x14005dcfe
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp dword [rbx + 0x38c], eax
je 0x14005dd3c
mov rcx, qword [rbx + 0x350]
mov eax, r8d
cdq
mov dword [rsp + 0x60], r9d
sub eax, edx
mov dword [rbx + 0x388], r9d
sar eax, 1
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x64], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400670b0
add rsp, 0xa0
pop rbx
ret
Function at 0x14005ee50
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14009da78], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14005eeac
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x14009da68], xmm0
movsd qword [0x14009da70], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x14005eef0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14005eed1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x14005eef8
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x14005eef8
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140059e00
mov rcx, rbx
call fcn.14005f2a0
cmp dword [rbx + 0x1f8], 0
je 0x14005ef4b
mov rax, qword [rdi]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14005ef4b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140063630
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14005ef60
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x14005efb0
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14005efb0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140063630
xor ecx, ecx
mov qword [0x14009da78], 0
call fcn.14005f2a0
cvttsd2si ecx, qword [0x14009da68]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14009da70]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x388], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x38c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [rbx + 0x7c], 0x34001
jne 0x14005f044
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14005f028
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
Function at 0x14005f100
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, 0x12
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x140062500
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140062530
lea rdx, [0x140083400]
mov ecx, 0x10008
call fcn.140063630
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140063e50
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14009afb0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x14009d392]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x14009d118]
xor r13d, r13d
lea r12, [0x14009d432]
mov ebx, 0x20
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x140063ff5
cmp ebx, 0x140
jb 0x140063f70
cmp ebx, 0x14e
ja 0x140063f70
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x140063f7f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140063fc2
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140063ff5
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x140063ed2
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400670b0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140066d50
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14009afb0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14009dca8], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x140066da5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400670b0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14009dca8], rax
test rax, rax
jne 0x140066de8
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140066db0
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14005cd60
jmp 0x140066f0d
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009dca8]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14009dcb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009dca8]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14009dcb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009dca8]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14009dcc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009dca8]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14009dcc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009dca8]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14009dcd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009dca8]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14009dcd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14009dcb0], 0
mov qword [0x14009dce0], rax
je 0x140066edf
cmp qword [0x14009dcc0], 0
je 0x140066edf
cmp qword [0x14009dcc8], 0
je 0x140066edf
cmp qword [0x14009dcd0], 0
je 0x140066edf
cmp qword [0x14009dcd8], 0
je 0x140066edf
test rax, rax
je 0x140066edf
mov eax, 1
jmp 0x140066f0f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14005cd60
mov rcx, qword [0x14009dca8]
test rcx, rcx
je 0x140066f0d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14009dca8], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400670b0
add rsp, 0x48
ret

Function at 0x140067b24
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140067b6e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140067b6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140067b6e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140067b6e
cmp dword [rcx + 0x84], 0xe
jbe 0x140067b6e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140067b70
xor al, al
add rsp, 0x28
ret
Function at 0x140001a80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140001aa3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x31]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x140001a90
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x1400029b0
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
and qword [r11 + 0x10], 0
and qword [r11 + 8], 0
mov dword [rsp + 0x40], 0x30
and qword [r11 - 0x30], 0
mov dword [rsp + 0x58], 0x200
and qword [r11 - 0x28], 0
and qword [r11 - 0x18], 0
and qword [r11 - 0x10], 0
and qword [r11 - 0x48], 0
lea rax, [0x0001c52c]
mov qword [r11 - 0x50], rax
lea rax, [0x000181f8]
mov qword [r11 - 0x58], rax
xor r9d, r9d
lea r8, [r11 - 0x38]
mov edi, 0x1f03ff
mov edx, edi
lea rcx, [r11 + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x1c7e0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov r8, qword [r8]
mov edx, edi
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov edi, eax
test eax, eax
js 0x1c7b8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1c7cb
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1c7de
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x1f670
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0xf0
mov r12, r8
mov r13, rdx
mov r14, rcx
xor ebx, ebx
mov rsi, rbx
mov qword [rsp + 0x78], rbx
mov qword [rax + 0x18], rbx
mov dword [r8], ebx
xor r9d, r9d
mov r8d, 0x73534649
lea rdx, [rax - 0x88]
call fcn.00020e48
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x1f8a4
mov dword [rsp + 0xb8], 0x30
mov qword [rsp + 0xc0], rbx
mov dword [rsp + 0xd0], 0x240
lea rax, [rsp + 0x80]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], rbx
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0xb8]
mov edx, 0x80100000
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov edi, eax
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x1f850
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edi, eax
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x1f850
cmp dword [rsp + 0x98], 0xa00000
jbe 0x1f7ca
mov edi, 0xc00000bb
mov dword [rsp + 0x70], edi
jmp 0x1f850
mov edx, dword [rsp + 0x98]
mov ecx, 1
mov r8d, 0x64534649
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov qword [rsp + 0x78], rax
cmp rax, rbx
jne 0x1f7fa
mov edi, 0xc000009a
mov dword [rsp + 0x70], edi
jmp 0x1f850
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov edi, eax
mov dword [rsp + 0x70], eax
cmp eax, ebx
jl 0x1f850
mov eax, dword [rsp + 0x98]
mov dword [r12], eax
mov qword [r13], rsi
cmp edi, ebx
jge 0x1f867
cmp rsi, rbx
je 0x1f867
mov edx, 0x64534649
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x120]
cmp rcx, rbx
je 0x1f882
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x120], rbx
mov rax, qword [r14 + 8]
cmp qword [rsp + 0x88], rax
je 0x1f8a2
mov edx, 0x73534649
lea rcx, [rsp + 0x80]
call fcn.0001ed44
mov eax, edi
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x20384
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x30
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x203a7
mov rcx, qword [rsp + 0x48]
call fcn.0001ff1c
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x203b7
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x2ed
lea r9, [0x000222f0]
lea r8, [0x000229f0]
xor edx, edx
lea ecx, [rdx + 0x65]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x20750
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x20773
mov rcx, qword [rsp + 0x38]
call fcn.000203ec
mov ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x20783
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x20af8
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x20b1b
mov rcx, qword [rsp + 0x38]
call fcn.00020794
mov ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x20b2b
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
add rsp, 0x20
pop rbx
ret