joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180067140
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
lea r15d, [r8 + 0xa0]
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp r8d, r15d
jae 0x18006732c
mov qword [rax + 8], rdi
movzx edi, word [rbp + 0x77]
mov qword [rax - 0x30], r12
xor r12d, r12d
mov qword [rax - 0x38], r13
lea r13d, [r12 + 1]
nop word [rax + rax]
mov eax, ebx
sub eax, 0x44
je 0x1800672f2
sub eax, 0x28
je 0x1800671d5
sub eax, 0x40
je 0x1800671b9
cmp eax, 0x28
jne 0x180067308
mov eax, dword [r14]
mov dword [rsi + 8], eax
jmp 0x180067308
mov edx, dword [r14]
mov rcx, qword [rsi]
call fcn.180073d04
mov qword [rsi], rax
test rax, rax
je 0x18006733b
jmp 0x180067308
lea rax, [rbp + 7]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 1]
mov dword [rsp + 0x48], r12d
movzx edx, r13b
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
lea r8d, [r9 + 6]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x180067292
mov rdx, qword [rbp + 7]
lea r8, [rbp + 0x77]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x180067292
cmp dword [rbp + 0x77], r12d
je 0x180067234
mov edi, r13d
jmp 0x180067292
lea rax, [rbp + 0xf]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 1]
mov dword [rsp + 0x48], r12d
movzx edx, r13b
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
lea r8d, [r9 + 0x12]
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x180067292
mov rdx, qword [rbp + 0xf]
lea r8, [rbp + 0x7f]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x180067292
cmp dword [rbp + 0x7f], r12d
je 0x180067292
movzx edi, r13w
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x1800672a1
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1800672b0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rax, qword [rsi]
lea r9, [rbp + 0x17]
mov dword [rsp + 0x48], 0x6e
xor r8d, r8d
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rbp + 0x17], rax
xor ecx, ecx
lea rax, [rbp - 9]
mov word [rbp - 9], di
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call fcn.18003b070
jmp 0x180067308
movzx edi, r12w
mov dword [rbp - 1], r12d
mov word [rbp + 3], 0x500
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], r12
add ebx, 0x28
cmp ebx, r15d
jb 0x180067190
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xd0]
mov r13, qword [rsp + 0x90]
add rsp, 0xa0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret
mov ecx, 2
call fcn.180075c08
mov rcx, rax
lea rdx, str.NV_IFROGL_HW_ENC_STEREO_SEI_TB
call fcn.18006cbd0
mov ecx, r13d
call fcn.1800746f4
int3
Function at 0x18006cb00
Capabilities:
Create thread

Disassembly:
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 0xf]
jmp fcn.18002b720

Function at 0x1800746f4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180074514
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180074514
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180074514
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180074514
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180074514
cmp dword [rcx + 0x84], 0xe
jbe 0x180074514
cmp dword [rcx + 0xf8], esi
je 0x180074514
mov ecx, r14d
call fcn.18007465c
mov ecx, 2
call fcn.180078eb0
nop
cmp byte [0x1800d6ef0], 0
jne 0x1800745de
mov r15d, 1
mov eax, r15d
xchg dword [0x1800d6ee0], eax
test ebx, ebx
jne 0x180074587
mov rdi, qword [0x1800bc368]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1800d6ee8]
cmp rcx, rax
je 0x18007457e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x18008f8d0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1800d7268]
jmp 0x180074593
cmp ebx, r15d
jne 0x180074599
lea rcx, [0x1800d7280]
call fcn.18007d974
nop
test ebx, ebx
jne 0x1800745b0
lea rdx, [0x18008f998]
lea rcx, [0x18008f978]
call fcn.18007dbcc
lea rdx, [0x18008f9a8]
lea rcx, [0x18008f9a0]
call fcn.18007dbcc
movzx eax, byte [0x1800d6ef0]
test esi, esi
cmove eax, r15d
mov byte [0x1800d6ef0], al
jmp 0x1800745de
mov ecx, 2
call fcn.180078f04
test esi, esi
jne 0x1800745f5
mov ecx, r14d
call fcn.180074610
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800744a4

Function at 0x180081b38
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180081b15
call fcn.1800792ac
mov dword [rax], 0x16
call fcn.180072d54
or eax, 0xffffffff
jmp 0x180081b32
sub dword [rcx + 0x10], 1
jns 0x180081b24
add rsp, 0x28
jmp fcn.180082ad0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180081af4
Function at 0x180082ad0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180082970
call fcn.1800792ac
mov dword [rax], 0x16
call fcn.180072d54
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180082958
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180082958
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800829a2
lock or dword [rax + 0x14], 0x10
jmp 0x180082958
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800829bf
mov rcx, qword [rbp + 0x10]
call fcn.18008b710
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180081940
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800823a8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180082a16
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180082958
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180082a82
mov rcx, qword [rbp + 0x10]
call fcn.180081940
cmp eax, 0xffffffff
je 0x180082a69
mov rcx, qword [rbp + 0x10]
call fcn.180081940
cmp eax, 0xfffffffe
je 0x180082a69
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180081940
movsxd rdi, eax
lea rsi, [0x1800d7480]
mov rcx, rbx
sar rdi, 6
call fcn.180081940
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180082a70
lea rax, [0x1800bc710]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180082a82
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180082ab8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180082ab4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180082ab4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18008295b
jmp 0x180082928
Function at 0x1400017b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400017d8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400017fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001800
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001859
test ecx, ecx
jle 0x140001839
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001859
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001859
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001880
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400018a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400018b8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400018d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400018d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001912
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400019ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000194d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000198e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400019ae
cmp rbx, rax
ja 0x140001960
test rbx, rbx
je 0x1400019ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140001e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001e3d
xor eax, eax
jmp 0x140001fa9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001e77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001e77
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140001fa9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001f9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001eba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140001ee5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140001fa1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140001f54
sub eax, 1
je 0x140001f54
cmp eax, 2
jne 0x140001f9c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140001fa1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001f82
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140001f9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140001fa1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006f00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400021b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002283
cmp byte [rcx + 0x71], 0
je 0x140002283
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000227f
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 0x140002244
sub eax, 1
je 0x140002248
cmp eax, 2
jne 0x14000227f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006f00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002276
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 0x14000227f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000222c
xor al, al
jmp 0x14000222c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006f00
add rsp, 0x60
pop rbx
ret
Function at 0x140006918
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140006952
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140006957
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400069a0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140009610]
cmp byte [rcx + rax], 0
je 0x1400069a0
dec r8
sub rdx, 1
jne 0x140006986
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140007a88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007ad2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007ad2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007ad2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007ad2
cmp dword [rcx + 0x84], 0xe
jbe 0x140007ad2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007ad4
xor al, al
add rsp, 0x28
ret
Function at 0x140001480
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp dword [0x140087ce0], 0
jne 0x1400014a0
xor edx, edx
mov ecx, 0x10001
call fcn.140004e50
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x140003910
push rbx
sub rsp, 0x70
mov rax, qword [0x140087900]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
lea rdx, [0x1400ec960]
cmp ecx, 0xffffffff
je 0x14000393e
movsxd rax, ecx
movsx ebx, word [rdx + rax*2 + 0x5a0]
movsxd rax, ebx
movsx ecx, word [rdx + rax*2 + 0x1a0]
call fcn.1400012f0
test eax, eax
jne 0x140003967
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140058410
add rsp, 0x70
pop rbx
ret
shl ebx, 0x10
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x140003952
xor eax, eax
lea rbx, [0x1400ecac0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140003952
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140058410
add rsp, 0x70
pop rbx
ret

Function at 0x140002260
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x140087ce0], 0
jne 0x140002275
xor edx, edx
mov ecx, 0x10001
jmp fcn.140004e50
jmp fcn.140004bc0

Function at 0x140002dc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
lea ecx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
mov eax, 1
test ecx, 0x80000000
lea ecx, [rax + 0x10]
cmovne edi, eax
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140002df7
or edi, 2
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140002e0a
or edi, 4
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movsx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
or ecx, ebx
jns 0x140002e2d
or edi, 8
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002e40
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
lea ecx, [rdi + 0x10]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
mov eax, 1
test ecx, 0x80000000
lea ecx, [rax + 0x10]
cmovne edi, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140002e77
or edi, 2
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140002e8a
or edi, 4
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x5b
movsx ebx, ax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
or ecx, ebx
jns 0x140002ead
or edi, 8
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003910
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp dword [0x140087ce0], 0
jne 0x1400014a0
xor edx, edx
mov ecx, 0x10001
call fcn.140004e50
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x140003910
push rbx
sub rsp, 0x70
mov rax, qword [0x140087900]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebx, edx
lea rdx, [0x1400ec960]
cmp ecx, 0xffffffff
je 0x14000393e
movsxd rax, ecx
movsx ebx, word [rdx + rax*2 + 0x5a0]
movsxd rax, ebx
movsx ecx, word [rdx + rax*2 + 0x1a0]
call fcn.1400012f0
test eax, eax
jne 0x140003967
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140058410
add rsp, 0x70
pop rbx
ret
shl ebx, 0x10
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x140003952
xor eax, eax
lea rbx, [0x1400ecac0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140003952
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140058410
add rsp, 0x70
pop rbx
ret
Function at 0x140004bc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140087900]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140004c5a
nop dword [rax + rax]
cmp dword [rsp + 0x38], 0x12
jne 0x140004c25
mov rbx, qword [0x1400eca28]
test rbx, rbx
je 0x140004c3b
mov rcx, rbx
call fcn.140001c20
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140004c13
jmp 0x140004c3b
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140004c00
mov rdi, qword [0x1400eca30]
test rdi, rdi
je 0x140004d7d
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x98], rsi
call fcn.140002e40
mov ecx, 0xa0
mov ebp, eax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xa1
movzx ebx, ax
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx esi, ax
shr esi, 0xf
test ebx, ebx
jne 0x140004cc7
cmp byte [rdi + 0x1e0], 1
jne 0x140004cc7
xor r9d, r9d
xor r8d, r8d
mov edx, 0x154
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call fcn.140001100
test esi, esi
mov rsi, qword [rsp + 0x98]
jne 0x140004cf3
cmp byte [rdi + 0x1e4], 1
jne 0x140004cf3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x158
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call fcn.140001100
cmp dword [rdi + 0x80], 0x34003
mov rbp, qword [rsp + 0x90]
jne 0x140004d7d
mov rcx, qword [rdi + 0x2c0]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x6c]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
cmp dword [rdi + 0x2e0], eax
jne 0x140004d40
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [rdi + 0x2e4], eax
je 0x140004d7d
mov eax, ecx
mov rcx, qword [rdi + 0x2c0]
mov dword [rsp + 0x60], r8d
cdq
mov dword [rdi + 0x2e0], r8d
sub eax, edx
lea rdx, [rsp + 0x60]
sar eax, 1
mov dword [rsp + 0x64], eax
mov dword [rdi + 0x2e4], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140058410
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x140005650
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x140087ce0], 0
jne 0x140005665
xor edx, edx
mov ecx, 0x10001
jmp fcn.140004e50
test rcx, rcx
je 0x14000567f
cmp dword [rcx + 0x1f0], 0
jne 0x14000567f
xor edx, edx
mov ecx, 0x1000a
jmp fcn.140004e50
jmp fcn.1400077f0