joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x1400c90bb
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.1400c9450
test al, al
jne 0x1400c9156
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x1400c904f
cmp edx, dword [rbx + 0x60]
jl 0x1400c904f
cmp edx, dword [rbx + 0x64]
jg 0x1400c904f
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400c904f
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1400c904f
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1400c9072
test byte [r9 + 0x18], 8
je 0x1400c9072
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1400c9083
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1400c9e20
test al, al
jne 0x1400c9156
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400c90a6
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x1400c8fe3
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1400c915a
test rdx, rdx
je 0x1400c915a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1400c90f8
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1400c90fb
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1400c9116
dec r11d
add r11d, eax
jmp 0x1400c912d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1400ca140
test al, al
jne 0x1400c9156
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1400ca140
test al, al
jne 0x1400c9156
mov rdx, qword [rsi]
add di, bp
jne 0x1400c90e0
jmp 0x1400c915e
mov al, 1
jmp 0x1400c9169
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400cf200
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400cf21c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cf270
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cf395
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400cf395
test rax, rax
je 0x1400cf395
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400cf395
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400cf30a
lea rax, [0x1400cf3f0]
jmp 0x1400cf363
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400cf395
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400cf383
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400cf330
lea rax, [0x1400cf3c0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400cf3aa
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400d0b00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400d0b0b
xor eax, eax
ret
lea r11, [0x1400fd280]
not ecx
cmp r8d, 8
jb 0x1400d0be1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400d0b30
test r8d, r8d
je 0x1400d0c0d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400d0bf0
not ecx
mov eax, ecx
ret
Function at 0x1000012d0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100025078]
jne 0x100003bd1
rol rcx, 0x10
test cx, 0xffff
jne 0x100003bcd
ret 0
ror rcx, 0x10
jmp 0x10001dc7c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100065250]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100065348]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10001dd01
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, [0x100065250]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x10001dd23
mov rax, qword [rsp + 0x88]
mov qword [0x100065348], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000652e8], rax
mov rax, qword [0x100065348]
mov qword [0x1000651c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000652d0], rax
mov dword [0x1000651b0], 0xc0000409
mov dword [0x1000651b4], 1
mov rax, qword [0x100025078]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100025080]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10001ff18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x100001814
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000185b
cmp rcx, 0xffffffffffffffff
je 0x10000185b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100001859
cmp dword [rcx + 0x3c], edx
jl 0x100001859
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100001859
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10000185b
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100006f90
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x100025078]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov edx, 0x500
mov rbx, rcx
call qword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor esi, esi
mov dword [0x1000667e4], eax
cmp eax, esi
jne 0x10000709b
lea r8, [0x100066800]
mov r9d, 0x128
mov edx, 0x502
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItemTextW]
cmp word [0x100066800], si
jne 0x100007007
mov dword [0x1000667e4], 1
jmp 0x10000709b
mov rcx, qword [0x1000250c0]
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rax
call fcn.10000a5a0
lea r8, [0x100066800]
lea rdx, [rsp + 0x30]
mov rcx, rax
xor r9d, r9d
call fcn.100001eac
cmp eax, esi
je 0x100007090
cmp edi, esi
je 0x100007053
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [0x100025098]
lea r9, [rsp + 0x40]
mov r8d, 0x94
mov rdx, rbx
mov dword [rsp + 0x20], 0x10
call fcn.10000d654
mov eax, 1
jmp 0x10000709d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000012d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10000d77c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
and dword [rax + 0x20], 0
lea rax, [rax - 0x30]
mov r9d, 9
xor r8d, r8d
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000d8bd
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
lea r8, [rsp + 0xc8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
test eax, eax
je 0x10000d837
cmp eax, 0xea
je 0x10000d837
cmp eax, 0x7a
jne 0x10000d859
mov edx, dword [rsp + 0xc0]
mov ecx, 0x40
inc edx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x10000d868
lea ebx, [rax + 8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10000d8c9
xor ebx, ebx
mov r9d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
mov r8, rdi
inc r9d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10000d89a
mov rcx, qword [rsp + 0x78]
mov rdx, rdi
call fcn.10000d77c
test eax, eax
je 0x10000d89c
inc ebx
cmp eax, 0x103
je 0x10000d8a9
cmp ebx, dword [rsp + 0x60]
jb 0x10000d86a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x100013c84
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x290
mov rax, qword [0x100025078]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r14d, r14d
mov rbp, r9
mov r12, r8
mov dword [r9], r14d
mov r13d, edx
mov rdi, rcx
mov qword [rsp + 0x60], r14
mov ebx, r14d
cmp qword [rcx + 0x20], r14
jne 0x100013cd3
mov rax, qword [rcx + 0x50]
mov qword [rsp + 0x60], rax
jmp 0x100013d2b
mov ebx, 0x8007000e
call fcn.100013808
mov rsi, rax
cmp rax, r14
je 0x100013d26
mov rcx, qword [rdi + 0x50]
lea rax, [rsp + 0x60]
mov r9d, r13d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, rsi
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
mov eax, r14d
cmp ebx, r14d
setge al
mov dword [rbp], eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x60]
cmp ebx, r14d
jl 0x100013deb
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x6c]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x6c], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jl 0x100013dc8
cmp dword [rsp + 0x68], r14d
je 0x100013dc3
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov r9d, 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r14d
cmovle ebx, eax
cmp ebx, r14d
jge 0x100013de6
cmp ebx, 0x80070005
je 0x100013de6
cmp dword [rbp], r14d
je 0x100013de1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
jmp 0x100013deb
mov rax, qword [rsp + 0x60]
mov qword [r12], rax
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1000012d0
add rsp, 0x290
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001f90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov rdx, rcx
mov qword [rbp + 8], rdx
lea rcx, [rbp + 0x10]
call fcn.140001460
jmp 0x140001fbd
lea rcx, [rbp + 0x10]
call fcn.140001eb0
jmp 0x140001fc8
mov rcx, qword [rbp + 8]
call fcn.140001520
mov qword [rbp - 8], rdx
mov qword [rbp], rax
jmp 0x140001fdb
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp]
call fcn.1400034e0
mov qword [rbp - 0x10], rax
jmp 0x140001fee
mov rcx, qword [rbp + 8]
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x40], rax
call fcn.140001520
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rax
jmp 0x140002009
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x18]
call fcn.140003e00
mov qword [rbp - 0x28], rax
jmp 0x14000201c
mov rdx, qword [rbp - 0x28]
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0xa0], 0
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0x98]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x1000
mov r9d, 0x40
call rax
mov qword [rbp - 0x30], rax
jmp 0x140002075
mov rcx, qword [rbp + 8]
mov rax, qword [rbp - 0x30]
mov qword [rbp + 0x50], rax
call fcn.1400013d0
mov qword [rbp - 0x38], rax
jmp 0x14000208c
mov r8, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x70], rdx
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], r8
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp + 8]
call fcn.1400013d0
mov qword [rbp - 0x40], rax
jmp 0x1400020bb
mov rcx, qword [rbp - 0x40]
call fcn.140004430
mov qword [rbp - 0x48], rax
jmp 0x1400020ca
mov rcx, qword [rbp + 8]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x58], rax
call fcn.1400013d0
mov qword [rbp - 0x50], rax
jmp 0x1400020e1
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
call fcn.140004440
mov qword [rbp - 0x58], rax
jmp 0x1400020f4
mov rdx, qword [rbp + 8]
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x28]
call fcn.140001460
jmp 0x14000210b
mov r9, qword [rbp - 0x48]
mov r8, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
lea rdx, [rbp + 0x28]
call fcn.140004500
jmp 0x140002122
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call fcn.140004c00
jmp 0x140002131
mov rdx, qword [rbp - 0x58]
mov rcx, qword [rbp - 0x30]
call fcn.140004840
jmp 0x140002140
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x58]
mov ecx, dword [rcx + 0x28]
add rax, rcx
mov qword [rbp - 0x60], rax
setb al
test al, 1
jne 0x140002168
mov rcx, qword [rbp - 0x60]
mov qword [rbp + 0x68], rcx
call fcn.1400021d0
jmp 0x140002184
lea rcx, str.attempt_to_add_with_overflowwindow_size_must_be_non_zero
lea r8, str.C:UsersT3STDownloads_rspe_main_srclib.rs
mov edx, 0x1c
call fcn.14001d490
jmp 0x140002182
ud2
mov rcx, qword [rbp + 8]
call fcn.140001d30
nop
add rsp, 0x130
pop rbp
ret
Function at 0x140008310
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400083b0
jmp 0x14000839f
jae 0x140008470
cmp r8, 0x201
jae 0x1400083b0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140008408
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400083df
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001cba0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140008431
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400084d8
mov r8d, r14d
cmp r15, r8
jne 0x140008390
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008505
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000839f
jmp 0x1400083b0
cmp rsi, r8
jb 0x14000851f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140009680
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400084c1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001270
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400084a9
jmp 0x1400084c1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str._0e_
mov edx, 0x28
call fcn.14001d490
jmp 0x140008534
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001d8e0
ud2
Function at 0x14000d8f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1401b2ad8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000d934
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000d99a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000d9d1
test eax, eax
js 0x14000d9ab
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000d9c4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140009450
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140006630
mov ecx, 7
int 0x29
ud2
Function at 0x14001afd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001b04a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001b040
cmp r11, r10
ja 0x14001b0e1
cmp r10, rdx
ja 0x14001b0f3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001b042
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001b020
jmp 0x14001b0b7
ja 0x14001b04a
mov r11, r10
cmp rax, r8
jne 0x14001aff2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001b0bb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001b090
mov r8, r10
sub ecx, r9d
jns 0x14001b0ae
jmp 0x14001b0bd
cmp r10, rdx
je 0x14001b0c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001b0bd
xor al, 1
cmp r8, rdx
jne 0x14001b070
jmp 0x14001b0bd
xor eax, eax
jmp 0x14001b0bd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401b46bb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001d490
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d960
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d8e0
int3

Function at 0x14001c608
Capabilities:
Parse pe header

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