joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a820]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002b48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002b60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b80
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002b80
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002bd4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002be0
add rdx, 0x28
cmp r9, rdx
jne 0x140002bc0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002bf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a820]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002c12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002c20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002c12
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002c12
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002c75
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002c88
add rdx, 0x28
cmp rdx, r10
jne 0x140002c60
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002c97
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002ca7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002c7e
test ecx, ecx
jg 0x140002c90
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400016b0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
call fcn.1400011c0
mov rsi, rax
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax]
mov r11, qword [rcx + 0x30]
movsxd rdx, dword [r11 + 0x3c]
mov edi, dword [rdx + r11 + 0x88]
add rdi, r11
cmp rdi, r11
je 0x140001776
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x140001776
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rax, [rbx + r9*4]
mov eax, dword [rax + r11]
add rax, r11
mov r8d, 0x90f237f7
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x140001771
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax]
lea rax, [rax + 1]
test dl, dl
jne 0x140001750
cmp r8d, 0xdad6b303
je 0x14000177b
test r9d, r9d
jne 0x140001730
mov rcx, qword [rcx]
jmp 0x140001700
mov ecx, dword [rdi + 0x1c]
add rcx, r11
mov eax, dword [rdi + 0x24]
add rax, r11
movzx eax, word [rax + r9*2]
mov r10d, dword [rcx + rax*4]
add r10, r11
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call r10
mov rbx, rax
mov r8, rsi
mov rdi, qword [rsp + 0x20]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
nop
test rdi, rdi
je 0x1400017fd
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400017f5
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140001ccc
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001c70
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140002604
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400640c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14001b540
test al, al
jne 0x140003799
call fcn.14001b5e0
test al, al
jne 0x1400038cc
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], 0
call fcn.1400038e0
mov rdx, rax
mov r8, 0xffffffffffffffff
cmp byte [rax + 0x270c], 0
je 0x140003849
mov r11, r8
mov qword [rsp + 0x50], rbx
sub r11, rax
lea r9, [rax + 2]
mov r10, 0xfffffffffffffffe
movabs rbx, 0x2967333707df99f9
sub r10, rax
nop dword [rax]
nop word [rax + rax]
lea ecx, [r9 + r10]
mov rax, rbx
and cl, 7
shl cl, 3
shr rax, cl
lea ecx, [r9 + r11]
xor byte [r9 - 2], al
and cl, 7
shl cl, 3
mov rax, rbx
shr rax, cl
movzx ecx, r9b
xor byte [r9 - 1], al
sub cl, dl
and cl, 7
mov rax, rbx
shl cl, 3
shr rax, cl
xor byte [r9], al
add r9, 3
lea rax, [r10 + r9]
cmp rax, 0x270c
jb 0x1400037f0
mov rbx, qword [rsp + 0x50]
mov byte [rdx + 0x270c], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x28], xmm0
movdqu xmmword [rsp + 0x38], xmm1
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140003860
lea rcx, [rsp + 0x28]
call fcn.140002e60
call fcn.1400171a0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1400038b2
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038ad
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400038c6
call fcn.14001d9e0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001d9c0
add rsp, 0x58
ret
call fcn.1400254cc
int3
xor ecx, ecx
call fcn.1400247e8
int3
Function at 0x14002eb94
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002ebb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002558c
or eax, 0xffffffff
jmp 0x14002ebb6
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002f0f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001e300
sub rsp, rax
mov rax, qword [0x1400640c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002c32c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002f13f
mov rax, rbp
jmp 0x14002f247
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x664b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003003c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x664b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002f243
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002f243
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003003c
test rax, rax
js 0x14002f243
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002f243
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002f235
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002f235
cmp byte [rcx], 0xd
jne 0x14002f21b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002f22a
cmp byte [rcx + 1], 0xa
jne 0x14002f22a
inc rcx
jmp 0x14002f22a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x64500]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002f1fd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002f247
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001d9c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002f3dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400664b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002f433
cmp word [rdx], r13w
jne 0x14002f433
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14002f438
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002f55d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002f57e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14002f471
mov rdx, r9
mov word [rbx], cx
jmp 0x14002f498
cmp r9, r8
jae 0x14002f4a8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002f452
jmp 0x14002f55d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002f552
cmp dword [rsp + 0x80], esi
je 0x14002f552
lea r8, [0x1400664b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002f52a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002f4fa
mov word [rbx], r13w
jmp 0x14002f55a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14002f507
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002f55a
cmp word [rsp + 0x70], r13w
jne 0x14002f537
cmp rbx, r14
je 0x14002f4f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140030044
cmp word [rsp + 0x70], r13w
je 0x14002f55d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400664b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002f557
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002f55d
Function at 0x140001670
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
movabs rax, 0xfffff78000000014
lea rcx, [0x140006040]
mov rax, qword [rax]
movups xmm0, xmmword [0x140003a10]
mov dword [0x140006040], eax
mov eax, dword [0x140003a30]
movups xmm1, xmmword [0x140003a20]
mov dword [rbp + 0x47], eax
mov al, byte [0x140003a34]
mov byte [rbp + 0x4b], al
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm1
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov r8d, eax
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 0x29]
mov ebx, eax
call fcn.140001864
mov r8d, ebx
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.1400023d0
mov r8d, ebx
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.1400023d0
mov r8d, ebx
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x29]
call fcn.1400023d0
mov r8d, ebx
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.1400023d0
call fcn.140001144
call fcn.1400027ec
call fcn.140001d18
call fcn.1400010ac
call fcn.1400018dc
lea rcx, [0x140006040]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
lea rcx, [rbp + 0x77]
mov dword [rbp + 0x77], eax
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov r8d, eax
mov eax, 0xaaaaaaab
mul r8d
shr edx, 1
lea ecx, [rdx + rdx*2]
sub r8d, ecx
inc r8d
test r8d, r8d
jle 0x140001818
mov edi, r8d
lea rcx, [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov ebx, eax
mov eax, 0xaaaaaaab
mul ebx
shr edx, 3
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub ebx, ecx
lea rcx, [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov r8d, dword [rbp + 0x77]
mov ecx, eax
movabs rax, 0xe38e38e38e38e38f
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*8]
shl rax, 2
lea rdx, [rbp - 0x19]
sub rcx, rax
movsxd rax, ecx
movsxd rcx, ebx
mov al, byte [rbp + rax + 0x27]
mov byte [rbp + rcx - 0x29], al
lea rcx, [rbp - 0x29]
call fcn.1400023d0
mov r8d, dword [rbp + 0x77]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.1400023d0
mov r8d, dword [rbp + 0x77]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x29]
call fcn.1400023d0
mov r8d, dword [rbp + 0x77]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.1400023d0
sub rdi, 1
jne 0x140001776
lea rcx, [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov ecx, eax
mov eax, 0xaaaaaaab
mul ecx
shr edx, 3
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
mov edx, ecx
lea rcx, [rbp - 0x29]
call fcn.1400019c0
lea rcx, [0x140003a40]
call sub.ntoskrnl.exe_DbgPrint
lea r11, [rsp + 0xa0]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400018dc
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x10], 0
lea rax, [0x1400039e0]
mov qword [rbp - 0x18], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
mov dword [rbp - 0x20], 0x220020
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
and qword [rsp + 0x30], 0
lea edx, [r9 + 0x40]
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
js 0x1400019a5
mov eax, dword [0x140008030]
lea rcx, [0x140006050]
movaps xmm0, xmmword [rbp - 0x20]
mov edx, eax
inc eax
shl rdx, 5
add rdx, rcx
mov dword [0x140008030], eax
mov rax, qword [rbp + 0x10]
lea rcx, [0x140001a9c]
add rax, 0xe0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rdx + 0x10], rax
xchg qword [rax], rcx
movaps xmm0, xmmword [rbp - 0x10]
mov qword [rdx + 0x18], rcx
movdqu xmmword [rdx], xmm0
mov qword [0x140006028], rcx
lea rdx, [rbp - 0x10]
lea rcx, [0x140003400]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400019b8
mov r8d, eax
lea rdx, [rbp - 0x20]
lea rcx, [0x1400033b0]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x60
pop rbp
ret
Function at 0x1400023d0
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0xfffff78000000014
mov r9, qword [r9]
xor r9d, r8d
mov r8d, 0xc
sub rcx, rdx
mov al, r9b
xor al, byte [rcx + rdx]
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x1400023e9
ret
Function at 0x1400027ec
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x10], 0
lea rax, [0x140003790]
mov qword [rbp - 0x18], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
mov dword [rbp - 0x20], 0x220020
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
and qword [rsp + 0x30], 0
lea edx, [r9 + 0x40]
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
test eax, eax
js 0x1400028b5
mov eax, dword [0x140008030]
lea rcx, [0x140006050]
movaps xmm0, xmmword [rbp - 0x20]
mov edx, eax
inc eax
shl rdx, 5
add rdx, rcx
mov dword [0x140008030], eax
mov rax, qword [rbp + 0x10]
lea rcx, [0x140001b80]
add rax, 0xe0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rdx + 0x10], rax
xchg qword [rax], rcx
movaps xmm0, xmmword [rbp - 0x10]
mov qword [rdx + 0x18], rcx
movdqu xmmword [rdx], xmm0
mov qword [0x140006010], rcx
lea rdx, [rbp - 0x10]
lea rcx, [0x140003400]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400028c8
mov r8d, eax
lea rdx, [rbp - 0x20]
lea rcx, [0x1400033b0]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x60
pop rbp
ret

Function at 0x1400029dc
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
movsxd r9, dword [rcx + 0x3c]
lea rbx, [rcx + 0x18]
add rbx, r9
xor r10d, r10d
xor edi, edi
mov r14, r8
mov r15, rdx
mov rbp, rcx
movzx eax, word [r9 + rcx + 0x14]
movzx esi, word [r9 + rcx + 6]
add rbx, rax
test esi, esi
je 0x140002a5c
cmp dword [rbx], 0x45474150
je 0x140002a36
cmp dword [rbx], 0x7865742e
jne 0x140002a52
cmp byte [rbx + 4], 0x74
jne 0x140002a52
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rbp
mov r8, r15
call fcn.140002968
mov r10, rax
test rax, rax
jne 0x140002a5c
inc edi
add rbx, 0x28
cmp edi, esi
jb 0x140002a20
mov rbx, qword [rsp + 0x40]
mov rax, r10
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140002a78
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x150
xor ebx, ebx
lea r9, [rax + 0x18]
mov r14, rdx
mov dword [rax + 0x18], ebx
mov r15, rcx
xor r8d, r8d
xor edx, edx
mov ebp, ebx
lea esi, [rbx + 0xb]
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140002bd2
mov edx, dword [rsp + 0x180]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140002bd2
mov r8d, dword [rsp + 0x180]
xor r9d, r9d
mov rdx, rax
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x140002bc2
mov esi, ebx
cmp dword [rdi], ebx
jbe 0x140002bbf
mov eax, esi
mov edx, 2
imul rcx, rax, 0x128
lea rax, [rdi + 8]
add rax, rcx
lea rcx, [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140002b20
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.140002c30
mov rcx, rax
mov rdx, r15
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x140002bae
inc esi
cmp esi, dword [rdi]
jb 0x140002b06
jmp 0x140002bbf
mov rbp, qword [rsp + 0x30]
test r14, r14
je 0x140002bbf
mov eax, dword [rsp + 0x38]
mov dword [r14], eax
mov rbx, rbp
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbx
jmp 0x140002bd4
xor eax, eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140002bf4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r8, rcx
test edx, edx
jne 0x140002bfe
xor eax, eax
ret
movzx eax, byte [rcx]
xor eax, 0x4f9ace2f
imul ecx, eax, 0x1000193
cmp edx, 1
jbe 0x140002c2b
inc r8
dec edx
movzx eax, byte [r8]
inc r8
xor eax, ecx
imul ecx, eax, 0x1000193
sub rdx, 1
jne 0x140002c16
mov eax, ecx
ret
Function at 0x140002ce8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov edi, r8d
mov ebx, ecx
mov edx, r8d
mov rcx, rsi
call fcn.140002bf4
xor ebx, eax
test edi, edi
je 0x140002d47
mov r8d, edi
imul ebx, ebx, 0x41c64e6d
mov eax, 0x80808081
add ebx, 0x3039
mov ecx, ebx
shr ecx, 0x10
and ecx, 0x7fff
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
xor byte [rsi], cl
inc rsi
sub r8, 1
jne 0x140002d13
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400080f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x14000812b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008150
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002e0c0], 0
jne 0x140008168
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000811e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d408]
mov qword [rsp + 0x20], 0
lea rdi, [0x14002e0e0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140008234
test al, 0x10
je 0x140008134
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140008134
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x1400081e0
jmp 0x140008134

Function at 0x14000f030
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015410
sub rsp, rax
mov eax, dword [0x1400320e0]
mov rsi, rcx
test eax, eax
je 0x14000f0d0
xor ebx, ebx
lea rdi, [0x1400300e0]
test eax, eax
jg 0x14000f06c
jmp 0x14000f080
add rbx, 1
cmp dword [0x1400320e0], ebx
jle 0x14000f080
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000f060
jmp 0x14000f0b7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f095
cmp word [rsi + 2], 0x3a
je 0x14000f0b7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f120
movsxd rbx, dword [0x1400320e0]
cmp ebx, 0x3ff
jle 0x14000f138
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007870
test al, al
je 0x14000f15a
movsxd rbx, dword [0x1400320e0]
mov rcx, rdi
lea rdi, [0x1400300e0]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x1400320e0]
add eax, 1
mov dword [0x1400320e0], eax
jmp 0x14000f051
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f0a4
xor eax, eax
jmp 0x14000f0bc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x1400320e0], 1
mov rdx, rax
lea rax, [0x1400300e0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f0b7
mov rcx, rbx
call fcn.140008030
nop
nop word cs:[rax + rax]
nop