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

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4026f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402700
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 0x402741
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402738
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402743
add rax, 0x28
cmp rax, r9
jne 0x402724
xor eax, eax
ret

Function at 0x4027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0044f360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40284d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40284d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40284d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40284f
add rax, 0x28
cmp rax, r9
jne 0x402830
xor eax, eax
add rsp, 0x28
ret

Function at 0x402950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0044f360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402970
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402968
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4029cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4029c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029d4
add rax, 0x28
cmp rax, r9
jne 0x4029b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4029f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0044f360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a5e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a5e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a5e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a5e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402a55
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402a65
add rcx, 0x28
cmp rcx, rax
jne 0x402a40
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a78
jmp 0x402a5e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402a86
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a5e
test r9d, r9d
jg 0x402a70
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402cd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140032046
Capabilities:
Enumerate gui resources

Disassembly:
jmp 0x1400682a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x268], rax
mov dword [rbp + 0x254], 0
lea rcx, [0x1400d5cc0]
call fcn.1400346ca
nop
lea rcx, [0x1400c2da8]
call fcn.1400322da
nop
xor edx, edx
lea rcx, [0x14003208c]
call qword [sym.imp.USER32.dll_EnumWindows]
nop
mov edx, 0xe8
lea rcx, [rbp + 0x10]
call fcn.140033810
mov edx, 1
lea rcx, [rbp + 0x10]
call fcn.140034751
nop
lea rax, [0x1400c2da8]
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x118]
call fcn.1400335e5
mov qword [rbp + 0x138], rax
mov rcx, qword [rbp + 0x118]
call fcn.1400347a1
mov qword [rbp + 0x158], rax
jmp 0x140068376
mov rax, qword [rbp + 0x138]
add rax, 0x30
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x158]
cmp qword [rbp + 0x138], rax
je 0x1400683db
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14003359a
lea rdx, str.__PID:
mov rcx, rax
call fcn.14003334c
mov rcx, qword [rbp + 0x178]
mov edx, dword [rcx + 0x28]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1400aa2a0]
mov rcx, rax
call fcn.14003334c
nop
jmp 0x140068364
mov rdx, qword [rbp + 0x290]
lea rcx, [rbp + 0x10]
call fcn.14003397d
mov eax, dword [rbp + 0x254]
or eax, 1
mov dword [rbp + 0x254], eax
lea rcx, [rbp + 0x10]
call fcn.1400327b2
nop
mov rax, qword [rbp + 0x290]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a53d0]
call fcn.140033fb8
mov rax, rdi
mov rcx, qword [rbp + 0x268]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret
Function at 0x1400320fa
Capabilities:
Write file on windows

Disassembly:
jmp 0x14008a0f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x208], rax
lea rcx, [0x1400d62d2]
call fcn.1400346ca
nop
lea r8, [rbp + 8]
mov edx, 0x20
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.GDI32.dll_GetObjectW]
nop
mov dword [rbp + 0x78], 0x28
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0x7c], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x80], eax
mov eax, 1
mov word [rbp + 0x84], ax
mov eax, 0x18
mov word [rbp + 0x86], ax
mov dword [rbp + 0x88], 0
mov dword [rbp + 0x8c], 0
mov dword [rbp + 0x90], 0
mov dword [rbp + 0x94], 0
mov dword [rbp + 0x98], 0
mov dword [rbp + 0x9c], 0
movzx eax, word [rbp + 0x86]
mov ecx, dword [rbp + 0xc]
imul ecx, eax
mov eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [rbp + 0x10]
mov dword [rbp + 0xb4], eax
mov eax, dword [rbp + 0xb4]
mov edx, eax
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0xd8], rax
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0xf8], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov dword [rsp + 0x30], 0
lea rcx, [rbp + 0x78]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbp + 0x10]
xor r8d, r8d
mov rdx, qword [rbp + 0x230]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDIBits]
nop
mov eax, 0x4d42
mov word [rbp + 0x48], ax
mov eax, dword [rbp + 0xb4]
add rax, 0x36
mov dword [rbp + 0x4a], eax
xor eax, eax
mov word [rbp + 0x4e], ax
xor eax, eax
mov word [rbp + 0x50], ax
mov dword [rbp + 0x52], 0x36
mov rcx, qword [rbp + 0x238]
call fcn.140032c30
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x118], rax
cmp qword [rbp + 0x118], 0xffffffffffffffff
je 0x14008a354
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x134]
mov r8d, 0xe
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x134]
mov r8d, 0x28
lea rdx, [rbp + 0x78]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x134]
mov r8d, dword [rbp + 0xb4]
mov rdx, qword [rbp + 0xf8]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
lea rcx, [rbp - 0x40]
lea rdx, [0x1400abe10]
call fcn.140033fb8
mov rcx, qword [rbp + 0x208]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret
Function at 0x140032320
Capabilities:
Write file on windows

Disassembly:
jmp 0x140086980
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, [0x1400d591b]
call fcn.1400346ca
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400869d8
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 0x140086aea
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 0x140086a83
cmp qword [rbp + 0x28], 0
jle 0x140086a83
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140086a21
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.1400343f0
nop
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]
nop
cmp qword [rbp + 0x130], 0
jle 0x140086ad9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140086ad9
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 0x1400325cd
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14006cc40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400d55b7]
call fcn.1400346ca
nop
mov qword [rbp + 8], 0
jmp 0x14006cc7f
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x14006ccd5
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x14006cc74
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140032613
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140082c20
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x1400d5ad7]
call fcn.1400346ca
nop
mov rax, qword [rbp + 0x2c0]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
cmp eax, 1
jne 0x140082cd8
movzx eax, byte [rbp + 0x2c8]
and rax, 0xff
movzx eax, al
movzx ecx, byte [rbp + 0x2d0]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
lea rdx, [rbp + 0x10]
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
mov rax, qword [rbp + 0x2c0]
add rax, 4
mov ecx, dword [rbp + 0x1c4]
xchg dword [rax], ecx
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a4c50]
call fcn.140033fb8
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret
Function at 0x1400326d1
Capabilities:
Create thread

Disassembly:
jmp 0x14004f170
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x1400d5a6a]
call fcn.1400346ca
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140032a9b
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.140033293
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.140032753
nop
lea rcx, [rbp + 0x108]
call fcn.140032eec
nop
lea rax, [0x14003393c]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.140033a22
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x14004f273
lea rcx, [rbp + 8]
call fcn.140032f8c
nop
jmp 0x14004f28c
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400327c1
nop
lea rcx, [rbp + 8]
call fcn.140032eec
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1400a8ec0]
call fcn.140033fb8
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x140033545
Capabilities:
Terminate process

Disassembly:
jmp 0x1400908e0
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]
nop
add rsp, 0x28
ret

Function at 0x140033630
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes

Disassembly:
jmp 0x1400676b0
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x208], rax
lea rcx, [0x1400d5cc0]
call fcn.1400346ca
nop
lea rax, [0x1400aa640]
mov qword [rbp + 8], rax
mov r8d, 0x104
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14006775e
lea rcx, str.C:AMD
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140067742
xor edx, edx
lea rcx, str.C:AMD
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140067742
jmp 0x14006775e
xor r8d, r8d
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x14006775e
mov byte [0x1400c2d21], 1
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a63f0]
call fcn.140033fb8
mov rcx, qword [rbp + 0x208]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret
Function at 0x140033ae5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008fb20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14008fb40
xor al, al
jmp 0x14008fbc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14008fb53
xor al, al
jmp 0x14008fbc1
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 0x14008fb7d
xor al, al
jmp 0x14008fbc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14008fb91
xor al, al
jmp 0x14008fbc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14008fba3
xor al, al
jmp 0x14008fbc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14008fbbf
xor al, al
jmp 0x14008fbc1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400341fc
Capabilities:
Terminate thread

Disassembly:
jmp 0x14007d4c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x138]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0xe8], rax
lea rcx, [0x1400d5ab4]
call fcn.1400346ca
nop
mov rax, qword [rbp + 0x110]
mov rax, qword [rax + 0x10]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax + 8]
mov qword [rbp + 0x10], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp + 8]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
nop
mov rax, qword [rbp + 0x110]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
call fcn.140033af4
movzx eax, al
test eax, eax
je 0x14007d575
xor edx, edx
mov rax, qword [rbp + 0x110]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
jmp 0x14007d5a8
xor r8d, r8d
mov rax, qword [rbp + 0x110]
mov rdx, qword [rax + 8]
lea rcx, [0x140032c44]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
nop
mov edx, 0xffffffff
mov rax, qword [rbp + 0x110]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x1400a4b50]
call fcn.140033fb8
mov rcx, qword [rbp + 0xe8]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0xf8]
pop rdi
pop rbp
ret

Function at 0x14003430a
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
jmp 0x14003eba0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x288
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2a8]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x238], rax
lea rcx, [0x1400d549e]
call fcn.1400346ca
nop
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
nop
xor edx, edx
mov ecx, dword [rbp + 0x260]
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rbp + 0x144], eax
mov rax, qword [rbp + 0x268]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
lea r9, [rbp + 4]
lea r8, [rbp + 0x30]
mov edx, dword [rbp + 0x144]
mov ecx, dword [rbp + 0x260]
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [rbp + 0x164], eax
cmp dword [rbp + 0x164], 0
jle 0x14003ec71
mov eax, 2
imul rax, rax, 0
movzx eax, word [rbp + rax + 4]
jmp 0x14003ec73
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140033fb8
mov rax, rdi
mov rcx, qword [rbp + 0x238]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x14003462a
Capabilities:
Write file on windows

Disassembly:
jmp 0x14006c410
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400d591b]
call fcn.1400346ca
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14006c477
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006c47e
mov al, 1
jmp 0x14006c5ce
call fcn.1400329b5
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400329b5
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140033e3c
movzx eax, al
test eax, eax
je 0x14006c4cf
xor al, al
jmp 0x14006c5ce
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14006c534
cmp dword [rbp + 0x154], 1
je 0x14006c53f
cmp dword [rbp + 0x154], 3
je 0x14006c5bd
jmp 0x14006c5cc
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14006c58f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14006c58f
xor al, al
jmp 0x14006c5ce
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14006c5aa
mov dword [rbp + 0x154], 1
jmp 0x14006c5b4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14006c5ce
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14006c5ce
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140033fb8
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14003479c
Capabilities:
Create thread

Disassembly:
jmp 0x14004efb0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1400c1300]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x1400d5a6a]
call fcn.1400346ca
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400330f4
mov r8, qword [rbp + 0x160]
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.140033216
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400328e8
nop
lea rcx, [rbp + 0x108]
call fcn.1400339cd
nop
lea rax, [0x14003245b]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.140032bdb
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x14004f0bf
lea rcx, [rbp + 8]
call fcn.140032bc2
nop
jmp 0x14004f0d8
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400327c1
nop
lea rcx, [rbp + 8]
call fcn.1400339cd
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1400a8f40]
call fcn.140033fb8
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400331e9
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret