joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140079b80
Capabilities:
Query environment variable

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, 0x30
mov r14d, r8d
mov rbx, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r15d, r15d
mov rdi, rax
cmp rax, r15
je 0x140079c8a
cmp rbx, r15
mov r12, rbp
cmovne r12, rbx
mov rbx, rax
cmp word [rax], r15w
je 0x140079c81
mov rsi, rbx
jmp 0x140079bdc
cmp ax, 0x3d
je 0x140079be9
add rbx, 2
movzx eax, word [rbx]
cmp ax, r15w
jne 0x140079bd6
mov rdx, rsi
cmp r14d, r15d
je 0x140079c11
or qword [rsp + 0x20], 0xffffffffffffffff
mov rax, rbx
lea r8, [rbx + 2]
sub rax, rsi
mov rcx, rbp
sar rax, 1
mov r9d, eax
call fcn.14001e724
jmp 0x140079c6d
mov r13, rbx
lea rcx, [rsp + 0x78]
sub r13, rsi
sar r13, 1
mov r8, r13
call fcn.14006e2cc
mov rdx, qword [rsp + 0x78]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r15
call fcn.140018934
cmp rax, r15
jne 0x140079c5d
or qword [rsp + 0x20], 0xffffffffffffffff
lea r8, [rbx + 2]
mov r9d, r13d
mov rdx, rsi
mov rcx, rbp
call fcn.14001e724
lea rcx, [rsp + 0x78]
call fcn.140059920
jmp 0x140079c6d
add rbx, 2
cmp word [rbx], r15w
jne 0x140079c69
add rbx, 2
cmp word [rbx], r15w
jne 0x140079bd1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007a508
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, edx
movzx esi, cx
call fcn.14006da20
xor edx, edx
mov edi, eax
cmp ebx, edx
jge 0x14007a598
lea ecx, [rdx + 0x20]
lea eax, [rdx + 0x2a]
mov word [rsp + 0x26], si
mov word [rsp + 0x22], ax
lea eax, [rdx + 0x2c]
mov word [rsp + 0x20], cx
mov word [rsp + 0x24], cx
lea ecx, [rdx + 0x3a]
mov word [rsp + 0x2a], ax
lea eax, [rdx + 0x5c]
mov word [rsp + 0x28], cx
mov word [rsp + 0x52], cx
lea rcx, [rsp + 0x50]
mov word [rsp + 0x2c], dx
mov word [rsp + 0x50], si
mov word [rsp + 0x54], ax
mov word [rsp + 0x56], dx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x14007a584
cmp edi, 2
je 0x14007a598
lea rdx, [rsp + 0x20]
lea rcx, [0x1401370d0]
xor r8d, r8d
call fcn.1400743ec
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14007b8ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r12d, r12d
xor edi, edi
mov r13, r9
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14007b9e4
test rdx, rdx
jne 0x14007b928
mov eax, 0x80070057
jmp 0x14007bb6d
cmp qword [0x140137828], rdi
jle 0x14007bb6a
and qword [rsp + 0x30], rdi
and dword [rsp + 0x90], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14007b981
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 2]
test eax, eax
cmove eax, ecx
jmp 0x14007bb6d
mov r8d, dword [0x140137828]
mov rdx, qword [0x140137c88]
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [0x140137c88]
and qword [0x140137828], rdi
test r8, r8
je 0x14007bb6a
mov rcx, qword [0x1401372e8]
add r8, 0xfffffffffffffff8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [0x140137c88], rdi
jmp 0x14007bb6a
xor edx, edx
test r8, r8
je 0x14007bb22
mov rcx, r8
call fcn.14001f348
mov rdi, rax
test rax, rax
jne 0x14007ba09
mov eax, 1
jmp 0x14007bb6d
mov eax, dword [rbx + 8]
sub eax, dword [rbx]
movsxd r14, eax
mov eax, dword [rbx + 0xc]
sub eax, dword [rbx + 4]
movsxd r12, eax
test r14, r14
jle 0x14007bb09
test eax, eax
jle 0x14007bb09
and dword [rsp + 0x90], 0
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [0x140136e00]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [0x140136e08]
mov r11d, dword [rsp + 0x90]
cmp r14, r11
jne 0x14007ba71
mov eax, dword [rsp + 0x40]
cmp r12, rax
je 0x14007bb09
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x50]
mov r8, r13
mov rcx, rbx
call fcn.1400615b0
mov rsi, rax
test rax, rax
je 0x14007b9ff
mov rbx, qword [rsp + 0x50]
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [0x140136e18]
mov rcx, qword [rsp + 0x48]
mov edx, 2
call qword [0x140136e28]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
call qword [0x140136d90]
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14007bb3a
call qword [0x140136e20]
jmp 0x14007bb3a
mov r9, r13
mov r8d, 1
mov rdx, rbp
mov rcx, rdi
call fcn.14007b468
mov r12d, eax
jmp 0x14007bb5c
lea r8, str.DISPLAY
call fcn.1400615b0
mov rsi, rax
test rax, rax
je 0x14007b9ff
mov r9, r13
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call fcn.14007b468
mov r12d, eax
test rsi, rsi
je 0x14007bb5c
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
test rdi, rdi
je 0x14007bb6a
mov rcx, rdi
call qword [0x140136d88]
mov eax, r12d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14008d3d4
Capabilities:
Enumerate disk volumes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov rax, qword [str.__Volume]
mov r14, rcx
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [0x1401227b0]
mov rbp, rdx
mov qword [rcx + 8], rax
mov eax, dword [0x1401227b8]
xor edx, edx
mov dword [rcx + 0x10], eax
movzx eax, word [0x1401227bc]
mov rbx, r8
mov word [rcx + 0x14], ax
lea rcx, [rsp + 0x56]
lea r8d, [rdx + 0x6a]
call fcn.1400fdc00
or r12d, 0xffffffff
cmp rbx, 4
movzx eax, bl
cmovbe r12d, eax
cmp rbx, 4
ja 0x14008d45a
lea rcx, [rsp + 0x54]
mov r8d, 1
mov rdx, r14
lea rbx, [rsp + 0x40]
call fcn.14005e2c8
mov rax, qword [rbp]
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov word [rax], di
call fcn.14001da1c
cmp r12b, dil
jle 0x14008d60d
mov rax, qword [rbp]
cmp word [rax], di
jne 0x14008d60d
lea rcx, [rsp + 0x118]
mov edx, 0x105
call fcn.140062268
mov rbx, qword [rsp + 0x118]
mov edx, 0x103
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14008d4cf
lea rcx, [rsp + 0x118]
call fcn.140059920
xor eax, eax
jmp 0x14008d62f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
movsxd rcx, eax
mov eax, 0x5c
cmp ax, word [rbx + rcx*2]
jne 0x14008d4ec
mov word [rbx + rcx*2], di
mov eax, 0x3f
lea rcx, [rsp + 0x110]
mov dword [rsp + 0x108], edi
mov word [rbx + 2], ax
call fcn.140061f18
lea rax, [rsp + 0x108]
lea r9, [rsp + 0x110]
lea rdx, str.SYSTEMMountedDevices
mov r8, rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140067be0
cmp dword [rsp + 0x108], 0x18
mov esi, 2
jne 0x14008d57b
mov r9, qword [rsp + 0x110]
lea r8d, [rsi + 6]
lea rcx, str.DMIO:ID:
mov rdx, r9
call fcn.140059950
cmp eax, edi
jne 0x14008d57b
lea rdx, [r9 + 8]
lea r8d, [rsi + 0xe]
mov rcx, r14
call fcn.140059950
cmp eax, edi
je 0x14008d5a6
lea rcx, [rsp + 0x110]
call fcn.140059920
mov r8d, 0x103
mov rdx, rbx
mov rcx, r13
mov word [rbx], di
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, edi
je 0x14008d5e2
jmp 0x14008d4cf
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.14001da1c
add rbx, 0x14
mov qword [rsp + 0x30], rbx
cmp r12b, sil
jne 0x14008d5d5
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, r14
call fcn.140075b04
lea rcx, [rsp + 0x110]
call fcn.140059920
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp r12b, sil
je 0x14008d5fc
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea rcx, [rsp + 0x118]
call fcn.140059920
mov eax, edi
jmp 0x14008d62f
mov esi, 2
cmp r12b, sil
jne 0x14008d620
mov rax, qword [rbp]
cmp word [rax], di
jne 0x14008d62d
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rsi, eax
mov eax, esi
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009b7dc
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x80
xor ebx, ebx
lea rax, [r11 + 0x20]
xor r9d, r9d
mov qword [r11 - 0x40], rbx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov qword [r11 - 0x60], rbx
mov qword [r11 - 0x68], rbx
mov qword [r11 - 0x70], rax
lea rax, [r11 - 0x38]
xor r8d, r8d
xor edx, edx
mov rbp, rcx
mov dword [rsp + 0x60], ebx
mov qword [r11 - 0x78], rax
mov dword [r11 + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp eax, ebx
jne 0x14009b995
mov eax, dword [rsp + 0xb8]
lea rcx, [rsp + 0x78]
lea edx, [rax*4 + 8]
call fcn.140062268
cmp dword [rsp + 0x60], ebx
mov esi, ebx
jle 0x14009b989
mov rbx, qword [rsp + 0x78]
xor ecx, ecx
mov eax, dword [rsp + 0xb8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x28], rcx
shl eax, 2
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x20], rcx
mov word [rbx], cx
lea r9, [rsp + 0x64]
mov rcx, rbp
mov r8, rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor ecx, ecx
mov edi, eax
cmp eax, ecx
jne 0x14009b97d
cmp word [rbx], cx
je 0x14009b97d
mov rax, qword [rsp + 0xb0]
lea rcx, [rsp + 0x68]
mov rdx, qword [rax]
call fcn.14006e2a8
lea rdx, [0x140117cb4]
lea rcx, [rsp + 0x68]
call fcn.140062330
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.140062330
mov rax, qword [rsp + 0xa8]
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
lea eax, [r9 + 4]
mov r8d, eax
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea r11, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x70]
mov edi, eax
test rcx, rcx
je 0x14009b971
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x68]
call fcn.14009b7dc
mov rcx, qword [rsp + 0x70]
mov edi, eax
test rcx, rcx
je 0x14009b971
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x68]
call fcn.140059920
xor ecx, ecx
inc esi
cmp esi, dword [rsp + 0x60]
jl 0x14009b86d
lea rcx, [rsp + 0x78]
call fcn.140059920
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c2d3c
Capabilities:
Create thread
Resume thread

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, 0x60
mov ebp, dword [rsp + 0xc8]
mov rsi, rcx
mov rcx, rdx
mov r15d, ebp
movsxd r12, r9d
mov r14, rdx
and r15d, 1
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov r13d, eax
mov eax, 0xb4
cmp r13d, eax
cmovg r13d, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0xb0]
movsxd rdi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [rcx + rdi + 0x1fa]
lea rcx, [rsp + 0x30]
call fcn.140062268
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.140059884
mov eax, dword [rsp + 0xb8]
lea rcx, [rbx + 0x3f0]
mov dword [rbx + 0x30c], eax
lea rax, [rcx + rdi*2 + 2]
mov rdx, rsi
mov byte [rbx + 0x110], 0x40
mov qword [rbx + 0x2f0], rcx
mov byte [rbx + 0x3b8], 0
mov qword [rbx + 0x3a0], rax
mov dword [rbx + 0x150], r12d
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rbx + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
and dword [rbx + 0x2e4], 0
and ebp, 2
je 0x1400c2e33
mov dword [rbx + 0x2e4], 0x40000000
mov rax, qword [rsp + 0xc0]
movsxd rdi, r13d
lea rcx, [rbx + 0x154]
lea r8, [rdi + rdi]
mov rdx, r14
mov qword [rbx + 0x20], rax
call fcn.14001d8e0
lea rax, [0x14013696c]
lea r8, [0x1400c2408]
mov qword [rsp + 0x28], rax
xor ebp, ebp
mov r9, rbx
mov edx, 0x20000
xor ecx, ecx
mov dword [rsp + 0x20], 0x10004
mov word [rbx + rdi*2 + 0x154], bp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
cmp rax, rbp
je 0x1400c2f32
lea r13d, [rbp + 1]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [0x140138118]
mov qword [rsp + 0x30], rbp
mov rdi, rax
mov qword [rbx + 0x3d0], rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x1401377a0], r13d
lea rcx, [0x140138118]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbp
cmp r15d, ebp
je 0x1400c2f29
lea r9, [rsp + 0x38]
lea rcx, [0x1401370d0]
mov rdx, r12
xor r8d, r8d
call fcn.1400195ac
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ebx, byte [rbx + 0x2e4]
lea rcx, [rsp + 0x30]
call fcn.140059920
lea r11, [rsp + 0x60]
mov eax, ebx
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 0x1400df71c
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbx, r9
mov sil, r8b
mov bpl, dl
mov rdi, rcx
test rcx, rcx
jne 0x1400df748
xor eax, eax
jmp 0x1400df7dd
call qword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [rsp + 0x58], 0
movsx ecx, bpl
mov dword [rsp + 0x3c], eax
movsx eax, sil
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xa8]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xb0]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x60], rax
test rbx, rbx
je 0x1400df7c6
lea r8, [rsp + 0x20]
lea rdx, [0x14007250c]
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x1400df7d8
lea rdx, [rsp + 0x20]
lea rcx, [0x14007250c]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x28]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400df7f4
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, 0x30
xor ebp, ebp
bt r8d, 0x1d
mov r15, r9
mov esi, r8d
mov r14, rcx
jae 0x1400df82e
mov rbp, qword [rsp + 0x80]
xor edi, edi
jmp 0x1400df836
mov rdi, qword [rsp + 0x80]
lea r13, [rdx + r9]
mov ebx, r8d
and esi, 0x1fffffff
mov r12, r13
shr r12, 0x20
and ebx, 0xc0000000
je 0x1400df87f
xor edx, edx
mov r8, rdi
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test rax, rax
jne 0x1400df870
test ebx, ebx
jns 0x1400df87f
xor eax, eax
jmp 0x1400df91c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
bt ebx, 0x1e
jb 0x1400df869
mov r9d, r12d
mov r8d, esi
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400df869
test ebx, ebx
je 0x1400df8ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xb7
test ebx, ebx
jns 0x1400df8b9
cmp eax, ecx
jne 0x1400df8c3
bt ebx, 0x1e
jae 0x1400df8ce
cmp eax, ecx
jne 0x1400df8ce
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400df869
mov edx, esi
mov ecx, 1
mov r8, r15
and edx, 4
shr r8, 0x20
mov r9d, r15d
or edx, 8
shr edx, 1
cmp esi, 8
cmove edx, ecx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbp, rbp
je 0x1400df910
mov qword [rbp], rdi
jmp 0x1400df919
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400e05f4
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rcx, qword [0x1401372e8]
xor edx, edx
mov r8d, 0x408
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
jne 0x1400e062c
mov ecx, 2
call fcn.140061ca4
cmp eax, 4
je 0x1400e0600
lea rcx, [rdi + 8]
mov dword [rdi + 4], 0xaa55
mov qword [rdi], 0x400
mov qword [0x1401381e8], rcx
mov eax, ebx
mov edx, 8
test al, 1
je 0x1400e0659
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400e065b
shr eax, 1
sub rdx, 1
jne 0x1400e064c
inc ebx
mov dword [rcx], eax
add rcx, 4
cmp ebx, 0x100
jl 0x1400e0645
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e067c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, qword [0x1401381e8]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test r10, r10
jne 0x1400e06b1
call fcn.1400e05f4
mov r10, qword [0x1401381e8]
mov r9b, dil
or ebx, 0xffffffff
xor r8d, r8d
and r9b, 7
je 0x1400e06d5
movsx rax, r9b
sub rdi, rax
lea r8, [rdi - 0x18]
cmp qword [r8], 0
je 0x1400e06d5
mov ebx, dword [r8 + 8]
test rsi, rsi
je 0x1400e06f8
movzx eax, byte [rbp]
movzx ecx, bl
inc rbp
xor rcx, rax
mov eax, ebx
mov ebx, dword [r10 + rcx*4]
shr eax, 8
xor ebx, eax
sub rsi, 1
jne 0x1400e06da
test r9b, 2
je 0x1400e070d
mov eax, ebx
mov qword [r8], 1
mov qword [r8 + 8], rax
jmp 0x1400e0727
not ebx
test rdi, rdi
je 0x1400e0727
lea rdx, str._08X
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e10ec
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r8d, [rax + 2]
mov rcx, rdi
mov ebx, eax
movsxd rdx, r8d
call fcn.1400622f4
mov r11, qword [rdi]
xor eax, eax
mov word [r11], ax
mov rdx, qword [rdi]
lea r8d, [rbx + 1]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_GetWindowTextW]

Function at 0x1400e1aec
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
and qword [rcx + 0x18], 0
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x1400e1a5c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rbx + 0x18]
add rsp, 0x20
pop rbx
ret
Function at 0x1400e1e5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
cmp dword [0x140137820], 0
je 0x1400e1e73
cmp qword [0x140138230], 0
jne 0x1400e1ece
mov rcx, qword [0x140136a68]
mov edx, 0x271b
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, qword [0x140136a68]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400e1ece
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400e1ece
mov rcx, qword [0x140136a68]
and qword [rsp + 0x20], 0
lea r9, [0x1400e1e04]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
add rsp, 0x38
ret

Function at 0x1400e1fa4
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
or qword [rsp + 0x38], 0xffffffffffffffff
lea rdx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x38]
add rsp, 0x28
ret

Function at 0x1400e2580
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov byte [rax + 0x10], 0
mov byte [rax + 0x11], 0
mov byte [rax + 0x12], 0
mov byte [rax + 0x13], 0
mov byte [rax + 0x14], 0
mov byte [rax + 0x15], 5
lea rax, [rax + 0x18]
lea rcx, [rsp + 0x78]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r8d, 0x20
mov dl, 2
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x1400e261a
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x70]
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400ec210
Capabilities:
Capture screenshot

Disassembly:
test edx, edx
js 0x1400ec360
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x90
and dword [rax - 0x48], 0
and dword [rax - 0x44], 0
and dword [rax - 0x40], 0
and dword [rax - 0x3c], 0
mov r14d, edx
lea rdx, [rax - 0x48]
mov r13, rcx
call qword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [rsp + 0x68]
mov esi, dword [rsp + 0x6c]
sub ebp, dword [rsp + 0x60]
mov rcx, r13
sub esi, dword [rsp + 0x64]
call qword [sym.imp.USER32.dll_GetDC]
mov ecx, 0xf
mov r12, rax
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, r12
mov edi, eax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, esi
mov edx, ebp
mov rcx, r12
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
lea rcx, [rsp + 0x70]
mov rdx, rbx
mov r8, rax
call fcn.1400597f4
lea rdx, [rsp + 0x60]
mov r8d, r14d
mov rcx, rbx
call fcn.1400e1f54
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], ebp
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], esi
call fcn.1400ec02c
mov dword [rsp + 0x40], 0xcc0020
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.GDI32.dll_BitBlt]
lea rcx, [rsp + 0x70]
call fcn.140059848
test rbx, rbx
je 0x1400ec32e
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
test r12, r12
je 0x1400ec33f
mov rdx, r12
mov rcx, r13
call qword [sym.imp.USER32.dll_ReleaseDC]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret