joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f0fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov rbx, rcx
mov edx, dword [rbx + 0x8c]
mov edi, dword [rbx + 0x50]
mov eax, dword [rbx + 0x94]
sub edi, edx
sub edi, eax
jne 0x18000f13a
test edx, edx
jne 0x18000f149
test eax, eax
jne 0x18000f149
mov edi, esi
jmp 0x18000f1ce
cmp edi, 0xffffffff
jne 0x18000f149
mov edi, 0xfffffffe
jmp 0x18000f1ce
mov ecx, dword [rbx + 0x38]
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x18000f1ce
mov rcx, qword [rbx + 0x48]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.1800135d0
mov r9d, dword [rbx + 0x6c]
mov rax, qword [rbx + 0x60]
sub dword [rbx + 0x90], esi
sub dword [rbx + 0x8c], esi
sub dword [rbx + 0x7c], esi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000f183
mov rax, qword [rbx + 0x58]
mov r9d, esi
lea r8, [rax + rsi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000f1ad
add edi, esi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x18000f245
mov edx, dword [rbx + 0x94]
mov eax, dword [rbx + 0x8c]
mov r8d, edi
add rdx, rax
add rdx, qword [rbx + 0x48]
call fcn.18000fbc0
add dword [rbx + 0x94], eax
mov r9d, dword [rbx + 0x94]
cmp r9d, 3
jb 0x18000f22f
mov eax, dword [rbx + 0x8c]
mov rdx, qword [rbx + 0x48]
mov ecx, dword [rbx + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x74]
mov dword [rbx + 0x68], r8d
cmp r9d, 0x106
jae 0x18000f245
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x18000f116
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140052e40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14006e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140052e71
xor eax, eax
jmp 0x140052fc0
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140052eae
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x140052eae
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x140052fc0
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140052fb5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140052ef5
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140052f1f
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x140052fb5
movzx edi, si
jmp 0x140052fb5
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140052f75
sub eax, 1
je 0x140052f75
cmp eax, 2
jne 0x140052fb5
movzx ecx, word [rsp + 0x50]
jmp 0x140052f01
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140052fa3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140052fb5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne di, si
mov rbp, qword [rsp + 0xb0]
movzx eax, di
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140068590
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140053520
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14006e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400535f5
cmp byte [rcx + 0x72], 0
je 0x1400535f5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x1400535f1
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400535b6
sub eax, 1
je 0x1400535ba
cmp eax, 2
jne 0x1400535f1
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140068590
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400535e8
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 0x1400535f1
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14005359e
xor al, al
jmp 0x14005359e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140068590
add rsp, 0x60
pop rbx
ret

Function at 0x140069044
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov r14, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14001df07
mov rcx, qword [rdx]
lea rdx, [rsp + 0x90]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xorps xmm0, xmm0
xor ebp, ebp
test eax, eax
jne 0x14001df38
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], 7
mov word [r14], bp
jmp 0x14001dfc4
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbp
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400165b0
cmp qword [rbx + 0x18], 8
jb 0x14001df5a
mov rbx, qword [rbx]
mov rsi, qword [rsp + 0x20]
mov r9, rsi
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x14001dfdf
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], 7
mov word [r14], bp
test rsi, rsi
je 0x14001dfc4
mov rdx, qword [rsp + 0x30]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x14001dfbc
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e100
mov rcx, rsi
call fcn.140052a58
mov rax, r14
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x98], rbp
mov dword [rsp + 0x88], ebp
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x98]
lea rdx, str.StringFileInfo040904B0ProductVersion
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14001df73
mov r15, qword [rsp + 0x98]
test r15, r15
je 0x14001e0af
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x14001e0af
mov r12d, eax
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], 7
lea r13, [rax + rax]
mov rcx, r14
cmp rax, 8
jae 0x14001e06d
mov qword [r14 + 0x10], rax
mov r8, r13
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov word [r14 + r13], bp
jmp 0x14001df8a
mov rdi, r12
or rdi, 7
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
call fcn.140016d00
mov rbx, rax
mov qword [r14], rax
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], rdi
mov r8, r13
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + r13], bp
jmp 0x14001df8a
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], 7
mov word [r14], bp
test rsi, rsi
je 0x14001dfc4
mov rdx, qword [rsp + 0x30]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x14001dfbc
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001dfbc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001f1a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rax, vtable.webview::detail::reg_key.0
mov qword [r11 - 0x48], rax
xor edi, edi
lea rax, [r11 + 8]
mov qword [r11 - 0x58], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionThemesPersonalize
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, edi
test eax, eax
cmove rsi, qword [rsp + 0x80]
mov qword [rsp + 0x38], rsi
test rsi, rsi
jne 0x14001f1fe
xor bl, bl
jmp 0x14001f345
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x88], edi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AppsUseLightTheme
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001f29f
cmp eax, 0xea
je 0x14001f29f
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
cmp rcx, 4
jae 0x14001f308
test rbx, rbx
je 0x14001f295
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14001f28a
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001f32e
mov rdx, rdi
mov rcx, rbx
call fcn.140052a58
mov ebp, 1
jmp 0x14001f340
mov edx, dword [rsp + 0x88]
test rdx, rdx
je 0x14001f2c2
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.140004240
mov rdi, qword [rsp + 0x50]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AppsUseLightTheme
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001f24b
mov rcx, qword [rsp + 0x48]
cmp rcx, rbx
cmovne rcx, rbx
jmp 0x14001f250
mov ebp, dword [rbx]
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14001f335
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f335
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rdi
mov rcx, rbx
call fcn.140052a58
test ebp, ebp
sete bl
test rsi, rsi
je 0x14001f353
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022300
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
xor r14d, r14d
mov dword [r11 - 0x28], r14d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], 7
mov word [rdx], r14w
mov dword [rsp + 0x30], 1
mov dword [r11 + 8], r14d
lea rax, [r11 + 8]
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140022377
cmp eax, 0xea
jne 0x140022425
mov edx, dword [rsp + 0x60]
shr rdx, 1
mov rdi, qword [rbx + 0x10]
cmp rdx, rdi
ja 0x14002239f
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140022394
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r14w
jmp 0x1400223f2
mov rcx, rdx
sub rcx, rdi
mov r9, qword [rbx + 0x18]
mov rax, r9
sub rax, rdi
cmp rcx, rax
ja 0x1400223db
mov qword [rbx + 0x10], rdx
mov r8, rbx
cmp r9, 8
jb 0x1400223c4
mov r8, qword [rbx]
lea rdi, [r8 + rdi*2]
test rcx, rcx
je 0x1400223d4
movzx eax, r14w
rep stosw word [rdi], ax
mov word [r8 + rdx*2], r14w
jmp 0x1400223f2
mov word [rsp + 0x20], r14w
mov r9, rcx
xor r8d, r8d
mov rdx, rcx
mov rcx, rbx
call fcn.140003cc0
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400223ff
mov rax, qword [rbx]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14002243a
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140022432
mov rax, qword [rbx]
mov qword [rbx + 0x10], r14
mov word [rax], r14w
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14002246e
mov rcx, qword [rbx + 0x18]
mov rax, rbx
cmp rcx, 8
jb 0x140022453
mov rax, qword [rbx]
cmp word [rax + rdx*2 - 2], 0
jne 0x140022463
sub rdx, 1
jne 0x140022447
jmp 0x14002246e
xor r8d, r8d
mov rcx, rbx
call fcn.1400226b0
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140033ac0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1400a21a8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1400a6aea]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1400a6870]
xor r12d, r12d
lea r15, [0x1400a6b8a]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x140033c78
cmp ebx, 0x140
jb 0x140033bdf
cmp ebx, 0x14e
ja 0x140033bdf
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 0x140033bee
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140033c41
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140033c78
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x140033b41
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140052eb0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140035e80
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 0x140035eb0
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140033270
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140037a40
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1400a71d0], rcx
lea rdi, [rcx + 0x350]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140037a9c
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 [0x1400a71c0], xmm0
movsd qword [0x1400a71c8], xmm1
cmp dword [rbx + 0x7c], 0x34001
jne 0x140037ae0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140037ac1
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SetCursor]
lea rdi, [rbx + 0x350]
jmp 0x140037ae8
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 0x140037ae8
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.140032070
mov rcx, rbx
call fcn.140037e30
cmp dword [rbx + 0x1f8], 0
je 0x140037b3b
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 0x140037b3b
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140033270
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140037b50
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x1f8], 0
mov rbx, rcx
je 0x140037ba0
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 0x140037ba0
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140033270
xor ecx, ecx
mov qword [0x1400a71d0], 0
call fcn.140037e30
cvttsd2si ecx, qword [0x1400a71c0]
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1400a71c8]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x38c], ecx
mov rcx, qword [rbx + 0x350]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x390], 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 0x140037c34
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140037c18
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 0x140037cf0
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 ecx, 0x12
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns 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 0x14003b790
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400a21a8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1400a7440], 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 0x14003b7e5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052eb0
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 [0x1400a7440], rax
mov rcx, rax
test rax, rax
jne 0x14003b815
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14003b7f0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14003b844
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14002ffa0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052eb0
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7440]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1400a7448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7440]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1400a7450], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7440]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1400a7458], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7440]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1400a7460], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7440]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1400a7468], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7440]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1400a7470], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400a7448], 0
mov qword [0x1400a7478], rax
je 0x14003b935
cmp qword [0x1400a7458], 0
je 0x14003b935
cmp qword [0x1400a7460], 0
je 0x14003b935
cmp qword [0x1400a7468], 0
je 0x14003b935
cmp qword [0x1400a7470], 0
je 0x14003b935
test rax, rax
jne 0x14003b7ce
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14002ffa0
mov rcx, qword [0x1400a7440]
test rcx, rcx
je 0x14003b963
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400a7440], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052eb0
add rsp, 0x48
ret