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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003433
cmp byte [rcx + 0x71], 0
je 0x140003433
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000342f
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 0x1400033f4
sub eax, 1
je 0x1400033f8
cmp eax, 2
jne 0x14000342f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003426
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 0x14000342f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400033dc
xor al, al
jmp 0x1400033dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003d00
add rsp, 0x60
pop rbx
ret

Function at 0x140004840
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000488a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000488a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000488a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000488a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000488a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000488c
xor al, al
add rsp, 0x28
ret
Function at 0x1400046b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov r8d, 0xe
lea rdx, [0x140029f90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400048e0
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400048e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400048e0
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400048e0
movzx r15d, word [rsi + 4]
lea ebx, [r15 - 1]
shl ebx, 4
add ebx, 0x16
mov ecx, ebx
call fcn.1400068bc
mov rdi, rax
xor r13d, r13d
mov dword [rax], 0x10000
lea r10d, [r13 + 1]
mov word [rax + 4], r15w
mov r8d, ebx
test r15d, r15d
je 0x1400047b2
lea rcx, [rax + 7]
lea rdx, [rsi + 7]
mov r9d, r15d
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx - 1]
mov byte [rcx - 1], al
movzx eax, byte [rdx]
mov byte [rcx], al
movzx eax, byte [rdx + 1]
mov byte [rcx + 1], al
mov byte [rcx + 2], r13b
movzx eax, word [rdx + 3]
mov word [rcx + 3], ax
movzx eax, word [rdx + 5]
mov word [rcx + 5], ax
mov eax, dword [rdx + 7]
mov dword [rcx + 7], eax
mov dword [rcx + 0xb], r8d
add r8d, dword [rdx + 7]
lea rcx, [rcx + 0x10]
lea rdx, [rdx + 0xe]
sub r9, r10
jne 0x140004770
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r10d
mov edx, 0x40000000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x88]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, r13d
test r15d, r15d
je 0x1400048d7
add rsi, 0x12
call fcn.1400011e0
mov rcx, rax
test rax, rax
je 0x1400048fa
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
movzx r8d, word [rsi]
lea rdx, [0x140029fa0]
lea rcx, [rsp + 0x90]
call fcn.140005f30
mov r8d, 3
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x1400048ac
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400048ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400048ac
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x88]
mov r8d, eax
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400048c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
inc edi
add rsi, 0xe
cmp edi, r15d
jl 0x140004807
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001040
int3
Function at 0x140007ae0
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 0x140007b08
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 0x140007b2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007b30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007b89
test ecx, ecx
jle 0x140007b69
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 0x140007b89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007b89
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 0x140007bb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007be1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140007bff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007c1b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007c1d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007c59
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140007cee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007c94
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 0x140007cce
nop dword [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 0x140007cee
cmp rbx, rax
ja 0x140007ca0
test rbx, rbx
je 0x140007cee
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140008130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008154
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140008197
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140008197
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400082c8
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400081da
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 0x140008205
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
cmove edi, ecx
mov eax, edi
jmp 0x1400082cd
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14000827a
sub eax, 1
je 0x14000827a
cmp eax, 2
jne 0x1400082c8
movsx ecx, byte [rsp + 0x40]
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
cmove edi, ecx
mov eax, edi
jmp 0x1400082cd
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400082ab
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400082c8
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400082cd
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1400084b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008579
cmp byte [rcx + 0x71], 0
je 0x140008579
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000856c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x140008528
sub eax, 1
je 0x14000852c
cmp eax, 2
jne 0x14000856c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14000855a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000856c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x14000a3b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
call fcn.14000a0f0
mov rsi, rax
test rax, rax
je 0x14000a433
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x14000a433
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x14000a433
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x14000a433
mov ebp, dword [rcx + rsi + 0x1c]
xor ebx, ebx
mov edi, dword [rcx + rsi + 0x20]
mov r15d, dword [rcx + rsi + 0x24]
add rdi, rsi
add r15, rsi
lea r14, [rsi + rbp]
test ebp, ebp
je 0x14000a433
mov edx, dword [rdi]
lea rcx, str.NtQuerySystemInformation
add rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14000a44e
inc ebx
add rdi, 4
cmp ebx, ebp
jb 0x14000a414
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx ecx, word [r15 + rbx*2]
mov eax, dword [r14 + rcx*4]
add rax, rsi
jmp 0x14000a435
Function at 0x14000a5b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push r14
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rdx + 0x10]
lea rdx, [rsi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
call fcn.14000ba00
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x14000a601
mov r8, qword [rdi]
xor edx, edx
lea r10, [rsi - 2]
lea r14, [0x140287a90]
test r10, r10
je 0x14000a6de
nop word [rax + rax]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a62d
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r8], al
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a64d
mov rax, qword [rbx]
lea r9, [rdx + rax]
jmp 0x14000a654
lea r9, [rbx + rdx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a684
mov rax, qword [rbx]
lea r9, [rax + 1]
jmp 0x14000a68b
lea r9, [rbx + 1]
mov rax, rbx
add r9, rdx
movzx ecx, byte [rax + rdx + 2]
shr rcx, 6
movsx rax, byte [r9]
and eax, 0xf
shl rax, 2
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a6bb
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 2]
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r8 + 3], al
add r8, 4
add rdx, 3
cmp rdx, r10
jb 0x14000a620
cmp rdx, rsi
jae 0x14000a797
mov rax, rbx
lea r10, [rbx + 0x18]
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a6f8
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r8], al
lea rax, [rsi - 1]
cmp rdx, rax
jne 0x14000a73a
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a71e
mov rax, qword [rbx]
movsx rax, byte [rax + rdx]
and eax, 3
add rax, rax
movzx eax, byte [r14 + rax*8]
mov byte [r8 + 1], al
mov al, 0x3d
add r8, 2
jmp 0x14000a78f
cmp qword [rbx + 0x18], 0xf
jbe 0x14000a74a
mov rax, qword [rbx]
lea r9, [rax + rdx]
jmp 0x14000a751
lea r9, [rdx + rbx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
add r8, 2
mov rax, rbx
cmp qword [r10], 0xf
jbe 0x14000a781
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 1]
and eax, 0xf
movzx eax, byte [r14 + rax*4]
mov byte [r8], al
mov byte [r8 + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000a7cd
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000a7c8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000a7f9
mov rcx, r8
call fcn.14001ac70
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14001b4d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001b51e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001b51e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001b51e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001b51e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001b51e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001b520
xor al, al
add rsp, 0x28
ret
Function at 0x14001bfd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14001c05c
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rdi + 0x10]
lea rbx, [rdi + 0x10]
inc rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14001c04c
cmp qword [rdi + 0x18], 0xf
jbe 0x14001c01a
mov rdi, qword [rdi]
mov rbx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c3b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
nop dword [rax + rax]
cmp byte [0x1402d13f8], bl
je 0x14001c45e
cmp qword [0x1402d1890], rbx
je 0x14001c45e
cmp qword [0x1402d18b0], rbx
je 0x14001c45e
cmp byte [0x1402d13f0], bl
je 0x14001c45e
call fcn.14001c980
test al, al
jne 0x14001c402
xor edx, edx
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x14001c3c0
mov ecx, dword [0x1402d13fc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14001c428
xor edx, edx
mov byte [0x1402b0032], bl
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x14001c3c0
cmp byte [0x1402d144d], bl
jne 0x14001c438
cmp byte [0x1402d144e], bl
jne 0x14001c44b
mov rax, qword [0x1402b0088]
mov qword [0x1402d18c8], rax
call fcn.14001c490
mov ecx, dword [0x1402d1418]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x14001c3c0
mov ecx, 0x12c
mov word [0x1402b0030], bx
mov byte [0x1402b0032], bl
mov qword [0x1402b0088], rbx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c3c0
Function at 0x140020c10
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
nop dword [rax + rax]
cmp qword [0x1402d1890], rbx
je 0x140020da2
cmp qword [0x1402d18b0], rbx
je 0x140020da2
cmp byte [0x1402d13f0], bl
je 0x140020da2
cmp byte [0x1402d13f8], bl
je 0x140020d95
cmp byte [0x1402d144e], bl
je 0x140020d95
mov ecx, dword [0x1402d13fc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140020c97
mov qword [0x1402b02dc], rbx
mov dword [0x1402b02e4], ebx
call fcn.140020dc0
xor edx, edx
mov qword [0x1402b02c8], rbx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x140020c20
call fcn.140021160
test al, al
jne 0x140020cc4
mov qword [0x1402b02dc], rbx
mov dword [0x1402b02e4], ebx
call fcn.140020dc0
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x140020c20
mov rcx, qword [0x1402b02c8]
test rcx, rcx
jne 0x140020cf4
mov qword [0x1402b02dc], rbx
mov dword [0x1402b02e4], ebx
call fcn.140020dc0
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x140020c20
cmp byte [0x1402d144d], bl
movzx eax, byte [0x1402d144e]
jne 0x140020d29
test al, al
je 0x140020c20
lea rdx, [rsp + 0x20]
call fcn.140081f10
movss xmm2, dword [rsp + 0x20]
movss xmm1, dword [rsp + 0x24]
movss xmm0, dword [rsp + 0x28]
jmp 0x140020d4d
test al, al
je 0x140020c20
lea rdx, [rsp + 0x30]
call fcn.140081f10
movss xmm2, dword [rsp + 0x30]
movss xmm1, dword [rsp + 0x34]
movss xmm0, dword [rsp + 0x38]
mov rax, qword [0x1402b02c8]
mov qword [0x1402d18c8], rax
movss dword [0x1402b02d4], xmm1
movss dword [0x1402b02d0], xmm2
movss dword [0x1402b02d8], xmm0
movss dword [0x1402b02dc], xmm2
movss dword [0x1402b02e0], xmm1
movss dword [0x1402b02e4], xmm0
call fcn.140020dc0
jmp 0x140020c20
mov qword [0x1402b02dc], rbx
mov dword [0x1402b02e4], ebx
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140020c20
Function at 0x140027350
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ecx, ecx
mov rbx, rdx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
xorps xmm0, xmm0
mov r8, 0xffffffffffffffff
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400273a0
mov rdx, rax
mov rcx, rbx
call fcn.140003310
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140030bf0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1402d10d8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f1c], ecx
test rbx, rbx
je 0x140030c5f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140030ac0
lea rdx, [0x140288b1c]
mov rcx, rbx
mov rdi, rax
call fcn.14004ad30
mov rbx, rax
test rax, rax
je 0x140030c5a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140030ec0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [0x140288b20]
call fcn.14004ad30
mov rbx, rax
test rax, rax
je 0x140031046
mov qword [rsp + 0x30], rsi
mov rcx, rax
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 0x140031033
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140031033
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140031033
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 0x140031033
cmp rdi, 0xffffffffffffffff
je 0x140031033
mov rcx, rdi
call fcn.140045970
mov rsi, rax
test rax, rax
je 0x140031033
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 0x140030f97
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp fcn.1400458e0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140030fad
mov rdx, rdi
mov rcx, rsi
call fcn.140030c70
mov r8, qword [0x1402d10d8]
test r8, r8
je 0x14003101a
movsx rdx, word [r8 + 0x6078]
lea rcx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f90]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14003100f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [r8 + 0x607c]
lea rcx, [rcx + rax*8]
xor eax, eax
mov dword [rcx], r9d
mov dword [rcx + 4], eax
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rsi
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret