joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f91fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400f922c
xor eax, eax
jmp 0x1400f92ef
mov rbp, rbx
cmp word [rax], si
je 0x1400f9251
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f9238
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f9234
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400f0d5c
movsxd r14, eax
test eax, eax
jne 0x1400f928f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f9225
mov rcx, r14
call fcn.1400f0c6c
mov rdi, rax
test rax, rax
jne 0x1400f92a8
xor ecx, ecx
call fcn.1400f0c30
jmp 0x1400f9284
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400f0d5c
test eax, eax
jne 0x1400f92d9
mov rcx, rdi
call fcn.1400f0c30
jmp 0x1400f92e3
xor ecx, ecx
call fcn.1400f0c30
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400f930c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400f9393
mov rsi, rbx
cmp word [rax], bp
je 0x1400f9352
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f933c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f9338
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400f0c6c
mov rdi, rax
test rax, rax
je 0x1400f9380
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401022e0
mov rbp, rdi
xor ecx, ecx
call fcn.1400f0c30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400fa020
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400f89ec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f89ec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fa170
cmp rax, 0xffffffffffffffff
je 0x1400fa170
xor edi, edi
test rbp, rbp
jle 0x1400fa11b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400f2498
mov rbx, rax
test rax, rax
jne 0x1400fa0a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fa111
mov edx, 0x8000
mov ecx, r14d
call fcn.1400e331c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400e41cc
cmp eax, 0xffffffff
je 0x1400fa0f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fa0b8
mov edx, r15d
mov ecx, r14d
call fcn.1400e331c
jmp 0x1400fa111
cmp byte [rsi + 0x38], dil
je 0x1400fa108
cmp dword [rsi + 0x34], 5
jne 0x1400fa108
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400fa111
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400f0c30
jmp 0x1400fa184
jns 0x1400fa184
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f89ec
cmp rax, 0xffffffffffffffff
jne 0x1400fa13c
cmp byte [rsi + 0x30], dil
je 0x1400fa184
mov edi, dword [rsi + 0x2c]
jmp 0x1400fa184
mov ecx, r14d
call fcn.1400e10dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fa184
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400fa184
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fa17d
mov eax, dword [rsi + 0x2c]
jmp 0x1400fa182
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f89ec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400fa1b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1400fa215
test byte [rbx + 6], 0xf
jne 0x1400fa208
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400fa208
cmp word [rbx + 2], di
jne 0x1400fa208
cmp word [rbx], di
jne 0x1400fa208
lea esi, [rdi + 1]
jmp 0x1400fa20d
mov esi, 2
movzx eax, si
jmp 0x1400fa40d
xor edi, edi
test cx, cx
jne 0x1400fa230
mov rcx, rbx
call fcn.1401007c0
movzx ecx, ax
cmp di, ax
jl 0x1400fa40a
movsx edx, cx
test esi, esi
jle 0x1400fa260
sub ebp, edx
cmp ebp, esi
jg 0x1400fa260
movsd xmm0, qword [0x140128f60]
cmp word [rbx + 6], di
jge 0x1400fa252
xorps xmm0, xmmword [0x140125bf0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400fa40d
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400fa28d
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400fa40d
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1400fa3ff
test ebp, ebp
jns 0x1400fa3ff
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1400fa322
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x1400fa2f4
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x1400fa3a1
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1400fa3b7
jne 0x1400fa3d6
test byte [rbx], sil
je 0x1400fa3d6
add word [rbx], si
jne 0x1400fa3d6
add word [rbx + 2], si
jne 0x1400fa3d6
add word [rbx + 4], si
jne 0x1400fa3d6
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1400fa285
cmp r11w, r15w
jne 0x1400fa285
cmp word [rbx + 4], di
jne 0x1400fa285
cmp word [rbx + 2], di
jne 0x1400fa285
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x1400fa40d
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400fac6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400fac82
mov al, 1
jmp 0x1400face2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400fac93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400face0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e10dc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400face0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400face0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400face0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400face2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140100314
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400d49f0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14010039e
cmp byte [rbp - 0x21], r15b
je 0x140100399
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401003d4
call fcn.1400f1810
test eax, eax
jne 0x1401003c0
cmp byte [rbp - 0x21], r15b
je 0x1401003b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401003d4
cmp byte [rbp - 0x21], r15b
je 0x1401003d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d4c3c
test eax, eax
jne 0x140100474
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d49f0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140100413
cmp byte [rbp - 0x21], r15b
je 0x140100448
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140100448
call fcn.1400f1810
test eax, eax
jne 0x140100434
cmp byte [rbp - 0x21], r15b
je 0x14010042d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140100448
cmp byte [rbp - 0x21], r15b
je 0x140100445
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d4c3c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140100474
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140100477
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140100485
mov rcx, rdi
call fcn.1400f0c30
cmp byte [rbp + 0x3f], r15b
je 0x140100494
mov rcx, qword [rbp + 0x27]
call fcn.1400f0c30
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400fca5f
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x1402f19a0
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404d4b80]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, str.libOSMesa.dll
mov qword [rsp + 0x38], rax
lea rax, str.OSMesa.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x1404e97d8], 0
je 0x1402f19fb
mov eax, 1
jmp 0x1402f1b7b
mov dword [rsp + 0x20], 0
jmp 0x1402f1a0f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x1402f1a41
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1404e97d8], rax
cmp qword [0x1404e97d8], 0
je 0x1402f1a3f
jmp 0x1402f1a41
jmp 0x1402f1a05
cmp qword [0x1404e97d8], 0
jne 0x1402f1a63
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1400fe7b5
xor eax, eax
jmp 0x1402f1b7b
lea rdx, str.OSMesaCreateContextExt
mov rcx, qword [0x1404e97d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e97e0], rax
lea rdx, str.OSMesaCreateContextAttribs
mov rcx, qword [0x1404e97d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e97e8], rax
lea rdx, str.OSMesaDestroyContext
mov rcx, qword [0x1404e97d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e97f0], rax
lea rdx, str.OSMesaMakeCurrent
mov rcx, qword [0x1404e97d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e97f8], rax
lea rdx, str.OSMesaGetColorBuffer
mov rcx, qword [0x1404e97d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e9800], rax
lea rdx, str.OSMesaGetDepthBuffer
mov rcx, qword [0x1404e97d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e9808], rax
lea rdx, str.OSMesaGetProcAddress
mov rcx, qword [0x1404e97d8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1404e9810], rax
cmp qword [0x1404e97e0], 0
je 0x1402f1b5c
cmp qword [0x1404e97f0], 0
je 0x1402f1b5c
cmp qword [0x1404e97f8], 0
je 0x1402f1b5c
cmp qword [0x1404e9800], 0
je 0x1402f1b5c
cmp qword [0x1404e9808], 0
je 0x1402f1b5c
cmp qword [0x1404e9810], 0
jne 0x1402f1b76
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400fe7b5
call fcn.1400fc9ec
xor eax, eax
jmp 0x1402f1b7b
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14037ecb0]
call fcn.1400ffd95
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400fe37d
add rsp, 0x70
pop rdi
ret
Function at 0x1400fcfc3
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140269c20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x428
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x448]
mov rax, qword [0x1404d4b80]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
lea rcx, [0x14050447a]
call fcn.140100a5b
nop
xor edx, edx
mov ecx, 2
call fcn.1400fe2e2
mov qword [rbp + 8], rax
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0x30], 0x238
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140269c9c
xor eax, eax
jmp 0x140269cfe
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400fecbf
test eax, eax
jne 0x140269cb1
xor eax, eax
jmp 0x140269cfe
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400fffb1
test eax, eax
je 0x140269cf1
mov rcx, qword [rbp + 0x420]
call fcn.1400fd94b
mov rdx, rax
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140269cef
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 0x38]
jmp 0x140269cfe
jmp 0x140269cb1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1403539f0]
call fcn.1400ffd95
mov rax, rdi
mov rcx, qword [rbp + 0x3f8]
xor rcx, rbp
call fcn.1400fe37d
lea rsp, [rbp + 0x408]
pop rdi
pop rbp
ret
Function at 0x1400fd090
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x14026a280
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xa20
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1c0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa48]
mov rax, qword [0x1404d4b80]
xor rax, rbp
mov qword [rbp + 0x9f8], rax
lea rcx, [0x14050447a]
call fcn.140100a5b
nop
mov rax, qword [rbp + 0xa20]
mov qword [rax], 0
mov rax, qword [rbp + 0xa20]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0xa20]
mov qword [rax + 0x10], 0
mov edx, dword [rbp + 0xa28]
mov ecx, 0x18
call fcn.1400fe2e2
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0xffffffffffffffff
jne 0x14026a35f
mov r9, qword [rbp + 0xa30]
lea r8, str.Failed_to_get__s__invalid_handle_value
mov edx, 0xff
lea rcx, [rbp + 0x60]
call fcn.1400fd4c8
nop
mov r9d, 0x10
lea r8, str.ERROR
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rax, qword [rbp + 0xa20]
jmp 0x14026a3fe
mov dword [rbp + 0x280], 0x438
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x38]
call fcn.1400fedb9
test eax, eax
je 0x14026a3ec
mov rdx, qword [rbp + 0xa30]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14026a3d8
mov rax, qword [rbp + 0x298]
mov qword [rbp + 0x9d8], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rbp + 0x9e0], rax
mov eax, dword [rbp + 0x2a0]
mov qword [rbp + 0x9e8], rax
lea rax, [rbp + 0x9d8]
mov rdi, qword [rbp + 0xa20]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
jmp 0x14026a3ec
lea rdx, [rbp + 0x280]
mov rcx, qword [rbp + 0x38]
call fcn.1400fcb04
test eax, eax
jne 0x14026a37d
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0xa20]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140353950]
call fcn.1400ffd95
mov rax, rdi
mov rcx, qword [rbp + 0x9f8]
xor rcx, rbp
call fcn.1400fe37d
lea rsp, [rbp + 0xa00]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fdbbc
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14026c010
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140504493]
call fcn.140100a5b
nop
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 8], rax
mov rax, qword [0x1404df490]
cmp qword [rbp + 8], rax
je 0x14026c065
mov rax, qword [0x1404df498]
cmp qword [rbp + 8], rax
je 0x14026c065
xor edx, edx
mov rcx, qword [0x1404df498]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
jmp 0x14026c0f4
mov edx, 5
mov rcx, qword [0x1404df498]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov ecx, dword [0x1404df45c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x14026c0f4
movzx eax, byte [0x1403a8d19]
test eax, eax
jne 0x14026c0a3
mov dword [rbp + 0xd4], 1
jmp 0x14026c0ad
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
mov byte [0x1403a8d19], al
movzx eax, byte [0x1403a8d19]
test eax, eax
jne 0x14026c0d1
mov dword [rbp + 0xd4], 1
jmp 0x14026c0db
mov dword [rbp + 0xd4], 0
mov r8d, dword [rbp + 0xd4]
mov edx, 0x2000d
mov rcx, qword [0x1404df4a0]
call fcn.14010111d
nop
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400fdfd1
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1402ebf70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
cmp dword [rax], 1
je 0x1402ebfa5
mov r8d, 0x46
lea rdx, [0x1404ce3f0]
lea rcx, str.tls__win32.allocated__GLFW_TRUE
call qword [sym.imp.ucrtbased.dll__wassert]
xor eax, eax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax + 4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x20
pop rdi
ret

Function at 0x1400fe170
Capabilities:
Log keystrokes

Disassembly:
jmp 0x1402e63b0
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x40]
mov ecx, 0x78
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404d4b80]
xor rax, rsp
mov qword [rsp + 0x210], rax
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov r8d, 0x6d1
xor edx, edx
lea rcx, [0x1404e8e82]
call fcn.1400ff769
mov dword [rsp + 0x40], 0x20
jmp 0x1402e6415
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x15c
jg 0x1402e6619
movsxd rax, dword [rsp + 0x40]
lea rcx, [0x1404e8bc8]
movsx eax, word [rcx + rax*2]
mov dword [rsp + 0x168], eax
cmp dword [rsp + 0x168], 0xffffffff
jne 0x1402e6446
jmp 0x1402e640b
cmp dword [rsp + 0x40], 0x140
jl 0x1402e6522
cmp dword [rsp + 0x40], 0x14e
jg 0x1402e6522
mov dword [rsp + 0x1b8], 0x60
mov dword [rsp + 0x1bc], 0x61
mov dword [rsp + 0x1c0], 0x62
mov dword [rsp + 0x1c4], 0x63
mov dword [rsp + 0x1c8], 0x64
mov dword [rsp + 0x1cc], 0x65
mov dword [rsp + 0x1d0], 0x66
mov dword [rsp + 0x1d4], 0x67
mov dword [rsp + 0x1d8], 0x68
mov dword [rsp + 0x1dc], 0x69
mov dword [rsp + 0x1e0], 0x6e
mov dword [rsp + 0x1e4], 0x6f
mov dword [rsp + 0x1e8], 0x6a
mov dword [rsp + 0x1ec], 0x6d
mov dword [rsp + 0x1f0], 0x6b
mov eax, dword [rsp + 0x40]
sub eax, 0x140
cdqe
mov eax, dword [rsp + rax*4 + 0x1b8]
mov dword [rsp + 0x164], eax
jmp 0x1402e653b
mov edx, 1
mov ecx, dword [rsp + 0x168]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 0xffffffff
jne 0x1402e65b5
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10
lea r9, [rsp + 0x178]
lea r8, [rsp + 0x60]
mov edx, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x164]
call qword [sym.imp.USER32.dll_ToUnicode]
mov dword [rsp + 0x16c], eax
cmp dword [rsp + 0x16c], 1
jge 0x1402e65c4
jmp 0x1402e640b
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 5
lea rcx, [0x1404e8e82]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x178]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1402e640b
mov rcx, rsp
lea rdx, [0x14037d430]
call fcn.1400ffd95
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1400fe37d
add rsp, 0x220
pop rdi
ret
Function at 0x1400fe927
Capabilities:
Terminate process

Disassembly:
jmp 0x1402f45b0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400feee5
Capabilities:
Write file on windows

Disassembly:
jmp 0x140139cb0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140504115]
call fcn.140100a5b
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400ff14c
Capabilities:
Read file on windows

Disassembly:
jmp 0x140139c30
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140504115]
call fcn.140100a5b
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret