joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800596a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x180879ec0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18087db80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18005971e
mov rax, qword [rsp + 0x28]
sub rax, 5
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180059747
mov eax, 0xa
jmp 0x180059873
cmp dword [rsp + 0x88], 0
je 0x1800597b5
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x28]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800597b3
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x40]
mov byte [rax + 1], 0xf9
jmp 0x1800597f3
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800597de
mov rax, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
lea rsi, [rax + 0x18]
mov ecx, 7
rep movsb byte [rdi], byte [rsi]
jmp 0x1800597f3
mov rax, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
lea rsi, [rax + 0x18]
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18007d960
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1800598f0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180879ec0]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x180059a7f
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180059a73
mov eax, dword [rsp + 0x30]
cmp rax, 0x10
jb 0x180059a54
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x3c], eax
jne 0x180059a54
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x38], eax
je 0x180059a54
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800599c1
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0x80
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x18087a4b8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800599bf
jmp 0x180059a73
jmp 0x180059a2b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x180059a2b
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
shl eax, 1
mov eax, eax
shl rax, 2
mov r9, rax
mov rax, qword [rsp + 0x70]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18087a4b8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180059a0c
jmp 0x180059a73
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x38]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180059944
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18007d960
add rsp, 0x68
ret
Function at 0x180059c20
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.1800598f0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180059ce3
mov dword [rsp + 0x20], 0
jmp 0x180059c7f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180059ce3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180059ce1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.18005a020
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x180059c75
add rsp, 0x38
ret

Function at 0x18005a1d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18005a261
mov dword [rsp + 0x20], 0
jmp 0x18005a1f8
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x18005a249
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005a247
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18005a1ee
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18087a4b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
add rsp, 0x38
ret

Function at 0x18005aa00
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18005aa59
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18005aa59
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18005aa59
xor eax, eax
jmp 0x18005aaa0
mov dword [rsp], 1
jmp 0x18005aa6a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18005aa9b
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x18005aa99
xor eax, eax
jmp 0x18005aaa0
jmp 0x18005aa62
mov eax, 1
add rsp, 0x18
ret
Function at 0x180067da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov dword [rsp + 4], 0
jmp 0x180067e00
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 4], eax
jae 0x180067ecf
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 4]
movzx eax, word [rax + rcx*2]
mov word [rsp], ax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 4]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov dword [rsp + 8], 0
jmp 0x180067e6f
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x18]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x48]
movsx ecx, byte [rdx + rcx]
cmp eax, ecx
jne 0x180067eca
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x18]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x180067ec8
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
jmp 0x180067ed1
jmp 0x180067e65
jmp 0x180067df6
xor eax, eax
add rsp, 0x38
ret
Function at 0x180067ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0
jne 0x180067efd
xor eax, eax
jmp 0x18006800f
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 0
jmp 0x180067f65
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x20], eax
jae 0x18006800d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.18006ea60
test eax, eax
jne 0x180068008
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x30]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
jmp 0x18006800f
jmp 0x180067f5b
xor eax, eax
add rsp, 0x68
ret

Function at 0x180068360
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
jmp 0x1800683a5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
add rax, 0x20
cmp qword [rsp + 0x20], rax
je 0x18006840d
mov rax, qword [rsp + 0x20]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x58]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x60], 0
je 0x180068400
xor r8d, r8d
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x60]
call fcn.18005ef10
movzx eax, al
test eax, eax
je 0x18006840b
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
jmp 0x18006840f
jmp 0x180068398
xor eax, eax
add rsp, 0x58
ret
Function at 0x18007d080
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x58], 1
je 0x18007d09f
xor al, al
jmp 0x18007d0ef
call fcn.18006b430
movzx eax, al
test eax, eax
jne 0x18007d0af
mov al, 1
jmp 0x18007d0ef
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18007b110]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18007d0ed
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
add rsp, 0x48
ret
Function at 0x140001560
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 0x140001679
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 0x14000166d
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 0x140001663
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 0x140001800
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, rcx
mov edi, 0xc0000001
mov ecx, 0x18
call fcn.140001518
mov rcx, rax
mov qword [0x140005680], rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
xor ebp, ebp
test al, al
je 0x140001a14
mov rcx, qword [rsi + 0x28]
call fcn.140001194
test eax, eax
js 0x140001a14
lea r14, section..data
mov rcx, r14
call fcn.140001730
mov rbx, rax
test rax, rax
je 0x140001a14
mov edx, dword [rax + 0x50]
xor ecx, ecx
mov r8d, 0x5347
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, rax
mov rax, qword [0x140005680]
mov qword [rax + 8], rcx
mov rax, qword [0x140005680]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140001a14
mov r8d, dword [rbx + 0x50]
test r8, r8
je 0x1400018ad
xor edx, edx
call fcn.140001b40
mov rax, qword [0x140005680]
mov edx, dword [rbx + 0x54]
mov rcx, qword [rax + 8]
test rdx, rdx
je 0x1400018d5
mov r8, r14
sub r8, rcx
mov al, byte [r8 + rcx]
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400018c6
movsxd r10, dword [0x14000303c]
lea rax, [0x140003108]
add r10, rax
mov r8d, ebp
cmp bp, word [rbx + 6]
jae 0x140001936
mov eax, r8d
lea rcx, [rax + rax*4]
mov rax, qword [0x140005680]
mov r9d, dword [r10 + rcx*8 + 0x14]
mov edx, dword [r10 + rcx*8 + 0xc]
add r9, r14
mov r11d, dword [r10 + rcx*8 + 0x10]
add rdx, qword [rax + 8]
test r11, r11
je 0x14000192a
sub r9, rdx
mov al, byte [r9 + rdx]
mov byte [rdx], al
inc rdx
sub r11, 1
jne 0x14000191b
movzx eax, word [rbx + 6]
inc r8d
cmp r8d, eax
jb 0x1400018ef
mov rcx, qword [0x140005680]
mov rcx, qword [rcx + 8]
call fcn.1400013c0
test eax, eax
js 0x140001a14
mov rcx, qword [0x140005680]
mov rcx, qword [rcx + 8]
call fcn.140001470
test eax, eax
js 0x140001a14
mov ecx, dword [rbx + 0x28]
or r9, 0xffffffffffffffff
mov rax, qword [0x140005680]
mov ebx, 0x1fffff
mov qword [rsp + 0x78], rbp
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov edx, ebx
add rcx, qword [rax + 8]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov edi, eax
test eax, eax
js 0x140001a14
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
mov qword [rsp + 0x70], rbp
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x1400019f5
mov rcx, qword [rsp + 0x70]
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 + 0x70]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x78]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov rcx, qword [rsi + 0x28]
add rcx, 0x48
call fcn.140001560
mov edi, 0xe0000000
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140001870
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
lea rdi, str.C:Users_username_AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
xor ebx, ebx
lea rcx, str.USERNAME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, qword [rdi]
lea rcx, [rsp + 0x20]
mov r9, rax
mov edx, 0x104
call fcn.140001060
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x1400018d0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400018fb
inc ebx
add rdi, 8
cmp ebx, 3
jb 0x1400018a0
xor eax, eax
jmp 0x140001900
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002260
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000aff0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
xor edx, edx
test r10, r10
cmovne edx, eax
jmp fcn.14000bba0

Function at 0x14000b770
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000b78b
mov qword [r8], 0
call fcn.14000b8c0
mov rbx, rax
test rax, rax
jne 0x14000b7a1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
xor edx, edx
mov qword [rsp + 0x48], rdi
mov r8d, 2
mov rcx, rbx
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b890
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000b890
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b890
mov rax, qword [0x14004ea70]
mov rsi, rdi
test rax, rax
je 0x14000b809
inc dword [rax + 0x3c8]
mov rdx, qword [0x14004ea80]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14000b890
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rsi
je 0x14000b868
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004ea70]
test rax, rax
je 0x14000b856
dec dword [rax + 0x3c8]
mov rdx, qword [0x14004ea80]
mov rcx, rdi
call qword [0x14004e008]
jmp 0x14000b899
test ebp, ebp
jle 0x14000b87a
lea rcx, [rdi + rsi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000b88b
mov qword [r14], rsi
mov rax, rdi
jmp 0x14000b89b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x14000bba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x14004eaa4], 0
lea rdi, [0x14004eaa0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x14000bc78
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x14000bbd0
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000bcae
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x14000bc90
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000bcef
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14000bcd3
cmp byte [r8], r9b
jne 0x14000bcd3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x14000bcc0
not eax
pop rdi
ret
Function at 0x140013380
Capabilities:
Write file on windows

Disassembly:
push rdi
push r15
sub rsp, 0x28
mov rax, qword [0x14004ea70]
xor edi, edi
mov r15, rcx
mov dword [rax + 0x2d9c], edi
test rcx, rcx
je 0x1400134af
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov rsi, qword [0x14004ea70]
lea rbx, [rsi + 0x2da0]
mov dword [rsi + 0x2d9c], edi
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x1400133e5
mov eax, ecx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140016280
mov dword [rbx], edi
cmp dword [rbx + 4], edi
jne 0x1400133f9
mov edx, 8
mov rcx, rbx
call fcn.140016280
movsxd rcx, dword [rbx]
mov ebp, edi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], dil
inc dword [rbx]
cmp dword [rsi + 0x2db0], edi
jle 0x14001344a
mov qword [rsp + 0x20], r14
mov r14, rdi
nop dword [rax + rax]
mov r9, qword [rsi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rsi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rsi + 0x2db0]
jl 0x140013420
mov r14, qword [rsp + 0x20]
cmp qword [rbx + 8], rdi
je 0x140013454
mov edi, dword [rbx]
dec edi
mov rax, qword [rsi + 0x2da8]
lea rdx, [0x1400418fc]
test rax, rax
movsxd rbp, edi
lea rdi, [0x14004ea78]
mov rcx, r15
cmovne rdi, rax
call fcn.14000b8c0
mov rsi, qword [rsp + 0x50]
mov rbx, rax
test rax, rax
je 0x1400134a5
mov r9, rax
mov r8, rbp
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x28
pop r15
pop rdi
ret