joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401241a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x14017c020]
mov rdi, rax
test rax, rax
jne 0x1401241e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140124229
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140124282
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140124240
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401242c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140153202]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140153203]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140124290
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1401253c4
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x140082078]
jne 0x140002bfa
rol rcx, 0x10
test cx, 0xffff
jne 0x140002bf6
repz ret
ror rcx, 0x10
jmp 0x14000ce00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400842d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400843c8]
mov qword [rsp + 0x58], r11
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 0x14000ce85
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, [0x1400842d0]
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 0x14000cea7
mov rax, qword [rsp + 0x88]
mov qword [0x1400843c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140084368], rax
mov rax, qword [0x1400843c8]
mov qword [0x140084240], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140084350], rax
mov dword [0x140084230], 0xc0000409
mov dword [0x140084234], 1
mov rax, qword [0x140082078]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140082080]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400842c8], eax
mov ecx, 1
call fcn.140012740
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.0B_b_
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400842c8], 0
jne 0x14000cf2e
mov ecx, 1
call fcn.140012740
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 0x180001770
Capabilities:
Log keystrokes via polling

Disassembly:
push r13
push r12
push rbp
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [rsp + 0x88]
mov rsi, r8
mov rbp, rcx
mov r8, qword [rsp + 0x80]
mov ebx, edx
cmp edx, 2
je 0x180001800
cmp edx, 0x100
je 0x1800017c0
mov r8, rsi
mov edx, ebx
mov rcx, rbp
add rsp, 0x30
pop rbx
pop rsi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.comctl32.dll_DefSubclassProc]
cmp rsi, 0x14
jne 0x1800017a0
mov qword [rsp + 0x28], r9
call qword [sym.imp.user32.dll_GetParent]
mov ecx, 0x14
mov r13, rax
call qword [sym.imp.user32.dll_GetKeyState]
mov r9, qword [rsp + 0x28]
test al, 1
je 0x180001820
mov rdx, r12
mov rcx, r13
call sym.CredDialogShowCapsLockBalloon
mov r9, qword [rsp + 0x28]
jmp 0x1800017a0
mov qword [rsp + 0x28], r9
lea rdx, [sym.CredDialogPasswordSubclassProc]
call qword [sym.imp.comctl32.dll_RemoveWindowSubclass]
mov r9, qword [rsp + 0x28]
jmp 0x1800017a0
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x28], r9
call sym.CredDialogHideBalloonTip
mov r9, qword [rsp + 0x28]
jmp 0x1800017a0
Function at 0x180002760
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rdx
mov edi, r8d
mov r13, r9
xor edx, edx
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
call qword [sym.imp.advapi32.dll_CredEnumerateW]
test eax, eax
je 0x180002841
mov ecx, dword [rsp + 0x44]
mov r11, qword [rsp + 0x48]
test ecx, ecx
je 0x180002838
mov r12, qword [sym.imp.kernel32.dll_lstrcmpW]
xor ebx, ebx
lea rbp, [0x1800060c0]
lea r15, str.no_support_for_type__lu_credentials_n
jmp 0x1800027ea
cmp word [rsi], 0
mov rax, qword [rdx + 0x48]
je 0x18000285f
mov rdx, rax
mov rcx, rsi
call r12
mov r11, qword [rsp + 0x48]
test eax, eax
je 0x180002858
add rbx, 1
cmp ebx, dword [rsp + 0x44]
jae 0x180002838
lea r14, [rbx*8]
lea r9, [r11 + r14]
mov rdx, qword [r9]
mov eax, dword [rdx + 4]
lea ecx, [rax - 1]
cmp ecx, 1
jbe 0x1800027c0
test byte [rbp], 1
je 0x1800027e0
mov dword [rsp + 0x20], eax
mov r9, r15
lea r8, str.find_existing_credential
xor ecx, ecx
mov rdx, rbp
add rbx, 1
call sym.wine_dbg_log.constprop.0
mov r11, qword [rsp + 0x48]
cmp ebx, dword [rsp + 0x44]
jb 0x1800027ea
nop dword [rax]
mov rcx, r11
call qword [sym.imp.advapi32.dll_CredFree]
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r9, [r11 + r14]
mov rdx, qword [r9]
mov rcx, qword [rdx + 0x48]
cmp word [rcx], 0
je 0x180002900
mov rax, rcx
add rax, 2
cmp word [rax], 0
jne 0x180002870
sub rax, rcx
sar rax, 1
cmp eax, edi
jae 0x1800027e0
mov eax, dword [rdx + 0x20]
shr eax, 1
cmp eax, dword [rsp + 0xc0]
jae 0x1800027e0
test byte [0x1800060c0], 8
jne 0x180002907
xor eax, eax
nop dword [rax]
movzx edx, word [rcx + rax]
mov word [rsi + rax], dx
add rax, 2
test dx, dx
jne 0x1800028a8
mov rax, qword [r9]
mov rcx, r13
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r9
mov rdx, qword [rax + 0x28]
mov r8d, dword [rax + 0x20]
call sym.memcpy
mov r9, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov rax, qword [r9]
mov eax, dword [rax + 0x20]
shr eax, 1
mov word [r13 + rax*2], dx
call qword [sym.imp.advapi32.dll_CredFree]
mov eax, 1
jmp 0x180002843
xor eax, eax
jmp 0x180002880
call sym.wine_dbgstr_wn.constprop.0
lea r9, str.found_existing_credential_for__s_n
mov ecx, 3
lea r8, str.find_existing_credential
mov qword [rsp + 0x20], rax
lea rdx, [0x1800060c0]
call sym.wine_dbg_log.constprop.0
mov r11, qword [rsp + 0x48]
lea r9, [r11 + r14]
mov rax, qword [r9]
mov rcx, qword [rax + 0x48]
jmp 0x1800028a3
Function at 0x1800030e0
Capabilities:
Access peb ldr_data

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov r13d, edx
test byte [0x1800060c0], 8
je 0x18000313d
test edx, edx
lea rax, str.TRUE
lea rbx, str.FALSE
cmovne rbx, rax
call sym.wine_dbgstr_wn.constprop.0
lea r9, str.__s___s__n
mov ecx, 3
mov qword [rsp + 0x28], rbx
lea r8, str.CredUIConfirmCredentialsW
lea rdx, [0x1800060c0]
mov qword [rsp + 0x20], rax
call sym.wine_dbg_log.constprop.0
test rdi, rdi
je 0x180003270
lea rsi, [0x180006080]
lea rbp, [0x1800060b0]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1800060b0]
mov r12, qword [sym.imp.kernel32.dll_lstrcmpW]
cmp rbx, rbp
jne 0x180003184
jmp 0x180003268
mov rbx, qword [rbx]
cmp rbx, rbp
je 0x180003268
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call r12
test eax, eax
jne 0x180003178
xor edi, edi
test r13d, r13d
jne 0x180003288
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
mov r12, qword gs:[0x30]
mov qword [rdx + 8], rax
mov rdx, qword [rbx]
mov rbp, qword [sym.imp.kernel32.dll_HeapFree]
mov qword [rax], rdx
mov rax, qword [r12 + 0x60]
xor edx, edx
mov r8, qword [rbx + 0x10]
mov rcx, qword [rax + 0x30]
call rbp
mov rax, qword [r12 + 0x60]
mov r8, qword [rbx + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x30]
call rbp
mov r8, qword [rbx + 0x20]
cmp word [r8], 0
je 0x180003223
mov rax, r8
nop
add rax, 2
cmp word [rax], 0
jne 0x1800031f0
sub rax, r8
sar rax, 1
cdqe
add rax, rax
je 0x180003223
add rax, r8
nop word [rax + rax]
mov rdx, r8
add r8, 1
mov byte [rdx], 0
cmp rax, r8
jne 0x180003210
mov r8, qword [rbx + 0x20]
mov r12, qword gs:[0x30]
mov rax, qword [r12 + 0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
call rbp
mov rax, qword [r12 + 0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x30]
call rbp
mov rcx, rsi
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov edi, 0x490
jmp 0x180003249
mov edi, 0x57
mov eax, edi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
mov r9d, dword [rbx + 0x28]
mov r8, qword [rbx + 0x20]
call sym.save_credentials
mov edi, eax
jmp 0x18000319d

Function at 0x1800040d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x180004121
cmp byte [rbx + rsi - 1], 0xa
je 0x1800040fc
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x18000c124], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rsi
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x180004710
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
cmp qword [0x18000c140], 0
lea r12, [0x18000c140]
mov ebx, ecx
mov rdi, rdx
mov rbp, r8
je 0x1800048f0
mov rcx, rdi
call qword [0x18000c140]
movzx eax, al
bt eax, ebx
jae 0x180004950
mov esi, dword [0x18000c124]
xor eax, eax
mov rdx, qword gs:[0x30]
cmp dword [rdx + 0x48], esi
je 0x1800047da
test byte [0x1800060f0], 8
jne 0x180004890
lea rsi, [rsp + 0x40]
mov r13, rsi
lea rdx, str._04x:
test byte [0x180006100], 8
jne 0x180004830
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x48]
mov rcx, r13
call sym.sprintf
test rbp, rbp
je 0x1800047af
cmp ebx, 3
jbe 0x1800047f0
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.ucrtbase.dll_strlen]
mov r9, rbx
mov edx, 1
mov rcx, rsi
mov r8, rax
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cdqe
add rdi, 1
mov qword [rsp + 0x28], rbp
lea r8, str._s:_s:_s
lea rcx, [r13 + rax]
mov rax, rsi
mov qword [rsp + 0x20], rdi
sub rax, rcx
lea rdx, [rax + 0xc8]
lea rax, str.fixme
mov r9, qword [rax + rbx*8]
call sym.snprintf.constprop.0
jmp 0x1800047af
cmp qword [0x18000c140], 0
je 0x180004930
lea rcx, [0x180006100]
call qword [0x18000c140]
lea rdx, str._04x:
test al, 8
je 0x180004790
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x40]
lea rdx, str._04x:
mov rcx, r13
mov qword [rsp + 0x38], rdx
call sym.sprintf
mov rdx, qword [rsp + 0x38]
cdqe
add r13, rax
jmp 0x180004790
cmp qword [0x18000c140], 0
je 0x180004910
lea rcx, [0x1800060f0]
call qword [0x18000c140]
test al, 8
je 0x180004774
call qword [sym.imp.kernel32.dll_GetTickCount]
lea rsi, [rsp + 0x40]
lea rdx, str._3u._03u:
mov r8d, eax
mov rcx, rsi
mov r9, r8
imul r8, r8, 0x10624dd3
shr r8, 0x26
imul eax, r8d, 0x3e8
sub r9d, eax
call sym.sprintf
movsxd r13, eax
add r13, rsi
jmp 0x18000477c
lea r8, [sym.fallback__wine_dbg_get_channel_flags]
lea rdx, str.__wine_dbg_get_channel_flags
mov rcx, r12
call sym.load_func.part.0
jmp 0x18000473c
lea r8, [sym.fallback__wine_dbg_get_channel_flags]
lea rdx, str.__wine_dbg_get_channel_flags
mov rcx, r12
call sym.load_func.part.0
jmp 0x18000489a
lea r8, [sym.fallback__wine_dbg_get_channel_flags]
lea rdx, str.__wine_dbg_get_channel_flags
mov rcx, r12
call sym.load_func.part.0
jmp 0x18000483e
mov eax, 0xffffffff
jmp 0x1800047da
Function at 0x180004b00
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rax, qword [0x18000c160]
mov rsi, rcx
mov rbx, rdx
test rax, rax
je 0x180004b90
mov rcx, rbx
call rax
mov dword [rbx + 0xc], eax
test eax, eax
js 0x180004b7a
lea rdi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x104
mov rdx, rdi
lea rsi, str.SystemRoot
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov rcx, qword [rbx]
mov r8, rdi
lea rdx, str.MODULE
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8d, 0x104
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
mov r8, rdi
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rax, qword [rbx]
add rsp, 0x230
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.atl100.dll
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rcx, rax
test rax, rax
je 0x180004bc2
lea rdx, str.AtlCreateRegistrar
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x18000c160], rax
test rax, rax
jne 0x180004b1c
mov dword [rbx + 0xc], 0x80004002
xor eax, eax
jmp 0x180004b7d

Function at 0x180004bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, rdx
mov rsi, rcx
mov rdx, r8
mov rbx, r9
mov r8, rax
call qword [sym.imp.kernel32.dll_FindResourceW]
mov rcx, rsi
mov rbp, rax
mov rdx, rax
call qword [sym.imp.kernel32.dll_LoadResource]
mov rdx, rbp
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.kernel32.dll_SizeofResource]
mov r12d, eax
test rdi, rdi
je 0x180004d0c
cmp qword [rbx], 0
je 0x180004cf8
mov r9d, r12d
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0
mov r13, qword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov qword [rsp + 0x20], 0
call r13
mov ebp, eax
mov rdx, qword gs:[0x30]
mov rdx, qword [rdx + 0x60]
lea eax, [rbp + 1]
mov r14, rax
lea r8, [rax + rax]
mov rcx, qword [rdx + 0x30]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180004d10
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r14d
mov r9d, r12d
mov qword [rsp + 0x20], rax
mov r8, rdi
call r13
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
xor eax, eax
mov word [rsi + rbp*2], ax
test edx, edx
mov rax, qword [rcx]
mov rdx, rsi
jne 0x180004cf0
call qword [rax + 0x50]
mov dword [rbx + 0xc], eax
mov r8, rsi
xor edx, edx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [rbx + 0xc]
not eax
shr eax, 0x1f
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call qword [rax + 0x48]
jmp 0x180004cb3
mov rdx, rbx
mov rcx, rsi
call sym.create_registrar
test rax, rax
jne 0x180004c27
xor eax, eax
jmp 0x180004cda
mov dword [rbx + 0xc], 0x8007000e
xor eax, eax
jmp 0x180004cda
Function at 0x1de131050
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
xor eax, eax
and ecx, 0xff0
add r8, rcx
lea r9, [rdx + rax]
lea r10, [rax + r8]
xor ecx, ecx
mov r11b, byte [r10 + rcx]
inc rcx
xor byte [r9], r11b
inc r9
cmp rcx, 4
jne 0x1de131069
add rax, 4
cmp rax, 0x10
jne 0x1de13105f
ret

Function at 0x1de1311e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
lea rax, [rdx + r8]
mov rbp, rsp
push r15
push r14
push r13
push r12
lea r12, str.cw
push rdi
mov dil, 0x1b
push rsi
mov rsi, rdx
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x28], rax
mov eax, 0x10
cmp qword [rsp + 0x28], rsi
je 0x1de1313f0
cmp eax, 0x10
jne 0x1de1313dd
lea rdx, [rsp + 0x30]
mov r8, rbx
xor ecx, ecx
mov r14d, 1
movups xmm0, xmmword [rbx + 0xf0]
lea r13, [rsp + 0x34]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1de131050
lea rdx, [rsp + 0x30]
mov rcx, rdx
mov rax, rcx
xor r8d, r8d
movzx r9d, byte [rax]
inc r8d
add rax, 4
mov r9b, byte [r12 + r9]
mov byte [rax - 4], r9b
cmp r8b, 4
jne 0x1de13125d
inc rcx
cmp r13, rcx
jne 0x1de131257
mov cl, byte [rsp + 0x35]
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x31], cl
mov cl, byte [rsp + 0x39]
mov byte [rsp + 0x35], cl
mov cl, byte [rsp + 0x3d]
mov byte [rsp + 0x3d], al
mov al, byte [rsp + 0x32]
mov byte [rsp + 0x39], cl
mov cl, byte [rsp + 0x3a]
mov byte [rsp + 0x3a], al
mov al, byte [rsp + 0x36]
mov byte [rsp + 0x32], cl
mov cl, byte [rsp + 0x3e]
mov byte [rsp + 0x3e], al
mov al, byte [rsp + 0x33]
mov byte [rsp + 0x36], cl
mov cl, byte [rsp + 0x3f]
mov byte [rsp + 0x33], cl
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x3f], cl
mov cl, byte [rsp + 0x37]
mov byte [rsp + 0x37], al
mov byte [rsp + 0x3b], cl
cmp r14d, 0xe
je 0x1de1313a2
lea r11, [rdx + 0x10]
mov cl, byte [rdx]
mov r9b, byte [rdx + 1]
add rdx, 4
mov r8b, byte [rdx - 2]
xor r8b, byte [rdx - 1]
xor r9d, ecx
mov r15d, ecx
xor cl, byte [rdx - 1]
mov eax, r9d
mov r10d, r9d
add r9d, r9d
shr al, 7
xor r10d, r8d
imul eax, edi
xor r15d, r10d
xor r15d, eax
xor r9d, r15d
mov r15b, byte [rdx - 3]
xor r15b, byte [rdx - 2]
mov eax, r15d
mov byte [rdx - 4], r9b
mov r9b, byte [rdx - 3]
add r15d, r15d
shr al, 7
imul eax, edi
xor r9d, r10d
xor r9d, eax
mov eax, r8d
add r8d, r8d
shr al, 7
xor r15d, r9d
mov r9b, byte [rdx - 2]
imul eax, edi
mov byte [rdx - 3], r15b
xor r9d, r10d
xor r10b, byte [rdx - 1]
xor r9d, eax
mov eax, ecx
add ecx, ecx
shr al, 7
xor r8d, r9d
imul eax, edi
mov byte [rdx - 2], r8b
mov r8d, r10d
xor eax, r8d
xor ecx, eax
mov byte [rdx - 1], cl
cmp r11, rdx
jne 0x1de1312ec
mov ecx, r14d
lea rdx, [rsp + 0x30]
mov r8, rbx
inc r14d
call fcn.1de131050
jmp 0x1de13124f
mov r8, rbx
mov ecx, 0xe
call fcn.1de131050
mov eax, 0xf
mov dl, byte [rbx + rax + 0xf0]
cmp dl, 0xff
jne 0x1de1313d0
mov byte [rbx + rax + 0xf0], 0
sub rax, 1
jae 0x1de1313b4
jmp 0x1de1313db
cdqe
inc edx
mov byte [rbx + rax + 0xf0], dl
xor eax, eax
movsxd rdx, eax
inc eax
mov dl, byte [rsp + rdx + 0x30]
xor byte [rsi], dl
inc rsi
jmp 0x1de131215
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1de1323a0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
mov r14, r8
push r13
mov r13, rdx
push r12
push rbp
push rdi
mov rdi, rcx
mov rcx, rdx
push rsi
mov rsi, r9
push rbx
sub rsp, 0x48
call fcn.1de143b20
mov rbx, qword [0x1de14a170]
mov qword [rsp + 0x38], rax
mov rax, qword [rbx]
cmp dword [rax + 0xf4], 0
je 0x1de132412
lea rdx, [0x1de147b00]
mov ecx, 1
call qword [rax + 0x1b0]
mov r12, rax
test rax, rax
jne 0x1de132415
mov rax, qword [rbx]
mov ecx, 1
mov rax, qword [rax + 0x8ca]
mov edx, dword [rax + 0x68]
call fcn.1de13fbb0
jmp 0x1de1325a5
xor r12d, r12d
xor ebp, ebp
mov r15d, 0x40
mov rax, qword [rdi + 8]
cmp word [rax + 2], bp
jbe 0x1de1324e4
movzx edx, bp
mov rcx, qword [rdi]
imul rax, rdx, 0x28
lea rax, [rcx + rax + 0x14]
cmp dword [rax + 0x10], 0
mov qword [rdi + 0x10], rax
jne 0x1de132448
inc ebp
jmp 0x1de13241d
mov r8d, dword [rax + 0x24]
mov eax, 1
mov ecx, r8d
and ecx, 0xe0000000
je 0x1de1324ac
mov eax, 0x10
cmp ecx, 0x20000000
je 0x1de1324ac
mov eax, 2
cmp ecx, 0x40000000
je 0x1de1324ac
mov eax, 0x20
cmp ecx, 0x60000000
je 0x1de1324ac
mov eax, 8
cmp ecx, 0x80000000
je 0x1de1324ac
mov eax, pe_nt_image_headers64
cmp ecx, 0xa0000000
je 0x1de1324ac
cmp ecx, 0xc0000000
mov eax, 4
cmovne eax, r15d
bt r8d, 0x1a
jae 0x1de1324b6
or ah, 2
shl rdx, 4
add rdx, qword [rdi + 0x3c]
mov ecx, 2
mov r9, qword [rdx + 8]
mov dword [rsp + 0x20], eax
mov r8, qword [rdx]
or rdx, 0xffffffffffffffff
call fcn.1de13f380
test eax, eax
jne 0x1de132444
jmp 0x1de1325a5
mov r9, qword [rdi + 0x4c]
test r9, r9
jne 0x1de1324f2
xor r15d, r15d
jmp 0x1de132518
mov dword [rsp + 0x20], 2
mov r8, qword [rdi + 0x44]
or rdx, 0xffffffffffffffff
mov ecx, 2
call fcn.1de13f380
test eax, eax
jne 0x1de1324ed
jmp 0x1de1325a5
inc r15d
mov rax, qword [rdi + 8]
mov eax, dword [rax + 0xc]
cmp eax, r15d
jbe 0x1de132571
mov ebp, r15d
mov rdx, qword [rdi + 0x20]
imul rbp, rbp, 0x12
lea rcx, [rdx + rbp]
cmp dword [rcx], 0
jne 0x1de132546
imul rax, rax, 0x12
mov ecx, dword [rcx + 4]
add rax, rcx
lea rcx, [rdx + rax]
mov r8d, dword [rsp + 0x38]
mov rdx, r13
call fcn.1de13ef90
test eax, eax
jne 0x1de132515
add rbp, qword [rdi + 0x20]
mov rax, qword [rdi + 0x3c]
movzx edx, word [rbp + 0xc]
mov ecx, dword [rbp + 8]
shl rdx, 4
add rcx, qword [rax + rdx - 0x10]
jne 0x1de1325a9
mov edx, dword [rsp + 0xb0]
mov ecx, 0x14
call fcn.1de13f900
mov edx, 2
mov r12, rax
mov rcx, rax
call fcn.1de13f680
mov rcx, r12
mov rdx, r13
call fcn.1de13f7b0
mov rcx, r12
call fcn.1de13f9b0
xor eax, eax
jmp 0x1de13260d
mov rdx, qword [rdi + 8]
mov r9w, word [rdx + 2]
xor edx, edx
jmp 0x1de1325c5
mov r8, qword [rax]
cmp r8, rcx
jbe 0x1de1325cd
inc rdx
add rax, 0x10
cmp r9w, dx
ja 0x1de1325b6
jmp 0x1de1325a5
add r8, qword [rax + 8]
cmp rcx, r8
jae 0x1de1325be
imul rdx, rdx, 0x28
mov rax, qword [rdi]
lea rax, [rax + rdx + 0x14]
mov qword [rdi + 0x10], rax
test byte [rax + 0x27], 0x20
je 0x1de1325a5
mov r8, rsi
mov rdx, r14
call fcn.1de132620
test r12, r12
je 0x1de132608
mov rax, qword [rbx]
mov rcx, r12
call qword [rax + 0x1b8]
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret