joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400049d0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, rdx
mov rsi, rcx
lea rdx, [rbp - 0x1c]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x140004b10
mov rdi, rax
mov qword [rbp - 0x40], rsi
movsxd rsi, dword [rbp - 0x1c]
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 8
mov qword [rbp - 8], 0
test rsi, rsi
je 0x140004af3
shl rsi, 3
xor r15d, r15d
lea rbx, [rbp - 0x58]
lea r14, [rbp - 0x38]
jmp 0x140004a76
mov rax, qword [rbp - 0x10]
lea rcx, [rdx + rdx*2]
movups xmm0, xmmword [rbp - 0x38]
mov rdx, qword [rbp - 0x28]
mov qword [rax + rcx*8 + 0x10], rdx
movups xmmword [rax + rcx*8], xmm0
inc qword [rbp - 8]
add r15, 8
cmp rsi, r15
je 0x140004af3
mov r12, qword [rdi + r15]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r13, rax
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 0
shr rax, 1
mov r8d, r13d
and r8d, 1
add r8, rax
je 0x140004ab6
mov rcx, r14
xor edx, edx
call fcn.14002ec00
lea rax, [r12 + r13*2]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], r12
mov word [rbp - 0x48], 0
mov rcx, rbx
mov rdx, r14
call fcn.14000dbf0
mov rdx, qword [rbp - 8]
cmp rdx, qword [rbp - 0x18]
jne 0x140004a50
lea rcx, [rbp - 0x18]
call fcn.14000d240
mov rdx, qword [rbp - 8]
jmp 0x140004a50
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
mov rax, qword [rbp - 8]
mov rcx, qword [rbp - 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rcx], xmm0
jmp 0x140004b27
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400072e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
add qword [rdx + 0x30], 8
mov rcx, qword [rcx]
mov qword [rsp], rcx
mov r9, qword [rdx + 0x40]
test r9, r9
je 0x140007382
mov r11d, 8
mov r8d, 8
sub r8, r9
cmp r8, 8
cmovb r11, r8
xor r10d, r10d
xor eax, eax
cmp r11, 4
mov ecx, ecx
cmovae r10, rcx
setae al
lea rcx, [rax*4 + 1]
shl rax, 2
cmp rcx, r11
jae 0x14000734b
movzx esi, word [rsp + rax]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
or rax, 2
cmp rax, r11
jae 0x140007360
movzx r11d, byte [rsp + rax]
shl eax, 3
mov ecx, eax
shl r11, cl
or r10, r11
lea ecx, [r9*8]
shl r10, cl
or r10, qword [rdx + 0x38]
mov qword [rdx + 0x38], r10
cmp r9, 8
jbe 0x140007387
add r9, 8
jmp 0x1400074c6
xor r8d, r8d
jmp 0x1400073db
mov r9, qword [rdx + 0x18]
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx]
add rax, rcx
rol rcx, 0xd
xor r9, r10
xor rcx, rax
rol rax, 0x20
mov r11, qword [rdx + 8]
add r11, r9
rol r9, 0x10
xor r9, r11
add rax, r9
rol r9, 0x15
xor r9, rax
add r11, rcx
rol rcx, 0x11
mov qword [rdx + 0x18], r9
xor rcx, r11
rol r11, 0x20
mov qword [rdx + 0x10], rcx
mov qword [rdx + 8], r11
xor rax, r10
mov qword [rdx], rax
mov eax, 8
sub rax, r8
mov r9d, eax
and r9d, 7
and rax, 0xfffffffffffffff8
cmp r8, rax
jae 0x140007462
mov rcx, qword [rdx]
mov r10, qword [rdx + 8]
mov rsi, qword [rdx + 0x18]
mov r11, qword [rdx + 0x10]
nop word cs:[rax + rax]
add rcx, r11
rol r11, 0xd
mov rdi, qword [rsp + r8]
xor r11, rcx
rol rcx, 0x20
xor rsi, rdi
add r10, rsi
rol rsi, 0x10
xor rsi, r10
add rcx, rsi
rol rsi, 0x15
add r10, r11
rol r11, 0x11
xor r11, r10
rol r10, 0x20
xor rsi, rcx
xor rcx, rdi
add r8, 8
cmp r8, rax
jb 0x140007410
mov qword [rdx + 0x18], rsi
mov qword [rdx + 0x10], r11
mov qword [rdx + 8], r10
mov qword [rdx], rcx
cmp r9d, 3
jbe 0x14000747f
mov r10d, dword [rsp + r8]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x140007490
jmp 0x1400074aa
xor eax, eax
xor r10d, r10d
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x1400074aa
lea rcx, [rax + r8]
movzx r11d, word [rsp + rcx]
lea ecx, [rax*8]
shl r11, cl
or r10, r11
or rax, 2
cmp rax, r9
jae 0x1400074c2
add r8, rax
movzx r8d, byte [rsp + r8]
shl eax, 3
mov ecx, eax
shl r8, cl
or r10, r8
mov qword [rdx + 0x38], r10
mov qword [rdx + 0x40], r9
add rsp, 8
pop rdi
pop rsi
ret
Function at 0x1400095c0
Capabilities:
Get memory capacity

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rcx
xorps xmm6, xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
mov dword [rsp + 0x90], 0x40
lea rcx, [rsp + 0x90]
call sub.KERNEL32.dll_GlobalMemoryStatusEx
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsi + 0x130], xmm0
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x20]
mov edx, 0x68
call sub.PSAPI.DLL_GetPerformanceInfo
cmp eax, 1
jne 0x1400096ad
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x40]
xor r10d, r10d
sub r8, r9
cmovb r8, r10
mov rcx, qword [rsp + 0x70]
mov rax, rcx
mul r8
mov r8, rax
mov r11, 0xffffffffffffffff
cmovo r8, r11
mov rdi, qword [rsp + 0x28]
sub rdi, r9
cmovb rdi, r10
mov rax, rcx
mul rdi
cmovo rax, r11
mov qword [rsi + 0x140], r8
mov qword [rsi + 0x148], rax
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x14000ac50
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 0x20], 0
cmp qword [rdx + 0x10], 0
je 0x14000ad4b
mov qword [rbp - 0x10], rdx
lea rcx, [0x140033d1e]
call sub.OLEAUT32.dll_SysReAllocString
mov rdi, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysReAllocString
mov rbx, rax
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8, rbx
mov r9d, 0x30
call rax
mov r14d, eax
mov rcx, rdi
call sub.OLEAUT32.dll_SysStringLen
mov rcx, rbx
call sub.OLEAUT32.dll_SysStringLen
test r14d, r14d
mov rdx, qword [rbp - 0x10]
js 0x14000ad4b
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
cmp qword [rdx + 0x20], 0
je 0x14000ad0f
mov rax, qword [rbp - 0x10]
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14000ad0f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x10]
mov qword [rcx + 0x20], 1
mov rax, qword [rbp - 0x18]
mov qword [rcx + 0x28], rax
mov rax, qword [rcx + 0x30]
mov qword [rsi + 0x30], rax
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, qword [rcx + 0x20]
mov qword [rsi + 0x20], rax
mov rax, qword [rcx + 0x28]
mov qword [rsi + 0x28], rax
jmp 0x14000ad5a
mov qword [rsi], 2
mov rcx, rdx
call fcn.140009fc0
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14000bdc0
Capabilities:
Get disk size

Disassembly:
push rsi
sub rsp, 0x30
cmp qword [rcx + 0x30], 0
je 0x14000be00
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov rcx, qword [rcx + 0x60]
lea r9, [rsp + 0x28]
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x14000be00
mov rax, qword [rsp + 0x28]
mov qword [rsi + 0x38], rax
mov al, 1
add rsp, 0x30
pop rsi
ret
xor eax, eax
add rsp, 0x30
pop rsi
ret

Function at 0x14000e390
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 0x14000e3d2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14000e3da
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000e3eb
jmp 0x14000e402
xor r10d, r10d
jmp 0x14000e48d
xor r9d, r9d
xor esi, esi
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14000e402
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14000e419
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 0x14000e439
add r11, r8
jmp 0x14000e56a
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 0x14000e502
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14000e4b0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14000e520
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14000e532
jmp 0x14000e54c
xor r8d, r8d
xor r9d, r9d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14000e54c
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 0x14000e566
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 0x14000f900
Capabilities:
Get local ipv4 addresses

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov dword [rbp + 0x18], 0x3c00
mov dword [rbp + 0x14], 0
xor ebx, ebx
lea r14, [rbp + 0x18]
xor r15d, r15d
nop dword [rax]
cmp ebx, 3
jae 0x14000fa08
mov edx, dword [rbp + 0x18]
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
je 0x14000f99e
mov rdi, rax
mov qword [rbp + 8], rax
mov byte [rbp + 0x1f], 1
mov qword [rsp + 0x20], r14
xor ecx, ecx
mov edx, 0xe
xor r8d, r8d
mov r9, rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
inc ebx
mov dword [rbp + 0x14], eax
mov r15, rdi
cmp eax, 0x6f
je 0x14000f940
test eax, eax
jne 0x14000fa05
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
xor eax, eax
mov qword [rsi], rax
jmp 0x14000fa7a
mov ebx, 1
mov ecx, 0x32
mov edx, 1
call fcn.140003720
test rax, rax
je 0x14000fa8d
mov rdi, rax
movups xmm0, xmmword [0x140034210]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [0x140034200]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [str.failed_to_allocate_memory_for_IP_ADAPTER_ADDRESSESGetAdaptersAddresses___failed_with_code]
movups xmmword [rax], xmm0
mov word [rax + 0x30], 0x5345
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov qword [rsi + 8], 0x32
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 0x32
mov qword [rsi], rbx
jmp 0x14000fa7a
mov r15, rdi
lea rax, [rbp + 0x14]
mov qword [rbp - 0x10], rax
lea rax, [0x14002d520]
mov qword [rbp - 8], rax
lea rax, [0x140034250]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x58], 0
lea rax, [rbp - 0x10]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp + 8], r15
mov byte [rbp + 0x1f], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.1400286d0
mov rax, qword [rbp - 0x18]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], 1
mov rcx, r15
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp], r15
mov ecx, 0x32
mov edx, 1
call fcn.140031ba0
ud2
Function at 0x140015490
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 0x140015530
jmp 0x14001551f
jae 0x1400155f0
cmp r8, 0x201
jae 0x140015530
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140015588
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14001555f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.140031080
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 0x1400155b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140015658
mov r8d, r14d
cmp r15, r8
jne 0x140015510
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001567b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001551f
jmp 0x140015530
cmp rsi, r8
jb 0x140015695
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140017d70
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 0x140015641
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140003730
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 0x140015629
jmp 0x140015641
lea rcx, [0x1400346eb]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140031cc0
jmp 0x1400156aa
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400320b0
ud2
Function at 0x140018790
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 0x1400187c0
test ecx, ecx
jne 0x140018810
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400187cc
test ecx, ecx
jne 0x140018810
mov rcx, rdi
call fcn.140018670
movzx eax, al
test bpl, bpl
jne 0x140018817
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140018803.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140018988]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140018803.2
xor eax, eax
test bpl, bpl
je 0x1400187dc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140018969
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14001884a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1400188c9
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 0x140018890
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1400188ab
inc rax
dec rdi
cmp rax, 1
jne 0x140018870
jmp 0x1400188c9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1400188ab
cmp ebx, 0x5c
je 0x1400188ab
inc rax
dec rdi
cmp rax, 1
jne 0x140018890
jmp 0x1400188c9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140018977
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1400188f3
mov al, 9
cmp rdx, 2
je 0x1400188f7
cmp rdx, 1
jne 0x140018907
cmp byte [r8], 0x2e
jne 0x140018907
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140018907
mov al, 0xa
jmp 0x140018907
cmp byte [r8], 0x2e
jne 0x140018907
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.0x140018803.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.0x140018803.2
mov ecx, 2
jmp case.0x140018803.2
lea r8, str.library_std_srcpath.rs
call fcn.1400320a0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1400320a0
ud2
Function at 0x14001d990
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 0x14001da3b
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x14001da72
test eax, eax
js 0x14001da4c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001da65
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.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x140034448]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x140029bb0]
mov qword [rsp + 0x70], rax
lea rax, [0x140034890]
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.1400178d0
mov rcx, rax
call fcn.140012f90
mov ecx, 7
int 0x29
ud2

Function at 0x14001e9d0
Capabilities:
Generate random numbers via winapi

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

Function at 0x14001ea20
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 0x14001ea63
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, [0x140015ed0]
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.140031c20
ud2
Function at 0x14002c850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002c8ca
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 0x14002c8c0
cmp r10, r11
jb 0x14002c963
cmp r10, rdx
ja 0x14002c977
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002c8c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002c8a0
jmp 0x14002c937
ja 0x14002c8ca
mov r11, r10
cmp rax, r8
jne 0x14002c872
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002c93b
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 0x14002c910
mov r8, r10
sub ecx, r9d
jns 0x14002c92e
jmp 0x14002c93d
cmp r10, rdx
je 0x14002c949
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002c93d
xor al, 1
cmp r8, rdx
jne 0x14002c8f0
jmp 0x14002c93d
xor eax, eax
jmp 0x14002c93d
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.140031cc0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400320c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400320b0
ud2

Function at 0x14002e518
Capabilities:
Parse pe header

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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001be4
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1409eca41]
jmp 0x140001ad6
mov byte [0x1409eca41], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1409eca20]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001be4
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x8a
mov byte [rsp + 0x21], 0x8c
mov byte [rsp + 0x22], 0x86
mov byte [rsp + 0x23], 0x8d
mov byte [rsp + 0x24], 0x8b
mov byte [rsp + 0x25], 0x89
mov byte [rsp + 0x26], 0x79
mov byte [rsp + 0x27], 0x7b
mov byte [rsp + 0x28], 0x86
mov byte [rsp + 0x29], 0x7b
mov byte [rsp + 0x2a], 0x85
mov byte [rsp + 0x2b], 0x89
mov byte [rsp + 0x2c], 0x8c
mov byte [rsp + 0x2d], 0x81
mov byte [rsp + 0x2e], 0x7c
mov byte [rsp + 0x2f], 0x8a
mov byte [rsp + 0x30], 0x76
mov byte [rsp + 0x31], 0x82
mov byte [rsp + 0x32], 0x7d
mov byte [rsp + 0x33], 0x8d
mov byte [rsp + 0x34], pe_nt_image_headers64
mov byte [rsp + 0x35], 0x75
mov byte [rsp + 0x36], 0x85
mov byte [rsp + 0x37], 0x7b
mov byte [rsp + 0x38], 0x7f
mov byte [rsp + 0x39], 0x87
mov byte [rsp + 0x3a], 0x77
mov byte [rsp + 0x3b], pe_nt_image_headers64
mov byte [rsp + 0x3c], 0x77
mov byte [rsp + 0x3d], 0x89
mov byte [rsp + 0x3e], 0x7e
mov byte [rsp + 0x3f], pe_nt_image_headers64
mov byte [rsp + 0x40], 0x13
cmp byte [0x1409eca00], 0
jne 0x140001bbf
mov byte [0x1409eca41], 1
mov eax, 0
lea rcx, [0x1409eca20]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001b9e
mov byte [0x1409eca00], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1409eca41], 0
je 0x140001aa8
lea rax, [0x1409eca20]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001bd3
jmp 0x140001aa1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret