joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400129a3
Capabilities:
Manipulate console buffer

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
test dl, dl
je 0x1400129cd
lea rdx, str._re_2Ke__25he__25lC:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fconsole_0.15.5_src_term.rs
mov r8d, 5
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.140011b38
xor eax, eax
cmp byte [rcx + 0x40], 0
sete al
or eax, 0xfffffff4
mov ecx, eax
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rsi, rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x30]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0xe], 0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140012a61
movzx ebx, word [rsp + 0x38]
movzx eax, word [rsp + 0x3e]
sub ax, word [rsp + 0x3a]
movzx ebp, word [rsp + 0x36]
mov dword [rsp + 0x30], 0
movsx r14d, ax
shl ebp, 0x10
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov dl, 0x20
mov r8d, r14d
mov r9d, ebp
call qword [sym.imp.kernel32.dll_FillConsoleOutputCharacterA]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov edx, ebx
mov r8d, r14d
mov r9d, ebp
call qword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
mov rcx, rsi
mov edx, ebp
call qword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
xor eax, eax
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140012b73
Capabilities:
Manipulate console buffer

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test dl, dl
je 0x140012c2b
inc rdi
lea rax, [rsp + 0x20]
mov qword [rax], rdi
inc rsi
lea rcx, [rsp + 0x28]
mov qword [rcx], rsi
lea r8, [rsp + 0x78]
mov qword [r8], rax
lea rax, [fcn.140013880]
mov qword [r8 + 8], rax
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], rax
lea rax, [0x140072500]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov qword [rdx + 0x20], 0
mov qword [rdx + 0x10], r8
mov qword [rdx + 0x18], 2
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.14000f7a0
mov rdi, qword [rsi]
mov r8, qword [rsi + 0x10]
mov r14, qword [rsi + 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140011b38
mov rsi, rax
test r14, r14
je 0x140012c73
mov rcx, qword [0x1400d6818]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x140012c73
xor ecx, ecx
cmp byte [rbx + 0x40], 0
sete cl
or ecx, 0xfffffff4
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rbx, rax
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
mov qword [rdx + 0xe], 0
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140012c71
shl edi, 0x10
movzx edx, si
or edx, edi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
xor esi, esi
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400168d0
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 0x140016960
cmp r11, r10
ja 0x1400169d6
cmp r10, rdx
ja 0x1400169ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140016962
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140016940
jmp 0x1400169c4
ja 0x14001696a
mov r11, r10
cmp rax, r8
jne 0x140016904
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 0x1400169a0
mov rdi, r8
sub ecx, edx
jns 0x1400169bb
jmp 0x1400169c6
cmp r8, rsi
je 0x1400169fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400169c6
xor al, 1
cmp rdi, rsi
jne 0x140016980
jmp 0x1400169c6
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.14006bd80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14006bb10
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14006bb90
ud2
Function at 0x1400189c6
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 0x1400189fc
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140018a04
mov esi, dword [rdx]
mov r9d, 4
jmp 0x140018a09
xor r10d, r10d
jmp 0x140018ab7
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140018a2c
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140018a43
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 0x140018a63
add r11, r8
jmp 0x140018b87
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 0x140018b2b
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
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 0x140018ad9
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140018b3d
mov r9d, dword [rdx + r10]
mov r8d, 4
jmp 0x140018b43
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140018b69
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 0x140018b83
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 0x140037eb1
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
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 0x140037ee4
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140037ee9
call fcn.140055910
mov ecx, dword [0x1400d68d0]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x60], 1
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rdx
add rsp, 0x38
ret
Function at 0x14003bce0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140013c70
cmp rax, rcx
je 0x14003bd05
cmp rdx, 4
jae 0x14003bd08
xor eax, eax
xor r8d, r8d
jmp 0x14003bda0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14006f6f0]
movdqa xmm3, xmmword [0x14006f700]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14003bd30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14003bdb7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14003bda0
ret

Function at 0x140040c40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400c0de8]
movaps xmmword [rsp + 0x60], xmm0
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 + 0x60]
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 0x140040cb3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140040cea
test eax, eax
js 0x140040cc4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140040cdd
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, [0x1400c0e48]
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.140040080
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14003f6c0
mov ecx, 7
int 0x29
ud2
Function at 0x1400429a0
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 r14d, r14d
cmp r8, 0x201
jae 0x140042a30
jmp 0x140042a1f
jae 0x140042aef
cmp r8, 0x201
jae 0x140042a30
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x140042a88
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x140042a5f
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.14006d900
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r13d
mov rdx, r12
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x140042ab0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140042b53
mov r8d, esi
cmp r13, r8
jne 0x140042a10
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140042b76
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x140042a1f
jmp 0x140042a30
cmp r15, r8
jb 0x140042b90
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140043440
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 0x140042b3e
mov rcx, qword [0x1400d6818]
xor edx, edx
mov r8, qword [rbp + 0x3e8]
call qword [sym.imp.kernel32.dll_HeapFree]
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 0x140042b28
jmp 0x140042b3e
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14006bb90
jmp 0x140042ba5
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14006bb10
ud2
Function at 0x140045330
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.1400415c0
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x1400454b7
mov qword [rbp + 0x3c8], rsi
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400453f0
jmp 0x1400453df
jae 0x1400454c9
cmp r8, 0x201
jae 0x1400453f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140045448
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14004541f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.14006d900
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f8]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x140045478
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400454ff
mov r8d, r14d
cmp r15, r8
jne 0x1400453d0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400455ac
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400453df
jmp 0x1400453f0
lea rcx, [rbp - 0x50]
call fcn.14003f5c0
mov byte [rsi + 0x18], 2
jmp 0x140045576
cmp rsi, r8
jb 0x1400455c6
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140043440
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
jmp 0x14004551b
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d0], rax
mov byte [rbp + 0x3e8], 2
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x14004553d
mov rcx, qword [0x1400d6818]
xor edx, edx
mov r8, qword [rbp + 0x418]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp byte [rbp + 0x3e8], 2
jne 0x14004558b
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3d0]
call fcn.14003f5c0
cmp qword [rbp + 0x408], 0
je 0x140045576
mov rcx, qword [0x1400d6818]
xor edx, edx
mov r8, qword [rbp + 0x410]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x140045560
jmp 0x140045576
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14006bb90
jmp 0x1400455db
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14006bb10
ud2
Function at 0x1400470a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400c0de8]
movaps xmmword [rsp + 0x60], xmm0
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 + 0x60]
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 0x14004710c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14004711b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140047153
cmp eax, 0x103
je 0x14004715d
test eax, eax
js 0x140047138
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140047153
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, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1400c0e48]
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.140040080
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14003f6c0
mov ecx, 7
int 0x29
ud2
Function at 0x140047950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x1400479ac
mov r14, qword [rbx]
cmp bp, 0x2e
jne 0x140047aa0
test r15w, r15w
je 0x1400479ac
cmp r15w, 0x2e
jne 0x140047aa0
test r12w, r12w
jne 0x140047aa0
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call fcn.14006b1c0
invalid
add al, byte [rax]
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
ror byte [rdi], 0x84
invalid
add byte [rax], al
invalid
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x140047a01
mov rcx, rdi
mov rdx, rbx
fiadd dword [rcx - 1]
xlatb
test eax, eax
je 0x140047a85
add byte [rax], al
cmp word [rsp + 0xac], 0x2e
jne 0x140047a2a
movzx eax, word [rsp + 0xae]
test ax, ax
je case.0x140041b84.550
cmp ax, 0x2e
jne 0x140047a2a
cmp word [rsp + 0xb0], 0
je case.0x140041b84.550
lock inc qword [r14]
jle 0x140047b89
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
add byte [rax], al
add byte [rdi], cl
sub dword [rsp + 0x20], eax
invalid
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
add byte [rcx + 0xf402444], cl
mov bh, 0xac
and al, 0xac
add byte [rax], al
add byte [rdi + rcx - 0x49], al
mov esp, 0xae24
add byte [rdi + rcx - 0x49], al
movsb byte [rdi], byte [rsi]
and al, 0xb0
add byte [rax], al
add byte [rax - 0x73], cl
xchg esp, eax
and al, 0xb2
add byte [rax], al
add bl, ch
invalid
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x140047b17
mov qword [rsi], 0
jmp 0x140047b77
lock inc qword [r14]
jle 0x140047b89
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.14006aa40
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.14006aa40
jmp 0x140047b2a
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], bp
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.14006aa40
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x140052a30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
jg 0x140052ab1
and al, 0x70
Function at 0x140054ca0
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 [0x1400d68a0]
mov ecx, 0x10
call fcn.14000f140
test rax, rax
je 0x140054d91
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140054ea0]
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 0x140054d83
mov rcx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x140054d5c
cmp qword [rax + 0x10], 0x11
jae 0x140054d45
mov r8, qword [rbp - 0x10]
jmp 0x140054d4d
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400d6818]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400d6818]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
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 - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14006b610
ud2

Function at 0x140055910
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 0x140055953
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, [0x140045fa0]
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.14006b9d0
ud2
Function at 0x140058140
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14005828d
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140058178
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140058276
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140058258
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1400581d9
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14005820b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14005820f
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x140058213
cmp eax, 0x6d
jne 0x14005823e
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x140058218
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140058244
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.14003f5c0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14005824e
cmp rax, 1
je 0x1400581c2
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x1400581cc
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14006d9c0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140058185
mov r8d, 0x10
mov rcx, rbx
call fcn.14006d9c0
mov rax, qword [rbx + 8]
jmp 0x140058178
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14006dbb0
ud2

Function at 0x14005c64c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14005c696
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005c696
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005c696
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005c696
cmp dword [rcx + 0x84], 0xe
jbe 0x14005c696
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005c698
xor al, al
add rsp, 0x28
ret

Function at 0x140060e90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140060c8c