joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003260
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx]
mov rbp, rdx
mov byte [rsp + 0x50], 0
cmp rcx, 0xffffffffffffffff
je 0x14000337f
xor esi, esi
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x50]
lea r8d, [rsi + 1]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rsp + 0x68], esi
jle 0x14000337f
movzx ecx, byte [rsp + 0x50]
cmp cl, 0x7f
ja 0x1400032c4
movzx eax, cl
mov word [rbp], ax
mov al, 1
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
movzx eax, cl
mov qword [rsp + 0x58], rbx
and al, 0xe0
cmp al, 0xc0
jne 0x1400032d9
mov ebx, 2
jmp 0x1400032f7
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1400032e9
mov ebx, 3
jmp 0x1400032f7
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x14000333b
mov ebx, 4
xor eax, eax
mov byte [rsp + 0x60], cl
mov rcx, qword [rdi]
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
cmp rcx, 0xffffffffffffffff
jne 0x140003313
or ecx, ecx
jmp 0x140003334
lea r8d, [rbx - 1]
lea r9, [rsp + 0x68]
lea rdx, [rsp + 0x61]
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x68]
lea eax, [rbx - 1]
cmp ecx, eax
jge 0x14000334a
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea r8, [rsp + 0x60]
mov r9d, ebx
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rbx, qword [rsp + 0x58]
cmp eax, 1
sete al
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004b50
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8a0
mov rax, qword [0x140018020]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x8f0]
mov r9d, 2
or r8, 0xffffffffffffffff
mov edx, 0x100c
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x140004c08
lea rcx, [rbx + 0x8b0]
mov edx, eax
call qword [sym.imp.mfc100u.dll_COleDataObject::GetFileData]
lea rcx, [rsp + 0x90]
mov r8, qword [rax]
mov rdx, qword [rax + 8]
call fcn.1400022b0
mov rax, qword [rbx + 0x40]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
lea rax, [0x1400108b8]
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
mov dword [rsp + 0x24], 0xc
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.14000c160
add rsp, 0x8a0
pop rbx
ret
Function at 0x140006840
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, rcx
lea rdx, [0x140018c08]
lea rcx, [rbp + 0x28]
call qword [0x14000fcf0]
nop
lea rcx, [rbp + 0x30]
call qword [0x14000fd10]
nop
mov bl, 1
mov edx, 0x2e
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc100u.dll_CBrowserControlSite::Release]
cmp eax, 0xffffffff
je 0x1400069af
mov rcx, qword [rbp + 0x28]
mov r8d, dword [rcx - 0x10]
sub r8d, eax
dec r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc100u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::Remove]
nop
lea rdx, [0x140010b78]
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc100u.dll_CMemFile::Close]
test eax, eax
je 0x1400068d4
lea rdx, [0x140010b80]
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc100u.dll_CMemFile::Close]
test eax, eax
jne 0x1400068d6
xor bl, bl
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
test bl, bl
jne 0x1400069af
mov edx, 0x92
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc100u.dll_CDaoRecordset::IsBOF]
lea rdx, [0x140010b88]
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc100u.dll_COleCurrency::operator_]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc100u.dll_]
mov rbx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
call qword [sym.imp.mfc100u.dll_CGopherFileFind::FindFile]
test rax, rax
je 0x140006932
mov rax, qword [rax + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.14000b5a0
test rax, rax
jne 0x140006a1e
lea rcx, [rbp - 0x10]
call qword [0x14000fd10]
nop
mov edx, 0x94
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc100u.dll_CDaoRecordset::IsBOF]
lea rcx, [rbp + 0x38]
call qword [0x14000fd10]
nop
mov edx, 0x7a
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc100u.dll_CDaoRecordset::IsBOF]
mov r9d, 0x30
mov r8, qword [rbp + 0x38]
mov rdx, qword [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.mfc100u.dll_CMouseManager::LoadState]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
jmp 0x140006a1e
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x38]
call fcn.14000a690
nop
mov rdx, rax
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc100u.dll_CView::CView]
nop
lea rcx, [rbp + 0x38]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
lea rdx, str._contextIdAttach_Digital_Signature
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc100u.dll_CVSListBoxBase::CVSListBoxBase]
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc100u.dll_]
mov dword [rsp + 0x28], 1
xor eax, eax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x28]
lea r8, str.IEXPLORE
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400099f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x850
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140018020]
xor rax, rsp
mov qword [rsp + CThreadSlotData::AllocSlot], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call qword [0x14000fd10]
nop
cmp byte [rbx + 0x568], 0
jne 0x140009a35
cmp byte [rbx + 0x569], 0
je 0x140009a47
lea rcx, [rbx + 0x478]
lea rdx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CMFCBaseToolBar::GetThisMessageMap]
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400022b0
cmp byte [rbx + 0x568], 0
jne 0x140009a6f
cmp byte [rbx + 0x569], 0
je 0x140009b2a
lea rcx, [rsp + 0x40]
call fcn.140002ac0
test eax, eax
jne 0x140009b2a
cmp word [rsp + 0x40], ax
je 0x140009b2a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009b2a
and al, 0x10
cmp al, 0x10
sete al
test al, al
je 0x140009b2a
lea rdx, [rbx + 0x550]
lea rcx, [rbx + 0x478]
call qword [sym.imp.mfc100u.dll_CMFCBaseToolBar::GetThisMessageMap]
cmp byte [rbx + 0x56a], 0
jne 0x140009ae7
cmp byte [rbx + 0x56b], 0
jne 0x140009ae7
lea rcx, [rbx + 0x560]
lea rdx, str..dwg
call qword [sym.imp.mfc100u.dll_CVSListBoxBase::CVSListBoxBase]
jmp 0x140009afb
lea rdx, [rbx + 0x560]
lea rcx, [rbx + 0x1f0]
call qword [sym.imp.mfc100u.dll_CMFCBaseToolBar::GetThisMessageMap]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rbx + reloc.mfc100u.dll_CGlobalUtils::CGlobalUtils]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
setne al
mov byte [rbx + 0x558], al
mov rcx, rbx
call qword [sym.imp.mfc100u.dll_CMFCMaskedEdit::OnLButtonUp]
nop
jmp 0x140009b79
lea rcx, [rsp + 0x28]
call qword [0x14000fd10]
nop
mov edx, 0x7c
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_CDaoRecordset::IsBOF]
mov r9d, 0x30
mov r8, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.mfc100u.dll_CMouseManager::LoadState]
lea rcx, [rbx + 0x478]
call qword [sym.imp.mfc100u.dll_CPaneDivider::Serialize]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000c160
add rsp, 0x850
pop rbx
ret
Function at 0x14000a040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x11b0]
mov eax, 0x12b0
call fcn.14000c9b0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x12e0], rbx
mov rax, qword [0x140018020]
xor rax, rsp
mov qword [rbp + 0x11a0], rax
mov rsi, r9
mov byte [rsp + 0x20], r8b
mov qword [rsp + 0x30], rdx
mov rdi, rcx
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp + 0x1a0]
call fcn.1400022b0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000a142
nop dword [rax]
cmp word [rsp + 0x7c], 0x2e
je 0x14000a127
lea r8, [rsp + 0x7c]
mov rdx, rdi
lea rcx, [rbp + 0x9a0]
call fcn.1400022b0
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x9a0]
call fcn.140002a90
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call qword [0x14000fcf0]
nop
mov r8, rax
mov rdx, qword [rsi + 0x10]
mov rcx, rsi
call qword [sym.imp.mfc100u.dll_RFX_Single_Bulk]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc100u.dll_CWinApp::CWinApp]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000a0c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rsp + 0x20], 0
je 0x14000a1d5
lea r8, [0x140010de0]
mov rdx, rdi
lea rcx, [rbp + 0x9a0]
call fcn.1400022b0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x9a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000a1d5
nop
test byte [rsp + 0x50], 0x10
je 0x14000a1ba
cmp word [rsp + 0x7c], 0x2e
je 0x14000a1ba
lea r8, [rsp + 0x7c]
mov rdx, rdi
lea rcx, [rbp + 0x1a0]
call fcn.1400022b0
mov r9, rsi
mov r8b, 1
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp + 0x1a0]
call fcn.14000a040
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000a180
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x11a0]
xor rcx, rsp
call fcn.14000c160
mov rbx, qword [rsp + 0x12e0]
add rsp, 0x12b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b46c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140018020]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x14000b578
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x14000b569
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
jne 0x14000b52d
lea rcx, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14000b569
lea rdx, [rsp + 0x40]
mov ecx, ebx
sub rdx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x14000b555
mov al, byte [rdx + rdi]
cmp al, bl
je 0x14000b555
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x14000b537
cmp rsi, rbx
jne 0x14000b562
dec rdi
mov ecx, 0x8007007a
cmp ecx, ebx
mov byte [rdi], bl
setge bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000b57a
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000c160
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000c75f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140018020]
jne 0x14000c17a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000c176
repz ret
ror rcx, 0x10
jmp 0x14000c6b8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140018560]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140018658]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000c73d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140018560]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000c75f
mov rax, qword [rsp + 0x88]
mov qword [0x140018658], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400185f8], rax
mov rax, qword [0x140018658]
mov qword [0x1400184d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400185e0], rax
mov dword [0x1400184c0], 0xc0000409
mov dword [0x1400184c4], 1
mov rax, qword [0x140018020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140018028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140018558], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000fef8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140018558], 0
jne 0x14000c7e6
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
stosd dword [rdi], eax
call [rbp + rdx*4 - 0x55]
call [rbx - 0x6b]
stosd dword [rdi], eax
call [rbx - 0x6b]
stosd dword [rdi], eax
call [rbx - 0x6b]
stosd dword [rdi], eax
call [rbx - 0x6b]
stosd dword [rdi], eax
call [rbx - 0x6b]
stosd dword [rdi], eax
call [rbx - 0x6b]
stosd dword [rdi], eax
call [rbx - 0x6b]
stosd dword [rdi], eax
call [rbx - 0x6a]
stosd dword [rdi], eax
call [rdx - 0x6c]
stosb byte [rdi], al
push qword [rcx - 0x69]
cmpsb byte [rsi], byte [rdi]
inc ebp
fnclex
dec ebp
loope 0x14003f69b
call 0x127e6c7b6
call rax
loop 0x14003f69e
call rdx
jrcxz 0x14003f6a2
out 0xff, eax
shl edx, cl
call rbx
loop 0x14003f6a6
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6aa
out 0xff, eax
shl bl, cl
call rdx
jrcxz 0x14003f6ad
out 0xff, al
dec edi
jrcxz 0x14003f6b1
iretd
out 0xff, al
iretd
dec edi
jrcxz 0x14003f6b5
out 0xff, al
shl dl, cl
call rdx
loop 0x14003f6ba
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6be
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6c2
invalid
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6c6
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6ca
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6ce
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6d2
invalid
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6d6
out 0xff, eax
shl dl, cl
call rdx
loop case.0x140007272.4
invalid
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6de
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6e2
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6e6
out 0xff, eax
shl dl, cl
call rdx
loop case.0x140007272.5
out 0xff, eax
shl dl, cl
out 0xff, eax
call rdx
loop 0x14003f6ee
call rdx
loop case.0x140007272.6
shl dl, cl
out 0xff, eax
shl dl, cl
out 0xff, eax
shl dl, cl
call rdx
loop 0x14003f6f6
call rdx
loop 0x14003f6fa
invalid
out 0xff, eax
call rdx
loop 0x14003f6fe
shl dl, cl
out 0xff, eax
shl edx, cl
out 0xff, eax
shl cl, cl
call 0x127e6c922
call rbx
loop 0x14003f702
call rdx
loope 0x14003f707
call rcx
loop 0x14003f70a
dec esi
jrcxz 0x14003f70d
invalid
Function at 0x140001000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001043
mov eax, 0xffffffff
jmp 0x14000111b
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140001071
mov eax, 0xffffffff
jmp 0x14000111b
xor r9d, r9d
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x140001097
mov eax, 0xffffffff
jmp 0x14000111b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov edx, 0x6610
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1400010c4
mov eax, 0xffffffff
jmp 0x14000111b
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x1400010f6
mov eax, 0xffffffff
jmp 0x14000111b
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add rsp, 0x58
ret

Function at 0x1400011d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov eax, dword [0x140023130]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140023dd8], rax
mov r9d, 0x10
lea r8, [0x140023120]
mov edx, dword [0x140023130]
lea rcx, section..data
call section..text
mov eax, dword [0x140023130]
mov r8d, eax
lea rdx, section..data
mov rcx, qword [0x140023dd8]
call fcn.140016c80
mov eax, dword [0x140023130]
lea r9, [rsp + 0x30]
mov r8d, 0x20
mov edx, eax
mov rcx, qword [0x140023dd8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x34], eax
mov r9d, 0x10
lea r8, [0x140023120]
mov edx, dword [0x140023130]
lea rcx, section..data
call section..text
cmp dword [rsp + 0x34], 0
je 0x1400012c2
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [0x140023dd8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140023dd0], rax
mov edx, 0xffffffff
mov rcx, qword [0x140023dd0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [0x140023dd8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.___Global_exec_memory_released___x__n
call fcn.140001690
xor eax, eax
add rsp, 0x48
ret
Function at 0x140001e0c
Capabilities:
Parse pe header

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

Function at 0x1400089bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400087b8
Function at 0x14000debc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000deec
xor eax, eax
jmp 0x14000dfaf
mov rbp, rbx
cmp word [rax], si
je 0x14000df11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000def8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000def4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000dddc
movsxd r14, eax
test eax, eax
jne 0x14000df4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000dee5
mov rcx, r14
call fcn.14000a698
mov rdi, rax
test rax, rax
jne 0x14000df68
xor ecx, ecx
call fcn.140009834
jmp 0x14000df44
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000dddc
test eax, eax
jne 0x14000df99
mov rcx, rdi
call fcn.140009834
jmp 0x14000dfa3
xor ecx, ecx
call fcn.140009834
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400105a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140024350]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400105f7
cmp word [rdx], r13w
jne 0x1400105f7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400105fc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140010721
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140010742
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140010635
mov rdx, r9
mov word [rbx], cx
jmp 0x14001065c
cmp r9, r8
jae 0x14001066c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140010616
jmp 0x140010721
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140010716
cmp dword [rsp + 0x80], esi
je 0x140010716
lea r8, [0x140024350]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400106ee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400106be
mov word [rbx], r13w
jmp 0x14001071e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400106cb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001071e
cmp word [rsp + 0x70], r13w
jne 0x1400106fb
cmp rbx, r14
je 0x1400106b8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140014524
cmp word [rsp + 0x70], r13w
je 0x140010721
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140024350]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001071b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140010721