joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001700c
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
cmp qword [rdx + 0x18], 8
mov esi, r8d
mov rax, rdx
mov rbx, rcx
jb 0x14001702e
mov rax, qword [rdx]
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rax
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 0x1400170bd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
and qword [rsp + 0x28], 0
mov r9d, esi
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov rcx, rax
mov edx, ebx
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 0x140019a28
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
xor eax, eax
mov rbx, rdx
mov edx, dword [rdx + 0xa4]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
mov rdi, rcx
movups xmmword [rsp + 0x50], xmm0
test edx, edx
jne 0x140019a6d
cmp dword [rbx + 0xc0], eax
jne 0x140019a6d
mov eax, dword [rbx + 0x98]
mov dword [rbx + 0xc0], eax
lea r10, [rbx + 0x78]
cmp qword [r10 + 0x18], 8
jb 0x140019a7b
mov r10, qword [r10]
lea r9, [rbx + 0x58]
cmp qword [r9 + 0x18], 8
jb 0x140019a89
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.140017b0c
lea r8, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.1400180b8
mov esi, eax
test eax, eax
jne 0x140019bd1
mov ecx, dword [rbx + 0xa8]
test ecx, ecx
je 0x140019b04
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbp, qword [rbx + 0xd0]
mov r14, qword [rbx + 0xc8]
jmp 0x140019b38
mov r8, qword [r14]
mov rdx, rbx
mov rcx, rdi
call fcn.140019be8
mov ecx, dword [rbx + 0xac]
or esi, eax
test ecx, ecx
je 0x140019b34
call qword [sym.imp.KERNEL32.dll_Sleep]
add r14, 0x10
cmp r14, rbp
jne 0x140019b14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140019b5c
test esi, esi
jne 0x140019b56
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 0x140019b6c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x140019bc0
test byte [rbx + 0x9c], 0x10
je 0x140019bc0
mov eax, dword [rbx + 0xa4]
cmp eax, 1
je 0x140019b89
cmp eax, 4
jne 0x140019bc0
mov rdx, qword [rdi + 0x368]
lea rcx, [rdi + 0x360]
mov eax, dword [rdi + 0x10]
mov dword [rsp + 0x98], eax
cmp rdx, qword [rdi + 0x370]
je 0x140019bb3
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x140019bc0
lea r8, [rsp + 0x98]
call fcn.14001b680
lea rcx, [rdi + 8]
cmp qword [rcx], 0
je 0x140019bcf
call fcn.140031550
mov eax, esi
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 0x14001eb1c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rbx, [rcx + 0x538]
mov qword [rsp + 0x60], rbx
mov rcx, rbx
call fcn.14006970c
test eax, eax
jne 0x14001ebe0
lea ecx, [rax + 0x10]
call fcn.14006a79c
mov qword [rax], rdi
lea rcx, [fcn.140020da0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140016d48]
xor edx, edx
xor ecx, ecx
call fcn.140097964
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001ebd0
cmp dword [rsp + 0x48], 0
je 0x14001ebe8
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.1400693a4
test eax, eax
jne 0x14001ebf3
mov rcx, rbx
call fcn.140069730
test eax, eax
jne 0x14001ebc8
mov eax, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, eax
call fcn.140069264
nop
and dword [rsp + 0x48], 0
mov ecx, 6
call fcn.1400692a0
nop
mov ecx, eax
call fcn.140069264
nop
mov ecx, 1
call fcn.1400692a0
int3
mov ecx, eax
call fcn.140069264
int3
Function at 0x140024c00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rcx
mov qword [rsp + 0x50], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140089760
mov dword [rsp + 0x50], 0x104
call fcn.140024040
mov rbx, rax
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], r14b
lea rdx, str.QueryFullProcessImageNameW
lea rcx, [rsp + 0x20]
call fcn.140006a18
nop
call fcn.140046300
lea rdi, [rbx + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
movabs r9, 0xcbf29ce484222325
mov ecx, r14d
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x140024ce3
movabs r10, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140024cd0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140025670
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140024d04
mov rax, qword [rbx + 8]
jmp 0x140024d0b
mov rcx, qword [rbx + 8]
mov rax, rcx
cmp rcx, rax
je 0x140024d1f
mov rbx, qword [rcx + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140024d2b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, r14
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140024d68
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024d63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024e4b
call fcn.14006a794
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x140024d99
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
xor edx, edx
call rbx
jmp 0x140024dab
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r14w
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.1400068b8
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140024900
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140024e1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024e16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024e45
call fcn.14006a794
mov rax, rsi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14006a770
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140095e24
int3
call fcn.140095e24
int3

Function at 0x1400253e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400253ee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x1400317a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm1
xor ebp, ebp
mov qword [rsp + 0x30], rbp
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
setg r15b
test rax, rax
jg 0x14003180b
mov qword [r14], rbp
mov qword [r14 + 8], rbp
jmp 0x1400318b2
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call fcn.140089760
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rdi, qword [rsp + 0x28]
test eax, eax
je 0x1400318a6
nop dword [rax]
cmp qword [rsi + 0x10], 0
je 0x140031862
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140031854
mov rdx, qword [rsi]
lea rcx, [rsp + 0x6c]
call fcn.140097a84
test eax, eax
jne 0x140031894
cmp rdi, rbp
je 0x140031878
mov eax, dword [rsp + 0x48]
mov dword [rdi], eax
add rdi, 4
mov qword [rsp + 0x28], rdi
jmp 0x140031894
lea r8, [rsp + 0x48]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140031f10
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140031840
mov rax, qword [rsp + 0x20]
mov qword [r14], rax
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rbp
test r15b, r15b
je 0x1400318c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, r14
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14006a770
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034370
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14d, edx
mov rsi, rcx
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x10]
movzx r15d, byte [rcx + 0x15]
xor r12d, r12d
test r15b, r15b
sete r12b
lea rdi, [rsi + 0x58]
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rsi + 0x20]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400344b4
movabs rcx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
mov rbp, qword [rbx]
mov rax, qword [rbx + 0x38]
cmp byte [rax + 0x58], 0
jne 0x1400344a7
mov r10, qword [rbx + 0x20]
lea r9, [rbx + 0x10]
cmp qword [rbx + 0x28], 8
jb 0x140034404
mov r9, qword [rbx + 0x10]
mov rdx, rcx
xor eax, eax
add r10, r10
je 0x140034424
nop
movzx ecx, byte [rax + r9]
xor rdx, rcx
imul rdx, r11
inc rax
cmp rax, r10
jb 0x140034410
movsxd rcx, dword [rbx + 0x30]
xor rcx, rdx
and rcx, qword [rsi + 0x48]
shl rcx, 4
mov rdx, qword [rsi + 0x30]
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x14003445f
cmp rax, rbx
jne 0x140034455
mov rax, qword [rsi + 0x20]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x140034467
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x140034467
cmp rax, rbx
jne 0x140034467
mov qword [rdx], rbp
mov rcx, qword [rbx]
dec qword [rsi + 0x28]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
lea rdx, [rbx + 0x10]
call fcn.140023f9c
mov edx, 0x48
mov rcx, rbx
call fcn.14006a794
movabs rcx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
mov rbx, rbp
cmp rbp, qword [rsi + 0x20]
jne 0x1400343e0
mov r8d, r12d
mov edx, r14d
mov rcx, rsi
call fcn.140037ac0
test r14d, r14d
jne 0x1400344db
test r15b, r15b
je 0x1400344db
xor edx, edx
lea r8d, [r14 + 1]
mov rcx, rsi
call fcn.140037ac0
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, [rsi + 0x18]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140037070
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x190], rax
xorps xmm0, xmm0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x108
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140089760
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x14003715f
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 0x14003715f
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14003715f
movsxd rdx, dword [rsp + 0x7c]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
add rdx, rbx
je 0x14003715f
mov rax, qword [rax + 0x70]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rsp + 0x80]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x14003715f
cmp dword [rsp + 0x80], 0x4550
jne 0x14003715f
mov al, 1
jmp 0x140037161
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14006a770
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140037860
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0xb0
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, rcx
movsxd r15, r8d
lea rcx, [rsp + 0x48]
call fcn.1400245c0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140025230
xor ebx, ebx
mov dword [rsp + 0x88], r15d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rsp + 0x40]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm1
cmp rdx, 8
jb 0x140037907
mov rcx, qword [rsp + 0x28]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037902
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037aba
call fcn.14006a794
mov qword [rsp + 0xe0], rbp
lea rcx, [rsp + 0x68]
mov rbp, qword [rsp + 0x80]
movabs rdx, 0xcbf29ce484222325
mov qword [rsp + 0xe8], rdi
cmp rbp, 8
mov rdi, qword [rsp + 0x68]
mov qword [rsp + 0xa8], r12
cmovae rcx, rdi
mov qword [rsp + 0xa0], r14
mov r14, qword [rsp + 0x78]
lea r8, [r14 + r14]
test r8, r8
je 0x140037983
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rbx
xor rdx, rax
imul rdx, r9
cmp rbx, r8
jb 0x140037970
mov rax, qword [rsi + 0x30]
mov rcx, r15
xor rcx, rdx
and rcx, qword [rsi + 0x48]
add rcx, rcx
mov r11, qword [rax + rcx*8 + 8]
cmp r11, qword [rsi + 0x20]
je 0x140037a41
mov rbx, qword [rax + rcx*8]
nop word [rax + rax]
cmp qword [r11 + 0x28], 8
lea rax, [r11 + 0x10]
jb 0x1400379bf
mov rax, qword [r11 + 0x10]
cmp rbp, 8
lea r9, [rsp + 0x68]
cmovae r9, rdi
cmp r14, qword [r11 + 0x20]
jne 0x140037a16
mov rcx, r14
test r14, r14
je 0x140037a10
movzx edx, word [r9]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x140037a16
sub r9, rax
cmp dx, r8w
ja 0x140037a16
cmp rcx, 1
je 0x140037a10
movzx edx, word [rax + r9 + 2]
add rax, 2
dec rcx
movzx r8d, word [rax]
cmp dx, r8w
jae 0x1400379ef
jmp 0x140037a16
cmp r15d, dword [r11 + 0x30]
je 0x140037a21
cmp r11, rbx
je 0x140037a41
mov r11, qword [r11 + 8]
jmp 0x1400379b0
test r11, r11
je 0x140037a41
lea rdx, [rsp + 0x68]
lea rcx, [rsi + 0x18]
call fcn.140039d70
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
mov r14, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
cmp rbp, 8
jb 0x140037a88
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140037a80
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037ab4
mov rcx, rdi
call fcn.14006a794
mov rbp, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14006a770
add rsp, 0xb0
pop r15
pop rsi
pop rbx
ret
call fcn.140095e24
int3
call fcn.140095e24
int3
Function at 0x140039d70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rdx + 0x18]
mov r11, rdx
mov rdi, qword [rdx + 0x10]
mov r13, rcx
mov r9, rdx
cmp r12, 8
jb 0x140039da6
mov r9, qword [rdx]
lea r10, [rdi + rdi]
xor edx, edx
movabs r8, 0xcbf29ce484222325
test r10, r10
je 0x140039de4
movabs rcx, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc rdx
xor r8, rax
imul r8, rcx
cmp rdx, r10
jb 0x140039dd0
mov rsi, qword [r13 + 0x18]
movsxd rbp, dword [r11 + 0x20]
mov r15, qword [r13 + 0x30]
mov rax, rbp
mov r14, qword [r13 + 8]
xor rax, r8
and r15, rax
mov qword [rsp + 0x50], rsi
mov rax, r15
add rax, rax
mov rbx, qword [rsi + rax*8 + 8]
cmp rbx, r14
je 0x140039efc
mov rsi, qword [rsi + rax*8]
nop word [rax + rax]
cmp qword [rbx + 0x28], 8
lea rax, [rbx + 0x10]
jb 0x140039e2f
mov rax, qword [rbx + 0x10]
mov r9, r11
cmp r12, 8
jb 0x140039e3b
mov r9, qword [r11]
cmp rdi, qword [rbx + 0x20]
jne 0x140039e7f
mov r8, rdi
test rdi, rdi
je 0x140039e7a
movzx ecx, word [r9]
movzx edx, word [rax]
cmp cx, dx
jb 0x140039e7f
sub r9, rax
cmp cx, dx
ja 0x140039e7f
cmp r8, 1
je 0x140039e7a
movzx ecx, word [r9 + rax + 2]
add rax, 2
dec r8
movzx edx, word [rax]
cmp cx, dx
jae 0x140039e5b
jmp 0x140039e7f
cmp ebp, dword [rbx + 0x30]
je 0x140039e8a
cmp rbx, rsi
je 0x140039efc
mov rbx, qword [rbx + 8]
jmp 0x140039e20
test rbx, rbx
je 0x140039efc
mov rcx, qword [rsp + 0x50]
add r15, r15
mov rax, qword [rcx + r15*8]
cmp qword [rcx + r15*8 + 8], rbx
jne 0x140039ebd
cmp rax, rbx
jne 0x140039eb2
mov qword [rcx + r15*8], r14
mov qword [rcx + r15*8 + 8], r14
jmp 0x140039ec9
mov r14, qword [rbx + 8]
mov qword [rcx + r15*8 + 8], r14
jmp 0x140039ec9
cmp rax, rbx
jne 0x140039ec9
mov rax, qword [rbx]
mov qword [rcx + r15*8], rax
mov r8, qword [rbx]
lea rdx, [rbx + 0x10]
dec qword [r13 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], r8
mov rax, qword [rbx + 8]
mov qword [r8 + 8], rax
call fcn.140023f9c
mov edx, 0x48
mov rcx, rbx
call fcn.14006a794
mov eax, 1
jmp 0x140039efe
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14003cca0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rsi, [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rsi]
xor r15d, r15d
movzx ebp, r8b
mov rbx, rdx
test rcx, rcx
je 0x14003ccdc
jle 0x14003ccd9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14003ccf1
jle 0x14003cced
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r15
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003cd04
jle 0x14003cd01
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r15
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14003cd19
jle 0x14003cd15
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rdi + 0x48], r15
lea r14, [rdi + 0xf8]
mov qword [rdi + 0x20], r15
mov rcx, r14
mov qword [rdi + 0x28], r15
mov rdx, rbx
call fcn.140017420
mov byte [rdi + 0x1c], r15b
cmp qword [rbx + 0x18], 8
jb 0x14003cd41
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov edx, 0x120089
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rdi]
mov rbx, rax
cmp rax, rcx
je 0x14003cd84
test rcx, rcx
jle 0x14003cd7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003ce8b
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r15d
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003cdc6
test rcx, rcx
jle 0x14003cdbf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
xor r9d, r9d
test rcx, rcx
jle 0x14003cdd4
mov byte [rdi + 0x18], r15b
jmp 0x14003ce17
mov rcx, qword [rdi]
xor edx, edx
mov qword [rsp + 0x28], r15
mov byte [rdi + 0x18], 1
mov dword [rsp + 0x20], r15d
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rdi + 8]
mov rbx, rax
cmp rax, rcx
je 0x14003ce0f
test rcx, rcx
jle 0x14003ce08
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbx
mov rcx, rbx
test rcx, rcx
jle 0x14003ce5c
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea edx, [r8 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
lea rax, [rsp + 0x60]
cmp rax, rsi
je 0x14003ce4e
mov rcx, qword [rsi]
cmp rbx, rcx
je 0x14003ce5c
test rcx, rcx
jle 0x14003ce49
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsi], rbx
jmp 0x14003ce5c
test rbx, rbx
jle 0x14003ce5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp qword [rsi], r15
je 0x14003ce8b
xor edx, edx
mov rcx, rdi
call fcn.14003cfb0
test eax, eax
js 0x14003ce9a
test bpl, bpl
jne 0x14003ce9a
cmp qword [r14 + 0x18], 8
jb 0x14003ce7e
mov r14, qword [r14]
mov rdx, r14
mov rcx, rdi
call fcn.14003df50
jmp 0x14003ce9a
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14003cec0
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 0x14003ceec
jle 0x14003cee8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003cf01
jle 0x14003cefd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003cf14
jle 0x14003cf11
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x14003cf29
jle 0x14003cf25
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x14003cf97
cmp qword [rbx + 0x110], 8
lea rcx, [rbx + 0xf8]
jb 0x14003cf4e
mov rcx, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x14003cf75
lea rcx, [rbx + 0x118]
cmp qword [rcx + 0x18], 8
jb 0x14003cf6f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [rbx + 0x130], 8
lea rax, [rbx + 0x118]
jb 0x14003cf8d
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