joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180036e70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15, qword [r9]
mov rdi, r9
mov eax, r15d
mov r12, r8
mov dword [rsp + 0x78], eax
mov rbp, rdx
cmp rax, r15
je 0x180036ea8
mov ebx, 0x80070057
jmp 0x180036fe5
mov r14, qword [rsp + 0x80]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov r9, r12
xor r8d, r8d
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x180036f30
test r14, r14
je 0x180036ef8
mov eax, dword [rsp + 0x78]
cmp rax, qword [rdi]
jbe 0x180036ef8
mov qword [rdi], rax
mov ebx, 0x800700ea
jmp 0x180036fe5
mov eax, dword [rsp + 0x78]
mov qword [rdi], rax
lfence
mov r8d, dword [r12]
mov r9, rdi
mov rdx, r15
mov qword [rsp + 0x20], r14
mov rcx, rbp
call fcn.180036d8c
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ebx, 0x80070002
cmp esi, ebx
jne 0x180036f7e
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x180036fe5
test byte [rcx + 0x1c], 4
je 0x180036fe5
lfence
mov rcx, qword [0x18008d218]
lea r8, [0x180078208]
mov edx, 0x15
mov r9, rbp
mov rcx, qword [rcx + 0x10]
call fcn.180001364
jmp 0x180036fe5
mov ebx, 0x800700ea
cmp esi, ebx
je 0x180036fca
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x180036fc6
test byte [rcx + 0x1c], 1
je 0x180036fc6
lfence
mov rcx, qword [0x18008d218]
lea r8, [0x180078208]
mov edx, 0x16
mov dword [rsp + 0x20], esi
mov r9, rbp
mov rcx, qword [rcx + 0x10]
call fcn.1800013c4
mov ebx, esi
jmp 0x180036fdd
mov eax, dword [rsp + 0x78]
cmp qword [rdi], rax
jb 0x180036fda
mov ebx, 0x8000ffff
jmp 0x180036fe5
mov qword [rdi], rax
test ebx, ebx
jns 0x180036eff
lfence
mov eax, ebx
jmp 0x180036f19

Function at 0x1800372d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, r9d
mov rdi, rdx
cmp rax, r9
je 0x1800372ec
mov eax, 0x80070057
jmp 0x18003735a
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x28], r9d
mov r9d, r8d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x180037358
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x180037342
test byte [rcx + 0x1c], 1
je 0x180037342
mov rcx, qword [rcx + 0x10]
lea r8, [0x180078208]
mov edx, 0x18
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.1800013c4
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
test eax, eax
jns 0x180037358
lfence
jmp 0x18003735a
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180038240
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18003825d
xor eax, eax
jmp 0x1800382ba
call fcn.180035b20
mov ebx, eax
cmp eax, 0x800700b7
je 0x1800382a4
mov rcx, qword [0x18008d218]
lea rax, [0x18008d218]
cmp rcx, rax
je 0x1800382a0
test byte [rcx + 0x1c], 1
je 0x1800382a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x180078320]
mov edx, 0x1e
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.1800013c4
mov eax, ebx
jmp 0x1800382ba
mov rcx, rdi
call fcn.180038828
test eax, eax
jns 0x1800382b5
lfence
jmp 0x1800382ba
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140003a20
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003a54
cmp word [rcx], 0x5a4d
jne 0x140003a54
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a54
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a54
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003960
test eax, eax
jne 0x140003a70
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039d0
test rax, rax
je 0x140003a65
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000421c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004120
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400040c0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004574
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140535f38]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140535f34]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045c2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045ba
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400046a9
inc ebx
add rax, 0x28
jmp 0x14000459a
mov rcx, r12
call fcn.140004da1
mov rbp, rax
test rax, rax
jne 0x1400045e1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004510
movsxd rbx, ebx
mov rax, qword [0x140535f38]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e4f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140535f38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004643
mov rax, qword [0x140535f38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004510
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400046a3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400046a3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140535f38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400046a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004510
inc dword [0x140535f34]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ad0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140535fa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140535f80]
test rbx, rbx
je 0x140004b1c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004b16
test eax, eax
jne 0x140004b16
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004aee
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004cd0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004cf3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004cf3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004cf4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004d2e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d25
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d30
inc r8d
add rax, 0x28
jmp 0x140004d0c
xor eax, eax
ret

Function at 0x140004da1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405320d0]
mov r8, rcx
mov rcx, r9
call fcn.140004cd0
test eax, eax
je 0x140004dcd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004cf4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140014540
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x1400145e0
jmp 0x1400145cf
jae 0x1400146a0
cmp r8, 0x201
jae 0x1400145e0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140014638
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14001460f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14002b020
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3d8], r13
mov rdi, rbx
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140014661
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014708
mov r8d, r14d
cmp r15, r8
jne 0x1400145c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001472b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400145cf
jmp 0x1400145e0
cmp rsi, r8
jb 0x140014745
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140015e10
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400146f1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.14000b030
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 rbx, rbx
jne 0x1400146d9
jmp 0x1400146f1
lea rcx, [0x14008551b]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002bab0
jmp 0x14001475a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002bea0
ud2
Function at 0x140016830
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 0x140016860
test ecx, ecx
jne 0x1400168b0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14001686c
test ecx, ecx
jne 0x1400168b0
mov rcx, rdi
call fcn.140016710
movzx eax, al
test bpl, bpl
jne 0x1400168b7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400168a3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140016a28]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400168a3.2
xor eax, eax
test bpl, bpl
je 0x14001687c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140016a09
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400168ea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140016969
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 0x140016930
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14001694b
inc rax
dec rdi
cmp rax, 1
jne 0x140016910
jmp 0x140016969
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14001694b
cmp ebx, 0x5c
je 0x14001694b
inc rax
dec rdi
cmp rax, 1
jne 0x140016930
jmp 0x140016969
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140016a17
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140016993
mov al, 9
cmp rdx, 2
je 0x140016997
cmp rdx, 1
jne 0x1400169a7
cmp byte [r8], 0x2e
jne 0x1400169a7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1400169a7
mov al, 0xa
jmp 0x1400169a7
cmp byte [r8], 0x2e
jne 0x1400169a7
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.0x1400168a3.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.0x1400168a3.2
mov ecx, 2
jmp case.0x1400168a3.2
lea r8, str.library_std_srcpath.rs
call fcn.14002be90
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14002be90
ud2
Function at 0x14001b1e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
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 0x14001b28b
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x14001b2c2
test eax, eax
js 0x14001b29c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001b2b5
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, str.gf_b_
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x1400852a0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x140026240]
mov qword [rsp + 0x70], rax
lea rax, str._fV_b_
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.140015a60
mov rcx, rax
call fcn.140012380
mov ecx, 7
int 0x29
ud2
Function at 0x140028e80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140028efa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140028ef0
cmp r10, r11
jb 0x140028f93
cmp r10, rdx
ja 0x140028fa7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140028ef2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140028ed0
jmp 0x140028f67
ja 0x140028efa
mov r11, r10
cmp rax, r8
jne 0x140028ea2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140028f6b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140028f40
mov r8, r10
sub ecx, r9d
jns 0x140028f5e
jmp 0x140028f6d
cmp r10, rdx
je 0x140028f79
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140028f6d
xor al, 1
cmp r8, rdx
jne 0x140028f20
jmp 0x140028f6d
xor eax, eax
jmp 0x140028f6d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002bab0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002beb0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002bea0
ud2

Function at 0x14002aa6c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002aab6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002aab6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002aab6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002aab6
cmp dword [rcx + 0x84], 0xe
jbe 0x14002aab6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002aab8
xor al, al
add rsp, 0x28
ret
Function at 0x140002a80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
movabs r10, 0xc2b2ae3d27d4eb4f
movabs rdx, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
movabs r8, 0x27d4eb2f165667c5
lea rsi, [rcx + 0x28]
mov r9d, dword [rcx + 0x48]
lea r13, [rcx + r9]
add r13, 0x28
mov r14, qword [rcx]
cmp r14, 0x20
jb 0x140002b5f
mov rbx, qword [rcx + 8]
mov r12, qword [rcx + 0x10]
mov r15, qword [rcx + 0x18]
mov rax, rbx
rol rax, 1
mov rbp, r12
rol rbp, 7
mov rdi, qword [rcx + 0x20]
add rbp, rax
mov rax, r15
rol rax, 0xc
add rax, rbp
mov rbp, rdi
rol rbp, 0x12
add rbp, rax
imul rbx, r10
rol rbx, 0x1f
imul rbx, rdx
xor rbx, rbp
imul rbx, rdx
add rbx, r11
imul r12, r10
rol r12, 0x1f
imul r12, rdx
xor r12, rbx
imul r12, rdx
imul r15, r10
rol r15, 0x1f
add r12, r11
imul r15, rdx
xor r15, r12
imul r15, rdx
add r15, r11
imul rdi, r10
rol rdi, 0x1f
imul rdi, rdx
xor rdi, r15
imul rdi, rdx
add rdi, r11
jmp 0x140002b66
mov rdi, qword [rcx + 0x18]
add rdi, r8
add rdi, r14
lea rax, [rcx + 0x30]
cmp r13, rax
jae 0x140002b80
mov rbx, rdi
mov rax, rsi
jmp 0x140002bb0
mov rbx, qword [rsi]
imul rbx, r10
rol rbx, 0x1f
imul rbx, rdx
xor rbx, rdi
rol rbx, 0x1b
imul rbx, rdx
add rbx, r11
lea rax, [rsi + 8]
add rsi, 0x10
mov rdi, rbx
cmp rsi, r13
mov rsi, rax
jbe 0x140002b80
movabs rdi, 0x165667b19e3779f9
lea rsi, [rax + 4]
cmp rsi, r13
jbe 0x140002bd0
mov rsi, rax
cmp rsi, r13
jb 0x140002bec
mov rax, rbx
jmp 0x140002c1e
mov eax, dword [rax]
imul rax, rdx
xor rax, rbx
rol rax, 0x17
imul rax, r10
add rax, rdi
mov rbx, rax
cmp rsi, r13
jae 0x140002bcb
add rcx, r9
add rcx, 0x28
nop word cs:[rax + rax]
nop dword [rax]
movzx eax, byte [rsi]
imul rax, r8
xor rax, rbx
rol rax, 0xb
imul rax, rdx
add rsi, 1
mov rbx, rax
cmp rcx, rsi
jne 0x140002c00
mov rcx, rax
shr rcx, 0x21
xor rcx, rax
imul rcx, r10
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, rdi
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400130d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x140033008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x140037a48]
test rcx, rcx
je 0x140013129
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001311c
mov rcx, qword [0x140037a48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140037a48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003a260], 1
jne 0x1400131ef
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
lea rsi, [0x140037a60]
mov qword [rsp + 0x30], rsi
lea rbx, [0x14002dbb0]
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebp, 0x14
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop dword [rax]
mov rcx, rsi
call r15
cmp eax, 0xffffffff
je 0x1400131ef
and eax, 0x10
je 0x1400131ef
mov ecx, 0x64
call r12
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x40], 0x414
mov qword [rsp + 0x50], rbx
mov rcx, r14
call rdi
add ebp, 0xffffffff
jne 0x1400131a0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014bf0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400149c0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x2030
call fcn.140014b90
sub rsp, rax
mov rsi, rcx
mov rax, qword [0x140033008]
xor rax, rsp
mov qword [rsp + 0x2028], rax
mov eax, dword [0x140037a50]
test eax, eax
je 0x1400149f5
test eax, eax
jg 0x140014a3d
jmp 0x140014a73
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140012700
test al, al
je 0x140014afb
lea rcx, [rsp + 0x20]
call fcn.1400199dc
movsxd rcx, dword [0x140037a50]
lea rdx, [0x140044ac0]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140037a50], eax
test eax, eax
jle 0x140014a73
lea rdi, [0x140044ac0]
xor ebx, ebx
nop word cs:[rax + rax]
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001a444
test eax, eax
je 0x140014adc
add rbx, 1
movsxd rax, dword [0x140037a50]
add rdi, 8
cmp rbx, rax
jl 0x140014a50
mov rcx, rsi
call fcn.14001a47c
cmp rax, 2
jne 0x140014a8a
mov bl, 1
cmp word [rsi + 2], 0x3a
je 0x140014ade
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x140014aa9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
test bl, bl
je 0x140014ade
cmp dword [0x140037a50], 0x3ff
jg 0x140014ade
mov rcx, rsi
call fcn.1400199dc
movsxd rcx, dword [0x140037a50]
lea rdx, [0x140044ac0]
mov qword [rdx + rcx*8], rax
lea eax, [rcx + 1]
mov dword [0x140037a50], eax
mov bl, 1
mov rcx, qword [rsp + 0x2028]
xor rcx, rsp
call fcn.140014bf0
mov eax, ebx
add rsp, 0x2030
pop rbx
pop rdi
pop rsi
ret
lea rcx, str._HOME_
call fcn.140013810
int3

Function at 0x140018838
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018968
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400189cf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400189cf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400189cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400189cf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400189cf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400189cf
cmp dword [rcx + 0xf8], 0
je 0x1400189cf
mov ecx, ebx
call fcn.1400188b4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140018ae8
cmp dword [rbp + 0x20], 0
je 0x140018a1c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018910
int3