joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c7470
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.1800c7a00
mov qword [rsp + 0x28], 0
cmp qword [0x180173d18], 0
jne 0x1800c74b8
cmp qword [0x180173d10], 0
je 0x1800c74b8
mov rax, qword [0x180173d10]
mov qword [0x180173d18], rax
cmp qword [0x180173d18], 0
je 0x1800c755e
mov rax, qword [0x180173d18]
cmp qword [rax + 0x10], 0
je 0x1800c755e
mov rax, qword [0x180173d18]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800c755e
mov rax, qword [0x180173d18]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800c755e
mov rax, qword [0x180173d18]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800c7524
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800c752b
xor eax, eax
jmp 0x1800c76d9
mov rax, qword [0x180173d18]
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 0x1800c76d9
mov rax, qword [0x180173d10]
mov qword [0x180173d18], rax
jmp 0x1800c7580
mov rax, qword [0x180173d18]
mov rax, qword [rax + 8]
mov qword [0x180173d18], rax
cmp qword [0x180173d18], 0
je 0x1800c75cd
cmp qword [0x180173d18], 0
je 0x1800c75cb
mov rax, qword [0x180173d18]
cmp qword [rax + 0x10], 0
je 0x1800c75cb
mov rax, qword [0x180173d18]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800c75cb
mov rax, qword [0x180173d18]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800c75cb
jmp 0x1800c74fc
jmp 0x1800c756e
mov rcx, qword [rsp + 0x60]
call fcn.1800c9880
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.1800c76e0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800c76d7
mov rax, qword [rsp + 0x48]
mov qword [0x180173d18], rax
mov rax, qword [0x180173d18]
mov dword [rax], 0x52727464
mov rax, qword [0x180173d18]
mov qword [rax + 0x10], 0
mov rax, qword [0x180173d18]
mov rcx, qword [0x180173d10]
mov qword [rax + 8], rcx
mov rax, qword [0x180173d18]
mov qword [0x180173d10], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180173d18]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800c7688
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800c76c2
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 0x1800c767e
mov rax, qword [0x180173d18]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800c74fc
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001dc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rdx
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 7]
cmp dword [rcx + 0x1c], edx
jne 0x140001e08
mov edx, dword [rcx + 0x14]
add rdx, qword [rcx + 8]
lea rcx, [rsp + 0x20]
call fcn.140015fc0
jmp 0x140001e16
mov r9, qword [rcx + 0x28]
lea rcx, [rsp + 0x20]
call fcn.1400169f4
movzx ecx, byte [rsp + 0x24]
movzx eax, byte [rsp + 0x25]
add dword [rbx + 0x14], 8
shl ecx, 8
lea rdx, [0x140037060]
xor ebx, ebx
or ecx, eax
movzx eax, byte [rsp + 0x26]
mov byte [rsp + 0x24], bl
shl ecx, 8
or ecx, eax
movzx eax, byte [rsp + 0x27]
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
lea rcx, [rsp + 0x20]
call fcn.140016ca0
test eax, eax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015ef0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400133bc
Capabilities:
Get file size

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 r14
sub rsp, 0x40
xor r14d, r14d
mov rbx, rcx
cmp dword [rcx + 0x1c], r14d
jne 0x140013453
mov qword [rax - 0x18], r14
mov dword [rax - 0x20], 0x80
lea r8d, [r14 + 1]
xor r9d, r9d
mov edx, 0x80000000
add rcx, 0x38
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013417
mov esi, r14d
jmp 0x14001342d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x14003704c]
lea rcx, [rbx + 0x38]
mov dword [rbx + 0x18], esi
call fcn.140016604
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140013457
mov eax, 2
jmp 0x14001360c
mov qword [rcx + 0x28], r14
cmp dword [rbx + 0x20], r14d
jne 0x140013491
lea rcx, [rbx + 0x240]
lea rdx, [0x140037058]
call fcn.140016604
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140013495
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140013487
call fcn.14001676c
mov eax, 3
jmp 0x14001360c
mov qword [rbx + 0x30], r14
mov eax, 0x20
mov rcx, rbx
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x450], r14
mov dword [rbx + 0x468], r14d
mov dword [rbx + 0x458], r14d
mov word [rbx + 0x474], ax
mov dword [rbx + 0x470], r14d
mov byte [rbx + 0x46c], r14b
mov dword [rbx + 0x4b8], r14d
call fcn.140013628
mov edi, eax
test eax, eax
jne 0x1400135ee
mov rcx, qword [rbx + 0x460]
lea rdx, [0x140037060]
call fcn.140018ad0
add dword [rbx + 0x468], 4
mov edx, dword [rbx + 0x468]
mov al, byte [rbx + 0x1b]
mov rcx, qword [rbx + 0x460]
mov byte [rdx + rcx], al
inc dword [rbx + 0x468]
mov edx, dword [rbx + 0x468]
mov rcx, qword [rbx + 0x460]
mov al, byte [rbx + 0x1a]
mov byte [rdx + rcx], al
inc dword [rbx + 0x468]
mov edx, dword [rbx + 0x468]
mov ecx, dword [rbx + 0x18]
mov rax, qword [rbx + 0x460]
shr ecx, 8
mov byte [rdx + rax], cl
inc dword [rbx + 0x468]
mov edx, dword [rbx + 0x468]
mov rcx, qword [rbx + 0x460]
mov al, byte [rbx + 0x18]
mov byte [rdx + rcx], al
inc dword [rbx + 0x468]
mov rcx, rbx
call fcn.140013ba0
mov edx, 0x10000
mov rcx, r14
mov r8d, edx
mov rax, qword [rbx + 0x480]
mov qword [rcx + rax], r14
lea rcx, [rcx + 8]
dec r8
jne 0x140013575
mov rcx, r14
mov rax, qword [rbx + 0x488]
mov dword [rcx + rax], r14d
lea rcx, [rcx + 4]
dec rdx
jne 0x14001358c
mov eax, dword [rbx + 0x490]
mov r9d, r14d
mov dword [rbx + 0x494], eax
test eax, eax
je 0x1400135dc
mov rax, qword [rbx + 0x498]
mov r8d, r9d
inc r9d
lea rcx, [r8 + r8*2]
lea rdx, [rax + rcx*8]
mov rax, qword [rbx + 0x4a0]
mov qword [rax + r8*8], rdx
cmp r9d, dword [rbx + 0x490]
jb 0x1400135b3
mov rcx, rbx
call fcn.140013810
mov rcx, rbx
mov edi, eax
call fcn.140013730
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400135fc
call fcn.14001676c
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001360a
call fcn.14001676c
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001fa4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001fee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001fee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_RtlVirtualUnwind
jne 0x140001fee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001fee
cmp dword [rcx + 0x84], 0xe
jbe 0x140001fee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ff0
xor al, al
add rsp, 0x28
ret
Function at 0x140005d90
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 0x20], 0
cmp qword [rdx + 0x10], 0
je 0x140005e8b
mov qword [rbp - 0x10], rdx
lea rcx, [0x140043b9a]
call sub.oleaut32.dll_SysAllocString
mov rdi, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov rbx, rax
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8, rbx
mov r9d, 0x30
call rax
mov r14d, eax
mov rcx, rdi
call sub.oleaut32.dll_SysFreeString
mov rcx, rbx
call sub.oleaut32.dll_SysFreeString
test r14d, r14d
mov rdx, qword [rbp - 0x10]
js 0x140005e8b
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
cmp qword [rdx + 0x20], 0
je 0x140005e4f
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140005e4f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 0x20], 1
mov rax, qword [rbp - 0x18]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rsi + 0x30], rax
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, qword [rcx + 0x20]
mov qword [rsi + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rsi + 0x28], rax
jmp 0x140005e9a
mov qword [rsi], 2
mov rcx, rdx
call fcn.140004de0
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140007dc0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rdi, rcx
lea rdx, [rbp - 4]
mov rcx, rax
call sub.shell32.dll_CommandLineToArgvW
test rax, rax
je 0x140007eb3
mov rsi, rax
mov qword [rbp - 0x28], rdi
movsxd rax, dword [rbp - 4]
mov qword [rbp - 0x20], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
lea r13, [rsi + rax*8]
lea rbx, [rbp - 0x40]
lea r14, [rbp - 0x58]
lea r15, [rbp - 0x20]
mov rdi, rsi
jmp 0x140007e51
add rdi, 8
mov rax, qword [rbp - 0x20]
lea rcx, [rdx + rdx*2]
mov rdx, qword [rbp - 0x30]
mov qword [rax + rcx*8 + 0x10], rdx
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax + rcx*8], xmm0
inc qword [rbp - 0x10]
cmp rdi, r13
je 0x140007e96
mov r12, qword [rdi]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rax
mov word [rbp - 0x48], 0
mov rcx, rbx
mov rdx, r14
call fcn.1400142c0
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x18]
jne 0x140007e30
mov rcx, r15
call fcn.140013ec0
mov rdx, qword [rbp - 0x10]
jmp 0x140007e30
mov rcx, rsi
call sub.kernel32.dll_LocalFree
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
jmp 0x140007ec1
mov qword [rdi], 8
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14000fe20
Capabilities:
Get disk information

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov rsi, rcx
call sub.kernel32.dll_GetLogicalDrives
mov dword [rbp + 0x14], eax
test eax, eax
je 0x14000feec
mov qword [rbp - 0x10], 8
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rax, [rbp + 0x14]
mov qword [rbp - 0x20], rax
movabs rax, 0x2000000000
mov qword [rbp - 0x18], rax
mov qword [rbp + 0xc], rax
lea rcx, [rbp + 0xc]
call fcn.140018810
mov rdi, rax
mov ebx, dword [rbp + 0xc]
mov r14d, dword [rbp + 0x10]
call fcn.14001c990
xor ecx, ecx
cmp rdi, 0xffffffffffffffff
sete cl
cmp rcx, rax
cmova rax, rcx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], 1
lea rcx, [rbp - 0x38]
mov rdx, rdi
xor r8d, r8d
mov r9, rax
call fcn.14000e2e0
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x38]
call fcn.140014a00
mov rax, qword [rbp]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsi], xmm0
jmp 0x14000fefa
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140010c80
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140010cc2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140010cca
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140010cdb
jmp 0x140010cf2
xor r10d, r10d
jmp 0x140010d7d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140010cf2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140010d09
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140010d29
add r11, r8
jmp 0x140010e5a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140010df2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140010da0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140010e10
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140010e22
jmp 0x140010e3c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140010e3c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140010e56
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001c490
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov rsi, rcx
movups xmm0, xmmword [rdx + 0x20]
movups xmm1, xmmword [rdx + 0x30]
movaps xmmword [rbp - 0x40], xmm1
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [rdx + 0x10]
movzx r14d, byte [rdx + 0x18]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x28], rax
mov byte [rbp - 0x20], r14b
movzx eax, byte [0x14005a141]
mov ecx, 0x5f0
mov edx, 8
call fcn.140002e50
test rax, rax
mov qword [rbp - 8], rbx
je 0x14001c706
mov rdi, rax
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x60]
mov qword [rbp - 0x10], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
nop word cs:[rax + rax]
mov eax, 1
lock xadd qword [0x14005a158], rax
mov r13, rax
xor r13, rcx
lea r15, [rdx + r13]
mov rbx, r13
rol rbx, 0x10
xor rbx, r15
lea r12, [rbx + r8]
rol rbx, 0x15
add r13, r9
mov r15, r13
xor r15, r10
rol r13, 0x20
xor rax, r12
add rax, r15
rol r15, 0xd
xor r12, r11
xor r15, rax
rol rax, 0x20
xor r12, rbx
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r12, rax
xor r15, r13
rol r13, 0x20
xor rax, r11
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
xor r13, 0xff
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
add r13, r12
rol r12, 0x10
xor r12, r13
add rax, r12
rol r12, 0x15
add r13, r15
rol r15, 0x11
xor r15, r13
rol r13, 0x20
xor r12, rax
add rax, r15
rol r15, 0xd
add r13, r12
rol r12, 0x10
xor r12, r13
rol r12, 0x15
xor r15, rax
add r13, r15
rol r15, 0x11
mov rax, r13
rol rax, 0x20
xor rax, r15
xor rax, r12
xor rax, r13
je 0x14001c560
mov rdx, qword [rbp - 8]
mov rcx, qword [rdx + 0x40]
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rsi + 0x128], xmm1
movups xmmword [rsi + 0x118], xmm0
mov r8, qword [rbp - 0x18]
mov qword [rsi + 0x138], r8
mov byte [rsi + 0x140], r14b
mov qword [rsi], 0
mov qword [rsi + 8], rdi
mov qword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov r8, qword [rbp - 0x10]
mov qword [rsi + 0x100], r8
mov qword [rsi + 0x108], rax
mov qword [rsi + 0x110], rcx
mov rcx, qword [rdx + 0x48]
test rcx, rcx
je 0x14001c6f2
mov rdx, qword [rdx + 0x50]
test rdx, rdx
je 0x14001c6f2
mov r8d, 1
call fcn.140002e60
mov rax, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.140042750
ud2
Function at 0x140024c20
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140024c56
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140024c66
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x140024c80
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 0x140024d10
jmp 0x140024cff
jae 0x140024dd0
cmp r8, 0x201
jae 0x140024d10
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140024d68
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x140024d3f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140041d10
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 0x140024d91
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140024e38
mov r8d, r14d
cmp r15, r8
jne 0x140024cf0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140024e5b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140024cff
jmp 0x140024d10
cmp rsi, r8
jb 0x140024e75
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400276d0
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 0x140024e21
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140002e60
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 0x140024e09
jmp 0x140024e21
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140042860
jmp 0x140024e8a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140042c50
ud2
Function at 0x14002ce40
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 [0x140047e88]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14002ce84
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 0x14002ceea
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002cf21
test eax, eax
js 0x14002cefb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002cf14
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
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.1400220d0
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140027350
mov rcx, rax
call fcn.140022650
mov ecx, 7
int 0x29
ud2

Function at 0x14002ddb0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14002dde8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14002de00
nop
add rsp, 0x38
ret

Function at 0x14002de00
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 0x14002de43
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, [0x140025b60]
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.1400427c0
ud2
Function at 0x14002e490
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
mov rsi, rcx
movzx eax, byte [0x14005a141]
mov ecx, 0x10
mov edx, 8
call fcn.140002e50
test rax, rax
je 0x14002e56f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14002e600]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14002e561
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14002e538
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140002e60
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call 0x13d4bfa33
invalid
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140042750
ud2