joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004ee0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140194040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
xor ebx, ebx
mov qword [rsp + 0x48], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8, rax
lea rdx, [rsp + 0x20]
call fcn.140004ca0
lea rcx, [rsp + 0x38]
cmp rcx, rax
je 0x140004f49
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x48], rcx
mov qword [rax], rbx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbx
lea rcx, [rsp + 0x20]
call fcn.140004fb0
nop
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call fcn.140004e00
test al, al
je 0x140004f89
nop dword [rax]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x38]
call fcn.140004e00
test al, al
jne 0x140004f70
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140009a40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140194040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140005ea0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140009e20
nop
lea rax, [0x1400099b0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.1400055b0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140009ae3
lea rcx, [rsp + 0x40]
call fcn.140088cf0
jmp 0x140009afa
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x40]
call fcn.14000a400
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14018cd70
add rsp, 0x58
ret
Function at 0x140088630
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x140088645
xor eax, eax
jmp 0x1400886ac
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140088662
xor eax, eax
jmp 0x1400886ac
mov dword [rsp + 4], 0x400
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x3c]
mov dword [rsp], eax
cmp dword [rsp], 0x400
jle 0x140088682
xor eax, eax
jmp 0x1400886ac
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x1400886a7
xor eax, eax
jmp 0x1400886ac
mov rax, qword [rsp + 0x10]
add rsp, 0x28
ret
Function at 0x1401892c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140189510
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1401893da
mov rax, qword [0x140194020]
cmp qword [rsp + 0x20], rax
jb 0x140189324
mov rax, qword [0x140194028]
cmp qword [rsp + 0x20], rax
ja 0x140189324
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1401892e6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140189355
jmp 0x1401893da
cmp dword [rsp + 0x50], 0x10000
jne 0x1401893bd
cmp qword [rsp + 0x48], 0x10000
jb 0x1401893bd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14018939b
mov rax, qword [rsp + 0x28]
jmp 0x1401893dc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1401893ab
xor eax, eax
jmp 0x1401893dc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1401893d5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140189510
mov qword [rsp + 0x20], rax
jmp 0x1401892e6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1401893f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.140189550
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140189506
mov rax, qword [0x140194020]
cmp qword [rsp + 0x20], rax
jb 0x14018944b
mov rax, qword [0x140194028]
cmp qword [rsp + 0x20], rax
ja 0x14018944b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14018940d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14018947c
jmp 0x140189506
cmp dword [rsp + 0x50], 0x10000
jne 0x1401894e4
cmp qword [rsp + 0x48], 0x10000
jb 0x1401894e4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401894c2
mov rax, qword [rsp + 0x28]
jmp 0x140189508
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1401894d2
xor eax, eax
jmp 0x140189508
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140189501
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140189550
mov qword [rsp + 0x20], rax
jmp 0x14018940d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1401895a0
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.140189b30
mov qword [rsp + 0x28], 0
cmp qword [0x140194b38], 0
jne 0x1401895e8
cmp qword [0x140194b30], 0
je 0x1401895e8
mov rax, qword [0x140194b30]
mov qword [0x140194b38], rax
cmp qword [0x140194b38], 0
je 0x14018968e
mov rax, qword [0x140194b38]
cmp qword [rax + 0x10], 0
je 0x14018968e
mov rax, qword [0x140194b38]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14018968e
mov rax, qword [0x140194b38]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14018968e
mov rax, qword [0x140194b38]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140189654
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14018965b
xor eax, eax
jmp 0x140189805
mov rax, qword [0x140194b38]
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 0x140189805
mov rax, qword [0x140194b30]
mov qword [0x140194b38], rax
jmp 0x1401896b0
mov rax, qword [0x140194b38]
mov rax, qword [rax + 8]
mov qword [0x140194b38], rax
cmp qword [0x140194b38], 0
je 0x1401896fd
cmp qword [0x140194b38], 0
je 0x1401896fb
mov rax, qword [0x140194b38]
cmp qword [rax + 0x10], 0
je 0x1401896fb
mov rax, qword [0x140194b38]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1401896fb
mov rax, qword [0x140194b38]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1401896fb
jmp 0x14018962c
jmp 0x14018969e
mov rax, qword [rsp + 0x60]
and rax, 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.140189810
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140189803
mov rax, qword [rsp + 0x48]
mov qword [0x140194b38], rax
mov rax, qword [0x140194b38]
mov dword [rax], 0x52727464
mov rax, qword [0x140194b38]
mov qword [rax + 0x10], 0
mov rax, qword [0x140194b38]
mov rcx, qword [0x140194b30]
mov qword [rax + 8], rcx
mov rax, qword [0x140194b38]
mov qword [0x140194b30], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140194b38]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1401897b4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1401897ee
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 0x1401897aa
mov rax, qword [0x140194b38]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14018962c
xor eax, eax
add rsp, 0x58
ret
Function at 0x14018a520
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 0x14018a567
xor al, al
jmp 0x14018a609
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 0x14018a591
xor al, al
jmp 0x14018a609
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 0x14018a601
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 0x14018a601
mov al, 1
jmp 0x14018a609
jmp 0x14018a607
xor al, al
add rsp, 0x78
ret

Function at 0x14018a910
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140194b30]
mov qword [rsp + 0x28], rax
jmp 0x14018a930
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14018a95f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14018a95d
call sub.KERNEL32.dll_GetLastError
jmp 0x14018a961
jmp 0x14018a922
xor eax, eax
add rsp, 0x38
ret
Function at 0x14018b020
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140194b48], eax
je 0x14018b03b
mov eax, 0x10dd
jmp 0x14018b160
mov rax, qword [0x140194b60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14018b0e5
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 0x14018b0b0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x14018b0b0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140189c70
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.14018cc54
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x14018b047
mov qword [0x140194b60], 0
call fcn.14018a6d0
mov rax, qword [0x140194b58]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14018b149
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.14018cc54
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x14018b101
mov qword [0x140194b58], 0
mov dword [0x140194b48], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x14018b690
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x140194b4c], 0
je 0x14018b6ad
mov eax, dword [0x140194b4c]
jmp 0x14018b773
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x14018b6c0
xor eax, eax
jmp 0x14018b773
mov ecx, 0x10
call fcn.14018cc10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14018b72e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x14018b713
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.14018cc54
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x140194b4c], eax
mov qword [0x140194b50], 0
mov eax, dword [rsp + 0x20]
jmp 0x14018b773
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x14018b748
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x14018b6e9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140194b58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x140194b58], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x14018d7ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14018d836
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14018d836
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14018d836
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14018d836
cmp dword [rcx + 0x84], 0xe
jbe 0x14018d836
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14018d838
xor al, al
add rsp, 0x28
ret
Function at 0x140003ae0
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], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140003b70
jmp 0x140003b5f
jae 0x140003c30
cmp r8, 0x201
jae 0x140003b70
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140003bc8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140003b9f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001a610
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
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 0x140003bf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003c98
mov r8d, r14d
cmp r15, r8
jne 0x140003b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003cbb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003b5f
jmp 0x140003b70
cmp rsi, r8
jb 0x140003cd5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140006030
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 rdi, rdi
je 0x140003c81
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001260
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], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140003c69
jmp 0x140003c81
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001b250
jmp 0x140003cea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001b6a0
ud2
Function at 0x14000aea0
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 [0x14001ded8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000aee4
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 0x14000af4a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000af81
test eax, eax
js 0x14000af5b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000af74
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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.140005ce0
mov rcx, rax
call fcn.140001bf0
mov ecx, 7
int 0x29
ud2
Function at 0x140018540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400185ba
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 0x1400185b0
cmp r11, r10
ja 0x140018653
cmp r10, rdx
ja 0x140018667
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400185b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018590
jmp 0x140018627
ja 0x1400185ba
mov r11, r10
cmp rax, r8
jne 0x140018562
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001862b
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 0x140018600
mov r8, r10
sub ecx, r9d
jns 0x14001861e
jmp 0x14001862d
cmp r10, rdx
je 0x140018639
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001862d
xor al, 1
cmp r8, rdx
jne 0x1400185e0
jmp 0x14001862d
xor eax, eax
jmp 0x14001862d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001b250
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b720
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b6a0
ud2

Function at 0x14001a07c
Capabilities:
Parse pe header

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

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417bcb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004365a0
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x417aa5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x417ab4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x417ad3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x417ae3
cmp rbx, 0x1000
jae 0x417aab
jmp 0x417b4d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x417af5
xor edx, edx
jmp 0x417b44
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004365a0
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x417ad9
jmp 0x417ac8
call fcn.0046cbc0
xorps xmm15, xmm15
mov r14, qword [0x006e7570]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.0043aa80
lea rax, [0x0055af5c]
mov ebx, 0x18
nop dword [rax]
call fcn.0043b300
mov rax, qword [rsp + 0x38]
call fcn.0043b040
lea rax, [0x0055b4e6]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.0043b300
mov rax, qword [rsp + 0x30]
call fcn.0043b040
call fcn.0043acc0
call fcn.0043aae0
lea rax, [0x0055dda2]
mov ebx, 0x21
call fcn.00438fe0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469460
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00417a40