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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140343f10]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002923
cmp byte [rcx + 0x71], 0
je 0x140002923
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000291f
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 0x1400028e4
sub eax, 1
je 0x1400028e8
cmp eax, 2
jne 0x14000291f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007e450
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002916
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 0x14000291f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400028cc
xor al, al
jmp 0x1400028cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007e450
add rsp, 0x60
pop rbx
ret

Function at 0x140003e40
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140343f10]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
mov qword [rsp + 0x90], rcx
call fcn.140004440
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x40
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
lea rax, str.cmd.exe
mov qword [rsp + 0x38], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140003ecd
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140003f02
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140003f5d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140003f58
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003f8d
mov rcx, r8
call fcn.14007e4ac
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14007e450
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140006ad0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140006b2d
lea rbx, [0x1402f8ec0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140006b14
cmp r10, 2
jb 0x140006b14
cmp byte [r9], r8b
jne 0x140006b14
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140006af0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140006b6f
lea rbx, [0x1402f8ec0]
cmp r8b, 0x23
jne 0x140006b53
cmp byte [r9], r8b
jne 0x140006b53
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140006b40
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140006cb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140006cca
mov qword [r8], 0
lea rdx, [0x14030ce6c]
call fcn.140006b80
mov rbx, rax
test rax, rax
jne 0x140006cea
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140006dd5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140006dd5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140006dd5
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140006dd5
cmp rdi, 0xffffffffffffffff
je 0x140006dd5
mov rax, qword [0x14034db30]
test rax, rax
je 0x140006d66
inc dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140006dd5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140006dc2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14034db30]
test rax, rax
je 0x140006db1
dec dword [rax + 0x3b4]
mov rdx, qword [0x14034db20]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140006dde
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140006dd0
mov qword [r14], rdi
mov rax, rsi
jmp 0x140006de0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140013120
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140343f10]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14034db30]
mov edi, edx
cmp byte [rbx + 0x1f4d], 0
jne 0x14001317d
cmp byte [rbx + 0x1f4e], 0
jne 0x14001317d
mov r9d, dword [rbx + 0x3028]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400069c0
test dil, 1
je 0x140013286
jmp 0x1400131ea
movss xmm0, dword [rbx + 0x128]
lea r8, str.Tooltip__02d
movss xmm1, dword [rbx + 0x12c]
lea rcx, [rsp + 0x20]
mov r9d, dword [rbx + 0x3028]
xor eax, eax
movss dword [rbx + 0x1cc0], xmm0
movss dword [rbx + 0x1cc4], xmm1
mov qword [rbx + 0x1cc8], rax
mov dword [rbx + 0x1cb4], 1
lea edx, [rax + 0x10]
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x14030dfac]
or dword [rbx + 0x1cb0], 0x41
movss dword [rbx + 0x1d10], xmm0
call fcn.1400069c0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140013240
lea r11, [0x1402f8ec0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140013223
cmp byte [r8], r9b
jne 0x140013223
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140013210
not ecx
call fcn.14000cff0
test rax, rax
je 0x140013286
cmp byte [rax + 0x8e], 0
je 0x140013286
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3028]
mov edx, 0x10
mov r9d, dword [rbx + 0x3028]
call fcn.1400069c0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000f710
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007e450
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140017440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30c8], 0
lea rbx, [rcx + 0x30d0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400174e7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001749a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140019090
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140007270
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30c8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x30d8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14034db28]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400174ef
mov rcx, rbx
call fcn.140007270
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140037930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140343f10]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x140037996
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x140037966
cmp byte [rax], cl
jne 0x140037992
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x140037957
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14007e450
add rsp, 0x90
pop rbx
ret
movzx ecx, byte [r8]
cmp cl, 0x25
jne 0x140037976
cmp byte [r8 + 1], cl
je 0x140037976
lea r11, [rsp + 0x20]
mov r9, r8
movzx edx, cl
nop dword [rax]
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1400379cd
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1400379f5
sub dl, 0x61
cmp dl, 0x19
ja 0x1400379e7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1400379f5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1400379b0
jmp 0x1400379f8
inc r9
cmp r8, r9
jae 0x140037a2f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140037a24
bt rdx, rax
jb 0x140037a2a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140037a10
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.1400069c0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140037a68
nop
inc rcx
cmp byte [rcx], 0x20
je 0x140037a60
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140037aeb
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x140037a8a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x140037a98
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140037ad6
movss xmm2, dword [0x14030e110]
nop
cmp al, 0x39
ja 0x140037ad6
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140037ab0
cmp r9b, 0x2d
jne 0x140037af8
xorps xmm1, xmmword [0x14030e880]
movaps xmm0, xmm1
jmp 0x140037979
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140037979
Function at 0x140037b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140343f10]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x140037b66
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x140037b36
cmp byte [rax], cl
jne 0x140037b62
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x140037b27
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14007e450
add rsp, 0x90
pop rbx
ret
movzx ecx, byte [r8]
cmp cl, 0x25
jne 0x140037b46
cmp byte [r8 + 1], cl
je 0x140037b46
lea r11, [rsp + 0x20]
mov r9, r8
movzx edx, cl
nop dword [rax]
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x140037b9d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140037bc5
sub dl, 0x61
cmp dl, 0x19
ja 0x140037bb7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140037bc5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140037b80
jmp 0x140037bc8
inc r9
cmp r8, r9
jae 0x140037bff
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140037bf4
bt rdx, rax
jb 0x140037bfa
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140037be0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1400069c0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140037c38
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x140037c30
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140037cb9
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x140037c5a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x140037c68
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140037ca4
movsd xmm2, qword [0x14030e048]
nop
cmp al, 0x39
ja 0x140037ca4
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140037c80
cmp r9b, 0x2d
jne 0x140037cc2
xorps xmm1, xmmword [0x14030e870]
movaps xmm0, xmm1
jmp 0x140037b49
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140037b49
Function at 0x140037e20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140037e81
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140037e40
mov ecx, dword [r10]
jmp 0x140037f6a
cmp ecx, 0x4e0
jb 0x140037f6a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140037ea0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140037ef0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140038770
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbx
push rdi
push r12
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x140343f10]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x38]
mov r8, qword [0x14034db78]
mov rdi, rcx
mov ecx, edx
mov ebx, edx
mov edx, dword [0x14034db80]
add r8, 0xc42d210
sar ecx, 0x10
xor r12d, r12d
shl ecx, 3
add r8, rcx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], 8
call fcn.140037fb0
mov rax, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov edx, dword [0x14034db80]
movzx ecx, bx
mov word [rsp + 0x30], r12w
mov dword [rsp + 0x20], 2
lea r15, [rax + rcx*4]
mov r8, r15
call fcn.140037fb0
movzx r14d, word [rsp + 0x30]
shr r14d, 6
test r14d, r14d
je 0x1400388e0
mov qword [rsp + 0x490], rbp
mov ebx, r12d
mov qword [rsp + 0x498], rsi
mov esi, r12d
mov ebp, r14d
nop
mov edx, dword [0x14034db80]
lea r8, [r15 + 4]
mov eax, esi
lea r9, [rsp + 0x30]
add r8, rax
mov byte [rsp + 0x30], r12b
mov dword [rsp + 0x20], 1
call fcn.140037fb0
movzx eax, byte [rsp + 0x30]
inc esi
mov byte [rsp + rbx + 0x40], al
inc rbx
cmp rbx, rbp
jl 0x140038830
mov rsi, qword [rsp + 0x498]
lea rdx, [rsp + 0x40]
dec rdx
mov r8d, r12d
mov ecx, 0x1c
mov eax, r8d
lea rdx, [rdx + 1]
or eax, 0xb000
inc r8d
add ecx, eax
movzx eax, byte [rdx]
not al
xor al, cl
shr ecx, 2
mov byte [rdx], al
cmp r8d, r14d
jb 0x140038881
mov rbp, qword [rsp + 0x490]
lea rax, [rsp + 0x40]
mov qword [rdi], r12
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r12b
mov byte [rsp + r14 + 0x40], r12b
nop
inc r8
cmp byte [rax + r8], r12b
jne 0x1400388d0
lea rdx, [rsp + 0x40]
jmp 0x1400388fc
mov qword [rdi], r12
lea rdx, [0x14009e00b]
mov qword [rdi + 0x10], r12
xor r8d, r8d
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r12b
mov rcx, rdi
call fcn.1400046f0
mov rax, rdi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14007e450
add rsp, 0x450
pop r15
pop r14
pop r12
pop rdi
pop rbx
ret
Function at 0x14003c590
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
movzx ecx, dl
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
add rsp, 0x28
ret
Function at 0x14006afd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14006b013
jmp 0x14006b105
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov rdx, rax
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14006b04c
lea rdx, str.Win32:_Failed_to_allocate_global_handle_for_clipboard
mov ecx, 0x10008
call fcn.140077f60
jmp 0x14006b105
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14006b085
lea rdx, [0x14031fca8]
mov ecx, 0x10008
call fcn.140077f60
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14006b105
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x60]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [0x14034c028]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14006b0e9
lea rdx, [0x14031fcd0]
mov ecx, 0x10008
call fcn.140077f60
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14006b105
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
add rsp, 0x50
pop rdi
ret

Function at 0x14006b120
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov rcx, qword [0x14034c028]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14006b14f
lea rdx, str.Win32:_Failed_to_open_clipboard
mov ecx, 0x10008
call fcn.140077f60
xor eax, eax
jmp 0x14006b1eb
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14006b182
lea rdx, str.Win32:_Failed_to_convert_clipboard_to_string
mov ecx, 0x10009
call fcn.140077f60
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14006b1eb
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14006b1b5
lea rdx, str.Win32:_Failed_to_lock_global_handle
mov ecx, 0x10008
call fcn.140077f60
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14006b1eb
mov rcx, qword [0x14034c040]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x28]
call fcn.140077bb0
mov qword [0x14034c040], rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, qword [0x14034c040]
add rsp, 0x30
pop rdi
ret
Function at 0x14006cc30
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x30]
mov ecx, 0x3c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140343f10]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14006ccd8
cmp dword [rsp + 0x40], 0x12
jne 0x14006ccc0
mov rax, qword [0x14034ad60]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14006ccbe
mov rcx, qword [rsp + 0x80]
call fcn.14006a920
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x14006cc91
jmp 0x14006ccd6
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14006cc5c
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14006ce66
lea rdx, str.GLFW
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetPropW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14006ce66
mov dword [rsp + 0x98], 0xa0
mov dword [rsp + 0x9c], 0x154
mov dword [rsp + 0xa0], 0xa1
mov dword [rsp + 0xa4], 0x158
mov dword [rsp + 0xa8], 0x5b
mov dword [rsp + 0xac], 0x157
mov dword [rsp + 0xb0], 0x5c
mov dword [rsp + 0xb4], 0x15b
mov dword [rsp + 0x88], 0
jmp 0x14006cd8d
mov eax, dword [rsp + 0x88]
inc eax
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 4
jge 0x14006ce66
movsxd rax, dword [rsp + 0x88]
lea rax, [rsp + rax*8 + 0x98]
mov ecx, 4
imul rcx, rcx, 0
mov eax, dword [rax + rcx]
mov dword [rsp + 0xc4], eax
movsxd rax, dword [rsp + 0x88]
lea rax, [rsp + rax*8 + 0x98]
mov ecx, 4
imul rcx, rcx, 1
mov eax, dword [rax + rcx]
mov dword [rsp + 0xc8], eax
movsxd rax, dword [rsp + 0xc8]
lea rcx, [0x14034c448]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0xcc], eax
mov ecx, dword [rsp + 0xc4]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14006ce17
jmp 0x14006cd7d
movsxd rax, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
movsx eax, byte [rcx + rax + 0x90]
cmp eax, 1
je 0x14006ce39
jmp 0x14006cd7d
call fcn.14006e310
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rsp + 0xcc]
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
call fcn.140066720
jmp 0x14006cd7d
mov rax, qword [0x14034cde8]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14006cf09
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0xd4]
mov rcx, qword [rsp + 0x80]
call fcn.14006b870
mov eax, dword [rsp + 0xd4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x394], eax
jne 0x14006ced9
mov eax, dword [rsp + 0xf4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x80]
cmp dword [rcx + 0x398], eax
je 0x14006cf09
mov eax, dword [rsp + 0xf4]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm0, eax
mov eax, dword [rsp + 0xd4]
cdq
sub eax, edx
sar eax, 1
cvtsi2sd xmm1, eax
movaps xmm2, xmm0
mov rcx, qword [rsp + 0x80]
call fcn.14006ab90
mov rcx, rsp
lea rdx, [0x14009ab80]
call fcn.14007f020
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14007e450
add rsp, 0x120
pop rdi
ret