joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002214
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rcx, qword [rcx]
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov r15, rdx
lea rdx, str.CLRCreateInstance
mov esi, r8d
xor r14b, r14b
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x180002272
lea rdx, str.Could_not_find_.NET_4.0_API_CLRCreateInstance
lea rcx, [0x1800218a0]
call fcn.1800010c8
jmp 0x1800023af
lea rcx, [rbp - 0x10]
call fcn.180001a54
lea rdx, [0x180012548]
lea rcx, [0x180012528]
mov r8, rax
call rbx
test eax, eax
jns 0x18000229e
lea rdx, str.CLRCreateInstance_failed_w_hr_0x_08lx_n
jmp 0x18000239b
cmp esi, 2
jne 0x18000230f
lea rcx, [rbp - 8]
call fcn.180001a54
mov rcx, qword [rbp - 0x10]
lea r8, [0x180012558]
mov rbx, rax
mov rax, qword [rcx]
lea rdx, [0x1800126d8]
mov r9, rbx
call qword [rax + SafeArrayCopy]
test eax, eax
jns 0x18000233d
lea rdx, str.ICLRMetaHost::GetRuntime__v2.0.50727__failed_w_hr_0x_08lx_n
lea rcx, [0x1800218a0]
mov r8d, eax
call fcn.1800010c8
mov rcx, qword [rbp - 0x10]
lea r8, [0x180012558]
mov rax, qword [rcx]
lea rdx, str.v4.0.30319
mov r9, rbx
call qword [rax + SafeArrayCopy]
test eax, eax
jns 0x18000233d
lea rdx, str.ICLRMetaHost::GetRuntime__v4.0.30319__failed_w_hr_0x_08lx_n
jmp 0x18000239b
cmp esi, 4
jne 0x18000233d
mov rbx, qword [rbp - 0x10]
lea rcx, [rbp - 8]
mov rdi, qword [rbx]
call fcn.180001a54
lea r8, [0x180012558]
lea rdx, str.v4.0.30319
mov r9, rax
mov rcx, rbx
call qword [rdi + SafeArrayCopy]
jmp 0x1800022ff
mov rcx, qword [rbp - 8]
lea rdx, [rbp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x180002358
lea rdx, str.ICLRRuntimeInfo::IsLoadable_failed_w_hr_0x_08lx_n
jmp 0x18000239b
cmp dword [rbp + 0x38], 0
jne 0x18000236a
mov r8d, esi
lea rdx, str..NET_runtime__ver__d__cannot_be_loaded_n
jmp 0x18000239e
mov rbx, qword [rbp - 8]
mov rcx, r15
mov rdi, qword [rbx]
call fcn.180001a54
lea r8, [0x180012568]
lea rdx, [0x180012538]
mov r9, rax
mov rcx, rbx
call qword [rdi + 0x48]
test eax, eax
jns 0x1800023ac
lea rdx, str.ICLRRuntimeInfo::GetInterface_failed_w_hr_0x_08lx_n
mov r8d, eax
lea rcx, [0x1800218a0]
call fcn.1800010c8
jmp 0x1800023af
mov r14b, 1
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1800023c3
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbp - 0x10], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1800023d2
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov al, r14b
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1800023f0
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbp, rdx
lea rdx, str.CorBindToRuntime
mov rsi, r8
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x180002439
lea rdx, str.Could_not_find_API_CorBindToRuntime
lea rcx, [0x1800218a0]
call fcn.1800010c8
jmp 0x18000247e
mov rcx, rsi
call fcn.180001a54
lea r9, [0x180012568]
lea r8, [0x180012538]
lea rdx, [0x180012860]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call rdi
test eax, eax
jns 0x18000247c
lea rdx, str.CorBindToRuntime_failed_w_hr_0x_08lx_n
lea rcx, [0x1800218a0]
mov r8d, eax
call fcn.1800010c8
jmp 0x18000247e
mov bl, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1800010b0
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]
cmp rdi, 0x40000000
jbe 0x1800010eb
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovbe r14, rax
mov rsi, qword [0x180048e40]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovb r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x18000112d
cmp rsi, r14
jb 0x180001125
cmp rsi, r15
jae 0x180001125
cmp qword [rsi + 8], 0
jne 0x1800012f5
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001110
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 0x1800011b9
nop dword [rax]
nop word [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 0x1800011b9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800011b9
cmp dword [rsp + 0x70], 0x10000
je 0x18000123b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800011b9
sub rbx, rbp
cmp rbx, r14
jae 0x180001180
test rsi, rsi
jne 0x1800012a0
cmp rdi, r15
ja 0x1800012dd
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 0x1800012dd
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800012dd
cmp dword [rsp + 0x70], 0x10000
je 0x180001271
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 0x1800011f2
jmp 0x1800012dd
test rbx, rbx
je 0x1800011b9
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 0x1800012a0
cmp rbx, r14
jae 0x180001160
jmp 0x1800011c2
test rdi, rdi
je 0x1800012dd
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 0x1800012a0
cmp rdi, r15
jbe 0x1800011d0
jmp 0x1800012dd
xor eax, eax
lea rcx, [rsi + 0x40]
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add r12, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp r12, 0xfc0
jbe 0x1800012b0
mov rax, qword [0x180048e40]
mov qword [rsi], rax
mov qword [0x180048e40], 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 0x180001e40
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180045010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001f6b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180001f62
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180001f44
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180001f44
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180001f44
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180001f02
mov rcx, qword [0x180048d28]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180001f62
jmp 0x180001f37
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180001f37
mov rcx, qword [0x180048d28]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180001f62
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
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], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180001eb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180001fc3
cmp dword [rbx + 0xc], esi
jbe 0x180001fc3
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180001fbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180001c80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180001f80
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003140
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180001ff0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rdi, rcx
test r8, r8
je 0x180002061
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18000204d
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 0x18000203e
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 0x180002012
mov r8, qword [rdi]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [0x180048d28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180002070
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rbx, rax, 0x38
add rbx, qword [0x180048e30]
mov eax, dword [rbx + 0x20]
mov rdx, qword [rbx]
shl eax, 0x1f
mov rdi, rdx
sar eax, 0x1f
test eax, eax
je 0x1800020a7
lea rdi, [rdx - 5]
test eax, eax
lea r9, [rsp + 0x38]
mov ecx, 5
mov esi, 7
cmove esi, ecx
mov r8d, 0x40
lea rcx, [rdx - 5]
cmove rcx, rdx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800020ea
mov eax, 0xa
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180002106
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or dword [rbx + 0x20], 6
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002150
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 8], ecx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x28], rsp
xor edi, edi
nop
cmp edi, dword [0x180048e3c]
jae 0x18000226b
mov eax, edi
imul rcx, rax, 0x38
mov rax, qword [0x180048e30]
mov edx, dword [rcx + rax + 0x20]
shl edx, 0x1e
sar edx, 0x1f
cmp edx, 1
je 0x180002264
mov edx, 0xffffffff
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.180001e40
nop
cmp edi, dword [0x180048e3c]
jae 0x180002206
mov eax, edi
imul rcx, rax, 0x38
mov rax, qword [0x180048e30]
mov edx, dword [rcx + rax + 0x20]
shl edx, 0x1e
sar edx, 0x1f
cmp edx, 1
je 0x1800021fe
mov ecx, edi
call fcn.180002070
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1800021fe
lea rdx, [0x1800021f8]
mov rcx, qword [rsp + 0x28]
call fcn.18002f0b8
nop
nop
mov eax, dword [rsp + 0x60]
jmp 0x18000226d
inc edi
mov dword [rsp + 0x20], edi
jmp 0x1800021b2
mov r15, qword [rsp + 0x30]
test r15, r15
je 0x180002264
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x180002252
mov rbx, r15
mov r14d, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180002248
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub r14, 1
jne 0x180002220
mov r8, r15
xor edx, edx
mov rcx, qword [0x180048d28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
jmp 0x180002170
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180012848
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18001285b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.180012e68
lea rdx, [0x180043888]
lea rcx, [rsp + 0x20]
call fcn.18000671c
int3

Function at 0x18001e5c8
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x180048a48]
xor edx, edx
jmp fcn.180012848

Function at 0x18001ef64
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x180048a48]
jmp fcn.180012848

Function at 0x18002abdc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x18002ac98]
mov r9, qword [r9 + 8]
jmp fcn.18001aa9c

Function at 0x18002ac70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x18002aca8]
mov r9, qword [r9 + 8]
jmp fcn.18001aa9c
Function at 0x14000b640
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
cmp qword [rdx + 0x18], 8
mov rbp, rcx
mov qword [rdx + 0x10], rbx
jb 0x14000b665
mov rax, qword [rdx]
jmp 0x14000b668
mov rax, rsi
xor r8d, r8d
mov word [rax], bx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x14000b6be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000b6ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000b69c
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140009e80
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
mov eax, 2
mov qword [rsp + 0x40], rdi
mul r14
mov qword [rsp + 0x48], r15
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.14000e4cc
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14000b721
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000b70b
movzx eax, ax
or eax, 0x80070000
mov r8d, eax
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
mov rdx, rbp
call fcn.140009e80
xor al, al
jmp 0x14000b752
cmp word [rdi], bx
je 0x14000b73a
mov rbx, r15
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x14000b730
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400060f0
mov rcx, rdi
call fcn.14000dda8
mov al, 1
mov rdi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rsi
pop rbp
ret
Function at 0x140001920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r11, qword [rdx + 0x20]
mov r10, qword [rdx + 0x28]
lea rcx, [r10 + 1]
mov qword [rdx + 0x28], rcx
mov al, 1
cmp rcx, r11
jae 0x140001962
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + rcx]
mov al, 1
cmp edi, 0x2b
je 0x140001957
cmp edi, 0x2d
jne 0x140001962
xor eax, eax
add r10, 2
mov qword [rdx + 0x28], r10
mov rcx, r10
cmp rcx, r11
jae 0x140001b0a
mov rdi, qword [rdx + 0x18]
movzx r10d, byte [rdi + rcx]
lea rbx, [rcx + 1]
mov qword [rdx + 0x28], rbx
add r10b, 0xd0
cmp r10b, 0xa
jae 0x140001b15
movzx r10d, r10b
cmp rbx, r11
jae 0x140001a10
mov ebx, 1
sub rbx, r11
add rcx, 2
jmp 0x1400019cc
movzx r11d, r11b
lea r10d, [r10 + r10*4]
lea r10d, [r11 + r10*2]
lea r11, [rbx + rcx]
inc r11
inc rcx
cmp r11, 2
je 0x140001a10
movzx r11d, byte [rdi + rcx - 1]
add r11b, 0xd0
cmp r11b, 0xa
jae 0x140001a10
mov qword [rdx + 0x28], rcx
cmp r10d, 0xccccccb
jle 0x1400019b0
cmp r10d, 0xccccccc
jne 0x1400019f8
cmp r11b, 7
jbe 0x1400019b0
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
mov rcx, rsi
call fcn.1400299f0
jmp 0x140001af7
mov ecx, dword [rsp + 0x80]
test al, al
je 0x140001a2c
lea eax, [rcx + r10]
sar eax, 0x1f
add eax, 0x80000000
add ecx, r10d
jmp 0x140001a3c
xor eax, eax
cmp ecx, r10d
setns al
add eax, 0x7fffffff
sub ecx, r10d
cmovo ecx, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x14002c360]
subpd xmm1, xmmword [0x14002c370]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x135
jb 0x140001aa8
xorpd xmm1, xmm1
movsd xmm2, qword [0x14002c380]
nop word [rax + rax]
ucomisd xmm0, xmm1
jne 0x140001a88
jnp 0x140001ae0
test ecx, ecx
jns 0x140001b3b
divsd xmm0, xmm2
add ecx, 0x134
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x134
ja 0x140001a80
mov eax, eax
mov r9, qword [section..data]
movsd xmm1, qword [r9 + rax*8]
test ecx, ecx
js 0x140001aff
mulsd xmm0, xmm1
movq rax, xmm0
movabs rcx, 0x7fffffffffffffff
and rcx, rax
movabs rax, 0x7ff0000000000000
cmp rcx, rax
je 0x140001b3b
test r8b, r8b
jne 0x140001aed
xorpd xmm0, xmmword [0x14002c390]
movsd qword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x140001ae5
jmp 0x140001aed
mov qword [rsp + 0x28], 5
jmp 0x140001b1e
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140029a90
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140001af7
mov qword [rsp + 0x28], 0xe
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140029a90
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140001af4
Function at 0x140009820
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rax, rdx
mov qword [rsp + 0x10], rcx
mov edi, dword [rdx]
mov r11d, dword [rdx + 4]
mov ecx, dword [rdx + 8]
mov qword [rsp], rcx
mov ebp, dword [rdx + 0xc]
mov esi, dword [r8]
mov ecx, dword [r8 + 4]
mov qword [rsp + 8], rcx
mov ecx, dword [r8 + 8]
mov r13d, dword [r8 + 0xc]
mov r8d, dword [rdx + 0x10]
mov edx, dword [rdx + 0x14]
mov r9d, dword [rax + 0x18]
mov eax, dword [rax + 0x1c]
mov ebx, 0x79622d32
mov r14d, 0x3320646e
mov r12d, 0x61707865
mov r15d, 0x6b206574
mov r10d, 0xa
mov qword [rsp + 0x18], r10
mov r10, qword [rsp]
mov qword [rsp], r11
lea r11d, [rdx + r12]
rol r11d, 7
xor r11d, ebp
mov qword [rsp + 0x30], r11
lea ebp, [r11 + r12]
rol ebp, 9
xor ebp, ecx
mov qword [rsp + 0x40], rbp
lea ecx, [r11 + rbp]
rol ecx, 0xd
xor ecx, edx
mov qword [rsp + 0x48], rcx
add ecx, ebp
rol ecx, 0x12
xor ecx, r12d
lea edx, [rdi + r14]
rol edx, 7
xor edx, r13d
mov qword [rsp + 0x28], rdx
lea r12d, [rdx + r14]
rol r12d, 9
xor r12d, r9d
mov qword [rsp + 0x38], r12
add edx, r12d
rol edx, 0xd
xor edx, edi
lea r9d, [rdx + r12]
rol r9d, 0x12
xor r9d, r14d
lea r11d, [rsi + rbx]
rol r11d, 7
xor r11d, eax
mov qword [rsp + 0x20], r11
lea r12d, [r11 + rbx]
rol r12d, 9
xor r12d, dword [rsp]
lea r14d, [r12 + r11]
rol r14d, 0xd
xor r14d, esi
lea eax, [r14 + r12]
rol eax, 0x12
xor eax, ebx
lea esi, [r8 + r15]
rol esi, 7
xor esi, r10d
lea r13d, [rsi + r15]
rol r13d, 9
xor r13d, dword [rsp + 8]
lea ebx, [rsi + r13]
rol ebx, 0xd
xor ebx, r8d
lea r8d, [rbx + r13]
rol r8d, 0x12
xor r8d, r15d
mov qword [rsp], r8
lea edi, [rsi + rcx]
rol edi, 7
xor edi, edx
lea r11d, [rdi + rcx]
rol r11d, 9
xor r11d, r12d
lea r10d, [r11 + rdi]
rol r10d, 0xd
xor r10d, esi
lea r12d, [r10 + r11]
rol r12d, 0x12
xor r12d, ecx
mov rdx, qword [rsp + 0x30]
lea esi, [r9 + rdx]
rol esi, 7
xor esi, r14d
lea ecx, [rsi + r9]
rol ecx, 9
xor ecx, r13d
lea ebp, [rcx + rsi]
rol ebp, 0xd
xor ebp, edx
mov qword [rsp + 8], rcx
lea r14d, [rcx + rbp]
rol r14d, 0x12
xor r14d, r9d
mov rdx, qword [rsp + 0x28]
lea r8d, [rax + rdx]
rol r8d, 7
xor r8d, ebx
lea ecx, [r8 + rax]
rol ecx, 9
xor ecx, dword [rsp + 0x40]
lea r13d, [rcx + r8]
rol r13d, 0xd
xor r13d, edx
lea ebx, [rcx + r13]
rol ebx, 0x12
xor ebx, eax
mov r15, qword [rsp + 0x20]
mov rax, qword [rsp]
lea edx, [rax + r15]
rol edx, 7
xor edx, dword [rsp + 0x48]
lea r9d, [rdx + rax]
rol r9d, 9
xor r9d, dword [rsp + 0x38]
lea eax, [r9 + rdx]
rol eax, 0xd
xor eax, r15d
lea r15d, [rax + r9]
rol r15d, 0x12
xor r15d, dword [rsp]
dec qword [rsp + 0x18]
jne 0x140009890
mov rax, qword [rsp + 0x10]
mov dword [rax], r12d
mov dword [rax + 4], r14d
mov dword [rax + 8], ebx
mov dword [rax + 0xc], r15d
mov dword [rax + 0x10], esi
mov rdx, qword [rsp + 8]
mov dword [rax + 0x14], edx
mov dword [rax + 0x18], ecx
mov dword [rax + 0x1c], r13d
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000feb0
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 r12d, r12d
cmp r8, 0x201
jae 0x14000ff50
jmp 0x14000ff3f
jae 0x140010010
cmp r8, 0x201
jae 0x14000ff50
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000ffa8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000ff7f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14002a420
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000ffd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140010078
mov r8d, r14d
cmp r15, r8
jne 0x14000ff30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400100a5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000ff3f
jmp 0x14000ff50
cmp rsi, r8
jb 0x1400100bf
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140011600
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 0x140010061
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140004940
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140010049
jmp 0x140010061
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002ad10
jmp 0x1400100d4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002b1a0
ud2