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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002a63
cmp byte [rcx + 0x71], 0
je 0x140002a63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002a5f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002a24
sub eax, 1
je 0x140002a28
cmp eax, 2
jne 0x140002a5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003700
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002a56
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002a5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002a0c
xor al, al
jmp 0x140002a0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003700
add rsp, 0x60
pop rbx
ret

Function at 0x140004080
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400040ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400040ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400040ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400040ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400040ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400040cc
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
sub rsp, 0x1f8
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.ntdll.dll_memset
xorps xmm0, xmm0
lea rdx, [rsp + 0xe0]
xor eax, eax
lea rcx, str._SYSTEMROOT_System32CMD.EXE
mov r8d, 0x104
mov qword [rsp + 0x60], rax
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001099
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [rsp + 0x60]
call fcn.140002a84
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400010b0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rcx, str.kernel32.dll
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.kernelbase.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [0x140004350]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1400045b8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008258], rax
test rax, rax
jne 0x14000111d
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, str.CreateIoRing
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008278], rax
test rax, rax
jne 0x140001150
lea rdx, str.CreateIoRing
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008278], rax
lea rdx, str.BuildIoRingWriteFile
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008270], rax
test rax, rax
jne 0x140001183
lea rdx, str.BuildIoRingWriteFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008270], rax
lea rdx, str.BuildIoRingReadFile
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008260], rax
test rax, rax
jne 0x1400011b6
lea rdx, str.BuildIoRingReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008260], rax
lea rdx, str.PopIoRingCompletion
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008280], rax
test rax, rax
jne 0x1400011e9
lea rdx, str.PopIoRingCompletion
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008280], rax
lea rdx, str.SubmitIoRing
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008268], rax
test rax, rax
jne 0x14000121c
lea rdx, str.SubmitIoRing
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140008268], rax
cmp qword [0x140008278], rbx
je 0x140001245
cmp qword [0x140008270], rbx
je 0x140001245
cmp qword [0x140008260], rbx
je 0x140001245
cmp qword [0x140008280], rbx
je 0x140001245
test rax, rax
jne 0x14000124a
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001260
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x40
call fcn.1400010b0
test eax, eax
jne 0x140001417
xor ebx, ebx
lea rax, [0x140008250]
mov edx, ebx
mov qword [rsp + 0x58], rbx
mov r9d, 0x20000
mov qword [rsp + 0x20], rax
mov r8d, 0x10000
mov ecx, 0x12c
call qword [0x140008278]
test eax, eax
jne 0x140001417
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, qword [0x140008250]
lea rcx, [0x140008240]
mov edx, eax
mov r8, qword [r8]
call fcn.140001530
test eax, eax
jne 0x140001417
mov rax, qword [0x140008240]
lea edx, [rbx + 3]
mov qword [rsp + 0x38], rbx
lea rcx, str..pipeioring_in
mov dword [rsp + 0x30], ebx
mov r9d, 0xff
mov dword [rsp + 0x28], 0x1000
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
mov qword [0x140008248], rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rsp + 0x38], rbx
lea edx, [rbx + 3]
mov dword [rsp + 0x30], ebx
lea rcx, str..pipeioring_out
mov dword [rsp + 0x28], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
mov qword [0x140006010], rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp qword [0x140006010], 0xffffffffffffffff
mov qword [0x140006020], rax
je 0x1400013df
cmp rax, 0xffffffffffffffff
je 0x1400013df
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, str..pipeioring_in
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov dword [rsp + 0x28], 0x80
lea rcx, str..pipeioring_out
xor r9d, r9d
mov qword [0x140006008], rax
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp qword [0x140006008], 0xffffffffffffffff
mov qword [0x140006018], rax
je 0x1400013df
cmp rax, 0xffffffffffffffff
jne 0x1400013e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001417
mov rcx, qword [0x140008240]
lea rax, [rcx + 0xb8]
mov qword [0x140008208], rax
lea rax, [rcx + 0xb0]
mov qword [0x140006120], rax
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140001650
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140006018]
xor ebp, ebp
xorps xmm0, xmm0
mov dword [rsp + 0x50], ebp
mov qword [r11 - 0x30], rax
mov rsi, r8
xor eax, eax
mov dword [rsp + 0x40], 1
mov rbx, rdx
mov qword [r11 - 0x40], rbp
mov r14, rcx
lea r9d, [rbp + 4]
movups xmmword [rsp + 0x60], xmm0
mov edx, 0x80
mov qword [r11 - 0x18], rax
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1400016ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400017ba
movaps xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov qword [rax + 0x20], rbx
mov r9d, 8
mov dword [rax + 0x28], 8
mov eax, 0xc02
mov word [rdi], ax
mov dword [rdi + 4], 0x80
mov byte [rdi + 0x2c], 1
mov dword [rdi + 8], 1
mov dword [rsp + 0x38], ebp
mov qword [r14], rdi
mov rcx, qword [0x140008250]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x20], rbp
call qword [0x140008270]
mov ebx, eax
test eax, eax
jne 0x1400017a4
mov rcx, qword [0x140008250]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [0x140008268]
mov ebx, eax
test eax, eax
jne 0x1400017a4
mov rcx, qword [0x140008250]
lea rdx, [rsp + 0x60]
call qword [0x140008280]
mov ebx, eax
test eax, eax
jne 0x1400017a4
mov ebx, dword [rsp + 0x68]
test ebx, ebx
jne 0x1400017a4
mov rcx, qword [0x140006020]
lea r8d, [rax + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400017a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400017a4
mov ebx, ebp
mov edx, 0x80
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400017e0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r14
sub rsp, 0x80
mov rax, qword [0x140006008]
xor ebp, ebp
mov ebx, r9d
mov dword [rsp + 0x50], ebp
mov r10, r8
mov qword [r11 - 0x30], rax
xorps xmm0, xmm0
mov dword [rsp + 0x40], 1
xor eax, eax
mov qword [r11 - 0x40], rbp
mov rsi, rdx
mov qword [r11 - 0x68], rbp
mov r14, rcx
xor r9d, r9d
mov rcx, qword [0x140006010]
mov r8d, ebx
movups xmmword [rsp + 0x60], xmm0
mov rdx, r10
mov qword [r11 - 0x18], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001858
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001947
mov edx, 0x80
mov qword [rsp + 0x90], rdi
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 0x7c]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x14000188a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000193f
movaps xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov qword [rax + 0x20], rsi
mov r9d, ebx
mov dword [rax + 0x28], ebx
mov eax, 0xc02
mov word [rdi], ax
mov dword [rdi + 4], 0x80
mov byte [rdi + 0x2c], 1
mov dword [rdi + 8], 1
mov qword [r14], rdi
mov rcx, qword [0x140008250]
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rbp
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x20], rbp
call qword [0x140008260]
mov ebx, eax
test eax, eax
jne 0x140001929
mov rcx, qword [0x140008250]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [0x140008268]
mov ebx, eax
test eax, eax
jne 0x140001929
mov rcx, qword [0x140008250]
lea rdx, [rsp + 0x60]
call qword [0x140008280]
mov ebx, eax
test eax, eax
jne 0x140001929
mov ebx, dword [rsp + 0x68]
mov edx, 0x80
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov rdi, qword [rsp + 0x90]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140002600
Capabilities:
Create pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x260]
sub rsp, 0x360
and qword [rbp + 0x290], 0
mov edx, 0x10000
movabs rcx, 0x10000000001
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x1400071a0], rax
mov rax, qword [0x1400071a0]
test rax, rax
je 0x14000280d
xor edx, edx
lea rcx, [0x1400082a0]
mov r8d, 0x8000
call qword [sym.imp.ntdll.dll_memset]
mov rcx, qword [0x140008218]
lea rdx, str.NtCreateWorkerFactory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140008218]
lea rdx, str.NtShutdownWorkerFactory
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rcx, qword [0x140008218]
lea rdx, str.NtSetInformationWorkerFactory
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or r9d, 0xffffffff
lea rdx, [rbp + 0x298]
lea rcx, [rbp + 0x2a0]
mov qword [0x140006108], rax
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebx, 1
test eax, eax
je 0x140002786
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x300
call qword [sym.imp.ntdll.dll_memset]
call fcn.14000319c
and dword [rsp + 0x48], 0
and eax, 0x1ff
and qword [rsp + 0x40], 0
add eax, 0x100
mov rcx, qword [rbp + 0x298]
xor r9d, r9d
mov dword [rsp + 0x38], eax
xor r8d, r8d
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x1119ff8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtFsControlFile]
mov rax, qword [rbp + 0x290]
add rax, rbx
mov qword [rbp + 0x290], rax
cmp rax, 0x10000
jb 0x140002704
mov rcx, qword [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x48], 0
lea rcx, [0x140008210]
and qword [rsp + 0x40], 0
mov r9, r14
and dword [rsp + 0x38], 0
xor r8d, r8d
and qword [rsp + 0x30], 0
mov edx, 0x10000000
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call rsi
test eax, eax
js 0x1400027f1
mov rcx, qword [0x140008210]
lea rdx, [rbp + 0x290]
call rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rdx, qword [0x140008210]
mov ecx, eax
call fcn.140003400
mov qword [0x140008200], rax
mov rax, qword [0x140008200]
test rax, rax
je 0x140002809
mov rax, qword [0x1400071a0]
test rax, rax
jne 0x14000280b
xor ebx, ebx
mov eax, ebx
add rsp, 0x360
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002d00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rbx, rdx
lea rcx, [rbp - 0x50]
xor edi, edi
lea rdx, str.RegistryMachineSOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [rbp + 0x38], edi
mov rsi, r8
mov qword [rbp + 0x20], rdi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x50]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea ebx, [rdi + 0x20]
mov qword [rbp - 0x28], rdi
mov r8d, ebx
mov dword [rbp - 0x18], 0x40
xor edx, edx
mov rcx, rsi
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_memset]
lea r8, [rbp - 0x30]
mov edx, 0x20019
lea rcx, [rbp + 0x20]
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x140002dc7
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r8d, [rdi + 2]
mov r9, rsi
mov dword [rsp + 0x20], ebx
lea rdx, [rbp - 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
lea ecx, [rdi + 1]
cmovns edi, ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0xa8]
mov eax, edi
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002e34
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x114
xor ebx, ebx
call sub.ntdll.dll_memset
cmp qword [sym.imp.ntdll.dll_RtlGetVersion], rbx
je 0x140002f86
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x140002f86
cmp dword [rsp + 0x24], 0xa
jne 0x140002f86
mov ecx, dword [rsp + 0x2c]
lea eax, [rbx + 7]
mov dword [section..data], eax
cmp ecx, 0x295a
jne 0x140002e99
lea eax, [rbx + 9]
jmp 0x140002f4b
cmp ecx, 0x3839
jne 0x140002eab
mov eax, 0xb
jmp 0x140002f4b
cmp ecx, 0x3ad7
jne 0x140002ebd
mov eax, 0xd
jmp 0x140002f4b
cmp ecx, 0x3fab
jne 0x140002ecc
mov eax, 0xf
jmp 0x140002f4b
cmp ecx, 0x42ee
je 0x140002f46
cmp ecx, 0x44d7
je 0x140002f46
cmp ecx, 0x4563
jne 0x140002eeb
mov eax, 0x13
jmp 0x140002f4b
cmp ecx, 0x47ba
jne 0x140002efa
mov eax, 0x15
jmp 0x140002f4b
cmp ecx, 0x47bb
jne 0x140002f09
mov eax, 0x17
jmp 0x140002f4b
cmp ecx, 0x4a61
jne 0x140002f18
mov eax, 0x19
jmp 0x140002f4b
cmp ecx, 0x4a62
jne 0x140002f27
mov eax, 0x1b
jmp 0x140002f4b
cmp ecx, 0x4a63
je 0x140002f3f
cmp ecx, 0x4a64
jae 0x140002f3f
cmp ecx, 0x55f0
jb 0x140002f51
mov eax, 0x1d
jmp 0x140002f4b
mov eax, 0x11
mov dword [section..data], eax
mov ecx, eax
lea rdx, [0x140000000]
mov ebx, 1
mov eax, dword [rdx + rcx*4 + 0x4520]
mov dword [0x140008228], eax
mov eax, dword [rdx + rcx*4 + 0x4420]
mov dword [0x14000822c], eax
mov eax, dword [rdx + rcx*4 + 0x44a0]
mov dword [0x140008230], eax
mov eax, ebx
add rsp, 0x140
pop rbx
ret
Function at 0x140003400
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdx, qword [0x140008238]
mov edi, ecx
mov dword [rax + 0x18], ebx
test rdx, rdx
jne 0x140003462
mov eax, 0x10000000
shr eax, 1
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov dword [0x140008224], eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140008238], rax
mov rdx, rax
test rax, rax
jne 0x140003462
mov eax, dword [0x140008224]
jmp 0x14000342f
lea eax, [rdi + 1]
test eax, 0xfffffffe
jne 0x14000347b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rdx, qword [0x140008238]
mov edi, eax
test rdx, rdx
je 0x1400034d1
mov r8d, dword [0x140008224]
lea r9, [rsp + 0x40]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x1400034d1
mov rdx, qword [0x140008238]
mov ecx, ebx
cmp dword [rdx], ebx
jbe 0x1400034d1
mov r8d, edi
lea rax, [rdx + 0x20]
cmp qword [rax - 8], r8
jne 0x1400034ba
cmp qword [rax], rsi
je 0x1400034c6
inc ecx
add rax, 0x28
cmp ecx, dword [rdx]
jae 0x1400034d1
jmp 0x1400034af
mov eax, ecx
lea rcx, [rax + rax*4]
mov rbx, qword [rdx + rcx*8 + 0x10]
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140006830
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000688d
lea rbx, [0x1400f4a60]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140006874
cmp r10, 2
jb 0x140006874
cmp byte [r9], r8b
jne 0x140006874
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140006850
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400068cf
lea rbx, [0x1400f4a60]
cmp r8b, 0x23
jne 0x1400068b3
cmp byte [r9], r8b
jne 0x1400068b3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400068a0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140006a10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140006a2a
mov qword [r8], 0
lea rdx, [0x1401184d4]
call fcn.1400068e0
mov rbx, rax
test rax, rax
jne 0x140006a4a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140006b23
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140006b23
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140006b23
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140006b23
cmp rdi, 0xffffffffffffffff
je 0x140006b23
mov rax, qword [0x14012fa10]
test rax, rax
je 0x140006ac0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140006b23
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140006b10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14012fa10]
test rax, rax
je 0x140006b05
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140006b2c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140006b1e
mov qword [r14], rdi
mov rax, rsi
jmp 0x140006b2e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140006d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x140006f29
mov qword [r11 + 0x20], rsi
lea rsi, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x140006d62
cmp r8, rbp
jae 0x140006f06
movzx edx, byte [r8]
test dl, dl
je 0x140006f06
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x1186b0]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x140006d98
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x140006db1
movzx r13d, byte [rax]
jmp 0x140006db4
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x140006dc3
movzx r12d, byte [rax]
jmp 0x140006dc6
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x140006dd5
movzx r15d, byte [rax]
jmp 0x140006dd8
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x1186e8]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x118698]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x118680]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x1186d0]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x140006ee3
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x140006eed
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x140006f06
mov word [rdi], si
add rdi, 2
lea rsi, [0x140000000]
cmp rdi, qword [rsp + 8]
jb 0x140006d50
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x140006f3f
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret