joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003b590
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18003bb20
mov qword [rsp + 0x28], 0
cmp qword [0x180099058], 0
jne 0x18003b5d8
cmp qword [0x180099050], 0
je 0x18003b5d8
mov rax, qword [0x180099050]
mov qword [0x180099058], rax
cmp qword [0x180099058], 0
je 0x18003b67e
mov rax, qword [0x180099058]
cmp qword [rax + 0x10], 0
je 0x18003b67e
mov rax, qword [0x180099058]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003b67e
mov rax, qword [0x180099058]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003b67e
mov rax, qword [0x180099058]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18003b644
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18003b64b
xor eax, eax
jmp 0x18003b7f9
mov rax, qword [0x180099058]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18003b7f9
mov rax, qword [0x180099050]
mov qword [0x180099058], rax
jmp 0x18003b6a0
mov rax, qword [0x180099058]
mov rax, qword [rax + 8]
mov qword [0x180099058], rax
cmp qword [0x180099058], 0
je 0x18003b6ed
cmp qword [0x180099058], 0
je 0x18003b6eb
mov rax, qword [0x180099058]
cmp qword [rax + 0x10], 0
je 0x18003b6eb
mov rax, qword [0x180099058]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003b6eb
mov rax, qword [0x180099058]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003b6eb
jmp 0x18003b61c
jmp 0x18003b68e
mov rcx, qword [rsp + 0x60]
call fcn.18003d990
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18003b800
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18003b7f7
mov rax, qword [rsp + 0x48]
mov qword [0x180099058], rax
mov rax, qword [0x180099058]
mov dword [rax], 0x52727464
mov rax, qword [0x180099058]
mov qword [rax + 0x10], 0
mov rax, qword [0x180099058]
mov rcx, qword [0x180099050]
mov qword [rax + 8], rcx
mov rax, qword [0x180099058]
mov qword [0x180099050], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180099058]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18003b7a8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18003b7e2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18003b79e
mov rax, qword [0x180099058]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18003b61c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18003c510
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18003c557
xor al, al
jmp 0x18003c5f9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18003c581
xor al, al
jmp 0x18003c5f9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18003c5f1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18003c5f1
mov al, 1
jmp 0x18003c5f9
jmp 0x18003c5f7
xor al, al
add rsp, 0x78
ret

Function at 0x18003c900
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180099050]
mov qword [rsp + 0x28], rax
jmp 0x18003c920
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003c94f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18003c94d
call sub.KERNEL32.dll_GetLastError
jmp 0x18003c951
jmp 0x18003c912
xor eax, eax
add rsp, 0x38
ret
Function at 0x18003cfe0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180099068], eax
je 0x18003d00d
mov eax, 0x10dd
jmp 0x18003d226
cmp dword [0x18009906c], 0
je 0x18003d021
mov eax, dword [0x18009906c]
jmp 0x18003d226
cmp qword [rsp + 0x78], 0
jne 0x18003d033
mov eax, 0x57
jmp 0x18003d226
cmp qword [rsp + 0x70], 0
jne 0x18003d045
mov eax, 6
jmp 0x18003d226
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x18003d077
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18009906c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x180099070], rax
mov eax, dword [rsp + 0x20]
jmp 0x18003d226
mov ecx, 0x30
call fcn.18003eea4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18003d0e9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18009906c], eax
cmp qword [rsp + 0x30], 0
je 0x18003d0d4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.18003f268
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x180099070], rax
mov eax, dword [rsp + 0x20]
jmp 0x18003d226
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.18003cfb0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.18003cfb0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x18003d146
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x18003d163
mov dword [rsp + 0x20], 9
cmp dword [0x180099060], 0
je 0x18003d15e
jmp 0x18003d0aa
jmp 0x18003d0a0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x18003d190
mov dword [rsp + 0x20], 9
cmp dword [0x180099060], 0
je 0x18003d18b
jmp 0x18003d0aa
jmp 0x18003d0a0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18003d1c7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18003d0a0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x180099080]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x180099080], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003d230
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180099068], eax
je 0x18003d24b
mov eax, 0x10dd
jmp 0x18003d370
mov rax, qword [0x180099080]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003d2f5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x18003d2c0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18003d2c0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18003bc60
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18003f268
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18003d257
mov qword [0x180099080], 0
call fcn.18003c6c0
mov rax, qword [0x180099078]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18003d359
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18003f268
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18003d311
mov qword [0x180099078], 0
mov dword [0x180099068], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18003d8a0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18009906c], 0
je 0x18003d8bd
mov eax, dword [0x18009906c]
jmp 0x18003d983
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x18003d8d0
xor eax, eax
jmp 0x18003d983
mov ecx, 0x10
call fcn.18003eea4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18003d93e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x18003d923
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18003f268
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18009906c], eax
mov qword [0x180099070], 0
mov eax, dword [rsp + 0x20]
jmp 0x18003d983
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x18003d958
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x18003d8f9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180099078]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180099078], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x14005cd00
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005cd0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005cd1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005cd05
lea eax, [rcx + 1]
jmp 0x14005cd2b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005cd3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005cd24
sub eax, 3
jb 0x14005cd5e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005cdad
sar eax, 1
movsxd rbp, eax
jb 0x14005cd94
jmp 0x14005cd6c
add ebx, ebx
jne 0x14005cd6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005cd94
inc ecx
add ebx, ebx
jne 0x14005cd7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005cd94
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005cd8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005cd7c
add ecx, 2
jmp 0x14005cd99
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005ccc2
jmp 0x14005cd0d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3000
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005cdfd
cmp rsi, rcx
jae 0x14005ce05
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005cde4
cmp al, 0x8f
ja 0x14005cde4
cmp byte [rsi - 2], 0xf
je 0x14005cdea
sub al, 0xe8
cmp al, 1
ja 0x14005cdce
cmp rsi, rcx
jae 0x14005ce05
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005cdd4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005ce05
lodsb al, byte [rsi]
jmp 0x14005cde4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5a000]
mov eax, dword [rdi]
or eax, eax
je 0x14005ce62
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5c3e8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005ce12
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005ce5c
mov qword [rbx], rax
add rbx, 8
jmp 0x14005ce32
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14005ce9c
cmp al, 0xef
ja 0x14005ce8e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14005ce6e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14005ce7d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.14005cf1b], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14005cf1b
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005cf0b
sub rsp, 0xffffffffffffff80
jmp 0x1400014d0
Function at 0x140007560
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 0x140007600
jmp 0x1400075ef
jae 0x1400076c0
cmp r8, 0x201
jae 0x140007600
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140007658
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000762f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001d220
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 0x140007681
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007728
mov r8d, r14d
cmp r15, r8
jne 0x1400075e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140007755
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400075ef
jmp 0x140007600
cmp rsi, r8
jb 0x14000776f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400096b0
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 0x140007711
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140004de0
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 0x1400076f9
jmp 0x140007711
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001dc30
jmp 0x140007784
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001e080
ud2
Function at 0x14000d930
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 [0x1400212f8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000d974
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 0x14000d9da
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000da11
test eax, eax
js 0x14000d9eb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000da04
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.1400093f0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140005860
mov ecx, 7
int 0x29
ud2
Function at 0x14001b650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001b6ca
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 0x14001b6c0
cmp r11, r10
ja 0x14001b761
cmp r10, rdx
ja 0x14001b773
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001b6c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001b6a0
jmp 0x14001b737
ja 0x14001b6ca
mov r11, r10
cmp rax, r8
jne 0x14001b672
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001b73b
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 0x14001b710
mov r8, r10
sub ecx, r9d
jns 0x14001b72e
jmp 0x14001b73d
cmp r10, rdx
je 0x14001b749
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001b73d
xor al, 1
cmp r8, rdx
jne 0x14001b6f0
jmp 0x14001b73d
xor eax, eax
jmp 0x14001b73d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14002315b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001dc30
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001e100
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001e080
int3

Function at 0x14001cc88
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14004940d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004941d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140049405
lea eax, [rcx + 1]
jmp 0x14004942b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004943e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140049424
sub eax, 3
jb 0x14004945e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400494ad
sar eax, 1
movsxd rbp, eax
jb 0x140049494
jmp 0x14004946c
add ebx, ebx
jne 0x14004946a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140049494
inc ecx
add ebx, ebx
jne 0x14004947a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140049494
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004948d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004947c
add ecx, 2
jmp 0x140049499
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400493c2
jmp 0x14004940d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400494f9
cmp rsi, rcx
jae 0x140049501
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400494e0
cmp al, 0x8f
ja 0x1400494e0
cmp byte [rsi - 2], 0xf
je 0x1400494e6
sub al, 0xe8
cmp al, 1
ja 0x1400494ca
cmp rsi, rcx
jae 0x140049501
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400494d0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140049501
lodsb al, byte [rsi]
jmp 0x1400494e0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x47000]
mov eax, dword [rdi]
or eax, eax
je 0x14004955e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x49fa8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004950e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140049558
mov qword [rbx], rax
add rbx, 8
jmp 0x14004952e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140049598
cmp al, 0xef
ja 0x14004958a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004956a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140049579
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400495ec
sub rsp, 0xffffffffffffff80
jmp 0x14000b7d0