joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ef54
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f814
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001efde
cmp byte [rbp - 0x21], r15b
je 0x14001efd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001f014
call fcn.140013e48
test eax, eax
jne 0x14001f000
cmp byte [rbp - 0x21], r15b
je 0x14001eff8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001f014
cmp byte [rbp - 0x21], r15b
je 0x14001f011
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000f998
test eax, eax
jne 0x14001f0b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f814
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001f053
cmp byte [rbp - 0x21], r15b
je 0x14001f088
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001f088
call fcn.140013e48
test eax, eax
jne 0x14001f074
cmp byte [rbp - 0x21], r15b
je 0x14001f06d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001f088
cmp byte [rbp - 0x21], r15b
je 0x14001f085
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000f998
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001f0b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001f0b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001f0c5
mov rcx, rdi
call fcn.140013b44
cmp byte [rbp + 0x3f], r15b
je 0x14001f0d4
mov rcx, qword [rbp + 0x27]
call fcn.140013b44
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140020840
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020868
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020868
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000ef40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000efd0
cmp r10, r11
jb 0x14000f046
cmp r10, rdx
ja 0x14000f05a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000efd2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000efb0
jmp 0x14000f034
ja 0x14000efda
mov r11, r10
cmp rax, r8
jne 0x14000ef74
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000f010
mov rdi, r8
sub ecx, edx
jns 0x14000f02b
jmp 0x14000f036
cmp r8, rsi
je 0x14000f06b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000f036
xor al, 1
cmp rdi, rsi
jne 0x14000eff0
jmp 0x14000f036
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140070700
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400704a0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_std_src_syncmpmclist.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400704b0
ud2
Function at 0x14001d090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001d0eb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001d0eb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14001d106
cmp eax, 0x42
jne 0x14001d0eb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14001d1b6
cmp byte [r9 + r11], 0x5f
jne 0x14001d1b6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001d21e
mov rcx, rsi
xor edx, edx
call fcn.140018c20
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140018c20
test al, al
jne 0x14001d2b1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001d142
lea rdx, [0x140079b43]
mov r8d, 1
call fcn.1400084a0
test al, al
jne 0x14001d2b1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001d0fa
xor r14d, r14d
lea rbx, [0x140079fa5]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14001d174
cmp byte [rax + rcx], 0x45
je 0x14001d2d3
sub r14, 1
jb 0x14001d199
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001d199
mov r8d, 2
mov rdx, rbx
call fcn.1400084a0
test al, al
jne 0x14001d2b1
mov rcx, rsi
call fcn.14001d2f0
test al, al
jne 0x14001d2b1
mov rax, qword [rsi]
test rax, rax
jne 0x14001d160
jmp 0x14001d0fa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14001d278
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14001d212
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001d1fc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001d1eb
add dl, 0xa9
jmp 0x14001d1fa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14001d278
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14001d278
movzx edx, bl
add rax, rdx
jae 0x14001d1c0
jmp 0x14001d278
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14001d278
cmp rax, rcx
jae 0x14001d275
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001d2cb
cmp qword [rsi + 0x20], 0
je 0x14001d2df
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14001d090
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001d0fc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001d2b9
lea rax, [0x140079f71]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400084a0
test al, al
je 0x14001d2b9
mov dil, 2
jmp 0x14001d0fa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001d0fa
mov dil, 1
xor r8d, r8d
jmp 0x14001d27a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001d0fa
xor edi, edi
jmp 0x14001d0fa
Function at 0x140026640
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400266b9
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x1400266f0
test eax, eax
js 0x1400266ca
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400266e3
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, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, [0x14007c728]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [fcn.140008800]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400247d0
mov rcx, rax
call fcn.1400248f0
mov ecx, 7
int 0x29
ud2
Function at 0x140027c80
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 edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x140027d20
jmp 0x140027d0f
jae 0x140027ddf
cmp r8, 0x201
jae 0x140027d20
lea r15, [rbp - 0x58]
mov r12d, 0x200
mov r13, r8
jmp 0x140027d78
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x140027d4f
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.140071af0
mov rdi, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, qword [rbp + 0x3e8]
mov r12, r14
mov r13, r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r13d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x140027da0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140027e3e
mov r8d, esi
cmp r13, r8
jne 0x140027d00
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140027e61
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x140027d0f
jmp 0x140027d20
cmp r12, r8
jb 0x140027e7b
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140028180
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x140027e29
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
call int.140001560
nop
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 rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rdi, rdi
jne 0x140027e18
jmp 0x140027e29
lea rcx, [0x14007dbca]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400704b0
jmp 0x140027e90
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.1400704a0
ud2
Function at 0x140029c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140029c50
test ecx, ecx
jne 0x140029ca0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140029c5c
test ecx, ecx
jne 0x140029ca0
mov rcx, rdi
call fcn.140029b00
movzx eax, al
test bpl, bpl
jne 0x140029ca7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140029c93.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140029e18]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140029c93.2
xor eax, eax
test bpl, bpl
je 0x140029c6c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140029df9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140029cda
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140029d59
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140029d20
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140029d3b
inc rax
dec rdi
cmp rax, 1
jne 0x140029d00
jmp 0x140029d59
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140029d3b
cmp ebx, 0x5c
je 0x140029d3b
inc rax
dec rdi
cmp rax, 1
jne 0x140029d20
jmp 0x140029d59
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140029e07
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140029d83
mov al, 9
cmp rdx, 2
je 0x140029d87
cmp rdx, 1
jne 0x140029d97
cmp byte [r8], 0x2e
jne 0x140029d97
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140029d97
mov al, 0xa
jmp 0x140029d97
cmp byte [r8], 0x2e
jne 0x140029d97
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140029c93.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140029c93.2
mov ecx, 2
jmp case.0x140029c93.2
lea r8, str.library_std_srcpath.rs
call fcn.140070490
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140070490
ud2
Function at 0x14002c0e0
Capabilities:
Set environment variable

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r9
lea rsi, [rbp - 0x10]
mov rcx, rsi
call fcn.1400271d0
mov r15, qword [rbp - 0x10]
mov rdi, qword [rbp - 8]
test rdi, rdi
je 0x14002c1a3
mov rax, qword [rbp]
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x10]
mov rdx, r14
mov r8, rbx
call fcn.1400271d0
mov r12, qword [rbp - 0x10]
mov r14, qword [rbp - 8]
test r14, r14
je 0x14002c1c0
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x14002c249
xor ebx, ebx
test r12, r12
je 0x14002c18a
mov edx, 2
mov rcx, r14
call int.140001560
test r15, r15
je 0x14002c1a9
mov edx, 2
mov rcx, rdi
call int.140001560
test rbx, rbx
je 0x14002c1ae
jmp 0x14002c1da
mov r12, r15
mov rbx, r12
test rbx, rbx
jne 0x14002c1da
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
test r15, r15
je 0x14002c1a6
mov edx, 2
mov rcx, rdi
call int.140001560
mov rbx, r12
test rbx, rbx
je 0x14002c1ae
mov qword [rbp + 0x20], rbx
lea rax, [rbp - 0x50]
mov qword [rbp - 0x10], rax
lea rax, [0x140005da0]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x60]
mov qword [rbp], rcx
mov qword [rbp + 8], rax
lea rax, [rbp + 0x20]
mov qword [rbp + 0x10], rax
lea rax, [0x14002b0d0]
mov qword [rbp + 0x18], rax
lea rax, [0x14007b0b0]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 3
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 3
lea rdx, [0x14007b0e0]
lea rcx, [rbp - 0x40]
call fcn.1400703d0
ud2
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r12, r12
jne 0x14002c17d
jmp 0x14002c18a
Function at 0x14002d900
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002d972
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0xc0000011
jne 0x14002d981
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002d9b9
cmp eax, 0x103
je 0x14002d9c3
test eax, eax
js 0x14002d99e
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002d9b9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, [0x14007c728]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xa8], 0
lea rax, str._rustc_90c541806f23a127002de5b4038be731ba1458calibrarycore_src_strpattern.rs
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x68], rax
lea rax, [fcn.140008800]
mov qword [rsp + 0x70], rax
lea rax, str.fatal_runtime_error:__n
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 2
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x78]
call fcn.1400247d0
mov rcx, rax
call fcn.1400248f0
mov ecx, 7
int 0x29
ud2

Function at 0x14002e6a0
Capabilities:
Create directory

Disassembly:
test cl, cl
je 0x14002e6af
mov rcx, rdx
mov rdx, r8
jmp fcn.14002e770
mov rcx, rdx
mov rdx, r8
jmp fcn.14002e6c0

Function at 0x14002e6c0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400271d0
mov rsi, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14002e762
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
call fcn.14002da90
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002e762
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14002e73d
test rsi, rsi
je 0x14002e739
mov edx, 2
mov rcx, rdi
call int.140001560
xor esi, esi
jmp 0x14002e762
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14002e75f
mov edx, 2
mov rcx, rdi
call int.140001560
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x140032e20
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 0x140032e63
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, [0x14002b0d0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400703d0
ud2
Function at 0x140048383
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
test rcx, rcx
je 0x1400483a1
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
and qword [rcx], 0
cmp r8, 1
je 0x1400483d5
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400483d0
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400483d5
call fcn.140032e20
mov ecx, dword [0x14009ddb8]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x10], 1
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rdx
add rsp, 0x38
ret
Function at 0x140051cf0
Capabilities:
Get common file path

Disassembly:
lea rdx, [0x140084e28]
lea r8, str.FOLDERID_LocalAppData
mov r9d, 0x15
jmp fcn.140051d98

Function at 0x140051d98
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdi, rdx
mov rsi, rcx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], r9
mov rax, qword [0x14009dd80]
cmp rax, 3
jbe 0x140051e1a
lea rax, [rbp - 0x18]
lea rdx, [rbp - 8]
mov qword [rdx], rax
lea rax, str.wN_b_
lea rcx, [rbp - 0x48]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 2
and qword [rcx], 0
lea rax, [fcn.140017ff0]
mov qword [rdx + 8], rax
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], 1
lea r8, str.xplat_launcher
push 4
pop rdx
call fcn.140018806
lea r9, [rbp - 0x48]
and qword [r9], 0
mov rcx, rdi
mov edx, 0x8000
xor r8d, r8d
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140051ef4
lea rdi, [rbp - 0x48]
mov rbx, qword [rdi]
mov rcx, rbx
call fcn.140060218
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140002260
mov rax, qword [rdi + 8]
test rax, rax
je 0x140051f05
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x38]
mov qword [rbp - 8], rcx
mov qword [rbp], rax
mov qword [rbp + 8], rdx
mov rax, qword [0x14009dd80]
cmp rax, 4
jb 0x140051ecd
lea rax, [rbp - 8]
lea rdx, [rbp - 0x58]
mov qword [rdx], rax
lea rax, str.__result:
lea rcx, [rbp - 0x48]
mov qword [rcx + 0x10], rax
push 1
pop rax
mov qword [rcx + 0x18], rax
and qword [rcx], 0
lea r8, [0x1400058c0]
mov qword [rdx + 8], r8
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], rax
lea r8, str.xplat_launcher
push 4
pop rdx
call fcn.140018806
mov rax, qword [rbp + 8]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp - 8]
mov qword [rsi], rax
mov rax, qword [rbp]
mov qword [rsi + 8], rax
mov byte [rsi + 0x18], 1
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov ecx, eax
call fcn.14003776d
mov rcx, rax
call fcn.140072e1c
jmp 0x140051f0a
call fcn.140072efd
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
jmp 0x140051ee8

Function at 0x1400611e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140061014
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov cl, 0x41
add al, 0x39
hlt