joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c1240
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
xor edx, edx
mov qword [rsp + 0x28], rbx
mov r9d, 0x100000
mov r8d, 0x200000
mov qword [rsp + 0x20], rbx
mov ecx, 0x1002
call qword [sym.imp.ntdll.dll_RtlCreateHeap]
mov qword [sym._____________.exe_PhHeapHandle], rax
test rax, rax
jne 0x1400c1282
mov eax, 0xc000009a
add rsp, 0x30
pop rbx
ret
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [sym._____________.exe_PhLibImageBase], rax
call fcn.1400c1330
xor r9d, r9d
lea rdx, [sym._____________.exe_PhSystemBasicInformation]
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor r9d, r9d
lea rcx, [0x14015daf8]
xor r8d, r8d
mov edx, 0xf0003
call qword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x1400c1325
cmp byte [0x14015deb8], 1
mov eax, 0xfa0
cmova ebx, eax
mov dword [0x140155ba8], ebx
call fcn.1400ae420
test eax, eax
js 0x1400c1325
call fcn.1400aee40
test al, al
je 0x1400c1325
call fcn.1400b4bd0
test al, al
je 0x1400c1325
lea r8, [0x1400b5cf0]
xor edx, edx
lea rcx, str.SymbolProvider
call sym._____________.exe_PhCreateObjectType
mov qword [0x14015e0b0], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 0xc0000001
add rsp, 0x30
pop rbx
ret
Function at 0x1400c1330
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jns 0x1400c1360
mov dword [sym._____________.exe_WindowsVersion], 0x7fffffff
add rsp, 0x148
ret
lea rcx, [sym._____________.exe_PhOsVersion]
mov eax, 2
lea rdx, [rsp + 0x20]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400c1371
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rsp + 0x24]
cmp eax, 5
jne 0x1400c1445
mov eax, dword [rsp + 0x28]
cmp eax, 1
jb 0x1400c1447
jne 0x1400c1430
mov dword [sym._____________.exe_WindowsVersion], 0x33
mov dword [sym._____________.exe_ProcessQueryAccess], 0x400
mov dword [sym._____________.exe_ProcessAllAccess], 0x1f0fff
mov dword [sym._____________.exe_ThreadQueryAccess], 0x40
mov dword [sym._____________.exe_ThreadSetAccess], 0x20
mov dword [sym._____________.exe_ThreadAllAccess], 0x1f03ff
add rsp, 0x148
ret
cmp eax, 2
jne 0x1400c14c6
mov dword [sym._____________.exe_WindowsVersion], 0x34
jmp 0x1400c13f6
jae 0x1400c1453
mov dword [sym._____________.exe_WindowsVersion], 0
jmp 0x1400c13f6
cmp eax, 6
jne 0x1400c149f
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400c146c
mov dword [sym._____________.exe_WindowsVersion], 0x3c
jmp 0x1400c14d3
cmp eax, 1
jne 0x1400c147d
mov dword [sym._____________.exe_WindowsVersion], 0x3d
jmp 0x1400c14d3
cmp eax, 2
jne 0x1400c148e
mov dword [sym._____________.exe_WindowsVersion], 0x3e
jmp 0x1400c14d3
cmp eax, 3
jne 0x1400c14c6
mov dword [sym._____________.exe_WindowsVersion], 0x3f
jmp 0x1400c14d3
cmp eax, 0xa
jne 0x1400c14b8
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1400c14ba
mov dword [sym._____________.exe_WindowsVersion], 0x64
jmp 0x1400c14d3
jbe 0x1400c14c6
mov dword [sym._____________.exe_WindowsVersion], 0x7fffffff
jmp 0x1400c14d3
cmp dword [sym._____________.exe_WindowsVersion], 0x3c
jb 0x1400c13f6
mov dword [sym._____________.exe_ProcessQueryAccess], 0x1000
mov dword [sym._____________.exe_ProcessAllAccess], 0x1f1fff
mov dword [sym._____________.exe_ThreadQueryAccess], 0x800
mov dword [sym._____________.exe_ThreadSetAccess], 0x400
mov dword [sym._____________.exe_ThreadAllAccess], 0x1f0fff
add rsp, 0x148
ret
Function at 0x1400c21f0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, r9
mov ebp, r8d
mov ebx, edx
mov r15, rcx
test edx, edx
jne 0x1400c2229
cmp dword [sym._____________.exe_WindowsVersion], 0x64
mov ebx, 0x3b
mov eax, 0x1ff
cmovae ebx, eax
mov edi, dword [0x140155c48]
mov eax, 3
mov rcx, qword [sym._____________.exe_PhHeapHandle]
test r8d, r8d
mov r8d, edi
cmove ebp, eax
lea edx, [rax + 1]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r12d, r12d
mov r9d, ebp
mov qword [rsp + 0x48], r12
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov r8d, ebx
lea rax, [rsp + 0x88]
xor edx, edx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400c232f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400c2319
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
add edi, dword [rsp + 0x88]
lea edx, [r12 + 4]
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8d, edi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x48], r12
mov r9d, ebp
mov rsi, rax
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x90]
mov r8d, ebx
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x88]
mov rcx, r15
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x1400c232f
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
jmp 0x1400c2351
mov eax, dword [0x140155c48]
cmp edi, 0x20000
cmovbe eax, edi
mov dword [0x140155c48], eax
mov eax, dword [rsp + 0x90]
mov dword [r14], eax
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400c2640
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x38]
mov edx, 3
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x1400c35a0
Capabilities:
Map section object

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov dword [rsp + 0x48], 2
lea rax, [r11 + 0x20]
mov rbx, rdx
mov qword [r11 + 0x20], 1
xor edx, edx
lea r8, [r11 + 0x18]
mov dword [rsp + 0x40], edx
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rdx
mov qword [r11 - 0x38], rdx
mov qword [r11 + 0x18], rdx
or rdx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x1400c3616
mov rdx, qword [rsp + 0x70]
mov r8, rbx
or rcx, 0xffffffffffffffff
call sym._____________.exe_PhGetProcessMappedFileName
mov rdx, qword [rsp + 0x70]
or rcx, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x1400c5e70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rsi, r8
mov ebx, edx
mov r14, rcx
test dl, 1
je 0x1400c5f5d
test dl, 2
je 0x1400c5eb7
mov r8d, 0x20
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [0x14015e0c8]
mov edx, 0x212
mov rcx, rbx
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], 0x200
mov word [rax + 0x200], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_InternalGetWindowText]
mov edi, eax
mov eax, eax
add rax, rax
mov qword [rbx], rax
test rsi, rsi
je 0x1400c5f34
mov qword [rsi], rbx
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c5f4a
call fcn.1400ae900
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x80], rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebp, eax
test eax, eax
je 0x1400c6020
test bl, 2
jne 0x1400c6020
mov rbx, qword [0x14015e0c8]
mov edi, ebp
add rdi, rdi
mov rcx, rbx
lea rdx, [rdi + 0x12]
call fcn.1400ae820
lock inc dword [rbx + 4]
mov dword [rax + 8], 1
movzx ecx, byte [rbx + 2]
lea rbx, [rax + 0x10]
mov word [rax], cx
lea rax, [rbx + 0x10]
xor ecx, ecx
mov qword [rbx + 8], rax
mov qword [rbx], rdi
mov word [rax + rdi], cx
mov rcx, r14
mov r8d, dword [rbx]
mov rdx, qword [rbx + 8]
shr r8d, 1
inc r8d
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400c5ff9
test rsi, rsi
je 0x1400c5fe1
mov qword [rsi], rbx
jmp 0x1400c602d
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c602d
call fcn.1400ae900
jmp 0x1400c602d
test rsi, rsi
je 0x1400c6006
call sym._____________.exe_PhReferenceEmptyString
mov qword [rsi], rax
lea rcx, [rbx - 0x10]
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c601c
call fcn.1400ae900
xor eax, eax
jmp 0x1400c602f
test rsi, rsi
je 0x1400c602d
call sym._____________.exe_PhReferenceEmptyString
mov qword [rsi], rax
mov eax, ebp
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c6da0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2f0
movzx esi, r8b
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400c6e75
movzx eax, byte [rdx]
xor al, 0xe
test al, 0x1f
jne 0x1400c6e75
lea rdx, str..exe
mov rcx, rdi
call fcn.1400e4d4c
test eax, eax
jne 0x1400c6e75
xor ebx, ebx
mov qword [rsp + 0x318], rbx
test rbp, rbp
je 0x1400c6e34
test sil, sil
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x318]
mov rcx, rbp
cmovne r9, rbx
lea r8, [rsp + 0x318]
cmove r8, rbx
xor edx, edx
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
mov rax, qword [rsp + 0x318]
test rax, rax
jne 0x1400c6f1b
test sil, sil
lea rdx, [rsp + 0x318]
lea rcx, [rsp + 0x318]
cmove rdx, rbx
cmovne rcx, rbx
call sym._____________.exe_PhGetStockApplicationIcon
mov rax, qword [rsp + 0x318]
test rax, rax
je 0x1400c6f1b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_DuplicateIcon]
jmp 0x1400c6f1b
xor ebx, ebx
mov qword [rsp + 0x310], r14
test sil, sil
mov qword [rsp + 0x318], rbx
mov r14d, ebx
sete r14b
test rbp, rbp
je 0x1400c6ed5
mov eax, r14d
lea r8, [rsp + 0x30]
bts eax, 8
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x318]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov qword [rsp + 0x318], rbx
test rbx, rbx
jne 0x1400c6f10
test rdi, rdi
je 0x1400c6f10
or r14d, 0x110
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov dword [rsp + 0x20], r14d
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rbx, qword [rsp + 0x318]
test rax, rax
cmovne rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x310]
mov rax, rbx
mov rbx, qword [rsp + 0x320]
add rsp, 0x2f0
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400c6f30
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov ecx, 2
add rdx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, qword [rdi]
mov rcx, rax
mov rdx, qword [rdi + 8]
mov rbx, rax
call fcn.1400e3970
mov rcx, qword [rdi]
xor eax, eax
mov word [rbx + rcx], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400c6fbe
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x1400c6fbe
mov rdx, rbp
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400c6fbe
call qword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1400c6fc7
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c6fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rcx
mov rcx, rsi
mov r8d, 5
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400c7021
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rdx, rax
mov qword [rsp + 0x48], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400c7049
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400c7050
xor eax, eax
jmp 0x1400c70e4
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400c70df
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, rdi
mov edx, 4
mov rbx, rdi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rbx
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.1400e3970
mov eax, 0xffff
cmp word [rdi + 2], ax
jne 0x1400c70a3
mov dword [rdi + 0xc], 0x40000448
jmp 0x1400c70a9
mov dword [rdi], 0x40000448
mov rax, qword [rsp + 0x68]
mov r8, r14
mov r9, qword [rsp + 0x60]
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8, rdi
xor edx, edx
mov rbx, rax
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, rbx
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400cc630
Capabilities:
Get user security identifier

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x50
cmp qword [rcx], 0xfffe
mov r14, r9
movzx eax, word [rcx]
mov rsi, r8
mov word [rsp + 0x38], ax
mov r15, rdx
mov word [rsp + 0x3a], ax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x40], rax
jbe 0x1400cc671
mov eax, 0xc0000106
add rsp, 0x50
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x80], rbp
call fcn.1400cc350
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x30], rcx
xor edx, edx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_LsaLookupNames2]
mov rcx, qword [rsp + 0x70]
mov ebp, eax
test eax, eax
js 0x1400cc777
mov edx, dword [rcx]
sub edx, 7
cmp edx, 1
jbe 0x1400cc772
test r15, r15
je 0x1400cc72e
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x88], rdi
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov edx, 4
mov r8d, eax
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdx, qword [rsp + 0x70]
mov r8d, ebx
mov rcx, rax
mov rdi, rax
mov rdx, qword [rdx + 8]
call fcn.1400e3970
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov qword [r15], rdi
mov rdi, qword [rsp + 0x88]
test rsi, rsi
je 0x1400cc766
movsxd rax, dword [rcx + 0x10]
test eax, eax
js 0x1400cc759
lea r8, [rax + rax*2]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
movzx edx, word [rcx + r8*8]
mov rcx, qword [rcx + r8*8 + 8]
call sym._____________.exe_PhCreateStringEx
jmp 0x1400cc75e
call sym._____________.exe_PhReferenceEmptyString
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rax
test r14, r14
je 0x1400cc777
mov eax, dword [rcx]
mov dword [r14], eax
jmp 0x1400cc777
mov ebp, 0xc0000073
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400cc78f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400cc79a
call qword [sym.imp.ADVAPI32.dll_LsaFreeMemory]
mov eax, ebp
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rsi
ret
Function at 0x1400dee10
Capabilities:
Get file attributes
Map section object

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
sub rsp, 0x98
xor ebp, ebp
mov rsi, r9
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0xb0], rbp
test rcx, rcx
jne 0x1400dee44
mov eax, 0xc0000030
add rsp, 0x98
pop rsi
pop rbp
ret
mov qword [rsp + 0x38], rbp
mov rdx, rcx
mov dword [rsp + 0x30], 0x60
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov r8d, 0x1000a1
mov dword [rsp + 0x20], 1
call sym._____________.exe_PhCreateFileWin32Ex
test eax, eax
js 0x1400defb1
mov qword [rsp + 0xc0], rbx
lea r8, [rsp + 0x78]
mov qword [rsp + 0x90], rdi
lea rdx, [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
mov r9d, 0x18
mov rcx, rdi
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ecx, eax
mov ebx, eax
test eax, eax
js 0x1400deecd
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xb8], rax
test ecx, ecx
js 0x1400def83
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0xb8]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0xb0]
xor r8d, r8d
mov dword [rsp + 0x20], 0x20
mov edx, 0xf001f
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x1400def83
mov rax, qword [rsp + 0xb8]
lea r8, [rsp + 0x58]
mov rcx, qword [rsp + 0xb0]
xor r9d, r9d
mov dword [rsp + 0x48], 0x20
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x58], rbp
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x1400def83
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xd0]
mov qword [rsi], rax
mov rax, qword [rsp + 0xb8]
mov qword [rdx], rax
mov rcx, qword [rsp + 0xb0]
test rcx, rcx
je 0x1400def96
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rsp + 0x90]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x98
pop rsi
pop rbp
ret
Function at 0x1400df070
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x170
mov rdi, r8
mov qword [r8], rdx
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r9d, 0x40
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400df1c6
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
je 0x1400df0c6
mov eax, 0xc000012f
jmp 0x1400df1c6
mov ecx, dword [rsp + 0x6c]
lea eax, [rcx - 1]
cmp eax, 0xffffffe
ja 0x1400df1f3
lea rdx, [rcx + rsi]
mov qword [rsp + 0x188], r14
mov r14d, ecx
mov qword [rsp + 0x20], 0
mov rcx, rbp
lea r8, [rsp + 0x70]
mov r9d, 0xf8
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
test eax, eax
js 0x1400df1be
cmp dword [rsp + 0x70], 0x4550
jne 0x1400df155
movzx eax, word [rsp + 0x88]
mov ecx, 0x10b
mov word [rdi + 0x20], ax
sub ax, cx
mov ecx, 0xfeff
test cx, ax
jne 0x1400df155
movzx eax, word [rsp + 0x76]
mov dword [rdi + 0x10], eax
lea edx, [rax + rax*4]
movzx eax, word [rsp + 0x84]
lea edx, [rdx + 3]
lea edx, [rax + rdx*8]
cmp edx, 0x100000
jbe 0x1400df15c
mov eax, 0xc000007b
jmp 0x1400df1be
mov rcx, qword [sym._____________.exe_PhHeapHandle]
mov r8d, edx
mov qword [rsp + 0x180], rbx
mov ebx, edx
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea rdx, [r14 + rsi]
mov qword [rsp + 0x20], 0
mov r8, rax
mov qword [rdi + 8], rax
mov r9d, ebx
mov rcx, rbp
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
jns 0x1400df1db
mov r8, qword [rdi + 8]
xor edx, edx
mov rcx, qword [sym._____________.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
mov rbx, qword [rsp + 0x180]
mov r14, qword [rsp + 0x188]
lea r11, [rsp + 0x170]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
movzx ecx, word [rsp + 0x84]
add rcx, 0x18
add rcx, qword [rdi + 8]
mov qword [rdi + 0x18], rcx
xor eax, eax
jmp 0x1400df1b6
mov eax, 0xc000007b
jmp 0x1400df1c6
Function at 0x140003100
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Enumerate gui resources

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14, rcx
lea rdx, [0x140001e90]
mov rcx, qword [0x140029e48]
xor r15d, r15d
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov rbp, qword [0x140029e38]
test rbp, rbp
je 0x140003360
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd8], r12
mov r12d, 0x8664
mov qword [rsp + 0x90], r13
mov r13d, 0x2000
mov qword [rsp + 0xd0], rsi
mov rbx, qword [0x140029d18]
lea r8, [0x140024840]
movzx edx, word [rbp]
mov rcx, rbx
call fcn.140007b20
test rax, rax
je 0x140003333
mov esi, dword [rax]
add rsi, qword [rbx + 8]
je 0x140003333
mov eax, dword [rax + 4]
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.14000c014
mov rbx, rax
test rax, rax
je 0x140003333
mov r8d, dword [rsp + 0x30]
mov rdx, rsi
mov rcx, rax
call fcn.14000b3e0
movups xmm1, xmmword [r14 + 0x10]
mov rcx, qword [0x140029f00]
lea rax, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x40], 1
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], 0x208
movups xmm0, xmmword [r14]
lea r8d, [r9 + 0x2c]
mov dword [rsp + 0x4c], 0x6610
mov dword [rsp + 0x50], 0x20
movups xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x64], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14000332b
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003320
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x78]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003320
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [rsp + 0x30]
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140003309
cmp edx, 0x130
jb 0x140003309
movsxd r8, dword [rbx + 0x3c]
cmp edx, dword [r8 + rbx + 0x54]
jb 0x140003309
lea rcx, [r8 + 0x108]
cmp rdx, rcx
jb 0x140003309
cmp word [r8 + rbx + 4], r12w
jne 0x140003309
test word [r8 + rbx + 0x16], r13w
je 0x140003309
mov rcx, rbx
call fcn.140007550
test rax, rax
je 0x140003333
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400012f0
jmp 0x140003318
lea r8, [rbx + 0x10]
add edx, 0xfffffff0
mov rcx, rbx
call fcn.140003fa0
test eax, eax
jne 0x14000332b
inc edi
jmp 0x14000332b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000c000
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x140003181
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140007c70
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ef2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ed28