joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066980
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
xor esi, esi
xor ecx, ecx
mov word [rax], si
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, esi
je 0x1400669da
lea ecx, [rsi + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
cmp rax, rsi
je 0x1400669d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbx
mov rdx, rax
call fcn.1400601ec
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400685b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov r12, rdx
lea rcx, [rax + 0x18]
mov edx, 0xa0000
movsxd rbp, r9d
mov rdi, r8
call fcn.140055ddc
mov rax, qword [rsp + 0x90]
mov r15b, byte [rsp + 0xa0]
and dword [rsp + 0x98], 0
lea r14, [rax + 0x20000]
mov qword [rsp + 0x30], rdi
and r14, 0xfffffffffffe0000
test r15b, r15b
jne 0x14006861b
xor ebp, ebp
xor r13d, r13d
jmp 0x140068635
mov ecx, 0x1ff
lea rax, [rdi + rbp]
cqo
and rdx, rcx
add rax, rdx
and rax, rcx
sub rax, rdx
mov r13, rax
test rdi, rdi
jle 0x140068724
mov ecx, 0x10000000
test ebp, ebp
jne 0x140068653
movsxd rax, r13d
cmp rdi, rax
jle 0x140068653
xor al, al
jmp 0x140068655
mov al, 1
cmp rdi, rcx
mov esi, edi
mov rdx, r12
cmovg esi, ecx
mov r8d, esi
test al, al
je 0x1400686de
mov esi, 0x200
mov rcx, rbx
sub esi, ebp
mov eax, esi
cmp rax, rdi
cmovg esi, edi
xor edx, edx
lea r8d, [rdx + 1]
call fcn.14004fd5c
mov rcx, qword [rsp + 0x80]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov r8d, 0x200
mov rdx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rcx, ebp
mov r8d, esi
mov rdx, r12
add rcx, r14
call fcn.14001a4c0
mov rdx, rbx
mov rbx, qword [rsp + 0x80]
mov rcx, rbx
xor r8d, r8d
call fcn.14004fd5c
mov r8d, 0x200
mov rdx, r14
jmp 0x1400686ec
test r15b, r15b
je 0x1400686ec
and esi, 0xfffffe00
mov r8d, esi
and dword [rsp + 0x98], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x98]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, esi
xor ebp, ebp
sub rdi, r11
add r12, r11
mov ecx, 0x10000000
test rdi, rdi
jg 0x140068643
lea rcx, [rsp + 0x90]
call fcn.14004ea6c
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140069b60
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 0x140069c6a
cmp rbx, r15
mov r12, rbp
cmovne r12, rbx
mov rbx, rax
cmp word [rax], r15w
je 0x140069c61
mov rsi, rbx
jmp 0x140069bbc
cmp ax, 0x3d
je 0x140069bc9
add rbx, 2
movzx eax, word [rbx]
cmp ax, r15w
jne 0x140069bb6
mov rdx, rsi
cmp r14d, r15d
je 0x140069bf1
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.14001adbc
jmp 0x140069c4d
mov r13, rbx
lea rcx, [rsp + 0x78]
sub r13, rsi
sar r13, 1
mov r8, r13
call fcn.140060190
mov rdx, qword [rsp + 0x78]
or r9d, 0xffffffff
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r15
call fcn.140015a64
cmp rax, r15
jne 0x140069c3d
or qword [rsp + 0x20], 0xffffffffffffffff
lea r8, [rbx + 2]
mov r9d, r13d
mov rdx, rsi
mov rcx, rbp
call fcn.14001adbc
lea rcx, [rsp + 0x78]
call fcn.14004ea6c
jmp 0x140069c4d
add rbx, 2
cmp word [rbx], r15w
jne 0x140069c49
add rbx, 2
cmp word [rbx], r15w
jne 0x140069bb1
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 0x14006a0f8
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.14005f6ac
xor edx, edx
mov edi, eax
cmp ebx, edx
jge 0x14006a188
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 0x14006a174
cmp edi, 2
je 0x14006a188
lea rdx, [rsp + 0x20]
lea rcx, [0x140106ec0]
xor r8d, r8d
call fcn.140065424
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14006b138
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
xor r12d, r12d
xor edi, edi
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14006b221
test rdx, rdx
jne 0x14006b16b
mov eax, 0x80070057
jmp 0x14006b393
cmp dword [0x14010753c], edi
jle 0x14006b390
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 0x14006b1c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 2]
test eax, eax
cmove eax, ecx
jmp 0x14006b393
mov r8d, dword [0x14010753c]
mov rdx, qword [0x140107d68]
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 [0x140107d68]
and dword [0x14010753c], edi
test r8, r8
je 0x14006b215
mov rcx, qword [0x1401070f0]
add r8, 0xfffffffffffffff8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [0x140107d68], rdi
jmp 0x14006b390
test r8, r8
je 0x14006b350
mov rcx, r8
call fcn.14001b85c
mov rdi, rax
test rax, rax
jne 0x14006b244
mov eax, 1
jmp 0x14006b393
mov eax, dword [rbx + 8]
sub eax, dword [rbx]
movsxd r13, eax
mov eax, dword [rbx + 0xc]
sub eax, dword [rbx + 4]
movsxd r12, eax
test r13, r13
jle 0x14006b33a
test eax, eax
jle 0x14006b33a
and dword [rsp + 0x90], 0
and dword [rsp + 0xa8], 0
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [0x140106ca0]
lea rdx, [rsp + 0xa8]
mov rcx, rdi
call qword [0x140106ca8]
mov r11d, dword [rsp + 0x90]
cmp r13, r11
jne 0x14006b2b5
mov eax, dword [rsp + 0xa8]
cmp r12, rax
je 0x14006b33a
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1400557b4
mov rsi, rax
test rax, rax
je 0x14006b23a
mov rbx, qword [rsp + 0x48]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [0x140106c58]
mov rcx, qword [rsp + 0x40]
mov edx, 2
call qword [0x140106cc0]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r13d
call qword [0x140106c60]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14006b363
mov r8d, 1
mov rdx, rbp
mov rcx, rdi
call fcn.14006acb8
mov r12d, eax
jmp 0x14006b382
xor edx, edx
call fcn.1400557b4
mov rsi, rax
test rax, rax
je 0x14006b23a
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call fcn.14006acb8
mov r12d, eax
test rsi, rsi
je 0x14006b382
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
test rdi, rdi
je 0x14006b390
mov rcx, rdi
call qword [0x140106c50]
mov eax, r12d
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007c224
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 0x14007c3dd
mov eax, dword [rsp + 0xb8]
lea rcx, [rsp + 0x78]
lea edx, [rax*4 + 8]
call fcn.140056040
cmp dword [rsp + 0x60], ebx
mov esi, ebx
jle 0x14007c3d1
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 0x14007c3c5
cmp word [rbx], cx
je 0x14007c3c5
mov rax, qword [rsp + 0xb0]
lea rcx, [rsp + 0x68]
mov rdx, qword [rax]
call fcn.14006016c
lea rdx, [0x1400e9a58]
lea rcx, [rsp + 0x68]
call fcn.140056108
lea rcx, [rsp + 0x68]
mov rdx, rbx
call fcn.140056108
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 0x14007c3b9
mov rdx, qword [rsp + 0xa8]
lea r8, [rsp + 0x68]
call fcn.14007c224
mov rcx, qword [rsp + 0x70]
mov edi, eax
test rcx, rcx
je 0x14007c3b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x68]
call fcn.14004ea6c
xor ecx, ecx
inc esi
cmp esi, dword [rsp + 0x60]
jl 0x14007c2b5
lea rcx, [rsp + 0x78]
call fcn.14004ea6c
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400861b8
Capabilities:
Create thread

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 r12
push r13
push r14
sub rsp, 0x3c0
mov esi, dword [rsp + 0x418]
mov rdi, rcx
mov rcx, rdx
mov r13d, esi
movsxd r12, r9d
mov rbp, rdx
and r13d, 1
and esi, 2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, 0xb4
lea rcx, [rsp + 0x58]
cmp ebx, eax
mov r8d, 0x368
cmovg ebx, eax
xor r14d, r14d
xor edx, edx
mov qword [rsp + 0x50], r14
call fcn.1400cc8d0
mov ecx, dword [rsp + 0x408]
mov rax, qword [rsp + 0x400]
mov dword [rsp + 0x2fc], ecx
mov ecx, 0x40000000
mov qword [rsp + 0x390], rax
mov eax, r14d
cmp esi, r14d
cmovne eax, ecx
movsxd rbx, ebx
lea rcx, [rsp + 0x144]
mov dword [rsp + 0x2d4], eax
mov rax, qword [rsp + 0x410]
lea r8, [rbx + rbx]
mov rdx, rbp
mov byte [rsp + 0x100], 0x40
mov dword [rsp + 0x140], r12d
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x2e0], rdi
call fcn.14001a4c0
lea rcx, [0x140107968]
mov word [rsp + rbx*2 + 0x144], r14w
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r11, [0x140106958]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], r11
lea r8, [0x140085464]
mov edx, 0x20000
xor ecx, ecx
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, r14
je 0x14008630e
mov edi, 0x270f
cmp dword [rsp + 0x140], r12d
jne 0x14008630e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
jns 0x1400862e0
jmp 0x140086304
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x140], r12d
je 0x1400862f9
lea rcx, [0x140107968]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r14
cmp r13d, r14d
je 0x140086354
cmp rbx, r14
je 0x140086362
lea r9, [rsp + 0x30]
lea rcx, [0x140106ec0]
mov rdx, r12
xor r8d, r8d
call fcn.14001bbe8
cmp rbx, r14
je 0x140086362
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x2d4]
lea r11, [rsp + 0x3c0]
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
Function at 0x1400b9cd4
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 0x1400b9d00
xor eax, eax
jmp 0x1400b9d95
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 0x1400b9d7e
lea r8, [rsp + 0x20]
lea rdx, [0x140064134]
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnumChildWindows]
jmp 0x1400b9d90
lea rdx, [rsp + 0x20]
lea rcx, [0x140064134]
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 0x1400b9dac
Capabilities:
Read file via mapping

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 r12
push r13
push r14
sub rsp, 0x30
xor ebp, ebp
bt r8d, 0x1d
mov r13, r9
mov esi, r8d
mov r14, rcx
jae 0x1400b9de4
mov rbp, qword [rsp + 0x70]
xor edi, edi
jmp 0x1400b9de9
mov rdi, qword [rsp + 0x70]
mov ebx, r8d
and esi, 0x1fffffff
lea r12, [rdx + r9]
and ebx, 0xc0000000
je 0x1400b9e2b
xor edx, edx
mov r8, rdi
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test rax, rax
jne 0x1400b9e1c
test ebx, ebx
jns 0x1400b9e2b
xor eax, eax
jmp 0x1400b9ecc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
bt ebx, 0x1e
jb 0x1400b9e15
mov r9, r12
mov r8d, esi
xor edx, edx
mov rcx, r14
shr r9, 0x20
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400b9e15
test ebx, ebx
je 0x1400b9e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0xb7
test ebx, ebx
jns 0x1400b9e69
cmp eax, ecx
jne 0x1400b9e73
bt ebx, 0x1e
jae 0x1400b9e7e
cmp eax, ecx
jne 0x1400b9e7e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b9e15
mov edx, esi
mov ecx, 1
mov r8, r13
and edx, 4
shr r8, 0x20
mov r9d, r13d
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 0x1400b9ec0
mov qword [rbp], rdi
jmp 0x1400b9ec9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x1400ba6a8
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

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 r12
sub rsp, 0x50
mov rbp, rcx
mov rdi, r9
mov r12d, r8d
mov rsi, rdx
lea rcx, [rax - 0x18]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rax - 0x38], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
cmp eax, ebx
jne 0x1400ba6fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ba81b
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, ebx
jne 0x1400ba738
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
jmp 0x1400ba81b
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, ebx
jne 0x1400ba765
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x1400ba724
mov rcx, qword [rsp + 0x38]
mov edx, 4
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x48]
call fcn.140055ddc
mov rsi, qword [rsp + 0x48]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea rdx, [0x1400e9d50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [rsp + 0x30], ebx
jbe 0x1400ba7f7
movzx r8d, byte [rsi]
lea rdx, str._02X
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
inc ebx
add rdi, 2
inc rsi
cmp ebx, dword [rsp + 0x30]
jb 0x1400ba7d4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rcx, [rsp + 0x48]
call fcn.14004ea6c
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret

Function at 0x1400ba838
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rcx, qword [0x1401070f0]
xor edx, edx
mov r8d, 0x408
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
jne 0x1400ba870
mov ecx, 2
call fcn.140055c10
cmp eax, 4
je 0x1400ba844
lea rcx, [rdi + 8]
mov dword [rdi + 4], 0xaa55
mov qword [rdi], 0x400
mov qword [0x140107e98], rcx
mov eax, ebx
mov edx, 8
test al, 1
je 0x1400ba89d
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400ba89f
shr eax, 1
sub rdx, 1
jne 0x1400ba890
inc ebx
mov dword [rcx], eax
add rcx, 4
cmp ebx, 0x100
jl 0x1400ba889
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ba8c0
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 r9, qword [0x140107e98]
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
test r9, r9
jne 0x1400ba8f5
call fcn.1400ba838
mov r9, qword [0x140107e98]
or ebx, 0xffffffff
test rsi, rsi
je 0x1400ba91b
movzx eax, byte [rbp]
movzx ecx, bl
inc rbp
xor rcx, rax
mov eax, ebx
mov ebx, dword [r9 + rcx*4]
shr eax, 8
xor ebx, eax
sub rsi, 1
jne 0x1400ba8fd
not ebx
test rdi, rdi
je 0x1400ba935
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 0x1400bb01c
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.1400560cc
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 0x1400bbb78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
cmp dword [0x140107538], 0
je 0x1400bbb8f
cmp qword [0x140107ee0], 0
jne 0x1400bbbea
mov rcx, qword [0x140106d38]
mov edx, 0x271b
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, qword [0x140106d38]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400bbbea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400bbbea
mov rcx, qword [0x140106d38]
and qword [rsp + 0x20], 0
lea r9, [0x1400bbb20]
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
add rsp, 0x38
ret

Function at 0x1400bbcc0
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 0x1400bc23c
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 0x1400bc2d6
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