joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018d4c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov byte [0x140100c58], 1
xorps xmm0, xmm0
mov qword [0x140100c50], rbx
lea rdx, [0x1400cfb44]
mov qword [0x140100c5c], rbx
lea rcx, [0x140100c80]
mov qword [0x140100c68], rbx
movdqa xmmword [0x140100c70], xmm0
lea rdi, [0x140100c50]
mov qword [0x140100c90], rbx
mov word [0x140100c80], bx
mov qword [0x140100c98], 7
call fcn.1400056b0
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov r9, rdi
mov qword [0x140100c70], rcx
lea r8, [0x140018eb4]
mov qword [0x140100ca0], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
mov qword [0x140100c68], rax
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140018eec
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
movdqa xmm0, xmmword [0x1400dbe30]
movdqu xmmword [rsp + 0x38], xmm0
xor esi, esi
mov word [rsp + 0x28], si
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], si
lea r8, [r11 - 0x30]
lea rdx, [r11 - 0x50]
call fcn.140019074
mov eax, dword [rbx + 0xc]
test al, 2
je 0x140018f5e
lea r8d, [rsi + 0x47]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140018fa8
mov eax, dword [rbx + 0xc]
test al, 1
je 0x140018f72
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140018fa8
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x140018f95
lea rcx, [rsp + 0x28]
call fcn.140004c54
mov rcx, rax
mov r9b, 1
mov r8, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x28]
call rdi
mov qword [rbx + 0x18], rsi
mov ecx, 0x1337
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140018fa8
Capabilities:
Create process memory minidump

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
mov esi, r8d
xor ecx, ecx
mov rax, rdx
cmp qword [rdx + 0x18], 8
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rcx
jb 0x140018fd5
mov rax, qword [rdx]
and qword [rsp + 0x30], rcx
xor r9d, r9d
and dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [rbx + 0x10]
mov rdi, rax
mov dword [rsp + 0x40], ecx
mov rcx, qword [rbx + 0x20]
mov qword [rsp + 0x44], rcx
mov dword [rsp + 0x4c], 1
cmp rax, 0xffffffffffffffff
je 0x140019062
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x30], 0
mov r9d, esi
and qword [rsp + 0x28], 0
mov rcx, rax
lea rax, [rsp + 0x40]
mov r8, rdi
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14001c198
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
xor eax, eax
mov rbx, rdx
mov edx, dword [rdx + 0xa4]
mov rbp, rcx
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
test edx, edx
jne 0x14001c1dd
cmp dword [rbx + 0xc0], eax
jne 0x14001c1dd
mov eax, dword [rbx + 0x98]
mov dword [rbx + 0xc0], eax
lea r10, [rbx + 0x78]
cmp qword [r10 + 0x18], 8
jb 0x14001c1eb
mov r10, qword [r10]
lea r9, [rbx + 0x58]
cmp qword [r9 + 0x18], 8
jb 0x14001c1f9
mov r9, qword [r9]
movzx eax, byte [rbx + 0xb4]
movzx ecx, byte [rbx + 0xb5]
movzx r8d, byte [rbx + 0xb6]
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], r9
mov r9d, dword [rbx + 0xc0]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x9c]
mov dword [rsp + 0x30], ecx
lea rcx, str.Injection_initiated._Mode:__d__process_type:__d__pid:__d__mmap_flags:_0x_X__erasePE:__d__unlink:__d__thread_hijack:__d__init_routine:__s__init_arg:__ls
mov dword [rsp + 0x28], r8d
mov r8d, dword [rbx + 0xa0]
mov dword [rsp + 0x20], eax
call fcn.140019e98
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, rbp
call fcn.14001a3a8
mov edi, eax
test eax, eax
jne 0x14001c33b
mov ecx, dword [rbx + 0xa8]
test ecx, ecx
je 0x14001c274
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14, qword [rbx + 0xd0]
mov rsi, qword [rbx + 0xc8]
jmp 0x14001c2a8
mov r8, qword [rsi]
mov rdx, rbx
mov rcx, rbp
call fcn.14001c350
mov ecx, dword [rbx + 0xac]
or edi, eax
test ecx, ecx
je 0x14001c2a4
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsi, 0x10
cmp rsi, r14
jne 0x14001c284
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001c2cc
test edi, edi
jne 0x14001c2c6
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001c2dc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x14001c32a
test byte [rbx + 0x9c], 0x10
je 0x14001c32a
mov eax, dword [rbx + 0xa4]
cmp eax, 1
je 0x14001c2f9
cmp eax, 4
jne 0x14001c32a
mov eax, dword [rbp + 0x10]
lea rcx, [rbp + 0x3a0]
mov rdx, qword [rcx + 8]
mov dword [rsp + 0x98], eax
cmp qword [rcx + 0x10], rdx
je 0x14001c31d
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x14001c32a
lea r8, [rsp + 0x98]
call fcn.14001e618
lea rcx, [rbp + 8]
cmp qword [rcx], 0
je 0x14001c339
call fcn.1400357f0
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140027150
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
cmp qword [rdx + 0x18], 8
mov r8, rdx
mov r10, qword [rdx + 0x10]
mov rbx, rcx
mov r9, rdx
jb 0x14002716c
mov r9, qword [rdx]
add r10, r10
xor ecx, ecx
movabs rax, 0xcbf29ce484222325
mov r11, r9
lea rdx, [r10 + r9]
cmp r9, rdx
cmova r10, rcx
test r10, r10
je 0x1400271b1
movzx ecx, byte [r11]
movabs rdx, 0x100000001b3
xor rax, rcx
inc r11
mov rcx, r11
sub rcx, r9
imul rax, rdx
cmp rcx, r10
jne 0x14002718e
movsxd rcx, dword [r8 + 0x20]
xor rax, rcx
and rax, qword [rbx + 0x30]
mov rbx, qword [rsp + 8]
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov r12, qword [r8 + 0x18]
mov rdi, r8
mov r14, qword [r8 + 0x10]
mov r15, rdx
mov rsi, rcx
cmp r12, 0x10
jb 0x1400294ed
mov r8, qword [r8]
xor r10d, r10d
lea rcx, [r8 + r14]
cmp r8, rcx
mov r9, r14
movabs rax, 0xcbf29ce484222325
mov rdx, r8
cmova r9, r10
test r9, r9
je 0x140029538
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx]
inc rdx
xor rax, rcx
mov rcx, rdx
sub rcx, r8
imul rax, r10
cmp rcx, r9
jne 0x140029520
mov rcx, qword [rsi + 0x30]
and rcx, rax
mov rax, qword [rsi + 0x18]
mov rsi, qword [rsi + 8]
add rcx, rcx
mov rbp, qword [rax + rcx*8]
lea r13, [rax + rcx*8]
mov rbx, rbp
mov rcx, rbp
mov rdx, rbp
nop dword [rax + rax]
cmp rbp, rsi
jne 0x14002956a
mov rax, rsi
jmp 0x140029571
mov rax, qword [r13 + 8]
mov rax, qword [rax]
cmovne rcx, rdx
cmp rcx, rax
je 0x1400295e7
mov rdx, rdi
cmp r12, 0x10
jb 0x140029586
mov rdx, qword [rdi]
cmp qword [rbx + 0x28], 0x10
lea rcx, [rbx + 0x10]
jb 0x140029595
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x20]
cmp r8, r14
jne 0x1400295a7
call fcn.14008e7b0
test eax, eax
je 0x1400295b2
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rbx
jmp 0x140029560
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x1400295c1
mov rdx, qword [rbx + 0x10]
cmp r12, 0x10
jb 0x1400295ca
mov rdi, qword [rdi]
cmp r14, qword [rbx + 0x20]
jne 0x1400295df
mov r8, r14
mov rcx, rdi
call fcn.14008e7b0
test eax, eax
je 0x1400295e2
mov rbx, rsi
mov qword [r15], rbx
jmp 0x1400295ea
mov qword [r15], rsi
mov rax, r15
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14006fa50
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400350a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov r9, qword [r8 + 0x20]
mov rdi, r8
add r8, 0x10
mov rsi, rdx
mov r10, rcx
cmp qword [rdi + 0x28], 8
jb 0x1400350cb
mov r8, qword [rdi + 0x10]
add r9, r9
xor ebx, ebx
movabs rax, 0xcbf29ce484222325
mov rdx, r8
lea rcx, [r9 + r8]
cmp r8, rcx
cmova r9, rbx
test r9, r9
je 0x140035118
movabs rbx, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx]
inc rdx
xor rax, rcx
mov rcx, rdx
sub rcx, r8
imul rax, rbx
cmp rcx, r9
jne 0x140035100
mov rdx, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and rdx, rax
shl rdx, 4
add rcx, rdx
mov rax, qword [rcx]
cmp qword [rcx + 8], rdi
jne 0x140035158
cmp rax, rdi
jne 0x14003514e
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [rcx + rdx + 8], rax
jmp 0x140035163
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x140035163
cmp rax, rdi
jne 0x140035163
mov rax, qword [rdi]
mov qword [rcx], rax
mov rdx, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rdx], rbx
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.1400344f0
mov edx, 0x48
mov rcx, rdi
call fcn.14006fa74
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140035a40
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x2e0], rbx
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov ebp, r15d
mov qword [rsp + 0x28], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x140035ab5
mov qword [r14], r15
mov qword [r14 + 8], r15
mov qword [r14 + 0x10], r15
jmp 0x140035b68
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x50]
call fcn.14008e5d0
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x140035b4e
cmp qword [rsi + 0x10], 0
je 0x140035b08
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140035afa
mov rdx, qword [rsi]
lea rcx, [rsp + 0x7c]
call fcn.14009a74c
test eax, eax
jne 0x140035b37
cmp qword [rsp + 0x38], rdi
je 0x140035b20
mov eax, dword [rsp + 0x58]
mov dword [rdi], eax
add rdi, 4
mov qword [rsp + 0x30], rdi
jmp 0x140035b37
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400361a0
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140035ae6
mov rbp, qword [rsp + 0x28]
mov qword [r14], rbp
mov qword [r14 + 8], rdi
mov rax, qword [rsp + 0x38]
mov qword [r14 + 0x10], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, r14
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14006fa50
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037900
Capabilities:
Enumerate threads

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, rcx
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 8], rax
je 0x140037950
test dl, dl
je 0x140037950
lea rax, [rcx + 8]
jmp 0x140037ad2
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x140037abf
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x58], 0x1c
lea rcx, [rbp + 8]
call fcn.140036130
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140037abf
lea r13, vtable.std::_Ref_count_obj_class_blackbone::Thread_.0
mov rax, qword [rbp]
mov ecx, dword [rax + 8]
cmp dword [rsp + 0x64], ecx
jne 0x140037aa9
lea r12, [rbp + 0x20]
mov qword [rsp + 0x38], r12
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rsi, qword [rbp]
mov qword [rsp + 0x40], rsi
mov ecx, 0x28
call fcn.14006fa7c
mov r14, rax
mov qword [rsp + 0x48], rax
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], r13
lea r15, [rax + 0x10]
mov r8d, dword [rsp + 0x60]
mov qword [r15], rsi
mov dword [r15 + 8], r8d
xor edx, edx
mov ecx, 0x10005b
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [r15 + 0x10], rax
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], r14
mov rdx, qword [rbp + 0x10]
cmp qword [rbp + 0x18], rdx
je 0x140037a4c
mov qword [rdx], r15
mov qword [rdx + 8], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
add qword [rbp + 0x10], 0x10
jmp 0x140037a5b
lea r8, [rsp + 0x20]
lea rcx, [rbp + 8]
call fcn.140037c10
nop
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140037aa0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140037a9b
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140037a9b
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400379b0
cmp rbx, 0xffffffffffffffff
je 0x140037ace
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 8]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006fa50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003b840
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor eax, eax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov r8d, pe_nt_image_headers64
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.14008e5d0
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x14003b942
mov rax, qword [rax + 0x70]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x40]
mov r9d, 0x40
mov rdx, rbx
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x14003b942
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14003b942
movsxd rdx, dword [rsp + 0x7c]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
add rdx, rbx
je 0x14003b942
mov rax, qword [rax + 0x70]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
mov r9d, pe_nt_image_headers64
lea r8, [rsp + 0x80]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x14003b942
cmp dword [rsp + 0x80], 0x4550
jne 0x14003b942
mov al, 1
jmp 0x14003b944
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14006fa50
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x14003ff80
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, rcx
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
movzx ebp, r8b
mov rsi, rdx
test rcx, rcx
je 0x14003ffba
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003ffcd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], r14
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x14003ffe3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov rcx, qword [rbx + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x14003fffb
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], 0xffffffffffffffff
lea rdi, [rbx + 0xf8]
mov qword [rbx + 0x20], r14
mov rcx, rdi
mov qword [rbx + 0x28], r14
mov rdx, rsi
call fcn.14001939c
mov byte [rbx + 0x1c], r14b
cmp qword [rsi + 0x18], 8
jb 0x140040023
mov rsi, qword [rsi]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov edx, 0x120089
mov rcx, rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx]
mov rsi, rax
cmp rax, rcx
je 0x140040064
cmp rcx, 0xffffffffffffffff
je 0x140040061
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x140040143
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r14d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rsi, rax
cmp rax, rcx
je 0x1400400a7
test rcx, rcx
je 0x1400400a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 8]
xor r9d, r9d
test rcx, rcx
je 0x1400400b9
mov byte [rbx + 0x18], r14b
jmp 0x1400400fd
mov rcx, qword [rbx]
xor edx, edx
mov qword [rsp + 0x28], r14
mov byte [rbx + 0x18], 1
mov dword [rsp + 0x20], r14d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rbx + 8]
mov rsi, rax
cmp rax, rcx
je 0x1400400f1
test rcx, rcx
je 0x1400400ed
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140040113
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x10], rax
cmp qword [rbx + 0x10], r14
je 0x140040143
xor edx, edx
mov rcx, rbx
call fcn.140040260
test eax, eax
js 0x140040152
test bpl, bpl
jne 0x140040152
cmp qword [rdi + 0x18], 8
jb 0x140040136
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rbx
call fcn.140041720
jmp 0x140040152
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140040170
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movzx edi, dl
test rcx, rcx
je 0x14004019a
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400401ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1400401c3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov rcx, qword [rbx + 0x48]
cmp rcx, 0xffffffffffffffff
je 0x1400401db
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], 0xffffffffffffffff
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x140040249
cmp qword [rbx + 0x110], 8
lea rcx, [rbx + 0xf8]
jb 0x140040200
mov rcx, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x140040227
lea rcx, [rbx + 0x118]
cmp qword [rcx + 0x18], 8
jb 0x140040221
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx + 0x130], 8
lea rax, [rbx + 0x118]
jb 0x14004023f
mov rax, qword [rbx + 0x118]
mov qword [rbx + 0x128], rsi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140040260
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rdx, rdx
je 0x140040274
mov qword [rcx + 0x10], rdx
jmp 0x140040278
mov rdx, qword [rcx + 0x10]
test rdx, rdx
jne 0x140040288
mov eax, 0xc0000141
add rsp, 0x20
pop rbx
ret
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14004040a
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
mov qword [rbx + 0x20], rcx
mov qword [rbx + 0x28], rcx
cmp dword [rcx], 0x4550
jne 0x14004040a
mov eax, 0x20b
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rdi
cmp word [rcx + 0x18], ax
jne 0x1400402d7
mov byte [rbx + 0x19], 1
lea rdi, [rcx + 0x108]
mov rax, qword [rcx + 0x30]
jmp 0x1400402e5
mov byte [rbx + 0x19], 0
lea rdi, [rcx + 0xf8]
mov eax, dword [rcx + 0x34]
mov qword [rbx + 0x30], rax
mov eax, dword [rcx + 0x50]
mov dword [rbx + 0x38], eax
mov eax, dword [rcx + 0x54]
mov dword [rbx + 0x40], eax
mov eax, dword [rcx + 0x28]
mov dword [rbx + 0x3c], eax
movzx eax, word [rcx + 0x5c]
mov dword [rbx + 0x54], eax
movzx eax, word [rcx + 0x5e]
mov dword [rbx + 0x5c], eax
movzx eax, word [rcx + 0x16]
shr ax, 0xd
not al
and al, 1
cmp byte [rbx + 0x19], 0
mov byte [rbx + 0x1a], al
je 0x14004032a
mov rax, qword [rbx + 0x28]
add rax, 0xf8
jmp 0x140040331
lea rax, [rcx + 0xe8]
mov ecx, dword [rax]
xor ebp, ebp
test ecx, ecx
jne 0x1400403aa
mov eax, ebp
xor ecx, ecx
mov qword [rsp + 0x40], rsi
mov byte [rbx + 0x1b], cl
test cl, cl
je 0x140040377
sub eax, dword [rbx + 0x10]
lea rdx, [rbx + 0xf8]
add eax, 0x10
lea rcx, [rbx + 0x138]
mov dword [rbx + 0x58], eax
call fcn.1400493a0
test al, al
je 0x140040377
xor edx, edx
lea rcx, [rbx + 0x138]
call fcn.1400494e0
mov rax, qword [rbx + 0x20]
cmp bp, word [rax + 6]
jae 0x1400403f3
mov rdx, qword [rbx + 0x68]
cmp qword [rbx + 0x70], rdx
je 0x1400403d5
movups xmm0, xmmword [rdi]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rdx + 0x20], xmm0
add qword [rbx + 0x68], 0x28
jmp 0x1400403e1
mov rdx, rcx
mov r8d, 1
mov rcx, rbx
call fcn.140041500
test rax, rax
je 0x14004033b
test byte [rax + 0x10], 1
je 0x14004033b
mov cl, 1
jmp 0x14004033d
mov r8, rdi
lea rcx, [rbx + 0x60]
call fcn.140041c00
mov rax, qword [rbx + 0x20]
inc ebp
add rdi, 0x28
movzx ecx, word [rax + 6]
cmp ebp, ecx
jl 0x140040381
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov eax, 0xc000007b
add rsp, 0x20
pop rbx
ret