joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140003d74
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140003d60
ret

Function at 0x140006f30
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov ecx, 0xe0
call fcn.14001ca30
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14000702b
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
movups xmmword [rax + 0x20], xmm0
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], 0xf
mov byte [rax + 0x20], sil
movups xmmword [rax + 0x40], xmm0
mov qword [rax + 0x50], rsi
mov qword [rax + 0x58], 0xf
mov byte [rax + 0x40], sil
movups xmmword [rax + 0x60], xmm0
mov qword [rax + 0x70], rsi
mov qword [rax + 0x78], 0xf
mov byte [rax + 0x60], sil
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rsi
mov qword [rax + 0x98], 0xf
mov byte [rax + 0x80], sil
movups xmmword [rax + 0xa0], xmm0
mov qword [rax + 0xb0], rsi
mov qword [rax + 0xb8], 0xf
mov byte [rax + 0xa0], sil
movups xmmword [rax + 0xc0], xmm0
mov qword [rax + 0xd0], rsi
mov qword [rax + 0xd8], 0xf
mov byte [rax + 0xc0], sil
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
nop
jmp 0x14000702e
mov rbx, rsi
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x450
mov rax, qword [0x14002f040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
mov dword [rsp + 0x34], 1
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x400
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140008c4d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140008be4
lea rax, [rsp + 0x40]
mov r8, qword [rsp + 0x490]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140008bc3
inc rax
test ecx, ecx
jne 0x140008bb0
test edx, edx
jne 0x140008c40
mov rcx, rsi
call fcn.14000e640
mov rax, qword [r14]
inc byte [rax]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008ca9
lea rdx, str._DEBUG_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
lea rdx, str.Failed_to_query_value_for__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
mov rdx, rbx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
lea rdx, [0x14002390c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
lea rdx, [0x140025bbc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140008ca9
lea rdx, str._DEBUG_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
lea rdx, str.Failed_to_open_registry_key_for__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
mov rdx, rbx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
lea rdx, [0x14002390c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
lea rdx, [0x140025bbc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400044f0
nop
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001ce30
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop r14
pop rdi
pop rsi
ret
Function at 0x140009150
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x1150
call fcn.14001cdd0
sub rsp, rax
mov rax, qword [0x14002f040]
xor rax, rsp
mov qword [rsp + 0x1140], rax
mov r14, rdx
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x14000920c
mov ebp, dword [rsp + 0x20]
xor ebx, ebx
shr ebp, 2
test ebp, ebp
je 0x14000920c
lea rsi, [rsp + 0x30]
nop word [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140009202
mov r9d, 0x104
lea r8, [rsp + 0x1030]
xor edx, edx
mov rcx, rax
call sub.KERNEL32.dll_K32GetModuleBaseNameA
test eax, eax
je 0x1400091f9
mov rdx, r14
lea rcx, [rsp + 0x1030]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x140009236
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add rsi, 4
cmp ebx, ebp
jb 0x1400091b0
xor al, al
mov rcx, qword [rsp + 0x1140]
xor rcx, rsp
call fcn.14001ce30
lea r11, [rsp + 0x1150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000920e
Function at 0x14000b910
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000b9dc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000b9dc
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000b9f5
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000b9cc
cmp byte [rax], 0x5c
jne 0x14000b9c6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000b9c6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000b9b2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000b9c3
test r8b, 0x10
jne 0x14000b9c6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000b9c6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000e1a0
test edi, edi
jne 0x14000b930
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14000cd50
int3

Function at 0x14001d4b4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov rdi, rcx
mov esi, 0xc0000001
test rcx, rcx
je 0x14000157a
call fcn.140001868
mov rbx, rax
test rax, rax
je 0x14000157a
mov edx, dword [rax + 0x50]
xor ecx, ecx
mov r8d, 0x5347
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, rax
mov rax, qword [0x140004010]
mov qword [rax + 0x18], rcx
mov rax, qword [0x140004010]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14000157a
mov r8d, dword [rbx + 0x50]
test r8, r8
je 0x140001403
xor edx, edx
call fcn.1400022c0
mov rax, qword [0x140004010]
mov edx, dword [rbx + 0x54]
mov rcx, qword [rax + 0x18]
test rdx, rdx
je 0x14000142b
mov r8, rdi
sub r8, rcx
mov al, byte [r8 + rcx]
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14000141c
movsxd r9, dword [rdi + 0x3c]
mov r8d, ebp
add r9, rdi
cmp bp, word [rbx + 6]
jae 0x14000148b
mov eax, r8d
lea rcx, [rax + rax*4]
mov rax, qword [0x140004010]
mov r10d, dword [r9 + rcx*8 + 0x11c]
mov edx, dword [r9 + rcx*8 + 0x114]
add r10, rdi
mov r11d, dword [r9 + rcx*8 + 0x118]
add rdx, qword [rax + 0x18]
test r11, r11
je 0x14000147f
sub r10, rdx
mov al, byte [r10 + rdx]
mov byte [rdx], al
inc rdx
sub r11, 1
jne 0x140001470
movzx eax, word [rbx + 6]
inc r8d
cmp r8d, eax
jb 0x14000143b
mov rcx, qword [0x140004010]
mov rcx, qword [rcx + 0x18]
call fcn.1400012e0
test eax, eax
js 0x14000157a
mov rcx, qword [0x140004010]
mov rcx, qword [rcx + 0x18]
call fcn.14000158c
test eax, eax
js 0x14000157a
mov r8d, 8
lea rdx, [0x140004010]
lea rcx, [0x1400024a0]
call fcn.140001a5c
mov esi, eax
test eax, eax
js 0x14000157a
mov ecx, dword [rbx + 0x28]
or r9, 0xffffffffffffffff
mov rax, qword [0x140004010]
mov ebx, 0x1fffff
mov qword [rsp + 0x68], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov edx, ebx
add rcx, qword [rax + 0x18]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov esi, eax
test eax, eax
js 0x14000157a
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x14000156d
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov rbx, qword [rsp + 0x70]
mov eax, esi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000167c
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and qword [rax - 0x58], 0
lea r9, [rbp + 0x17]
and qword [rbp + 0x6f], 0
lea r8, [rbp + 0x27]
and qword [rbp + 0x67], 0
xorps xmm0, xmm0
and qword [rbp + 0x2f], 0
mov edx, 0x110000
mov dword [rax - 0x60], 0x100
and qword [rax - 0x68], 0
and dword [rax - 0x70], 0
and dword [rax - 0x78], 0
and qword [rax - 0x80], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov qword [rbp + 0x37], rcx
lea rcx, [rbp + 0x6f]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x240
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
mov ebx, eax
test eax, eax
js 0x140001795
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x67]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x6f]
mov edx, 0x110000
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x454c4946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
mov ebx, eax
test eax, eax
js 0x140001789
mov rax, qword [rbp + 0x67]
xor edx, edx
mov rcx, qword [rax + 0x28]
and qword [rcx + 0x10], 0
mov rcx, qword [rbp + 0x67]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
test al, al
je 0x14000177f
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov ebx, eax
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x6f]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rbp
ret

Function at 0x1400018b8
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r14, r8
xor ecx, ecx
mov r15, rdx
test rdi, rdi
je 0x140001945
movsxd r9, dword [rdi + 0x3c]
lea rbx, [rdi + 0x18]
add rbx, r9
xor esi, esi
movzx eax, word [r9 + rdi + 0x14]
movzx ebp, word [r9 + rdi + 6]
add rbx, rax
test ebp, ebp
je 0x140001945
mov eax, dword [rbx]
cmp eax, dword [0x140002460]
jne 0x140001915
mov al, byte [rbx + 4]
cmp al, byte [0x140002464]
je 0x14000191f
mov eax, dword [rbx]
cmp eax, dword [0x140002470]
jne 0x14000193b
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rdi
mov r8, r15
call fcn.140001964
mov rcx, rax
test rax, rax
jne 0x140001945
inc esi
add rbx, 0x28
cmp esi, ebp
jb 0x140001900
mov rbx, qword [rsp + 0x40]
mov rax, rcx
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140001a5c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and qword [rbp + 0x7f], 0
mov rsi, rdx
mov rdx, rcx
mov edi, r8d
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea rax, [rbp - 1]
and qword [rsp + 0x48], 0
lea r9, [rbp + 0xf]
and qword [rbp + 0x27], 0
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp + 0x7f]
mov qword [rbp + 0x2f], rax
xorps xmm0, xmm0
mov eax, 3
mov dword [rbp + 0x1f], 0x30
mov dword [rsp + 0x38], eax
mov edx, 0x10000000
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x37], 0x240
movdqu xmmword [rbp + 0x3f], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140001b41
mov rcx, qword [rbp + 0x7f]
xor eax, eax
and qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rbp - 9], rax
xor r8d, r8d
lea rax, [rbp - 9]
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xf]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x7f]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xc0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140001cdc
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
xor ebx, ebx
mov qword [rbp + 0x27], rcx
mov dword [rsp + 0x50], ebx
lea rcx, [rbp + 0x67]
mov qword [r11 - 0x70], rbx
xor eax, eax
mov dword [rsp + 0x40], 0x60
mov rdi, r9
mov dword [rsp + 0x38], 1
lea r9, [rbp + 7]
mov dword [rsp + 0x30], 3
mov rsi, r8
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], rbx
mov edx, 0x80000000
mov qword [rbp + 0x67], rbx
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], 0x30
mov qword [rbp + 0x2f], 0x240
mov qword [rbp + 0x1f], rbx
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jns 0x140001d77
xor al, al
jmp 0x140001dcc
mov rcx, qword [rbp + 0x67]
xor eax, eax
mov qword [rbp + 7], rax
xor r9d, r9d
mov qword [rbp + 0xf], rax
xor r8d, r8d
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x38], rax
xor edx, edx
mov eax, dword [rdi]
mov dword [rsp + 0x30], eax
lea rax, [rbp + 7]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
js 0x140001dbb
mov bl, 1
mov ecx, dword [rbp + 0xf]
mov dword [rdi], ecx
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001de0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 0x29], 0
xor eax, eax
mov rbx, rcx
mov qword [rbp - 9], rax
xor edx, edx
mov qword [rbp - 1], rax
lea rcx, [rbp + 7]
mov qword [rbp - 0x21], rax
lea r8d, [rax + 0x30]
mov qword [rbp - 0x19], rax
mov edi, 0xc0000001
call fcn.1400022c0
test rbx, rbx
je 0x140001f59
lea rdx, [0x1400024e0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea rax, [rbp - 9]
and qword [rsp + 0x48], 0
lea r9, [rbp - 0x21]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
mov eax, 1
mov dword [rbp + 7], 0x30
mov dword [rsp + 0x38], eax
mov edx, 0x80000000
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x1f], 0x240
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
test eax, eax
js 0x140001f59
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
xor eax, eax
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x21]
mov qword [rbp + 0x37], rax
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edi, eax
test eax, eax
js 0x140001f4f
cmp dword [rbp + 0x3f], 0x1000
jbe 0x140001f4f
mov ecx, dword [rbp + 0x3f]
call fcn.140001634
mov rbx, rax
test rax, rax
je 0x140001f4f
mov ecx, dword [rbp + 0x3f]
xor eax, eax
and qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rbp - 0x11], rax
xor r8d, r8d
lea rax, [rbp - 0x11]
xor edx, edx
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x21]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov rcx, rbx
mov edi, eax
call fcn.1400017a8
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400021c0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140001f7c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
lea rdx, [0x140002540]
mov dword [rax + 8], 0x100000
lea rcx, [rax - 0x28]
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, 0x6e556353
lea ecx, [rbx + 1]
mov r8d, esi
mov edx, 0x100000
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, esi
lea ecx, [rbx + 1]
mov edx, 0x100000
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
movaps xmm0, xmmword [rsp + 0x30]
lea r9, [rsp + 0x60]
mov r8, rdi
movdqa xmmword [rsp + 0x40], xmm0
mov edx, ebx
lea rcx, [rsp + 0x40]
mov rsi, rax
call fcn.140001cdc
mov edx, dword [rsp + 0x60]
lea rcx, [0x140002570]
call sub.ntoskrnl.exe_DbgPrint
movzx edx, byte [rbx + rdi]
lea rcx, [0x140002580]
call sub.ntoskrnl.exe_DbgPrint
inc rbx
cmp rbx, 0x10
jb 0x140002002
lea r8, [0x140002590]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140002026
mov r9d, dword [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.14000206c
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [rsp + 0x30]
call fcn.14000167c
mov rbx, qword [rsp + 0x68]
mov rax, rsi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14000206c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
mov r10, rdx
mov rbx, rcx
test r9d, r9d
jle 0x1400020a3
sub rbx, rdx
mov eax, r11d
inc r11d
cdq
idiv dword [rsp + 0x28]
movsxd rax, edx
mov dl, byte [rax + r8]
xor dl, byte [rbx + r10]
mov byte [r10], dl
inc r10
cmp r11d, r9d
jl 0x140002082
mov rbx, qword [rsp + 8]
ret

Function at 0x1400020b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, 0xc0000001
mov ecx, 0xcf8
call fcn.140001634
lea rcx, [0x1400025a0]
mov qword [0x140004010], rax
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [0x140004010]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140002187
lea rcx, [0x1400025b0]
call sub.ntoskrnl.exe_DbgPrint
call fcn.140001b5c
test eax, eax
js 0x140002187
lea rcx, [0x1400025c0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rdi + 0x28]
call fcn.140001bc4
test eax, eax
js 0x140002187
lea rcx, [0x1400025d0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [0x140004010]
mov rcx, qword [rcx + 8]
call fcn.140001144
mov rcx, rax
call fcn.140001de0
test eax, eax
js 0x140002187
mov rcx, qword [rdi + 0x28]
add rcx, 0x48
call fcn.14000167c
lea rcx, [0x1400025e0]
call sub.ntoskrnl.exe_DbgPrint
call fcn.140001f7c
mov rcx, rax
mov rdi, rax
call fcn.140001390
test eax, eax
js 0x140002187
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ebx, 0xe0000000
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800197cc
Capabilities:
Encode data using xor

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 r14
sub rsp, 0x50
mov qword [0x18004b750], rcx
mov ebx, 0x800
mov ecx, ebx
call fcn.18001b228
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x18004b758], rax
call fcn.18001b4d0
mov rcx, qword [0x18004b758]
xor r14d, r14d
lea r9d, [r14 + 1]
mov edx, ebx
mov qword [rsp + 0x20], r14
mov r8d, r9d
call fcn.18001ac00
mov eax, r14d
lea rbp, str.._._._..._._._
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x1000
jl 0x180019833
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180014838
jmp 0x18001992a
lea rcx, [rsp + 0x30]
call fcn.1800148e0
lea rcx, [rsp + 0x30]
movsx ebx, ax
call fcn.1800148e0
mov rcx, qword [0x18004b758]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180019914
dec edx
je 0x1800198fd
dec edx
jne 0x18001992a
movsx rbx, ax
mov rcx, rbx
call fcn.18001b228
mov r8, qword [0x18004b758]
lea rcx, [rsp + 0x30]
movsx edx, si
mov qword [rdi + r8 + 8], rax
call fcn.18001487c
mov rcx, qword [0x18004b758]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001b8c0
mov rcx, qword [0x18004b758]
mov r9d, 1
mov rcx, qword [rdi + rcx + 8]
mov r8d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.18001ac00
jmp 0x18001992a
lea rcx, [rsp + 0x30]
call fcn.180014848
mov rcx, qword [0x18004b758]
mov dword [rdi + rcx + 8], eax
jmp 0x18001992a
lea rcx, [rsp + 0x30]
call fcn.1800148e0
mov rdx, qword [0x18004b758]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x30]
call fcn.1800148e0
movzx edi, ax
test ax, ax
jg 0x18001985a
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
jmp fcn.18001b4d0

Function at 0x18001a22c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.18001a3bc
mov r8, qword [0x180047468]
test r8, r8
je 0x18001a2a1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret