joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401940
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0040c0c4]
mov r12, rcx
test ebx, ebx
jle 0x401a70
mov rax, qword [0x0040c0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40198c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401a13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401970
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x401a92
mov rax, qword [0x0040c0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040c0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401a0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401a20
add dword [0x0040c0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0040c0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x401997
mov rax, qword [0x0040c0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x401f60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040c120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040c100]
test rbx, rbx
je 0x401fb4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x401fab
test r12, r12
je 0x401fab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x401f90
lea rcx, [0x0040c120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4021d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x4021e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x4021f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402200
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40224c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x402243
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x40224e
add rax, 0x28
cmp rax, r9
jne 0x402230
xor eax, eax
ret

Function at 0x402250
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x4022e0
mov rdx, qword [0x00409700]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x4022ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x4022ce
cmp word [rax + 0x18], 0x20b
jne 0x4022ce
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4022e0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x4022b9
add r12, 0x28
cmp r12, rsi
je 0x4022e0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x4022b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x4022f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00409700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402310
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402318
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402310
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x402365
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40235c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402310
add rax, 0x28
cmp rax, r9
jne 0x402348
xor eax, eax
ret

Function at 0x402370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00409700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402390
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402398
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x402390
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4023b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00409700]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x4023d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x4023d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4023d0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x402418
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x40240f
test rcx, rcx
je 0x4023d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x402400
xor eax, eax
ret

Function at 0x402420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00409700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402440
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402448
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x402460
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x00409700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402480
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402488
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402480
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x402480
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4024c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4024d8
add rax, 0x28
cmp r9, rax
jne 0x4024b0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x4024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x00409700]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402512
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402520
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402512
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402512
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x402512
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x40256d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402580
add rdx, 0x28
cmp r10, rdx
jne 0x402558
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x40258f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x40259f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402576
test ecx, ecx
jg 0x402588
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x46bb00
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov eax, dword [0x005877f8]
cmp eax, 0xffffffff
jne 0x46bc07
mov r8d, 0x68
mov edx, 0
lea rcx, [0x00c6b340]
call sub.msvcrt.dll_memset
mov dword [0x00c6b340], 0x68
mov r8d, 0x18
mov edx, 0
lea rcx, [0x00c6b3b0]
call sub.msvcrt.dll_memset
lea rax, [0x00c6b3b0]
mov qword [rsp + 0x48], rax
lea rax, [0x00c6b340]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rdx, str.cmd.exe__c_ver
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x46bbfd
mov rax, qword [0x00c6b3b0]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [0x00c6b3b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [0x00c6b3b8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov dword [0x005877f8], 1
jmp 0x46bc07
mov dword [0x005877f8], 0
mov eax, dword [0x005877f8]
add rsp, 0x50
pop rbp
ret
Function at 0x47e346
Capabilities:
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov ecx, dword [rbp + 0x10]
call fcn.0047df12
test eax, eax
sete al
test al, al
je 0x47e36e
mov rax, 0xfffffffffffffffe
jmp 0x47e41d
mov rdx, qword [0x00723090]
mov eax, dword [rbp + 0x10]
cdqe
imul rax, rax, 0x88
add rax, rdx
mov qword [0x00c845b8], rax
mov rax, qword [0x00c845b8]
movzx eax, byte [rax + 0x80]
test al, al
je 0x47e3a6
mov rax, 0xfffffffffffffffc
jmp 0x47e41d
mov rdx, qword [0x00723088]
mov eax, dword [rbp + 0x10]
cdqe
shl rax, 3
add rax, rdx
mov qword [0x00c845c0], rax
lea rdx, [0x00c845cc]
mov rax, qword [0x00c845c0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov edx, eax
lea rax, [0x00c845c8]
mov dword [rax], edx
mov rax, qword [0x00c845c8]
mov edx, eax
mov eax, 0xffffffff
cmp rdx, rax
jne 0x47e416
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x47e416
mov rax, 0xfffffffffffffffd
jmp 0x47e41d
mov rax, qword [0x00c845c8]
add rsp, 0x20
pop rbp
ret
Function at 0x47fd74
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov ecx, dword [rbp + 0x10]
call fcn.0047df12
test eax, eax
sete al
test al, al
je 0x47fda6
mov eax, 0xfffffffe
jmp 0x47ff3d
mov rdx, qword [0x00723090]
mov eax, dword [rbp + 0x10]
cdqe
imul rax, rax, 0x88
add rax, rdx
mov qword [0x00c846a0], rax
mov rax, qword [0x00c846a0]
movzx eax, byte [rax + 0xa]
test al, al
jne 0x47fddc
mov eax, 0xfffffffd
jmp 0x47ff3d
cmp qword [rbp + 0x28], 0
jns 0x47fded
mov eax, 0xfffffffc
jmp 0x47ff3d
cmp qword [rbp + 0x18], 0xffffffffffffffff
je 0x47fe23
mov rax, qword [rbp + 0x18]
mov rdx, rax
mov ecx, dword [rbp + 0x10]
call fcn.0047fc08
mov dword [0x00c846a8], eax
mov eax, dword [0x00c846a8]
test eax, eax
setne al
test al, al
je 0x47fe23
mov eax, dword [0x00c846a8]
jmp 0x47ff3d
mov rdx, qword [0x00723088]
mov eax, dword [rbp + 0x10]
cdqe
shl rax, 3
add rax, rdx
mov qword [0x00c846b0], rax
cmp qword [rbp + 0x28], 0
je 0x47ff38
mov eax, 0xffffffff
cmp qword [rbp + 0x28], rax
jle 0x47fe6d
mov dword [0x00c846b8], 0xffffffff
movabs rax, 0xffffffff00000001
add qword [rbp + 0x28], rax
jmp 0x47fe7f
mov rax, qword [rbp + 0x28]
mov dword [0x00c846b8], eax
mov qword [rbp + 0x28], 0
mov ecx, dword [0x00c846b8]
mov rax, qword [0x00c846b0]
mov rax, qword [rax]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], 0
lea r9, [0x00c846c0]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
sete al
test al, al
je 0x47feee
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [0x00c84698], eax
mov eax, dword [0x00c84698]
cmp eax, 5
je 0x47fee0
mov eax, dword [0x00c84698]
cmp eax, 0x21
jne 0x47fee7
mov eax, 0xfffffff9
jmp 0x47ff3d
mov eax, 0xfffffff7
jmp 0x47ff3d
mov rax, qword [0x00c846c0]
add qword [rbp + 0x20], rax
mov rax, qword [0x00c846a0]
mov rcx, qword [rax + 0x10]
mov rdx, qword [0x00c846c0]
mov rax, qword [0x00c846a0]
add rdx, rcx
mov qword [rax + 0x10], rdx
mov eax, dword [0x00c846b8]
mov edx, eax
mov rax, qword [0x00c846c0]
cmp rdx, rax
je 0x47fe3d
mov eax, 0xffffffff
jmp 0x47ff3d
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x47ff4b
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [0x00c58b78], 0
mov ecx, dword [rbp + 0x10]
call fcn.0047df12
test eax, eax
sete al
test al, al
je 0x47ff88
mov eax, 0xfffffffe
jmp 0x480188
mov rdx, qword [0x00723090]
mov eax, dword [rbp + 0x10]
cdqe
imul rax, rax, 0x88
add rax, rdx
mov qword [0x00c846d0], rax
mov rax, qword [0x00c846d0]
movzx eax, byte [rax + 9]
test al, al
jne 0x47ffbe
mov eax, 0xfffffffd
jmp 0x480188
cmp qword [rbp + 0x28], 0
jns 0x47ffcf
mov eax, 0xfffffffc
jmp 0x480188
cmp qword [rbp + 0x18], 0xffffffffffffffff
je 0x480005
mov rax, qword [rbp + 0x18]
mov rdx, rax
mov ecx, dword [rbp + 0x10]
call fcn.0047fc08
mov dword [0x00c846d8], eax
mov eax, dword [0x00c846d8]
test eax, eax
setne al
test al, al
je 0x480005
mov eax, dword [0x00c846d8]
jmp 0x480188
mov rdx, qword [0x00723088]
mov eax, dword [rbp + 0x10]
cdqe
shl rax, 3
add rax, rdx
mov qword [0x00c846e0], rax
cmp qword [rbp + 0x28], 0
je 0x480178
mov eax, 0xffffffff
cmp qword [rbp + 0x28], rax
jle 0x48004f
mov dword [0x00c846e8], 0xffffffff
movabs rax, 0xffffffff00000001
add qword [rbp + 0x28], rax
jmp 0x480061
mov rax, qword [rbp + 0x28]
mov dword [0x00c846e8], eax
mov qword [rbp + 0x28], 0
mov ecx, dword [0x00c846e8]
mov rdx, qword [rbp + 0x20]
mov rax, qword [0x00c846e0]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
lea r9, [0x00c846f0]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
setne al
test al, al
je 0x480145
mov rax, qword [rbp + 0x20]
mov rdx, qword [0x00c846f0]
add rax, rdx
mov qword [rbp + 0x20], rax
mov rax, qword [0x00c846d0]
mov rcx, qword [rax + 0x10]
mov rdx, qword [0x00c846f0]
mov rax, qword [0x00c846d0]
add rdx, rcx
mov qword [rax + 0x10], rdx
mov rdx, qword [0x00c58b78]
mov rax, qword [0x00c846f0]
add rax, rdx
mov qword [0x00c58b78], rax
mov eax, dword [0x00c846e8]
mov edx, eax
mov rax, qword [0x00c846f0]
cmp rdx, rax
je 0x48001f
mov eax, dword [0x00c846e8]
mov edx, eax
mov rax, qword [0x00c846f0]
sub rdx, rax
mov rax, qword [rbp + 0x28]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [0x00c846d0]
mov byte [rax + 0x19], 1
mov eax, 0xfffffff6
jmp 0x480188
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [0x00c846c8], eax
mov eax, dword [0x00c846c8]
cmp eax, 5
je 0x48016a
mov eax, dword [0x00c846c8]
cmp eax, 0x21
jne 0x480171
mov eax, 0xfffffff9
jmp 0x480188
mov eax, 0xfffffff7
jmp 0x480188
mov rax, qword [0x00c846d0]
mov byte [rax + 0x19], 0
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x495d94
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call rax
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x495ddd
mov ecx, 7
call fcn.0044487a
mov rax, qword [rbp - 0x18]
jmp 0x495e6f
mov eax, dword [rbp - 4]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call rax
mov edx, eax
sub dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp edx, eax
setne al
test al, al
je 0x495e30
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_free
mov edx, 1
mov ecx, 0
call fcn.004462e2
mov qword [rbp - 0x18], rax
mov ecx, 0x33
call fcn.0044487a
mov rax, qword [rbp - 0x18]
jmp 0x495e6f
mov eax, dword [rbp - 4]
mov edx, 1
mov ecx, eax
call fcn.004462e2
mov qword [rbp - 0x20], rax
mov eax, dword [rbp - 4]
movsxd rcx, eax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
mov rdx, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x20]
add rsp, 0x40
pop rbp
ret
Function at 0x49db7c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x49db9b
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x91
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x49dbba
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov ecx, 0x90
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
cwde
neg eax
add rsp, 0x20
pop rbp
ret

Function at 0x49ef80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp edx, 0x66
mov rbx, rcx
ja case.0x49efa2.20
lea r8, [0x005b6288]
mov ecx, edx
movsxd rax, dword [r8 + rcx*4]
add rax, r8
jmp rax
mov edx, 0x7f00
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call rsi
movsxd r8, eax
mov rcx, qword [rbx]
mov edx, 0xfffffff4
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.USER32.dll_SetClassLongPtrA]
mov edx, 0x7f03
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f03
jmp 0x49efc2
mov edx, 0x7f82
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f82
jmp 0x49efc2
mov edx, 0x7f83
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f83
jmp 0x49efc2
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetCursor]
xor r8d, r8d
jmp 0x49efc9
mov edx, 0x7f89
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f89
jmp 0x49efc2
mov edx, 0x7f01
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f01
jmp 0x49efc2
mov edx, 0x7f02
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f02
jmp 0x49efc2
mov edx, 0x7f84
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f84
jmp 0x49efc2
mov edx, 0x7f86
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f86
jmp 0x49efc2
mov edx, 0x7f8b
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f8b
jmp 0x49efc2
mov edx, 0x7f85
xor ecx, ecx
mov rsi, qword [sym.imp.USER32.dll_LoadCursorA]
call rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f85
jmp 0x49efc2
lea rcx, str.Unknown_cursor_type:__d
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004a1ad0

Function at 0x49f180
Capabilities:
Write file on windows

Disassembly:
add rcx, 0x18
jmp fcn.0049ef80
Function at 0x4a0750
Capabilities:
Query environment variable
Query or enumerate registry value
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rcx, str.GLUT_DIALS_SERIAL
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4a08d0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x74], 0
mov qword [rsp + 0x7c], 0
mov edx, 0xc0000000
mov qword [rsp + 0x84], 0
mov dword [rsp + 0x70], 0x1c
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
test rax, rax
mov rbx, rax
je 0x4a0944
mov ecx, 0x38
call sub.msvcrt.dll_malloc
mov ecx, 6
lea rbp, [rax + 8]
mov rsi, rax
xor eax, eax
lea rdx, [rsi + 0x1c]
mov rdi, rbp
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x70]
mov rcx, rbx
mov qword [rsi], rbx
call qword [sym.imp.KERNEL32.dll_GetCommState]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetCommTimeouts]
lea rbp, [rsp + 0x50]
mov rdx, rdi
mov dword [rsp + 0x70], 0x1c
lea rcx, str.96_n_8_1
call qword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCommState]
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov r9, rdi
mov rdx, rbp
mov rcx, qword [rsi]
mov r8d, 1
mov qword [0x00c87700], rsi
mov byte [rsp + 0x50], 0x20
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor r8d, r8d
mov ecx, 0xa
lea rdx, [0x004a0520]
call fcn.0049e480
mov rax, qword [0x005d2990]
mov byte [rax + 0xb0], 1
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov dword [rsp + 0x4c], 0x100
lea r8, [rsp + 0x70]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], 1
lea rdx, str.SOFTWAREFreeGLUT
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4a08ba
lea rax, [rsp + 0x4c]
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
lea rbx, [0x00c87600]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
lea rdx, str.DialboxSerialPort
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x4a0960
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x4a0770
mov qword [0x00c87700], 0
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a08ba

Function at 0x4a09c0
Capabilities:
Query environment variable
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, qword [0x005d2990]
cmp byte [rax + 0xb0], 0
je 0x4a09d1
ret
jmp fcn.004a0750