joyce8/EMBER2024-capa huggingface dataset:
Function at 0x22dae3020
Capabilities:
Log keystrokes via polling

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r12, qword [0x22ddae300]
mov rdi, qword [sym.imp.USER32.dll_PeekMessageW]
mov r13, qword [sym.imp.USER32.dll_TranslateMessage]
mov rbp, qword [sym.imp.USER32.dll_DispatchMessageW]
lea rsi, [rsp + 0x50]
nop dword [rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
mov rcx, rsi
call rdi
test eax, eax
je 0x22dae30d0
cmp dword [rsp + 0x58], 0x12
je 0x22dae3088
mov rcx, rsi
call r13
mov rcx, rsi
call rbp
jmp 0x22dae3058
mov rbx, qword [r12 + 0x400]
test rbx, rbx
je 0x22dae3058
nop dword [rax]
mov rax, qword [rbx + 0x2e0]
mov dword [rbx + 0x20], 1
test rax, rax
je 0x22dae30c0
mov rcx, rbx
call rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x22dae3098
jmp 0x22dae3058
mov rbx, qword [rbx]
test rbx, rbx
jne 0x22dae3098
jmp 0x22dae3058
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, rax
test rax, rax
je 0x22dae314a
lea rdx, str.GLFW
call qword [sym.imp.USER32.dll_GetPropW]
mov rdi, rax
test rax, rax
je 0x22dae314a
movdqa xmm0, xmmword [0x22dd76880]
mov r14, qword [sym.imp.USER32.dll_GetKeyState]
lea rbx, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x22dd76890]
movaps xmmword [rsp + 0x40], xmm0
movsxd rbp, dword [rbx + 4]
mov ecx, dword [rbx]
movzx r15d, word [r12 + rbp*2 + 0x1ae8]
mov r13, rbp
call r14
test ax, ax
js 0x22dae3141
cmp byte [rdi + rbp + 0x90], 1
je 0x22dae31f0
add rbx, 8
cmp rsi, rbx
jne 0x22dae3119
mov rbx, qword [r12 + 0x2488]
test rbx, rbx
je 0x22dae31d3
lea r12, [rsp + 0x30]
mov rcx, qword [rbx + 0x358]
mov rdx, r12
call qword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
shr edx, 0x1f
sar eax, 1
add edx, ecx
sar edx, 1
cmp dword [rbx + 0x394], eax
jne 0x22dae3196
cmp dword [rbx + 0x398], edx
je 0x22dae31d3
movd xmm1, edx
movd xmm0, eax
punpckldq xmm0, xmm1
movq qword [rsp + 0x30], xmm0
mov rcx, qword [rbx + 0x358]
mov dword [rbx + 0x398], edx
mov rdx, r12
mov dword [rbx + 0x394], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.22dadd870
cmp ebp, 0x15c
ja 0x22dae3220
cmp byte [rdi + rbp + 0x90], 0
je 0x22dae3141
mov ecx, dword [rdi + 0x78]
test ecx, ecx
je 0x22dae3258
mov byte [rdi + rbp + 0x90], 3
nop word [rax + rax]
mov edx, dword [rdi + 0x80]
test edx, edx
je 0x22dae3253
mov r10, qword [rdi + 0x338]
test r10, r10
je 0x22dae3141
mov dword [rsp + 0x20], eax
xor r9d, r9d
movsx r8d, r15w
mov edx, r13d
mov rcx, rdi
call r10
jmp 0x22dae3141
and eax, 0xffffffcf
jmp 0x22dae322a
mov byte [rdi + rbp + 0x90], 0
jmp 0x22dae3220
Function at 0x22dae3390
Capabilities:
Check for unmoving mouse cursor
Register raw input devices

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov r12, rcx
cmp edx, 0x34003
je 0x22dae3480
mov rax, qword [0x22ddae300]
cmp qword [rax + 0x2488], rcx
je 0x22dae3468
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
jne 0x22dae33d8
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.USER32.dll_WindowFromPoint]
cmp rax, qword [r12 + 0x358]
jne 0x22dae33cb
lea r13, [rsp + 0x30]
mov rcx, rax
mov rdx, r13
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [r12 + 0x358]
mov rbx, qword [sym.imp.USER32.dll_ClientToScreen]
mov rdx, r13
call rbx
mov rcx, qword [r12 + 0x358]
lea rdx, [rsp + 0x38]
call rbx
mov rdx, qword [rsp + 0x28]
mov rcx, r13
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x22dae33cb
xor ecx, ecx
mov rax, qword [r12 + 0x58]
cmp dword [r12 + 0x84], 0x34001
jne 0x22dae3451
test rax, rax
je 0x22dae34b0
mov rcx, qword [rax + 8]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp qword [sym.imp.USER32.dll_SetCursor]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp fcn.22dadd460
mov rbx, qword [rcx + 0x358]
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rbx, rax
jne 0x22dae33cb
mov rcx, r12
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp fcn.22dadd2c0
xor ecx, ecx
mov edx, 0x7f00
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
jmp 0x22dae3451
Function at 0x22dae5ce0
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, qword [0x22ddae300]
lea rax, str.OSMesa.dll
cmp qword [rbx + 0x26f8], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
je 0x22dae5d28
mov r12d, 1
mov eax, r12d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rdi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rsi, [rsp + 0x20]
lea rcx, str.libOSMesa.dll
jmp 0x22dae5d51
mov rcx, qword [rsi + 8]
add rsi, 8
test rcx, rcx
je 0x22dae5e88
call rdi
mov qword [rbx + 0x26f8], rax
test rax, rax
je 0x22dae5d40
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call rsi
mov rcx, qword [rbx + 0x26f8]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [rbx + 0x2700], rax
call rsi
mov rcx, qword [rbx + 0x26f8]
lea rdx, str.OSMesaDestroyContext
mov qword [rbx + 0x2708], rax
call rsi
mov rcx, qword [rbx + 0x26f8]
lea rdx, str.OSMesaMakeCurrent
mov qword [rbx + 0x2710], rax
call rsi
mov rcx, qword [rbx + 0x26f8]
lea rdx, str.OSMesaGetColorBuffer
mov qword [rbx + 0x2718], rax
call rsi
mov rcx, qword [rbx + 0x26f8]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [rbx + 0x2720], rax
call rsi
mov rcx, qword [rbx + 0x26f8]
lea rdx, str.OSMesaGetProcAddress
mov qword [rbx + 0x2728], rax
call rsi
cmp qword [rbx + 0x2700], 0
mov qword [rbx + 0x2730], rax
je 0x22dae5e40
cmp qword [rbx + 0x2710], 0
je 0x22dae5e40
cmp qword [rbx + 0x2718], 0
je 0x22dae5e40
cmp qword [rbx + 0x2720], 0
je 0x22dae5e40
cmp qword [rbx + 0x2728], 0
je 0x22dae5e40
test rax, rax
jne 0x22dae5d0f
nop
mov ecx, 0x10008
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
xor r12d, r12d
call fcn.22dad20f0
mov rcx, qword [rbx + 0x26f8]
test rcx, rcx
je 0x22dae5d15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, r12d
mov qword [rbx + 0x26f8], 0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
xor r12d, r12d
call fcn.22dad20f0
jmp 0x22dae5d15
Function at 0x22daef0f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9, rcx
movsxd r8, r8d
mov rcx, rdx
mov edx, 1
call sub.msvcrt.dll_fread
add rsp, 0x28
ret
Function at 0x22db29730
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
mov r13, rdx
mov ebx, r8d
test rcx, rcx
je 0x22db297f0
mov rax, qword [0x22dddccf0]
test rax, rax
je 0x22db29770
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
jmp rax
lea rdx, [0x22dd7b670]
call sub.msvcrt.dll_fopen
mov r14, rax
test rax, rax
je 0x22db297d0
mov r8d, ebx
mov r9, rax
mov edx, 1
mov rcx, r13
call sub.msvcrt.dll_fwrite
mov r8, r12
test eax, eax
je 0x22db29810
cmp ebx, eax
je 0x22db29828
lea rdx, str.FILEIO:___s__File_partially_written
mov ecx, 4
call fcn.22dce6140
mov rcx, r14
call sub.msvcrt.dll_fclose
test eax, eax
sete al
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
mov r8, r12
lea rdx, [0x22dd7b6f0]
mov ecx, 4
call fcn.22dce6140
xor eax, eax
jmp 0x22db297c4
lea rdx, [0x22dd7b648]
mov ecx, 4
call fcn.22dce6140
xor eax, eax
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
lea rdx, str.FILEIO:___s__Failed_to_write_file
mov ecx, 4
call fcn.22dce6140
jmp 0x22db297b7
lea rdx, str.FILEIO:___s__File_saved_successfully
mov ecx, 3
call fcn.22dce62c0
jmp 0x22db297b7

Function at 0x22db29940
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdx, [0x22dd7b796]
mov rbx, rcx
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x22db29a08
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov esi, eax
call sub.msvcrt.dll_fseek
test esi, esi
jne 0x22db299c0
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_read_text_file
mov ecx, 4
xor r13d, r13d
call fcn.22dce6140
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
lea ecx, [rsi + 1]
call sub.msvcrt.dll_malloc
mov r9, r12
mov r8d, esi
mov edx, 1
mov rcx, rax
mov r13, rax
call sub.msvcrt.dll_fread
mov rdi, rax
cmp esi, eax
ja 0x22db29a30
mov edi, edi
mov r8, rbx
mov ecx, 3
mov byte [r13 + rdi], 0
lea rdx, str.FILEIO:___s__Text_file_loaded_successfully
call fcn.22dce62c0
jmp 0x22db299a8
mov r8, rbx
lea rdx, str.FILEIO:___s__Failed_to_open_text_file
mov ecx, 4
xor r13d, r13d
call fcn.22dce6140
mov rax, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r13
lea edx, [rax + 1]
call sub.msvcrt.dll_realloc
mov r13, rax
jmp 0x22db299e5
Function at 0x22db5dc70
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
lea rax, [0x22db58d90]
movq xmm6, rax
mov rbx, qword [rsp + 0xb8]
mov esi, edx
lea rdx, [0x22db58da0]
mov rdi, rcx
mov r13, r8
movq xmm0, rdx
mov rbp, r9
punpcklqdq xmm6, xmm0
test rbx, rbx
je 0x22db5dde0
mov rax, qword [rbx + 8]
test rax, rax
je 0x22db5ddd0
mov rdx, qword [rbx]
mov ecx, 0x30
call rax
mov r12, rax
test rax, rax
je 0x22db5ddd0
mov qword [rax], rbp
mov rax, qword [rsp + 0xb0]
mov qword [r12 + 8], rax
cmp qword [rbx], 0
je 0x22db5dd90
cmp qword [rbx + 0x18], 0
je 0x22db5dd1d
cmp qword [rbx + 8], 0
je 0x22db5ddb8
movdqu xmm1, xmmword [rbx]
movups xmmword [r12 + 0x10], xmm1
movdqu xmm2, xmmword [rbx + 0x10]
movups xmmword [r12 + 0x20], xmm2
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov r9, r12
mov rdx, r13
mov qword [rsp + 0x28], 0
lea r8, [0x22db58d60]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi], rax
mov rcx, rax
test rax, rax
je 0x22db5de28
add esi, 5
xor edx, edx
cmp esi, 6
jbe 0x22db5dd80
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x22dd80940]
mov edx, dword [rax + rsi*4]
jmp 0x22db5dd5c
cmp qword [rbx + 0x18], 0
jne 0x22db5dcfd
cmp qword [rbx + 8], 0
jne 0x22db5dd1d
cmp qword [rbx + 0x10], 0
jne 0x22db5dd1d
jmp 0x22db5de02
cmp qword [rbx + 0x10], 0
jne 0x22db5dd08
jmp 0x22db5dd1d
mov eax, 0xfffffffc
jmp 0x22db5dd64
mov ecx, 0x30
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x22db5ddd0
mov qword [rax], rbp
mov rax, qword [rsp + 0xb0]
mov qword [r12 + 8], rax
lea rax, [0x22db58d50]
movups xmmword [r12 + 0x18], xmm6
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x28], rax
jmp 0x22db5dd1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.22db5ce10
test eax, eax
je 0x22db5dd64
test rbx, rbx
je 0x22db5de68
mov r8, qword [rbx + 0x18]
test r8, r8
je 0x22db5dd64
mov dword [rsp + 0x3c], eax
mov rdx, qword [rbx]
mov rcx, r12
call r8
mov eax, dword [rsp + 0x3c]
jmp 0x22db5dd64
mov rcx, r12
mov dword [rsp + 0x3c], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x3c]
jmp 0x22db5dd64
Function at 0x22db5fcc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x22db5feb2
test rdx, rdx
je 0x22db5feb2
lea rdx, [rsp + 0x28]
lea rcx, [rcx + 0x20]
call fcn.22dbdf9f0
mov r12d, eax
test eax, eax
jne 0x22db5fe3c
mov rdi, qword [rsp + 0x28]
movzx eax, di
cmp eax, dword [rbx + 4]
jae 0x22db5fe93
movzx eax, di
movdqu xmm0, xmmword [rsi]
lea rdx, [rax + rax*2]
lea rax, [rax + rdx*4]
mov rdx, qword [rbx + 0x48]
shl rax, 3
movups xmmword [rdx + rax], xmm0
movdqu xmm1, xmmword [rsi + 0x10]
movups xmmword [rdx + rax + 0x10], xmm1
movdqu xmm2, xmmword [rsi + 0x20]
movups xmmword [rdx + rax + 0x20], xmm2
movdqu xmm3, xmmword [rsi + 0x30]
movups xmmword [rdx + rax + 0x30], xmm3
movdqu xmm4, xmmword [rsi + 0x40]
movups xmmword [rdx + rax + 0x40], xmm4
movdqu xmm5, xmmword [rsi + 0x50]
movups xmmword [rdx + rax + 0x50], xmm5
mov rcx, qword [rsi + 0x60]
mov qword [rdx + rax + 0x60], rcx
mov rdx, qword [rbx + 0x48]
mov qword [rdx + rax], rdi
movzx ecx, word [rsi]
mov rdx, qword [rbx + 0x48]
mov word [rdx + rax], cx
mov rdx, qword [rbx + 0x48]
mov ecx, 1
mov qword [rdx + rax + 8], 0xffffffffffffffff
lea rdx, [rbx + 0x50]
nop word [rax + rax]
mov eax, ecx
xchg dword [rdx], eax
test eax, eax
je 0x22db5fdab
nop dword [rax + rax]
mov eax, dword [rdx]
cmp eax, 1
jne 0x22db5fd90
pause
jmp 0x22db5fda0
movabs r11, 0xffffffff0000ffff
lea r9, [rbx + 0x10]
nop dword [rax]
mov r8, qword [r9]
movzx edx, r8w
lea rax, [rdx + rdx*2]
lea rdx, [rdx + rax*4]
shl rdx, 3
mov rcx, qword [rbx + 0x48]
mov r10, qword [rcx + rdx + 8]
mov rcx, qword [r9]
xor rcx, r8
test rcx, r11
jne 0x22db5fdc0
cmp r10w, 0xffff
jne 0x22db5fe50
mov rcx, r10
mov eax, dword [rsp + 0x28]
mov rdi, qword [rbx + 0x48]
shr rcx, 0x20
add ecx, 1
shl rcx, 0x20
or rcx, rax
mov rax, r10
lock cmpxchg qword [rdi + rdx + 8], rcx
jne 0x22db5fdc0
mov rdx, r8
mov eax, dword [rsp + 0x28]
shr rdx, 0x20
add edx, 1
shl rdx, 0x20
or rdx, rax
mov rax, r8
lock cmpxchg qword [r9], rdx
mov dword [rbx + 0x50], 0
test byte [rbx], 1
je 0x22db5fe72
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rax, r8
movzx r10d, r10w
shr rax, 0x20
lea edx, [rax + 1]
mov rax, r8
shl rdx, 0x20
or rdx, r10
lock cmpxchg qword [r9], rdx
jmp 0x22db5fdc0
xor r8d, r8d
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x22db5fe3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
jmp 0x22db5fe3c
mov r8d, 0x4208
lea rdx, [0x22dd7ed60]
lea rcx, str.ma_job_extract_slot_slot____pQueue__capacity
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x22db5fd0b
mov r12d, 0xfffffffe
jmp 0x22db5fe3c
Function at 0x22db8eff0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp qword [rsp + 0xc0], 0
mov rbp, rdx
mov r12, r8
mov rdi, r9
je 0x22db8f023
mov rax, qword [rsp + 0xc0]
mov qword [rax], 0
test rbp, rbp
je 0x22db8f1a2
test r12, r12
je 0x22db8f1a2
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
lea r15, [rsp + 0x4c]
test rdi, rdi
jne 0x22db8f069
jmp 0x22db8f0b8
mov edx, dword [rsp + 0x4c]
add rsi, rdx
cmp ebx, edx
ja 0x22db8f0b8
test r8d, r8d
je 0x22db8f0e8
cmp rdi, rsi
jbe 0x22db8f0b8
mov rbx, rdi
mov eax, 0xffffffff
lea rdx, [r12 + rsi]
mov r9, r15
mov qword [rsp + 0x20], 0
sub rbx, rsi
mov rcx, rbp
cmp rbx, rax
cmova rbx, rax
mov r8d, ebx
call r14
mov r8d, eax
cmp eax, 1
jne 0x22db8f050
mov eax, dword [rsp + 0x4c]
test eax, eax
je case.0x22db8f10d.38
mov edx, eax
add rsi, rdx
cmp ebx, eax
jbe 0x22db8f064
nop dword [rax]
xor r8d, r8d
cmp qword [rsp + 0xc0], 0
je 0x22db8f0d1
mov rax, qword [rsp + 0xc0]
mov qword [rax], rsi
mov eax, r8d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x3c], r8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
ja case.default.0x22db8f10d
lea rdx, [0x22dd8395c]
mov eax, eax
mov r8d, dword [rsp + 0x3c]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov r8d, 0xffffffde
cmp eax, 0x79
je case.0x22db8f10d.0
jbe 0x22db8f132
cmp eax, 0x83
mov r8d, 0xffffffff
mov eax, 0xffffffe7
cmove r8d, eax
jmp case.0x22db8f10d.0
mov r8d, 0xfffffffe
cmp eax, 0x57
je case.0x22db8f10d.0
cmp eax, 0x70
mov r8d, 0xffffffff
mov eax, 0xffffffee
cmove r8d, eax
jmp case.0x22db8f10d.0
mov r8d, 0xffffffff
jmp case.0x22db8f10d.0
mov r8d, 0xffffffef
jmp case.0x22db8f10d.0
mov r8d, 0xfffffff9
jmp case.0x22db8f10d.0
mov r8d, 0xfffffffc
jmp case.0x22db8f10d.0
mov r8d, 0xfffffffa
jmp case.0x22db8f10d.0
mov r8d, 0xfffffff7
jmp case.0x22db8f10d.0
mov r8d, 0xfffffffe
jmp 0x22db8f0d1
Function at 0x22dbb19c0
Capabilities:
Read file on windows

Disassembly:
push r12
sub rsp, 0x20
mov rax, qword [rcx + 0x28]
mov r12, rcx
test rax, rax
je 0x22dbb1a38
mov rdx, qword [rcx + 0x38]
cmp rax, rdx
jb 0x22dbb1a00
mov dword [r12 + 0x80], 1
mov dword [r12 + 0x84], 0x1e
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, [rax + 1]
mov qword [r12 + 0x28], rcx
cmp byte [rax], 0x4f
jne 0x22dbb19e7
cmp rdx, rcx
jbe 0x22dbb19db
lea rax, [rcx + 1]
mov qword [r12 + 0x28], rax
cmp byte [rcx], 0x67
jne 0x22dbb19e7
cmp rdx, rax
jbe 0x22dbb19db
lea rdx, [rax + 1]
mov qword [r12 + 0x28], rdx
movzx eax, byte [rax]
jmp 0x22dbb1a94
mov rcx, qword [rcx + 0x18]
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0x22dbb19db
cmp al, 0x4f
jne 0x22dbb19e7
mov rcx, qword [r12 + 0x28]
test rcx, rcx
jne 0x22dbb1b19
mov rcx, qword [r12 + 0x18]
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0x22dbb19db
cmp al, 0x67
jne 0x22dbb19e7
mov rax, qword [r12 + 0x28]
test rax, rax
jne 0x22dbb1b23
mov rcx, qword [r12 + 0x18]
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
je 0x22dbb19db
cmp al, 0x67
jne 0x22dbb19e7
mov rcx, r12
call fcn.22dbb17b0
cmp al, 0x53
jne 0x22dbb19e7
mov rax, qword [r12 + 0x28]
test rax, rax
je 0x22dbb1b08
cmp rax, qword [r12 + 0x38]
jb 0x22dbb1ae0
mov dword [r12 + 0x80], 1
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.22dbdeec0
lea rdx, [rax + 1]
mov qword [r12 + 0x28], rdx
movzx eax, byte [rax]
test al, al
je 0x22dbb1ac9
mov dword [r12 + 0x84], 0x1f
xor eax, eax
add rsp, 0x20
pop r12
ret
mov rcx, qword [r12 + 0x18]
call sub.msvcrt.dll_fgetc
cmp eax, 0xffffffff
jne 0x22dbb1aec
jmp 0x22dbb1abd
mov rdx, qword [r12 + 0x38]
jmp 0x22dbb1a0e
mov rdx, qword [r12 + 0x38]
jmp 0x22dbb1a21
Function at 0x22dbc4bc0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov edi, edx
lea rdx, [0x22dd861a9]
mov rcx, r8
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x22dbc4e28
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
mov rcx, r12
movsxd rbx, eax
call sub.msvcrt.dll_rewind
cmp ebx, 0xffffffff
je 0x22dbc4dd8
lea ecx, [rbx + 1]
movsxd rcx, ecx
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x22dbc4e89
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rbx, rax
ja 0x22dbc4cd0
mov rcx, r12
call sub.msvcrt.dll_fclose
cmp rbx, 0x3b
jbe 0x22dbc4c7d
movabs rax, 0x3a656c75646f4d20
xor rax, qword [r13 + 8]
movabs rdx, 0x6465646e65747845
xor rdx, qword [r13]
or rax, rdx
je 0x22dbc4d30
mov rcx, r13
call sub.msvcrt.dll_free
mov rbx, qword [fcn.22dcfc130]
mov ecx, 2
call rbx
lea rdx, str.could_not_create_context:_module_is_not_sane_n
mov rcx, rax
call fcn.22db293a0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov qword [rsi], 0
mov eax, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rcx, r12
lea r12, str.fread___failed
call sub.msvcrt.dll_fclose
mov rbx, qword [fcn.22dcfc130]
mov ecx, 2
call rbx
mov rdx, r12
mov rcx, rax
call fcn.22db293a0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, r13
call sub.msvcrt.dll_free
mov eax, 5
mov qword [rsi], 0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
cmp byte [r13 + 0x10], 0x20
jne 0x22dbc4c7d
cmp byte [r13 + 0x25], 0x1a
jne 0x22dbc4c7d
cmp byte [r13 + 0x3b], 1
jne 0x22dbc4c7d
cmp byte [r13 + 0x3a], 4
jne 0x22dbc4c7d
mov r9d, edi
mov r8, rbx
mov rdx, r13
mov rcx, rsi
call fcn.22dbefbd0
mov rcx, r13
mov dword [rsp + 0x2c], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x22dbc4cbd
js 0x22dbc4e6c
cmp eax, 1
je 0x22dbc4c85
cmp eax, 2
jne 0x22dbc4e6c
mov ecx, 2
mov rbx, qword [fcn.22dcfc130]
call rbx
lea rdx, str.could_not_create_context:_malloc_failed_n
mov rcx, rax
call fcn.22db293a0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop dword [rax + rax]
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rbx, qword [fcn.22dcfc130]
mov ecx, 2
call rbx
lea rdx, str.fseek___failed
mov rcx, rax
call fcn.22db293a0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov eax, 4
mov qword [rsi], 0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov rbx, qword [fcn.22dcfc130]
mov ecx, 2
call rbx
lea rdx, str.Could_not_open_input_file
mov rcx, rax
call fcn.22db293a0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov eax, 3
mov qword [rsi], 0
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov ecx, 2
mov rbx, qword [fcn.22dcfc130]
call rbx
lea rdx, str.could_not_create_context:_unknown_error_n
mov rcx, rax
jmp 0x22dbc4db5
mov rcx, r12
lea r12, str.JARXM_MALLOC___failed
call sub.msvcrt.dll_fclose
jmp 0x22dbc4cdf
Function at 0x22dbc5b90
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x28
mov r13, rcx
mov rcx, qword [rcx + 0x1a70]
mov r12, rdx
test rcx, rcx
je 0x22dbc5bbe
call sub.msvcrt.dll_free
mov qword [r13 + 0x1a70], 0
mov rcx, r12
lea rdx, [0x22dd861a9]
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x22dbc5c08
mov r8d, 2
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_fseek
mov rcx, r12
call sub.msvcrt.dll_ftell
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov r14d, eax
call sub.msvcrt.dll_fseek
lea eax, [r14 - 1]
cmp eax, 0x1fffffe
jbe 0x22dbc5c20
xor r14d, r14d
mov eax, r14d
add rsp, 0x28
pop r12
pop r13
pop r14
pop r15
ret
mov r15d, r14d
mov edx, 1
mov rcx, r15
call sub.msvcrt.dll_calloc
mov dword [r13 + 0x1a78], r14d
mov rdx, r15
mov r9, r12
mov qword [r13 + 0x1a70], rax
mov r8d, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rdx, qword [r13 + 0x1a70]
mov r8d, r14d
mov rcx, r13
call fcn.22dbc56e0
test al, al
jne 0x22dbc5c0b
jmp 0x22dbc5c08
Function at 0x22dc00800
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov eax, dword [0x22dd0dd00]
sub eax, 1
cmp eax, 1
jbe 0x22dc00900
mov rsi, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea r13, [rsp + 0x20]
lea r12, [rsp + 0x28]
mov rbx, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm6, qword [0x22dd92a38]
mov rcx, r13
call rsi
mov rcx, r12
call rbx
mov rax, qword [rsp + 0x28]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
test rax, rax
jns 0x22dc00877
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
mov rax, qword [rsp + 0x20]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x22dc008a3
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
divsd xmm0, xmm1
mov eax, dword [0x22dd0dd00]
mulsd xmm0, xmm6
subsd xmm0, qword [0x22dd0dd10]
comisd xmm0, xmmword [0x22dd92a40]
jbe 0x22dc008cc
cmp eax, 8
je 0x22dc009b0
lea edx, [rax - 0x10]
and edx, 0xffffffef
je 0x22dc008dc
sub eax, 0x40
and eax, 0xffffffbf
jne 0x22dc008e6
mov dword [0x22dd0dd00], 0
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
cmp dword [0x22dd0dd0c], 1
jg 0x22dc00821
lea r13, [rsp + 0x20]
lea r12, [rsp + 0x28]
mov dword [0x22dd0dd00], 4
mov rsi, qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, r13
call rsi
mov rbx, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, r12
call rbx
mov rax, qword [rsp + 0x28]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
test rax, rax
jns 0x22dc00965
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
mov rax, qword [rsp + 0x20]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x22dc00991
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
divsd xmm0, xmm1
movsd xmm6, qword [0x22dd92a38]
mulsd xmm0, xmm6
movsd qword [0x22dd0dd58], xmm0
jmp 0x22dc00841
cmp dword [0x22dd0dd0c], 1
jg 0x22dc008e6
mov dword [0x22dd0dd00], 4
mov rcx, r13
call rsi
mov rcx, r12
call rbx
mov rax, qword [rsp + 0x28]
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
test rax, rax
jns 0x22dc009fd
mov rdx, rax
and eax, 1
pxor xmm0, xmm0
shr rdx, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
mov rax, qword [rsp + 0x20]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x22dc00a29
mov rdx, rax
and eax, 1
pxor xmm1, xmm1
shr rdx, 1
or rdx, rax
cvtsi2sd xmm1, rdx
addsd xmm1, xmm1
divsd xmm0, xmm1
mov byte [0x22dd0dd50], 1
mov eax, dword [0x22dd0dd00]
mulsd xmm0, xmm6
movsd qword [0x22dd0dd58], xmm0
jmp 0x22dc008cc