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

Disassembly:
jmp 0x1401436a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140192540]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1401a7479]
call fcn.14006efbd
nop
lea rdx, [0x140199998]
mov ecx, 0x20
call fcn.14006dca8
nop
mov r8d, 0x40
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14006e815
nop
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x28], 1
mov rax, qword [rbp + 0x160]
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x18], 0x15
movss xmm0, dword [0x140192ad0]
addss xmm0, dword [0x14015aec0]
cvttss2si rax, xmm0
mov dword [rbp + 0x10], eax
movss xmm0, dword [0x140192ad4]
addss xmm0, dword [0x14015aec0]
cvttss2si rax, xmm0
mov dword [rbp + 0x14], eax
mov dword [rbp + 0x3c], 1
mov dword [rbp + 0x40], 0x50
mov dword [rbp + 0x4c], 0x80000000
mov dword [rbp + 0x24], 0
mov rax, qword [0x140199998]
mov rax, qword [rax]
lea rcx, [0x140199968]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x40
mov r9, qword [rbp + 0x160]
mov r8d, 1
xor edx, edx
mov rcx, qword [0x140199998]
call qword [rax + 0xa0]
test eax, eax
jge 0x1401437f2
mov rax, qword [0x140199998]
mov rax, qword [rax]
mov rcx, qword [0x140199998]
call qword [rax + 0x10]
nop
mov ecx, 4
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov qword [rsp + 0x28], 0x14
mov qword [rsp + 0x20], 0x10
mov r9d, 8
mov r8d, 0x3a0
mov edx, 0x1548
lea rcx, str.1.67_WIP
call fcn.14006f09e
nop
xor ecx, ecx
call fcn.14006ef13
nop
call fcn.14006e874
mov qword [rbp + 0x68], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
movss xmm2, dword [0x14015aee8]
lea rdx, str.C:WindowsFontsSystem_Bold.ttf
mov rax, qword [rbp + 0x68]
mov rcx, qword [rax + 0x98]
call fcn.14006f134
nop
cmp qword [0x140199958], 0
jne 0x14014387d
lea rdx, [0x140199958]
mov rcx, qword [0x140199968]
call fcn.14006e414
nop
lea rax, [0x140199960]
mov qword [rsp + 0x58], rax
lea rax, str.Arial
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0x12c
xor r8d, r8d
mov edx, 0x12
mov rcx, qword [0x140199968]
call fcn.14006e996
nop
mov rcx, qword [rbp + 0x160]
call fcn.14006d857
nop
mov rcx, qword [0x140199968]
call fcn.14006d37a
nop
call fcn.14006e9cd
nop
mov rax, qword [0x140199998]
mov rax, qword [rax]
mov rcx, qword [0x140199998]
call qword [rax + 0x10]
nop
lea rcx, [rbp - 0x60]
lea rdx, [0x14017d4f0]
call fcn.14006ea81
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.14006def6
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140146580
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14006f116
movzx eax, al
test eax, eax
jne 0x1401465a0
mov ecx, 7
call fcn.14006ea9f
nop
mov byte [rsp + 0x20], 0
call fcn.14006eb3f
mov byte [rsp + 0x21], al
cmp dword [0x140199a80], 1
jne 0x1401465c4
mov ecx, 7
call fcn.14006ea9f
nop
jmp 0x14014661c
cmp dword [0x140199a80], 0
jne 0x140146617
mov dword [0x140199a80], 1
lea rdx, [0x1401517a0]
lea rcx, [0x140151470]
call fcn.14006de8d
test eax, eax
je 0x1401465f8
mov eax, 0xff
jmp 0x140146721
lea rdx, [0x140151360]
lea rcx, [section..rdata]
call fcn.14006eb17
mov dword [0x140199a80], 2
jmp 0x14014661c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14006ea54
call fcn.14006e72f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140146679
mov rcx, qword [rsp + 0x30]
call fcn.14006dbc7
movzx eax, al
test eax, eax
je 0x140146679
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1401a9020]
nop
call fcn.14006e879
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1401466ad
mov rcx, qword [rsp + 0x38]
call fcn.14006dbc7
movzx eax, al
test eax, eax
je 0x1401466ad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14006eef5
nop
call fcn.140146790
mov dword [rsp + 0x28], eax
call fcn.14006e63a
movzx eax, al
test eax, eax
jne 0x1401466cc
mov ecx, dword [rsp + 0x28]
call fcn.14006d23f
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1401466db
call fcn.14006ef36
nop
xor edx, edx
mov cl, 1
call fcn.14006daf0
mov eax, dword [rsp + 0x28]
jmp 0x140146721
add rsp, 0x68
ret
Function at 0x140a27058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a271df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a27089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a2706f
add dl, dl
jne 0x140a27096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a270f6
xor eax, eax
add dl, dl
jne 0x140a270a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a271ad
add dl, dl
jne 0x140a270b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a270c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a270d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a270dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a270ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a2707e
mov eax, 1
add dl, dl
jne 0x140a27106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a27113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a270fb
sub eax, ebx
mov ebx, 1
jne 0x140a2714c
mov ecx, 1
add dl, dl
jne 0x140a2712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a2713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a27123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a27168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a27175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a2715d
cmp eax, 0x7d00
jae 0x140a2719b
cmp eax, 0x500
jb 0x140a27196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2707e
cmp eax, 0x7f
ja 0x140a2719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a271d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a2707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003ce0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rbp - 8]
test eax, eax
je 0x140003d2b
call sub.ole32.dll_CoTaskMemFree
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140003d58
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.14000d0f0
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x14000b5f0
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 + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000b690
jmp 0x14000b67f
jae 0x14000b74f
cmp r8, 0x201
jae 0x14000b690
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000b6e7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000b6bf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002d5d0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000b710
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000b7bb
mov r8d, r13d
cmp r12, r8
jne 0x14000b670
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b7ef
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000b67f
jmp 0x14000b690
cmp r14, r8
jb 0x14000b809
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000d0f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000b7a4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003c90
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 + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000b78f
jmp 0x14000b7a4
lea rcx, str.internal_error:_entered_unreachable_code_b
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002e390
jmp 0x14000b81e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002e740
ud2
Function at 0x140010f40
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.14002c790
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x1400173e0]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call fcn.140016f30
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x140011130
test r15, r15
je 0x1400110fc
cmp r15, 0x1000
ja 0x140011152
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x1400110d0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140011060
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x1400110f0
add r12, rax
cmp r12, r15
je 0x1400110c0
jbe 0x140011010
jmp 0x14001113e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x140010fbe
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.140005b60
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 + 0xfe0]
call fcn.140005b60
jmp 0x1400110fc
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14002e7b0
jmp 0x140011166
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14002e740
ud2
Function at 0x140015840
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14007a620]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140015878
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400158cf
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400158dc
xor edx, edx
xor eax, eax
jmp 0x140015906
cmp eax, 0x103
je 0x140015910
test eax, eax
js 0x1400158ef
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140015906
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14007a680]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000cf30
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400061f0
mov ecx, 7
int 0x29
ud2

Function at 0x140015960
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14007a620]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140015998
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400159f6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140015a23
test eax, eax
js 0x140015a02
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140015a19
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14007a680]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000cf30
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400061f0
mov ecx, 7
int 0x29
ud2
Function at 0x140016560
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]

Function at 0x1400178d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140017a40
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14001790d
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140017a05
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140017a23
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14001796c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1400179af
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400179b3
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1400179b7
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400179e1
lea rax, [rbp - 8]
jmp 0x1400179c3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400179e7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.140005b60
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x1400179f2
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x140017955
mov ecx, 1
jmp 0x14001795f
mov r8d, 0x10
mov rcx, rbx
call fcn.14002d530
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001791a
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14002d530
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14001791a
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14002d4a0
int3
Function at 0x14001be40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14001e240
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x14001be7e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x14001bea4
mov rdx, qword [rbp - 0x18]
Function at 0x14001d940
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 [0x140085141]
mov ecx, 0x10
mov edx, 8
call fcn.140003c80
test rax, rax
je 0x14001da2b
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
add byte [rbp + rcx*4 + 5], cl
invalid
add dword [rax], eax
add byte [rcx], dh
push qword [rcx]
leave
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
sbb dword [rcx], eax
add byte [rax - 0x77], cl
ret 0x8548
invalid
jne 0x14001da1d
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
call 0x1205f630c
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
invalid
invalid
mov rax, qword [rax]
test rax, rax
je 0x14001d9da
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14001d9f4
mov r8, qword [rax + 0x10]
call fcn.140003c90
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x20]
call fcn.140003c90
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14002e1c0
ud2
Function at 0x14002b280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002b30a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x14002b300
cmp r11, r10
ja 0x14002b386
cmp r10, rdx
ja 0x14002b398
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14002b302
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002b2e0
jmp 0x14002b367
ja 0x14002b30a
mov r11, r10
cmp rax, r8
jne 0x14002b2a7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002b36b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002b340
mov r8, r10
sub ecx, r9d
jns 0x14002b35e
jmp 0x14002b36d
cmp r10, rdx
je 0x14002b37a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002b36d
xor al, 1
cmp r8, rdx
jne 0x14002b320
jmp 0x14002b36d
xor eax, eax
jmp 0x14002b36d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002e250
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002e7b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002e740
int3

Function at 0x14002ccc4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140020008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edi, ecx
mov edx, ecx
xor esi, esi
lea ecx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010b0
xor eax, eax
jmp 0x140001111
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140001105
nop word [rax + rax]
cmp dword [rsp + 0x28], edi
jne 0x1400010ec
lea rdx, str.mswsock.dll
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001100
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400010d0
jmp 0x140001105
mov rsi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140002560
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004424
Capabilities:
Parse pe header

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