joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18013a990
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1801be118]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov edi, r15d
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18013ab38
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18013aad5
lea edi, [r15 + 1]
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18013aa90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18013aa90
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18013aa90
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18013aa52
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180259160]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18013aab8
jmp 0x18013aa83
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18013aa83
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rbx + 8], eax
mov rcx, qword [0x180259160]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18013aab8
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18013aa00
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18013aad5
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x18013aad5
mov rcx, qword [0x180259160]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18013ab38
cmp qword [rbx], r15
je 0x18013ab33
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x18013ab33
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18013ab2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18013b120
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18013aaf0
mov eax, r15d
jmp 0x18013ab3d
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801320c0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18013b2d0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18013b33f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18013b328
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18013b31c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18013b2f0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180259160]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18013b400
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18013b440
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18025a368]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18013b47e
cmp rsi, r14
jb 0x18013b476
cmp rsi, r15
jae 0x18013b476
cmp qword [rsi + 8], 0
jne 0x18013b647
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18013b461
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18013b512
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18013b509
nop word [rax + rax]
mov r8d, Ordinal_50
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18013b509
cmp dword [rsp + 0x70], 0x10000
je 0x18013b58b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18013b509
sub rbx, rbp
cmp rbx, r14
jae 0x18013b4d0
test rsi, rsi
jne 0x18013b5f0
cmp rdi, r15
ja 0x18013b62f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18013b62f
mov r8d, Ordinal_50
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18013b62f
cmp dword [rsp + 0x70], 0x10000
je 0x18013b5c1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18013b542
jmp 0x18013b62f
test rbx, rbx
je 0x18013b509
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18013b5f0
cmp rbx, r14
jae 0x18013b4b0
jmp 0x18013b512
test rdi, rdi
je 0x18013b62f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18013b5f0
cmp rdi, r15
jbe 0x18013b520
jmp 0x18013b62f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18013b600
mov rax, qword [0x18025a368]
mov qword [rsi], rax
mov qword [0x18025a368], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180001750
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r10, rdx
mov rsi, rdx
sub r10, rcx
mov rbx, rcx
mov r8, rcx
mov r11d, 4
nop dword [rax]
mov r9d, 4
nop word [rax + rax]
movzx eax, byte [r10 + r8 + 0xa0]
xor byte [r8], al
inc r8
sub r9, 1
jne 0x180001790
sub r11, 1
jne 0x180001780
mov dil, 9
lea rbp, [0x1800163d0]
movzx eax, byte [rbx + 9]
mov r8, rbx
movzx ecx, byte [rbx + 0xd]
mov r9d, 4
mov byte [rbx + 0xd], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 9], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 5], al
movzx eax, byte [rbx + 0xa]
mov byte [rbx + 1], cl
movzx ecx, byte [rbx + 2]
mov byte [rbx + 2], al
movzx eax, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
movzx ecx, byte [rbx + 6]
mov byte [rbx + 6], al
movzx eax, byte [rbx + 7]
mov byte [rbx + 0xe], cl
movzx ecx, byte [rbx + 3]
mov byte [rbx + 3], al
movzx eax, byte [rbx + 0xb]
mov byte [rbx + 7], al
movzx eax, byte [rbx + 0xf]
mov byte [rbx + 0xb], al
mov byte [rbx + 0xf], cl
nop dword [rax]
nop word [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + rbp]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x180001830
inc r8
sub r9, 1
jne 0x180001820
movzx r8d, dil
lea r9d, [rdx + 4]
shl r8, 4
mov rax, rbx
sub r8, rbx
add r8, rsi
nop dword [rax]
nop word [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x180001880
sub r9, 1
jne 0x180001870
test dil, dil
je 0x1800018ac
mov rcx, rbx
call fcn.180001490
add dil, 0xff
jmp 0x1800017b5
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002f30
Capabilities:
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rsi
push r14
sub rsp, 0x80
xor r10d, r10d
mov dword [rax - 0x68], 0x67452301
xor r9d, r9d
mov dword [rax - 0x64], 0xefcdab89
mov dword [rax - 0x60], 0x98badcfe
mov rsi, rdx
mov dword [rax - 0x5c], 0x10325476
mov r14, rcx
mov dword [rax - 0x58], 0xc3d2e1f0
mov qword [rax - 0x54], r10
test r8d, r8d
je 0x18000305f
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov ebp, r8d
nop dword [rax + rax]
lea eax, [r9 + 8]
mov dword [rsp + 0x34], eax
cmp eax, r9d
jae 0x180002fa5
inc r10d
mov dword [rsp + 0x38], r10d
shr r9d, 3
and r9d, 0x3f
lea eax, [r9 + 1]
cmp eax, 0x3f
jbe 0x18000300f
mov eax, r9d
lea rcx, [rsp + 0x3c]
mov ebx, 0x40
add rcx, rax
sub ebx, r9d
mov rdx, rsi
mov r8d, ebx
call fcn.180005590
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x20]
call fcn.1800018d0
lea edi, [rbx + 0x3f]
cmp edi, 1
jae 0x18000300a
nop dword [rax + rax]
mov edx, ebx
lea rcx, [rsp + 0x20]
add rdx, rsi
call fcn.1800018d0
add ebx, 0x40
add edi, 0x40
cmp edi, 1
jb 0x180002ff0
xor r9d, r9d
jmp 0x180003011
xor ebx, ebx
mov r8d, 1
mov eax, r9d
mov edx, ebx
lea rcx, [rsp + 0x3c]
sub r8d, ebx
add rdx, rsi
add rcx, rax
call fcn.180005590
inc rsi
sub rbp, 1
je 0x180003047
mov r10d, dword [rsp + 0x38]
mov r9d, dword [rsp + 0x34]
jmp 0x180002f90
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0xa0]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180002c10
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop r14
ret
Function at 0x180003080
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x1800199e0], 0
jne 0x180003260
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x18000326a
mov r9, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x1800030ee
lea rdx, [r9 + rcx]
mov ecx, dword [r9 + rcx + 0xc]
mov eax, dword [rcx + r9]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x1800030ee
mov eax, dword [rcx + r9 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1800030fa
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x1800030b1
test rdx, rdx
je 0x18000326a
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r9
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x38], rdi
add rsi, r9
mov qword [rsp + 0x10], r12
mov r12d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r9
mov qword [rsp], r15
xor r8d, r8d
lea r15, [0x1800199e0]
nop dword [rax + rax]
dec ebx
mov r10d, dword [rsi + rbx*4]
add r10, r9
movzx eax, word [r10]
cmp ax, r12w
jne 0x1800031b3
xor r11d, r11d
mov edx, 0x97dafe7b
test al, al
je 0x18000318c
mov rax, r10
movzx eax, word [rax]
mov ecx, edx
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, r10
xor edx, ecx
cmp byte [rax], 0
jne 0x180003172
lea rcx, [r8*8]
inc r8d
mov dword [rcx + r15 + 4], edx
movzx eax, word [rbp + rbx*2]
mov eax, dword [r14 + rax*4]
mov dword [rcx + r15 + 8], eax
cmp r8d, 0x1f4
je 0x1800031b7
test ebx, ebx
jne 0x180003150
mov r14, qword [rsp + 8]
lea eax, [r8 - 1]
mov r12, qword [rsp + 0x10]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov dword [0x1800199e0], r8d
test eax, eax
je 0x180003252
nop dword [rax]
mov ecx, r8d
xor eax, eax
sub ecx, edx
cmp ecx, 1
je 0x180003248
nop dword [rax]
mov ecx, eax
lea r9d, [rax + 1]
lea r10, [r9*8]
mov ebx, dword [r10 + r15 + 8]
lea r11, [rcx*8]
mov edi, dword [r11 + r15 + 8]
cmp edi, ebx
jbe 0x180003239
mov ecx, dword [r11 + r15 + 4]
mov eax, dword [r10 + r15 + 4]
mov dword [r11 + r15 + 4], eax
mov dword [r10 + r15 + 4], ecx
mov dword [r11 + r15 + 8], ebx
mov dword [r10 + r15 + 8], edi
mov r8d, dword [0x1800199e0]
mov ecx, r8d
mov eax, r9d
sub ecx, edx
dec ecx
cmp r9d, ecx
jb 0x1800031f0
inc edx
lea eax, [r8 - 1]
cmp edx, eax
jb 0x1800031e0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret
Function at 0x180003dc0
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 ecx, dword [section..data]
call fcn.180003280
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 0x140001dcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e16
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e18
xor al, al
add rsp, 0x28
ret
Function at 0x140003b40
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 0x140003be0
jmp 0x140003bcf
jae 0x140003ca0
cmp r8, 0x201
jae 0x140003be0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140003c38
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x140003c0f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14001a320
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 0x140003c61
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003d08
mov r8d, r14d
cmp r15, r8
jne 0x140003bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003d2b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003bcf
jmp 0x140003be0
cmp rsi, r8
jb 0x140003d45
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140005400
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 0x140003cf1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400011d0
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 0x140003cd9
jmp 0x140003cf1
lea rcx, [0x14001c6b3]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001adb0
jmp 0x140003d5a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001b1a0
ud2
Function at 0x140005e20
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 0x140005e50
test ecx, ecx
jne 0x140005ea0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140005e5c
test ecx, ecx
jne 0x140005ea0
mov rcx, rdi
call fcn.140005d00
movzx eax, al
test bpl, bpl
jne 0x140005ea7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140005e93.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140006018]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140005e93.2
xor eax, eax
test bpl, bpl
je 0x140005e6c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140005ff9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140005eda
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140005f59
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 0x140005f20
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140005f3b
inc rax
dec rdi
cmp rax, 1
jne 0x140005f00
jmp 0x140005f59
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140005f3b
cmp ebx, 0x5c
je 0x140005f3b
inc rax
dec rdi
cmp rax, 1
jne 0x140005f20
jmp 0x140005f59
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140006007
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140005f83
mov al, 9
cmp rdx, 2
je 0x140005f87
cmp rdx, 1
jne 0x140005f97
cmp byte [r8], 0x2e
jne 0x140005f97
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140005f97
mov al, 0xa
jmp 0x140005f97
cmp byte [r8], 0x2e
jne 0x140005f97
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.0x140005e93.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.0x140005e93.2
mov ecx, 2
jmp case.0x140005e93.2
lea r8, str.library_std_srcpath.rs
call fcn.14001b190
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001b190
ud2
Function at 0x14000a760
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 0x14000a80b
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x14000a842
test eax, eax
js 0x14000a81c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000a835
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, [0x14001c438]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x1400156e0]
mov qword [rsp + 0x70], rax
lea rax, [0x14001c7c0]
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.140005050
mov rcx, rax
call fcn.1400019a0
mov ecx, 7
int 0x29
ud2
Function at 0x140018220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001829a
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 0x140018290
cmp r10, r11
jb 0x140018333
cmp r10, rdx
ja 0x140018347
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140018292
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018270
jmp 0x140018307
ja 0x14001829a
mov r11, r10
cmp rax, r8
jne 0x140018242
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001830b
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 0x1400182e0
mov r8, r10
sub ecx, r9d
jns 0x1400182fe
jmp 0x14001830d
cmp r10, rdx
je 0x140018319
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001830d
xor al, 1
cmp r8, rdx
jne 0x1400182c0
jmp 0x14001830d
xor eax, eax
jmp 0x14001830d
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.14001adb0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b1b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b1a0
ud2

Function at 0x140019d84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019dce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019dce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019dce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019dce
cmp dword [rcx + 0x84], 0xe
jbe 0x140019dce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019dd0
xor al, al
add rsp, 0x28
ret
Function at 0x11758
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x100
mov rax, qword [0x00039100]
xor rax, rsp
mov qword [rsp + 0xf0], rax
and qword [rsp + 0x30], 0
and dword [rsp + 0x20], 0
mov bpl, cl
lea r8, [rsp + 0x20]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x20], 0x203a
jbe 0x117bb
xor al, al
jmp 0x11936
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov edi, dword [rsp + 0x24]
mov eax, dword [rsp + 0x28]
and eax, 0xf
shl edi, 4
or edi, eax
call fcn.0002cbe0
mov r14, rax
test rax, rax
je 0x117b4
test bpl, bpl
je 0x1182a
lea rcx, [0x0002fd70]
call fcn.00029dd8
test rax, rax
je 0x117b4
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x117b4
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and dword [0x00040d14], 0
xor esi, esi
cmp dword [0x0003f91c], esi
jle 0x11919
lea rbx, [0x000402f0]
cmp dword [rbx], 0
je 0x1186a
movzx ecx, byte [rbx]
movzx eax, byte [rbx + 1]
test ecx, ecx
je 0x1185e
cmp edi, ecx
jb 0x11907
test eax, eax
je 0x1186a
cmp edi, eax
ja 0x11907
mov edx, dword [rbx - 0x20]
mov r12, qword [rbx - 0x18]
mov r13, qword [rbx - 0x10]
mov r9b, 1
mov rcx, r14
mov r8b, r9b
call fcn.0002cd80
test rax, rax
je 0x118ad
mov r8, r12
mov rdx, r13
mov rcx, rax
call fcn.000267b4
test al, al
je 0x118ad
mov rax, qword [rbx - 8]
or qword [0x00040d18], rax
inc dword [0x00040d14]
jmp 0x11907
xor edx, edx
lea rcx, [rsp + 0x81]
mov byte [rsp + 0x80], 0
lea r8d, [rdx + 0x63]
call fcn.0002f7f0
mov r9d, dword [rbx - 0x20]
lea r8, [0x0002fd90]
lea rcx, [rsp + 0x80]
mov edx, 0x64
call fcn.0001110c
call fcn.0002f700
lea r9, [rsp + 0x80]
mov r8d, eax
xor edx, edx
mov ecx, 0x8000100a
call fcn.0002de1c
inc dword [0x00040d04]
inc esi
add rbx, 0x28
cmp esi, dword [0x0003f91c]
jl 0x11846
test bpl, bpl
je 0x11934
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.0002f1d0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret