joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023580
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x70
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor ebp, ebp
lea r9, [rsp + 0x50]
mov rdi, rcx
mov qword [rsp + 0x50], rbp
add rcx, 0x78
lea edx, [rbp + 0x18]
lea r8d, [rbp + 8]
call fcn.140020880
cmp qword [rsp + 0x50], rbp
je 0x14002367d
mov qword [rsp + 0x58], rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rdi]
lea r9, [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov r8, rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], ebp
mov rcx, qword [rcx]
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002360c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x78]
mov qword [rsp + 0x40], rbp
test rdx, rdx
je 0x140023643
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x40]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rdi + 0x88]
mov qword [rsp + 0x48], rbp
test rdx, rdx
je 0x14002367d
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x48]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x140023690
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x40], rbp
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x14002377f
mov qword [rsp + 0x88], rsi
mov rsi, qword [rbx + 0x10]
test rsi, rsi
jg 0x1400236c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rsi, rax
je 0x1400236c8
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rsi, rax
jne 0x140023777
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x60], 0x103
jne 0x140023777
mov rcx, qword [rdi + 0x20]
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x20]
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rdi + 0x20]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140023729
jle 0x140023725
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rbp
mov dword [rbx + 8], ebp
mov rbx, qword [rdi + 0x28]
mov qword [rdi + 0x20], rbp
mov qword [rdi + 0x28], rbp
test rbx, rbx
je 0x140023769
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140023769
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140023769
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140023777
call fcn.140020750
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14004eaf0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140023bc0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
jne 0x140023be5
mov al, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 0x10], 3
jne 0x140023c8f
cmp byte [rcx + 0x16], 0
jne 0x140023c8f
call fcn.140015810
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x12
lea rdx, str.Wow64SuspendThread
lea rcx, [rsp + 0x20]
call fcn.1400058c0
nop
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140023cb0
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140023c81
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023c7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023caa
call fcn.14004ed9c
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.14005a558
int3

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140034b00
lea rcx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
mov r10, qword [rbx + 0x10]
jb 0x140023ce6
mov rdx, qword [rbx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x140023d14
movabs r8, 0x100000001b3
movzx eax, byte [rcx + rdx]
inc rcx
xor r9, rax
imul r9, r8
cmp rcx, r10
jb 0x140023d01
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140018100
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140023d5c
cmp rbx, qword [rsi + 8]
je 0x140023d5c
mov rbx, qword [rbx + 0x30]
lea rcx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140023d66
mov rcx, qword [r14]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp rax
lea rcx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140023d80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x970
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov edi, edx
mov rbx, rcx
cmp edx, 4
ja 0x140023f5f
xor edx, edx
mov qword [rsp + 0x988], rsi
mov r8d, 0x670
lea rcx, [rsp + 0x2f0]
call fcn.140051420
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.140051420
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x140023e0f
mov dword [rsp + 0x320], 0x100010
lea r8, [rsp + 0x2f0]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140023e26
mov dword [rsp + 0x20], 0x100010
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
test sil, sil
lea r8, [rsp + 0x360]
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
js 0x140023f36
mov edx, dword [r8]
test edi, edi
jne 0x140023e54
and edx, 0xfff0fffe
mov dword [r8], edx
jmp 0x140023eb6
cmp edi, 1
jne 0x140023e5e
and edx, 0xfffffffb
jmp 0x140023e70
cmp edi, 2
mov eax, 0xffffffef
mov ecx, 0xffffffbf
cmovne eax, ecx
and edx, eax
cmp edi, 1
jne 0x140023e7d
and edx, 0xff3fffff
jmp 0x140023e8f
cmp edi, 2
mov eax, 0xf3ffffff
mov ecx, 0x3fffffff
cmovne eax, ecx
and edx, eax
cmp edi, 1
jne 0x140023e9f
and edx, 0xffcfffff
mov dword [r8], edx
jmp 0x140023eb6
cmp edi, 2
mov eax, 0xfcffffff
mov ecx, 0xcfffffff
cmovne eax, ecx
and eax, edx
mov edx, eax
mov dword [r8], eax
mov eax, edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x140023ed2
btr edx, 8
mov dword [r8], edx
mov rcx, rbx
mov edi, 0xc000071c
call fcn.140023bc0
test sil, sil
jne 0x140023f03
test al, al
je 0x140023f34
mov rax, qword [rbx]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140023f1d
test al, al
je 0x140023f34
mov rax, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140023f34
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rsi, qword [rsp + 0x988]
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14004eaf0
mov rbx, qword [rsp + 0x990]
add rsp, 0x970
pop rdi
ret
xor eax, eax
jmp 0x140023f3e
Function at 0x140023f70
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x970
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x2f0]
mov r8d, 0x670
call fcn.140051420
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.140051420
mov rcx, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x140023ff4
mov dword [rsp + 0x320], 0x100010
lea r8, [rsp + 0x2f0]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x14002400b
mov dword [rsp + 0x20], 0x100010
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
test sil, sil
lea r8, [rsp + 0x360]
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
jns 0x14002402a
xor eax, eax
jmp 0x14002411d
xor edx, edx
mov ecx, edx
mov eax, edx
cmp qword [rsp + rax*8 + 0x338], rbx
je 0x140024055
cmp dword [rsp + rax*4 + 0x24], ebx
je 0x140024055
inc ecx
inc rax
cmp rax, 4
jl 0x140024030
mov eax, 0xc0000225
jmp 0x14002411d
movsxd rax, ecx
test sil, sil
jne 0x140024067
mov qword [rsp + rax*8 + 0x338], rdx
jmp 0x14002406b
mov dword [rsp + rax*4 + 0x24], edx
mov edx, dword [r8]
test ecx, ecx
jne 0x14002407a
and edx, 0xfff0fffe
jmp 0x14002409a
cmp ecx, 1
jne 0x140024087
and edx, 0xff0ffffb
jmp 0x14002409a
cmp ecx, 2
jne 0x140024094
and edx, 0xf0ffffef
jmp 0x14002409a
and edx, 0xfffffbf
mov eax, edx
mov dword [r8], edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x1400240b9
btr edx, 8
mov dword [r8], edx
mov rcx, rdi
mov ebx, 0xc000071c
call fcn.140023bc0
test sil, sil
jne 0x1400240ea
test al, al
je 0x14002411b
mov rax, qword [rdi]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140024104
test al, al
je 0x14002411b
mov rax, qword [rdi]
lea r8, [rsp + 0x20]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
je 0x14002411b
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14004eaf0
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400241f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rdx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400a0d40], eax
jle 0x140024281
lea rcx, [0x1400a0d40]
call fcn.14004f29c
cmp dword [0x1400a0d40], 0xffffffff
jne 0x140024281
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetThreadId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a0d48], rax
lea rcx, [0x1400a0d40]
call fcn.14004f23c
mov rax, qword [0x1400a0d48]
test rax, rax
je 0x140024297
mov rcx, rbp
call rax
jmp 0x1400243e6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], eax
xor edi, edi
mov dword [rsp + 0x60], edi
call fcn.140015810
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r8d, [rdi + 0x18]
lea rdx, str.NtQueryInformationThread
lea rcx, [rsp + 0x30]
call fcn.1400058c0
nop
call fcn.140034b00
lea r14, [rbx + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rdx, [rsp + 0x30]
mov rsi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x48]
cmp r15, 0x10
cmovae rdx, rsi
movabs r9, 0xcbf29ce484222325
mov ecx, edi
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x140024343
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140024330
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140018100
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140024396
cmp rdx, qword [rbx + 8]
je 0x140024396
mov rbx, qword [rdx + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x14002439f
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rbp
call rbx
mov ebx, eax
jmp 0x1400243a4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
shr ebx, 0x1f
xor bl, 1
cmp r15, 0x10
jb 0x1400243dd
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400243d5
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024413
mov rcx, rsi
call fcn.14004ed9c
test bl, bl
cmovne edi, dword [rsp + 0x74]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14004eaf0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14005a558
int3
Function at 0x140026730
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 0x14002675c
jle 0x140026758
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140026771
jle 0x14002676d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x140026784
jle 0x140026781
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140026799
jle 0x140026795
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 0x140026805
cmp qword [rbx + 0x110], 8
lea rcx, [rbx + 0xf8]
jb 0x1400267be
mov rcx, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x1400267ea
add rbx, 0x118
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400267e2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400267f1
add rbx, 0x118
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x1400267fe
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400276f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x70]
call fcn.140051420
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x40], 0x38
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
lea r8, [rsi + 0x50]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140027970
mov r12, rax
test rax, rax
je 0x140027929
test rdi, rdi
jne 0x1400278ba
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.140051420
lea rdx, [rbp + 0x190]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.ImageManifest
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1400277d4
mov eax, 0xc0150002
jmp 0x14002792b
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
setg r14b
test rax, rax
jle 0x1400278a9
mov dword [rbp - 0x80], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
mov r8d, dword [rsp + 0x78]
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r14b, r14b
je 0x140027838
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x118]
lea rax, [rbp - 0x70]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140027860
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x14002789d
mov r14, rcx
cmp rax, 8
jb 0x14002787f
mov r14, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140050d50
mov word [rdi + r14], bx
jmp 0x1400278a7
lea r9, [rbp - 0x70]
call fcn.140014740
nop
jmp 0x1400278e3
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14002792b
mov dword [rsp + 0x44], 8
movzx eax, word [rsi + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rdi
lea rdx, [rsi + 0xf8]
lea rcx, [rsi + 0x118]
call fcn.140014060
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
mov rcx, qword [rsi + 0x48]
cmp rax, rcx
je 0x14002790c
test rcx, rcx
jle 0x140027905
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rsi + 0x48], rdi
mov rcx, rdi
test rcx, rcx
jg 0x140027929
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], 0xc0000022
jne 0x140027956
mov dword [rsi + 0x50], ebx
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14004eaf0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14002792b
Function at 0x140037580
Capabilities:
Terminate thread

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov byte [rcx + 0x60], 0
mov rcx, qword [rcx + 0x48]
xor ebp, ebp
test rcx, rcx
je 0x1400375b5
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x48], rbp
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400375ca
jle 0x1400375c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rbp
mov edi, ebp
nop dword [rax]
mov edx, edi
mov rcx, rbx
call fcn.140037260
inc edi
cmp edi, 4
jl 0x1400375d0
cmp qword [rbx + 0x10], rbp
je 0x1400376bf
call fcn.14000c6b0
mov rcx, qword [rbx]
mov dword [rsp + 0x40], ebp
mov edx, dword [rcx + 8]
mov rcx, qword [rax]
mov dword [rsp + 0x44], edx
cmp rcx, 0xffffffffffffffff
je 0x140037655
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x44]
mov dword [rsp + 0x28], ebp
mov r9d, 4
mov edx, 0x8005e020
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14003764a
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], ebp
jl 0x140037655
lea rcx, [rbx + 8]
call fcn.1400376e0
jmp 0x1400376b3
mov qword [rsp + 0x78], rsi
mov rsi, qword [rbx + 8]
mov qword [rsp + 0x80], r14
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], bpl
jne 0x140037697
mov r8, qword [rdi + 0x10]
lea rdx, [rbx + 8]
lea rcx, [rbx + 8]
call fcn.140037750
mov rcx, rdi
mov edx, 0x38
mov rdi, qword [rdi]
call fcn.14004ed9c
cmp byte [rdi + 0x19], bpl
je 0x140037670
mov r14, qword [rsp + 0x80]
mov qword [rsi + 8], rsi
mov qword [rsi], rsi
mov qword [rsi + 0x10], rsi
mov rsi, qword [rsp + 0x78]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x50], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004eaf0
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400386a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x1400a0998], 0
jne 0x140038711
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x1400a0988], rax
mov eax, dword [rsp + 0x48]
mov qword [0x1400a0990], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1400a0998], rax
lea rax, [0x1400a0988]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14004eaf0
add rsp, 0x68
ret
Function at 0x140039a60
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
mov qword [rcx + 8], rdx
lea rax, vtable.blackbone::Native.0
mov rdi, rcx
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 0x10], rsi
movzx ebx, r8b
lea rcx, [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov dword [rdi + 0x18], ecx
test bl, bl
je 0x140039acd
mov word [rdi + 0x14], 0x101
mov byte [rdi + 0x16], 1
jmp 0x140039b29
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x24], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [rsp + 0x20]
cmp ecx, 1
mov edx, dword [rsp + 0x24]
sete al
cmp edx, 1
mov byte [rdi + 0x14], al
sete al
mov byte [rdi + 0x15], al
cmp ecx, 1
jne 0x140039b4f
cmp edx, ecx
je 0x140039b29
cmp ecx, 1
mov byte [rdi + 0x17], 1
setne sil
add esi, 2
mov dword [rdi + 0x10], esi
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004eaf0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
test ecx, ecx
jne 0x140039b1b
test edx, edx
jne 0x140039b1b
mov dword [rdi + 0x10], 1
jmp 0x140039b2c
Function at 0x140039c20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14009d020]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], r9
mov r13d, r8d
mov r12, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rsp + 0x68], rbx
call fcn.140015810
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea r8d, [rbx + 0x14]
lea rdx, str.NtQueryVirtualMemory
lea rcx, [rsp + 0x30]
call fcn.1400058c0
nop
call fcn.140034b00
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x30]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
cmp rsi, 0x10
cmovae rcx, rdi
movabs r9, 0xcbf29ce484222325
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140039ce3
movabs r8, 0x100000001b3
nop dword [rax]
movzx eax, byte [rbx + rcx]
xor r9, rax
imul r9, r8
inc rbx
cmp rbx, rdx
jb 0x140039cd0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.140018100
mov r10, qword [rax + 8]
test r10, r10
je 0x140039d43
cmp r10, qword [r14 + 8]
je 0x140039d43
mov rbx, qword [r10 + 0x30]
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140039d4d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8d, r13d
mov rdx, r12
mov rcx, qword [r15 + 8]
call rbx
mov ebx, eax
jmp 0x140039d52
lea rcx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
cmp rsi, 0x10
jb 0x140039d85
lea rdx, [rsi + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140039d7d
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039da8
mov rcx, rdi
call fcn.14004ed9c
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14004eaf0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14005a558
int3