joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140084530
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov rdi, rdx
mov r15d, 8
sub rsi, r8
mov rbx, r8
mov rdx, r8
mov r8d, r15d
mov r14, rcx
mov rax, qword [rsi + rdx]
xor qword [rdx], rax
add rdx, r15
sub r8, 1
jne 0x140084563
cmp rdi, 1
jbe 0x1400845b6
add rsi, 0x40
lea rbp, [rdi - 1]
mov rcx, rbx
call fcn.140084e3c
mov rcx, rbx
call fcn.140084d38
call fcn.140084840
mov rcx, rbx
mov rdx, r15
mov rax, qword [rsi + rcx]
xor qword [rcx], rax
add rcx, r15
sub rdx, 1
jne 0x14008459c
add rsi, 0x40
sub rbp, 1
jne 0x140084581
mov rcx, rbx
call fcn.140084e3c
mov rcx, rbx
call fcn.140084d38
shl rdi, 6
mov rcx, r15
sub rdi, rbx
lea rdx, [rdi + r14]
mov rax, qword [rdx + rbx]
xor qword [rbx], rax
add rbx, r15
sub rcx, 1
jne 0x1400845d4
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140084694
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400e5058]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [r8]
mov rsi, rcx
lea rcx, [rsp + 0x30]
movups xmm1, xmmword [r8 + 0x10]
mov rdi, rdx
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [r8 + 0x20]
movaps xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [r8 + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
call fcn.140085210
xor ebx, ebx
test rdi, rdi
je 0x14008481b
mov r14d, 0xffff0000
movabs r15, 0xff000000ff00
movabs r12, 0xf000f000f000f0
mov r9, qword [rsp + rbx*8 + 0x50]
mov r8, qword [rsp + rbx*8 + 0x30]
mov rdx, r9
shl rdx, 0x20
mov eax, r8d
or rdx, rax
shr r8, 0x20
mov rcx, rdx
shr rcx, 0x10
xor rcx, rdx
and rcx, r14
mov rax, rcx
shl rax, 0x10
xor rax, rcx
xor rdx, rax
mov rcx, rdx
shr rcx, 8
xor rcx, rdx
and rcx, r15
mov rax, rcx
shl rax, 8
xor rax, rcx
xor rdx, rax
mov rcx, rdx
shr rcx, 4
xor rcx, rdx
and rcx, r12
mov rax, rcx
shl rax, 4
xor rax, rcx
xor rax, rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
movabs rax, 0xffffffff00000000
and r9, rax
or r9, r8
mov r8d, 8
mov rcx, r9
shr rcx, 0x10
xor rcx, r9
and rcx, r14
mov rax, rcx
shl rax, 0x10
xor rax, rcx
xor r9, rax
mov rcx, r9
shr rcx, 8
xor rcx, r9
and rcx, r15
mov rax, rcx
shl rax, 8
xor rax, rcx
xor r9, rax
mov rcx, r9
shr rcx, 4
xor rcx, r9
and rcx, r12
mov rax, rcx
shl rax, 4
xor rax, rcx
mov rcx, rsi
xor rax, r9
mov qword [rsp + 0x28], rax
call fcn.14008e8c0
lea rcx, [rsi + 8]
mov r8d, 8
lea rdx, [rsp + 0x28]
call fcn.14008e8c0
inc rbx
add rsi, 0x10
cmp rbx, rdi
jb 0x140084713
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008de10
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140084ab4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov dword [rcx + 0xf0], 0xa
lea rcx, [rsp + 0x20]
call fcn.140084430
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14008e8c0
add rbx, 0x10
mov edi, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140084db0
lea rax, [0x1400ac480]
xor r9d, r9d
movzx r10d, byte [rdi + rax - 1]
mov rdx, qword [rsp + r9*8 + 0x30]
mov cl, r9b
shl cl, 2
mov rax, rdx
shr rax, 0x10
mov r8, r10
shr r8, cl
movabs rcx, 0xf000000000000
and r8d, 0xf
and rdx, rcx
or rax, rdx
shr rax, 0x24
xor r8, rax
xor r8, qword [rsp + r9*8 + 0x20]
mov rax, r8
shl rax, 0x10
xor rax, r8
shl rax, 0x10
xor rax, r8
shl rax, 0x10
xor rax, r8
mov qword [rsp + r9*8 + 0x20], rax
inc r9
cmp r9, 2
jb 0x140084b10
mov r8d, 0x10
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14008e8c0
inc rdi
add rbx, 0x10
cmp rdi, 0xa
jbe 0x140084af1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140084ba0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
mov dword [rcx + 0xf0], 0xe
lea rcx, [rbp - 0x30]
mov rbx, rdx
call fcn.140084430
mov esi, 0x10
lea rdx, [rbp - 0x30]
mov r8d, esi
mov rcx, rdi
call fcn.14008e8c0
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x20]
call fcn.140084430
lea rcx, [rdi + 0x10]
mov r8d, esi
lea rdx, [rbp - 0x20]
call fcn.14008e8c0
add rdi, 0x20
lea ebx, [rsi - 0xe]
lea r14d, [rsi + 0x10]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.140084db0
mov rax, rbx
lea rcx, [0x1400ac480]
shr rax, 1
xor r9d, r9d
movzx r10d, byte [rax + rcx - 1]
mov rdx, qword [rbp + r9*8 - 0x10]
mov cl, r9b
shl cl, 2
mov rax, rdx
shr rax, 0x10
mov r8, r10
shr r8, cl
movabs rcx, 0xf000000000000
and r8d, 0xf
and rdx, rcx
or rax, rdx
shr rax, 0x24
xor r8, rax
xor r8, qword [rbp + r9*8 - 0x30]
mov rax, r8
shl rax, 0x10
xor rax, r8
shl rax, 0x10
xor rax, r8
shl rax, 0x10
xor rax, r8
mov qword [rbp + r9*8 - 0x30], rax
inc r9
cmp r9, 2
jb 0x140084c33
mov r8, rsi
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14008e8c0
cmp rbx, 0xe
je 0x140084d1b
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.140084db0
movdqu xmm0, xmmword [rbp - 0x20]
mov eax, 0x30
lea rcx, [rdi + 0x10]
movdqu xmm4, xmmword [rbp - 0x10]
mov r8, rsi
lea rdx, [rbp - 0x20]
movq xmm3, rax
psrlq xmm4, xmm3
xorps xmm4, xmm0
movq xmm0, rsi
movdqa xmm2, xmm4
movdqa xmm1, xmm4
psllq xmm2, xmm0
movq xmm0, r14
xorps xmm2, xmm4
psllq xmm1, xmm0
psllq xmm4, xmm3
xorps xmm2, xmm1
xorps xmm2, xmm4
movdqu xmmword [rbp - 0x20], xmm2
call fcn.14008e8c0
add rbx, 2
add rdi, r14
cmp rbx, 0xe
jbe 0x140084c10
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14008534c
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14008553c
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1400e5058]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r14, qword [rbp + 0x430]
mov r12, rdx
mov r15, rcx
mov qword [rsp + 0x30], r9
mov rdx, r9
lea rcx, [rbp - 0x80]
mov rsi, r8
call fcn.140084600
lea rbx, [rbp + 0x340]
mov edi, 4
mov r8d, 0x10
mov rdx, r14
mov rcx, rbx
call fcn.14008e8c0
add rbx, 0x10
sub rdi, 1
jne 0x1400853b2
lea r13d, [rdi + 4]
mov r8d, r13d
lea rdx, [rbp + 0x34c]
lea rcx, [rsp + 0x20]
call fcn.14008e8c0
mov r14d, dword [rsp + 0x20]
lea rax, [rbp + 0x380]
sub r15, rax
lea rax, [rbp + 0x380]
sub r12, rax
bswap r14d
xor ebx, ebx
lea rdi, [rbp + 0x34c]
lea eax, [rbx + r14]
mov r8, r13
bswap eax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.14008e8c0
inc rbx
add rdi, 0x10
cmp rbx, r13
jb 0x14008540a
mov r13, qword [rsp + 0x30]
lea rdx, [rbp + 0x340]
mov edi, 4
lea rcx, [rsp + 0x40]
cmp rsi, rdi
mov rbx, rsi
cmovae rbx, rdi
mov r8, rbx
mov qword [rsp + 0x20], rbx
call fcn.140085198
mov edx, dword [r13 + 0xf0]
lea r8, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.140084530
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x380]
call fcn.140084694
test rbx, rbx
je 0x1400854f8
lea rdi, [rbp + 0x380]
mov r13, rbx
mov ebx, 2
lea rdx, [r15 + rdi]
mov r8d, 8
lea rcx, [rsp + 0x28]
call fcn.14008e8c0
mov r8d, 8
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14008e8c0
mov rax, qword [rsp + 0x38]
lea rcx, [r12 + rdi]
xor qword [rsp + 0x28], rax
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.14008e8c0
add rdi, 8
sub rbx, 1
jne 0x14008549a
sub r13, 1
jne 0x140085495
mov rbx, qword [rsp + 0x20]
lea edi, [r13 + 4]
sub rsi, rbx
je 0x140085513
add r15, 0x40
add r12, 0x40
add r14d, edi
mov r13d, 4
jmp 0x140085401
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.14008de10
mov rbx, qword [rsp + 0x520]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140088200
Capabilities:
Encrypt data using curve25519

Disassembly:
mov al, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rcx + 0x1f], al
ret
Function at 0x14008b8dc
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8, r8
je 0x14008b8f8
sub rdx, rcx
mov al, byte [rdx + rcx]
xor al, byte [rcx]
inc rcx
or r9b, al
sub r8, 1
jne 0x14008b8e7
movzx eax, r9b
ret

Function at 0x14008b900
Capabilities:
Encode data using xor

Disassembly:
neg r8
mov r9, rcx
mov r11, r8
sub rdx, rcx
not r11
mov r10d, 4
mov rcx, qword [rdx + r9]
mov rax, qword [r9]
and rcx, r8
and rax, r11
xor rcx, rax
mov qword [r9], rcx
lea r9, [r9 + 8]
sub r10, 1
jne 0x14008b915
ret

Function at 0x14008c2e0
Capabilities:
Encode data using xor

Disassembly:
or rax, 0xffffffffffffffff
mov r9, rdx
mov r10, rcx
test r8, r8
je 0x14008c31b
sub r10, rdx
mov rcx, qword [r10 + r9]
xor rcx, qword [r9]
lea r9, [r9 + 8]
lea rdx, [rcx - 1]
not rcx
shr rdx, 0x3f
shr rcx, 0x3f
and rdx, rcx
neg rdx
and rax, rdx
sub r8, 1
jne 0x14008c2f2
ret

Function at 0x14008d860
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r10d, 1
xor r9d, r9d
lea r11d, [r10 + 0x3f]
mov r8, r10
shr r9, 1
and r8d, 1
neg r8
mov rdx, r8
and rdx, rcx
mov rax, rdx
xor rax, r10
and r10, rdx
shr rax, 1
add r10, rax
movabs rax, 0x8000000000000000
and r8, rax
add r9, r8
sub r11, 1
jne 0x14008d872
mov rbx, qword [rsp + 8]
mov rax, r9
ret

Function at 0x14008e2f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14008e342
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008e342
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008e342
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008e342
cmp dword [rcx + 0x84], 0xe
jbe 0x14008e342
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008e344
xor al, al
add rsp, 0x28
ret

Function at 0x1400909c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400907f4

Function at 0x14009a9bb
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x48
test rcx, rcx
je 0x14009a9d6
mov rax, qword [rcx]
mov qword [rsp + 0x28], rax
mov rdx, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
jmp 0x14009a9db
lea rcx, [rsp + 0x28]
and qword [rcx], 0
cmp qword [rsp + 0x28], 0
jne 0x14009aa0b
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14009aa3c
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov ecx, dword [0x1400e5b88]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x38], 1
mov qword [rcx + 0x40], rdx
mov qword [rcx + 0x48], rax
add rsp, 0x48
ret
call fcn.140028a27
ud2
Function at 0x140007800
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1400079bf
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x68]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x1400079bf
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x20], 0x68
mov dword [rbp + 0x1c], 1
mov word [rbp + 0x20], di
lea rax, str.cmd.exe__c_start______
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 0x18
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400078ae
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x78], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x60], 1
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm1
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.14000d2d0
lea r8, [rbp - 0x48]
cmp qword [rbp - 0x30], 7
cmova r8, qword [rbp - 0x48]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x14000797c
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x14000797e
xor bl, bl
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1400079ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400079b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400079e2
call fcn.14001aae0
movzx eax, bl
jmp 0x1400079c1
xor al, al
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001aac0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140022428
int3
Function at 0x1400079f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor ebx, ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x30], 0x68
mov dword [rbp + 0xc], 1
mov word [rbp + 0x10], bx
lea rax, str.cmd.exe__c_
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xd
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140007a6f
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp - 0x80], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x58]
call fcn.14000d2d0
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 7
cmova rdx, qword [rbp - 0x58]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140007b19
xor bl, bl
jmp 0x140007b3e
mov edx, 0x2710
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rdx, qword [rbp - 0x40]
cmp rdx, 7
jbe 0x140007b7a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007b75
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007b9a
call fcn.14001aae0
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14001aac0
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rbp
ret
call fcn.140022428
int3
Function at 0x140007fb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140007fd4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140008062
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008030
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140008030
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.1400334b0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000804d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140008055
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140007ff1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140008140
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140008079
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000807b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400080ad
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.1400334b0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000813d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400080e8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14000811e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140021c04
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000813d
cmp rsi, rax
ja 0x1400080f1
test rsi, rsi
je 0x14000813d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140021c04
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x1400164c0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov ebx, edx
xor esi, esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x40], 0x68
mov dword [rbp - 4], 1
mov word [rbp], si
mov edi, esi
mov eax, 0x10
test edx, edx
cmove edi, eax
lea rax, str.cmd.exe__c_
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xd
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140016557
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x78], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.14000d2d0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140016602
xor bl, bl
jmp 0x14001663b
test ebx, ebx
je 0x140016612
mov edx, ebx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 1
lea rcx, [rsp + 0x50]
call fcn.1400182d0
mov bl, 1
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140016677
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016672
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001669f
call fcn.14001aae0
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14001aac0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140022428
int3
Function at 0x140017820
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov qword [rbp - 0x30], 5
lea rcx, [rbp - 0x30]
call fcn.1400182d0
xor ebx, ebx
mov dword [rbp - 0x18], ebx
mov qword [rbp - 0x30], rbx
mov dword [rbp - 0x20], ebx
mov word [rbp - 0x1c], 0x500
lea rax, [rbp - 0x30]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400178d8
lea r8, [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400178bd
mov dword [rbp - 0x18], ebx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400178cc
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x18], ebx
je 0x1400178d8
call fcn.1400166b0
jmp 0x1400178dd
call fcn.140016d80
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x10]
call fcn.140033b50
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, eax
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x70]
call fcn.14000bf70
lea rax, str.timeout__t_10__nobreak__del___
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0x22
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rax, qword [rsp + 0x70]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rbp - 0x48], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp - 0x50]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rbp - 0x30]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.14000d2d0
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.1400164c0
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x1400179e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400179e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017a55
call fcn.14001aae0
movdqa xmm0, xmmword [0x140060d90]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], bx
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140017a33
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017a2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017a55
call fcn.14001aae0
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14001aac0
mov rbx, qword [rsp + 0x320]
add rsp, 0x310
pop rbp
ret
call fcn.140022428
int3