joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064c90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140064c9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140064cad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140064c95
lea eax, [rcx + 1]
jmp 0x140064cbb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140064cce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140064cb4
sub eax, 3
jb 0x140064cee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140064d3d
sar eax, 1
movsxd rbp, eax
jb 0x140064d24
jmp 0x140064cfc
add ebx, ebx
jne 0x140064cfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140064d24
inc ecx
add ebx, ebx
jne 0x140064d0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140064d24
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140064d1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140064d0c
add ecx, 2
jmp 0x140064d29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140064c52
jmp 0x140064c9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28a00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140064d89
cmp rsi, rcx
jae 0x140064d91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140064d70
cmp al, 0x8f
ja 0x140064d70
cmp byte [rsi - 2], 0xf
je 0x140064d76
sub al, 0xe8
cmp al, 1
ja 0x140064d5a
cmp rsi, rcx
jae 0x140064d91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140064d60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140064d91
lodsb al, byte [rsi]
jmp 0x140064d70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x62000]
mov eax, dword [rdi]
or eax, eax
je 0x140064dee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7302c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140064d9e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140064de8
mov qword [rbx], rax
add rbx, 8
jmp 0x140064dbe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140064e28
cmp al, 0xef
ja 0x140064e1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140064dfa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140064e09
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140064e7c
sub rsp, 0xffffffffffffff80
jmp 0x14000a6b0
Function at 0x100002454
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call fcn.100154000
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100002960
add rsp, 0x28
jmp 0x100002454
Function at 0x314ef1a30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x314ef2432
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x314ef7328]
test eax, eax
je 0x314ef24ca
lea rax, [0x314ef7300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x314ef7330]
mov qword [rbp - 8], rax
jmp 0x314ef24ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x314ef24a2
cmp qword [rbp - 0x10], 0
je 0x314ef24a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x314ef2468
lea rax, [0x314ef7300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x314ef24cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x314ef25d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x314ef25f8
mov eax, 0
jmp 0x314ef2646
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x314ef2621
mov eax, 0
jmp 0x314ef2646
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x314ef2641
mov eax, 0
jmp 0x314ef2646
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x314ef264c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x314ef26ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x314ef26c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x314ef26c1
mov rax, qword [rbp - 8]
jmp 0x314ef26df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x314ef2694
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400010e0
Capabilities:
Inspect load icon resource

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140226010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, rcx
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x2c], 0xff
lea rcx, [rsp + 0x28]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_COleDispatchImpl::GetTypeInfoCount]
xor ecx, ecx
call fcn.1402205a8
test eax, eax
jne 0x140001147
xor edx, edx
lea ecx, [rax + 0x67]
mov r8d, 0xffffffff
call qword [sym.imp.mfc140u.dll_AfxInitLocalData]
jmp 0x14000128d
xor ecx, ecx
call qword [sym.imp.mfc140u.dll_AfxClassInit]
mov ecx, 0x18
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000117e
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CReObject::CReObject]
mov rbx, rax
jmp 0x140001180
xor ebx, ebx
call qword [sym.imp.mfc140u.dll_CArchiveException::GetRuntimeClass]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CHttpFile::SendRequest]
lea rdx, [0x140222ae8]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_COleControlSite::XOleIPSite::SetFocus]
xor edx, edx
mov r8d, 0x270
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
lea edx, [r8 + 0x66]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDC::CDC]
nop
lea rax, vtable.CMFCApplicationTest1Dlg.0
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x1a8], 0
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.mfc140u.dll_CUserToolsManager::CUserToolsManager]
lea rax, vtable.CStatic.0
mov qword [rsp + 0x1b8], rax
call qword [sym.imp.mfc140u.dll_AfxFieldText]
mov edx, 0xe
lea ecx, [rdx + 0x71]
call qword [sym.imp.mfc140u.dll_AfxCriticalNewHandler]
mov rcx, rax
mov edx, 0x7f
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsp + 0x1a0], rax
lea rax, [rsp + 0x30]
mov qword [rdi + 0x40], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CD2DPathGeometry::Detach]
test rbx, rbx
je 0x14000124a
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 8]
nop
lea rcx, [rsp + 0x1b8]
call qword [sym.imp.mfc140u.dll_CRichEditCtrl::CRichEditCtrl]
lea rcx, [rsp + 0x188]
call qword [sym.imp.mfc140u.dll_CD2DTextFormat::CD2DTextFormat]
lea rax, vtable.CBrush.0
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x170]
call fcn.140001480
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CD2DResource::CD2DResource]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140220840
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2b0
pop rdi
ret
Function at 0x1400016e0
Capabilities:
Get graphical window text
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140226010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
call qword [sym.imp.mfc140u.dll_CMFCColorButton::OnFillBackground]
lea rdx, str.S_MR
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
nop
mov r9d, 0x10
lea r8, [0x140222f90]
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonStatusBar::LoadState]
mov rcx, rbx
call fcn.140002300
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetSystemMenu]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CList_CMFCPropertyGridProperty]
mov rdi, rax
test rax, rax
je 0x1400017b2
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov edx, 0x65
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CRuntimeClass::IsDerivedFrom]
mov rcx, qword [rsp + 0x20]
cmp dword [rcx - 0x10], 0
je 0x1400017a7
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r9, qword [rsp + 0x20]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_AppendMenuW]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov r9, qword [rbx + 0x170]
mov edx, 0x80
lea r8d, [rdx - 0x7f]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rbx + 0x170]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
call qword [sym.imp.mfc140u.dll_AfxFieldText]
xor r9d, r9d
mov r8, qword [rax + 0x10]
lea rdx, [0x1400014e0]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1402268f0], rax
mov edx, 0x3eb
mov r9d, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CWnd::CancelToolTips]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140220840
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140001eb0
Capabilities:
Enumerate files on windows
Get common file path
Terminate process

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x280
mov rax, qword [0x140226010]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r9d, r9d
mov qword [r11 + 8], rbp
lea rdx, [r11 - 0x128]
mov qword [r11 + 0x20], r14
xor ecx, ecx
lea r8d, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea r8, str..
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ebp, ebp
mov r14, rax
mov ebx, ebp
cmp rax, 0xffffffffffffffff
je 0x140002025
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x2a0], rdi
nop dword [rax]
lea rdx, str.Document.rtf
inc ebp
lea rcx, [rsp + 0x4c]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
lea edi, [rbx + 1]
lea rdx, str.Document.ppt
lea rcx, [rsp + 0x4c]
cmove edi, ebx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
lea ebx, [rdi + 1]
lea rdx, str.Document.pptx
lea rcx, [rsp + 0x4c]
cmove ebx, edi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
lea edi, [rbx + 1]
lea rdx, str.Document.doc
lea rcx, [rsp + 0x4c]
cmove edi, ebx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
lea ebx, [rdi + 1]
lea rdx, str.Document.docx
lea rcx, [rsp + 0x4c]
cmove ebx, edi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
lea edi, [rbx + 1]
lea rdx, str.Document.xls
lea rcx, [rsp + 0x4c]
cmove edi, ebx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
lea esi, [rdi + 1]
lea rdx, str.Document.xlsx
lea rcx, [rsp + 0x4c]
cmove esi, edi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea ebx, [rsi + 1]
mov rcx, r14
test rax, rax
lea rdx, [rsp + 0x20]
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001f40
mov rdi, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x298]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rsp + 0x2a8]
cmp ebp, 0x14
mov rbp, qword [rsp + 0x290]
jg 0x140002054
cmp ebx, 4
jl 0x140002054
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140220840
add rsp, 0x280
pop rbx
ret
Function at 0x140002070
Capabilities:
Allocate or change rwx memory
Patch event tracing for windows function

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140226010]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.EtwEventWrite
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 1
mov dword [rsp + 0x34], 0
lea r9, [rsp + 0x34]
mov byte [rsp + 0x30], 0xc3
mov rcx, rax
mov rbx, rax
lea r8d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 1
mov qword [rsp + 0x20], 0
mov rcx, rax
lea r8, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [rsp + 0x34]
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140220840
add rsp, 0x40
pop rbx
ret
Function at 0x140002120
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140226010]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, str.ntdll.dll
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x48]
mov rdx, rax
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffffffffffff
mov r15, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
lea rcx, str.c:windows_system32_ntdll.dll
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, rax
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x1000002
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov rcx, rax
lea edx, [rbx + 4]
xor r8d, r8d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rsi, dword [rbp + 0x3c]
movzx edi, bx
add rsi, rbp
mov r14, rax
cmp bx, word [rsi + 6]
jae 0x1400022b8
lea r8, str..text
xor r15d, r15d
nop word [rax + rax]
movzx ecx, word [rsi + 0x14]
movzx eax, di
add rcx, rsi
lea rdx, [rax + rax*4]
mov rax, r15
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400022a6
cmp rax, 6
jne 0x140002240
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
lea r8d, [rax + 0x3a]
add rcx, rbp
mov dword [rsp + 0x60], r15d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r14]
lea rcx, [rax + rbp]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rbx + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc di
cmp di, word [rsi + 6]
jb 0x140002220
mov r15, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140220840
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140220d94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140220dde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140220dde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140220dde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140220dde
cmp dword [rcx + 0x84], 0xe
jbe 0x140220dde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140220de0
xor al, al
add rsp, 0x28
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
add esp, 0xfffff254
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040dc
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14000403d
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x140004033
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040d1
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040d1
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040d0
dec rcx
mov esi, dword [r8 + rcx*4]
xor r9, r9
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004087
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004078
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
pop rsi
pop rcx
add rax, rdx
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 0x140004027
Function at 0x140006c20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140006c48
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140006c6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006c70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006cc9
test ecx, ecx
jle 0x140006ca9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140006cc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006cc9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140006cf0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140006d12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006d28
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006d44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006d46
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006d82
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140006e1e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140006dbd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140006dfe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140006e1e
cmp rbx, rax
ja 0x140006dd0
test rbx, rbx
je 0x140006e1e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret